• 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: NSDocument reference held by NSSavePanel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument reference held by NSSavePanel?


  • Subject: Re: NSDocument reference held by NSSavePanel?
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 13 Apr 2009 09:05:40 -0700


On Apr 12, 2009, at 8:33 PM, Quincey Morris wrote:


(gdb) info gc-roots 0x1225400
Number of roots: 1
Root:
0 Kind: global rc: 0 Address: 0xa03f1214 Symbol: shared.176062
warning: can't find class named `NSToolTipManager' given by ObjC class object
1 Kind: object rc: 0 Address: 0x01050350 Offset: 0x00000008 Class: NSToolTipManager
warning: can't find class named `a' given by ObjC class object
2 Kind: object rc: 0 Address: 0x0104f320 Offset: 0x00000010 Class: NSCFArray
3 Kind: bytes rc: 0 Address: 0x013d7200 Offset: 0x00000040
warning: can't find class named `NSToolTip' given by ObjC class object
4 Kind: object rc: 0 Address: 0x010f8d30 Offset: 0x00000014 Class: NSToolTip
warning: can't find class named `a' given by ObjC class object
5 Kind: object rc: 0 Address: 0x010f8cd0 Offset: 0x00000030 Class: NSCFDictionary
6 Kind: bytes rc: 0 Address: 0x010f8d20
warning: can't find class named `NSNavBrowserCell' given by ObjC class object
7 Kind: object rc: 0 Address: 0x01326420 Offset: 0x00000014 Class: NSNavBrowserCell
warning: can't find class named `NSNavMatrix' given by ObjC class object
8 Kind: object rc: 0 Address: 0x01428d60 Offset: 0x00000030 Class: NSNavMatrix
9 Kind: object rc: 0 Address: 0x01082380 Class: NSSavePanel ivar: _spAuxiliaryStorage
warning: can't find class named `NSSavePanelAuxiliary' given by ObjC class object
10 Kind: object rc: 0 Address: 0x010c9540 Offset: 0x00000010 Class: NSSavePanelAuxiliary
11 Kind: object rc: 0 Address: 0x01096e80 Class: BPMDocument ivar: mutableModel

etc, eventually leading to the object that has the resource. BPMDocument is the application's NSDocument subclass, and mutableModel is the document's data model.


This appears to say that the save panel is holding a reference to the document. Does this make any sense to anyone?


This may be a bug in NSSavePanel accidentally referencing something too long (with a root!). Please log a bug on this, and if possible, provide a test app that reproduces the problem.


As a work around, try setting the delegate to nil on the NSSavePanel after you are done using it.

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


  • Follow-Ups:
    • Re: NSDocument reference held by NSSavePanel?
      • From: Quincey Morris <email@hidden>
References: 
 >NSDocument reference held by NSSavePanel? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: How to open two nibs at app launch ? Beginners question
  • Next by Date: Re: NSDocument reference held by NSSavePanel?
  • Previous by thread: Re: NSDocument reference held by NSSavePanel?
  • Next by thread: Re: NSDocument reference held by NSSavePanel?
  • Index(es):
    • Date
    • Thread