Re: NSOpenPanel
Re: NSOpenPanel
- Subject: Re: NSOpenPanel
- From: "Joshua Pennington" <email@hidden>
- Date: Sat, 12 May 2007 03:04:24 -0500
The open panel is closing because [NSOpenPanel openPanel] returns an
autoreleased instance and it is being deallocated soon after you call
beginForDirectory.
I believe you need to retain the panel in open:, but make sure and
release it when the panel ends.
Currently the panel is opening on the button press, but it it immediately
closing, very quickly. Is there something obvious I am doing/not doing?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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