• 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: Crashes with NSOpenPanel and garbage collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crashes with NSOpenPanel and garbage collection


  • Subject: Re: Crashes with NSOpenPanel and garbage collection
  • From: Daniel Parnell <email@hidden>
  • Date: Fri, 9 May 2008 22:17:39 +1000

Thanks for that. I was wondering if that might be the case, although I've not been able to find anything online about the problem.

One of the thoughts I've had about a possible fix is to create a non garbage collected framework containing just a stub which opens the NSOpenPanel and calling that from the garbage collected app. I don't know if it will work or not, but I might try it and see.

Daniel

On 09/05/2008, at 3:09 PM, Antonio Nunes wrote:

On May 9, 2008, at 3:12 AM, Daniel Parnell wrote:

I'm having an interesting problem. I'm trying to use NSOpenPanel to select some files (as one usually does), however if I compile with garbage collection on and then try to use the Music, Photos or Movies areas in the open panel I get very strange crashes. If I've previously opened a file from one of these areas and the open panel is now defaulting to them then simply using Command-O will also cause the same crash.

This is a known bug in 10.5.2, which a.f.a.i.k. affects all garbage collected apps. To solve your immediate issue where just bringing up the open panel will crash your app simply remove its preferences file (or the pertinent entry in the file that remembers the state of the panel).


António

-----------------------------------------------------------
Some things have to be believed to be seen.

--Ralph Hodgson
-----------------------------------------------------------




_______________________________________________

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


  • Follow-Ups:
    • Re: Crashes with NSOpenPanel and garbage collection
      • From: "Michael Ash" <email@hidden>
References: 
 >Crashes with NSOpenPanel and garbage collection (From: Daniel Parnell <email@hidden>)
 >Re: Crashes with NSOpenPanel and garbage collection (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Re: NSApplicationMain & Main NIB File
  • Next by Date: Re: NSPopUpButton again
  • Previous by thread: Re: Crashes with NSOpenPanel and garbage collection
  • Next by thread: Re: Crashes with NSOpenPanel and garbage collection
  • Index(es):
    • Date
    • Thread