• 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: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50


  • Subject: Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 25 Aug 2008 08:40:45 -0700


On Aug 24, 2008, at 10:50 PM, Graham Cox wrote:


On 25 Aug 2008, at 11:09 am, Kyle Sluder wrote:

On Sun, Aug 24, 2008 at 6:03 PM, Cate Tony <email@hidden> wrote:
If I put a retain on the panel, the error stops, but isn't it now leaking?

No. You took ownership of the NSSavePanel when you created it by using a convenience constructor. You must retain it, and release it when you're done with it.


Except that the NSSavePanel docs state:

"An NSSavePanel object is a singleton: when you request a Save panel, NSSavePanel tries to reuse an existing Save panel rather than create a new one"

This is an error in the documentation which should be fixed soon (if not already on the website). It is not a singleton, but some pieces are shared/cached/reused, if possible.


corbin

_______________________________________________

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


References: 
 >*** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50 (From: Cate Tony <email@hidden>)
 >Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50 (From: "Kyle Sluder" <email@hidden>)
 >Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50 (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSTableView, bindings and datasource
  • Next by Date: Lazy Loading Archive
  • Previous by thread: Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50
  • Next by thread: Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50
  • Index(es):
    • Date
    • Thread