• 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
setFrameAutosaveName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setFrameAutosaveName


  • Subject: setFrameAutosaveName
  • From: Tom Gray <email@hidden>
  • Date: Fri, 24 Jan 2003 20:48:28 -0500

I have figured it out. For those of you who have been following my
problem, I had a re-entrant bug associated with setFrameAutosaveName.

Apparently setFrameAutosaveName causes windowDidLoad to be called. I
had setFrameAutosaveName in my init and so I was starting my classes
windowDidLoad method before the init was complete.

I suspected that setFrameAutosaveName should not be in the init and so
I initially moved it to my windowWillLoad method. That did not work
since now the windowWillLoad method via setFrameAutosaveName triggered
the windowDidLoad method!

I then moved setFrameAutosaveName to the windowDidLoad method which was
even worse. setFrameAutosaveName triggers a windowDidLoad while in the
windowDidLoad. Talk about an infinite loop!

The solution to my problem was to move xxx to the showWindow method.

Whew!


Tom Gray
-------------
email@hidden
or
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: using registerImageRepClass
  • Next by Date: Re: cascading sheets and HIG
  • Previous by thread: Re: using registerImageRepClass
  • Next by thread: [NSApplication unhide] vs. [NSApplication activateIgnoringOtherApps:]
  • Index(es):
    • Date
    • Thread