Re: NSOpenPanel instantly closing
Re: NSOpenPanel instantly closing
- Subject: Re: NSOpenPanel instantly closing
- From: Andreas Mayer <email@hidden>
- Date: Sun, 18 Feb 2007 12:49:17 +0100
Am 18.02.2007 um 04:30 Uhr schrieb Nick Forge:
surely if I made some mistake it would either not come up in the
first place, or it would die when I closed the panel?
- (IBAction)open:(id)sender
{
NSOpenPanel *panel = [NSOpenPanel openPanel];
The result from [NSOpenPanel openPanel] is autoreleased. So the panel
comes up, the autorelease pool gets emptied, the open panel released
and therefore closed.
Andreas
_______________________________________________
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