Hi there,
I find myself launching Xcode just to create a new project, and then work on it exclusively with TextMate…
It would be great if TextMate had a “New Xcode Project” command so that I don't have to fire up Xcode at all !
Does anyone here knows if it's easily feaisble ?
Thanks in advance :-)
On 7. Nov 2006, at 15:59, guerom00 wrote:
It would be great if TextMate had a “New Xcode Project” command so that I don't have to fire up Xcode at all !
Does anyone here knows if it's easily feaisble ?
Yeah, that should be pretty easy, and I do that as well (fire up Xcode just to instantiate a project template).
I did a simple New Project in the Xcode bundle [1] using tm_dialog (get latest version of the plug-in to avoid crashes when using ↩ to dismiss the dialog).
It doesn’t fill in «PLACEHOLDERS» so that makes it not very useful -- but that should be fairly simple, when someone finds the time. Only problem is that majority of files are MacRoman, but at least the strings file is UTF-16, and I got the impression that even nib files are expanded, I don’t know what the characters would be there.
Here are the placeholders obtained by grepping the current templates:
DATE FILENAME FULLUSERNAME ORGANIZATIONNAME PRODUCTNAME PROJECTNAMEASIDENTIFIER PROJECTNAMEASXML PROJECTNAME TARGETNAMEASIDENTIFIER USERNAME UUID YEAR
[1] http://lists.macromates.com/pipermail/textmate-dev/2006-November/ 007459.html
Allan Odgaard <throw-away-1@...> writes:
On 7. Nov 2006, at 15:59, guerom00 wrote:
It would be great if TextMate had a “New Xcode Project” command so that I don't have to fire up Xcode at all !
Does anyone here knows if it's easily feaisble ?
Yeah, that should be pretty easy, and I do that as well (fire up Xcode just to instantiate a project template).
I did a simple New Project in the Xcode bundle [1] using tm_dialog (get latest version of the plug-in to avoid crashes when using ↩ to dismiss the dialog).
It doesn’t fill in «PLACEHOLDERS» so that makes it not very useful
Thanks Allan. I've updated the Xcode plug-in to give it a try but for some reason the “New Project” button is always greyed out… What am I doing wrong ?
On 8. Nov 2006, at 11:15, guerom00 wrote:
[...] Thanks Allan. I've updated the Xcode plug-in to give it a try but for some reason the “New Project” button is always greyed out… What am I doing wrong ?
Did you enter a location for the project (e.g. ~), and made a selection (in a future version of the dialog I will add support for registering default values)?
If you did, then also be sure you have latest version of the Dialog plug-in, if you didn’t already check it out in ~/Library, you can update the one included with TextMate using:
cd /Applications/TextMate.app/Contents rm -rf PlugIns svn export http://macromates.com/svn/Bundles/trunk/PlugIns
Relaunch TextMate after this.
On 8. Nov 2006, at 06:01, Allan Odgaard wrote:
I did a simple New Project in the Xcode bundle [1] using tm_dialog (get latest version of the plug-in to avoid crashes when using ↩ to dismiss the dialog).
It doesn’t fill in «PLACEHOLDERS» so that makes it not very useful [...]
I updated it to now also fill in placeholders and rename files according to TemplateInfo.plist.
It seems there is at least one implicit rule about renaming the folder with the TemplateInfo.plist file to the name of the project. And I made target name, project name, and product name all expand to the same.
Having this template expander now makes it possible to have the bundle identifier correctly use your company name.
Allan Odgaard <throw-away-1@...> writes:
I updated it to now also fill in placeholders and rename files according to TemplateInfo.plist.
It seems there is at least one implicit rule about renaming the folder with the TemplateInfo.plist file to the name of the project. And I made target name, project name, and product name all expand to the same.
Having this template expander now makes it possible to have the bundle identifier correctly use your company name.
This version fails for me with this output :
/tmp/temp_textmate.gUHnSo:14:in `require': No such file to load -- plist (LoadError) from /tmp/temp_textmate.gUHnSo:14
Am I suppose to update something ? (tm_dialog, ruby, etc…)
TIA
Allan Odgaard <throw-away-1@...> writes:
Ups… I removed the offending line.
Sorry, it still fails with this output :
tm_dialog: invalid option -- d tm_dialog r5775 (2006-11-02) Usage: tm_dialog [-cmqp] nib_file Usage: tm_dialog [-p] -u Options: -c, --center Center the window on screen. -m, --modal Show window as modal. -q, --quiet Do not write result to stdout. -p, --parameters <plist> Provide parameters as a plist. -u, --menu Treat parameters as a menu structure. tm_dialog r5775 (2006-11-02) Usage: tm_dialog [-cmqp] nib_file Usage: tm_dialog [-p] -u Options: -c, --center Center the window on screen. -m, --modal Show window as modal. -q, --quiet Do not write result to stdout. -p, --parameters <plist> Provide parameters as a plist. -u, --menu Treat parameters as a menu structure. /tmp/temp_textmate.3ysv9c:116:in `load': Cannot parse a NULL or zero-length data (PropertyListError) from /tmp/temp_textmate.3ysv9c:116
To be on ths safe side, I have updated the Dialog bundle, the TextMate App Support directory and the Xcode bundle but still no dice…