• 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: Ownership of nib instances
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ownership of nib instances


  • Subject: Re: Ownership of nib instances
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 18 Oct 2001 00:26:21 +0100

Joe,

>>>>>> Joe Chan (JC) wrote at Wed, 17 Oct 2001 17:10:55 -0400:
JC> When I make a new instance of a class in a Nib (not the file
JC> owner instance), who actually owns the object? In other words,
JC> who should release that object?

File Owner.

JC> It seems to me that the file
JC> owner object some how has a hidden reference to all those
JC> instances, and as the file owner goes away, so do those objects.

If the File Owner happens to be an NSWindowController, it really has some
kind of hidden reference to all those objects, and it truly releases them
when it is unallocated.

Though, if you use a different class for File Owner, you have to do that yourself.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


  • Follow-Ups:
    • Re: Ownership of nib instances
      • From: Joe Chan <email@hidden>
References: 
 >Ownership of nib instances (From: Joe Chan <email@hidden>)

  • Prev by Date: Re: What happens to the AppKit Framework when an user logout ?
  • Next by Date: Re: Beginner's questions
  • Previous by thread: Re: Ownership of nib instances
  • Next by thread: Re: Ownership of nib instances
  • Index(es):
    • Date
    • Thread