[SVN] r11470 (Objective-C)

Ciarán Walsh ciawal at gmail.com
Mon Apr 13 13:10:04 UTC 2009


Use -drain for the NSAutoreleasePool instead of -release, for compatibility with garbage-collected environments.

Under GC -release is always no-op, but -[NSAutoreleasePool drain] can be used to inform the collector that it should attempt collection. In a memory-managed environment, -drain is equivalent to releasing the NSAutoreleasePool, so it seems that using -drain is always the best option.

Changed:
U   trunk/Bundles/Objective-C.tmbundle/Snippets/NSAutoreleasePool (pool).plist



More information about the textmate-dev mailing list