On Apr 30, 2008, at 10:35 PM, Melissa J. Turner wrote:
NSAutoreleasePool *pool = [NSAutoreleasePool new];
id exception;

Should be initialized to nil:

id exception = nil;

@try {
        // insert code here
} @catch (NSException *ex) {
        exception = [ex retain];
        @throw ex;
} @finally {
        [pool drain];
        if (exception) {
                [exception autorelease];
        }
}

(Disclaimer: coded in mail)

-Ken

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to