<snip>
Here's the normal way to do it:

NSError *saveError;
[importContext save:&saveError];


Important nitpick:

NSError *saveError = nil;
[importContext save:&saveError];

Methods that follow the NSError** convention are not required to actually assign a value to the saveError pointer, so you'll want to make sure to initialize saveError to nil since its a local variable. Wouldn't want to be checking against undefined garbage later, especially if you have something like a "if (saveError)" check.

- Bryan
_______________________________________________

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 arch...@mail-archive.com

Reply via email to