• 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: top level objects and NSWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: top level objects and NSWindowController


  • Subject: Re: top level objects and NSWindowController
  • From: "Michael Ash" <email@hidden>
  • Date: Sat, 24 Jun 2006 21:58:44 -0400

On 6/24/06, Ken Victor <email@hidden> wrote:
mike,
thanx for the response. sorry, but i can't see how to make this work!
if i did override loadWindow and used NSNib, then how would the
NSWindowController find out about the top level object in order to
release them? or would i have to keep track of them myself and then
release them at the appropriate time? if this is the case, its
probably just as easy to have my custom views simply "register
themselves" with my controller at awakeFromNib time.

You're already tracking all the top-level objects anyway. Releasing them is as simple as a [topLevelObjects makeObjectsPerformSelector: @selector( release )] in -dealloc.

Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: valueForKey and NSArray
  • Next by Date: Clickable NSImageCell in NSMatrix
  • Previous by thread: Re: top level objects and NSWindowController
  • Next by thread: Setting the starting index of an NSComboBox
  • Index(es):
    • Date
    • Thread