Hi Joachim and TextMate peoples<br><br>I've had a look at the WIP Objective-C and C bundles and firstly a question:<br><br>- Why does the Singleton template create an Objective-C++ implementation file - file extension is .mm? Also it might be preferable to use Apple's "recommended" singleton implementation: 
<a href="http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_10.html#//apple_ref/doc/uid/TP40002974-CH4-SW32">http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_10.html#//apple_ref/doc/uid/TP40002974-CH4-SW32
</a><br><br>- The help is a lot better without the side frame.<br><br>These next points are just stuff I've noticed in the current Objective-C bundle:<br><br>- Underscores in implementation and interface files aren't supported. (eg. "@interface TestCoreData_AppDelegate : NSObject" - "AppDelegate" will not be highlighted).
<br><br>- "Reformat Method Call" is a really good tool for keeping code tidy, but there are some problems with indenting that makes it less worthwhile.<br>An example is the following code call (imagine I've just hit control-Q to reformat and the NSWindow call is all nice an indented)
<br><br>isHidden = YES;<br>mainWindow = [[NSWindow alloc] initWithContentRect:windowRect<br>                                         styleMask:NSTitledWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask<br>                                           backing:NSBackingStoreBuffered
<br>                                             defer:NO<br>                                            screen:[NSScreen mainScreen]];<caret><br>                                                        <br>                                            
<br>1. Pressing enter/return on the last line will continue on the next line directly under "screen:..." - this is fine and expected.<br>2. Getting back to normal indent (aligned with "mainWindow" and "isHidden") requires pressing backspace 11 times. Note that if you hit tab at anytime you will be catapulted under "screen:" and have to start again.
<br><br>Is there anyway around this in the syntax file or would this require changes to how TextMate auto-indents?<br><br>-<br><br>I do feel a little guilty making these assessments because some of this stuff I imagine would be trivial to update. If I were to create some patches, what is the protocol for getting them to people for review? Can I just email, or should I post them to this mailing list first?
<br><br>Thanks<br>Craig<br><br><div class="gmail_quote">On Jan 5, 2008 11:17 PM, Craig Rose <<a href="mailto:craig.rose.dev@gmail.com">craig.rose.dev@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Joachim<br><br>Thanks for replying and for your work on the Objective-C bundle. I was unaware that work was ongoing in the WIP bundle and I will try that out as soon as possible. Please forgive me if I've mentioned anything that the new bundle addresses.
<br><br>Thanks again,<br><font color="#888888">Craig</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Jan 4, 2008 7:59 PM, Joachim Mårtensson <<a href="mailto:joachimm@etek.chalmers.se" target="_blank">
joachimm@etek.chalmers.se</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>> Hi all<br>><br>> I've been using the Objective-C bundle for about a year now for all my<br>> Cocoa<br>> coding. It has a lot of nice features, but there are few shortcomings and<br>
> I<br>> was wondering if anyone is actively working on this.<br></div>Yes, I am working on it (not so actively lately though, been busy) and so<br>are a few others (Allan, Rob Rix, Ciaran Walsh to name a few). Nice to
<br>hear that we are not the only ones using TextMate for Objective-C.<br><div>><br>> A few things off the top of my head:<br>><br>> - No completion of new classes in leopard (eg. NSGradient, Core Animation
<br>> classes) or any syntax highlighting for new Objective-C 2.0 features.<br>><br>> - Cocoa classes are automatically highlighted (eg. declaring a variable as<br>> NSRect will show "NSRect" highlighted). Other Apple classes like those in
<br>> CoreGraphics should also get the same treatment. Declaring a variable as a<br>> CGRect won't show "CGRect" highlighted. Also help doesn't work for these<br>> items.<br></div>The classes and types that are highlighted, were generated way back, by a
<br>script written by Allan(Support/Collect Cocoa Definitions.sh). With the<br>exception of the addition of Notifications to the list of<br>highlighted/scoped constants, not much has happend to this part of the<br>grammar. If you try out the WIP C bundle, the scope
<br>"variable.other.dot-access.c" will match the new Objective-C 2.0<br>properties syntax, ofcourse it will also match standard C struct access.<br>If you try out the WIP C bundle a good companion is the WIP Objective-C
<br>bundle, it will provide somewhat stronger code completion features.<br><br>It is clearly time to update the list both for completions and scoping<br>though.<br><div>><br>> - "Completion: Partial Method Signature" is really handy for inserting
<br>> delegate method signatures. It does however insert different spacing then<br>> the "Interface/Class Method" snippet.<br>> For example in an interface file:<br>>  Typing "-awakeFromN<tab>" will insert "-(void)awakeFromNib;"
<br>> Typing "m<tab>" will insert "- (id)method:(id)anArgument;" (notice the<br>> extra<br>> space after the "-")<br></div>For some reason I have not noticed this. I will fix it the next time my
<br>mac gets internet access.<br><br>Joachim Mårtensson<br><br><br>______________________________________________________________________<br>For new threads USE THIS: <a href="mailto:textmate@lists.macromates.com" target="_blank">
textmate@lists.macromates.com
</a><br>(threading gets destroyed and the universe will collapse if you don't)<br><a href="http://lists.macromates.com/mailman/listinfo/textmate" target="_blank">http://lists.macromates.com/mailman/listinfo/textmate</a>

<br></blockquote></div><br>
</div></div></blockquote></div><br>