• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOpenPanel instantly closing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSOpenPanel instantly closing (From: Nick Forge <email@hidden>)

  • Prev by Date: Re: NSOpenPanel instantly closing
  • Next by Date: NSMatrix of NSImageCells er help!
  • Previous by thread: Re: NSOpenPanel instantly closing
  • Next by thread: Re: NSOpenPanel instantly closing
  • Index(es):
    • Date
    • Thread