On Mon, Nov 2, 2009 at 9:47 PM, Leonardo Borsten <le...@prepressmiami.com> wrote: > NSError **saveError; > [importContext save:saveError]; // <--- crashes here
Think for a minute about what the parameter is trying to do: return an object. To do that it needs to assign to a variable the caller provides. Is that what you're doing? No. You're passing the function a junk address (whatever happens to be on the stack when space for saveError is reserved). Here's the normal way to do it: NSError *saveError; [importContext save:&saveError]; _______________________________________________ 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