Re: EXC_BAD_ACCESS when calling NSOpenPanel
Re: EXC_BAD_ACCESS when calling NSOpenPanel
- Subject: Re: EXC_BAD_ACCESS when calling NSOpenPanel
- From: Jens Alfke <email@hidden>
- Date: Wed, 25 Nov 2009 17:11:07 -0800
On Nov 25, 2009, at 3:25 PM, Ken Thomases wrote:
> You haven't retained this panel. If you want this object to live beyond the current autorelease context, you need to retain it. (Note that not retaining doesn't guarantee that it _will_ be released at the end of the autorelease context, just that it might.)
It's a window, so it'll be retained by AppKit as long as it's open. I've never seen any code using open/save panels that bothers to retain the objects.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden