• 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 "save as" bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument "save as" bug


  • Subject: Re: NSDocument "save as" bug
  • From: Half Activist <email@hidden>
  • Date: Mon, 1 Feb 2010 18:16:42 +0100

I'm not making any assumption on the number of documents that might exist at one time.
Even if i have 10 documents opened, the one that i do a "save as" on has its _instance method_ awakeFromNib called a second time:
The callstack shows that my document's awakeFromNib is being called during the save panel setup process.

#1  0x00007fff82927959 in -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] ()
#2  0x00007fff82925b49 in loadNib ()
#3  0x00007fff8292525c in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] ()
#4  0x00007fff82c93797 in -[NSDocument _savePanelAccessoryViewForWritableTypes:defaultType:] ()
#5  0x00007fff82c91192 in -[NSDocument _preparedSavePanelForOperation:] ()
#6  0x00007fff82c9022b in -[NSDocument _runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo:] ()

Unless specifying several editable document types grants your awakeFromNib an undocumented chance to get called a second time.
Furthermore, how do you explain that this works on Leopard but fails on Snow Leopard?_______________________________________________

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 "save as" bug
      • From: Gregory Weston <email@hidden>
    • Re: NSDocument "save as" bug
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: [JOB] New York City Cocoa developer
  • Next by Date: Re: NSDocument "save as" bug
  • Previous by thread: Re: NSDocument "save as" bug
  • Next by thread: Re: NSDocument "save as" bug
  • Index(es):
    • Date
    • Thread