• 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 18:19:55 +0100

Joe,

>>>>>> Joe Chan (JC) wrote at Thu, 18 Oct 2001 10:15:38 -0400:
JC> But I thought we just agree on the fact that the file owners of
JC> all type release all the top level object anyways, so how is it
JC> special for window controllers?

Again: from application point of view, nothing special. From _YOUR_ POV
NSWindowController is special only in the sense that the releasing is already
implemented in the framework code and you don't have to implement it
yourself.

So:

- if you use an NSWindowController subclass, _you_ don't release NIB objects
(since inherited code does);
- if you use another class, _you_ release NIB objects (since inherited code
does not).

In each case, the controller releases them.
---
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:
    • Finding which control is selected
      • From: Peter Sichel <email@hidden>
References: 
 >Re: 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: Ownership of nib instances
  • Previous by thread: Re: Ownership of nib instances
  • Next by thread: Finding which control is selected
  • Index(es):
    • Date
    • Thread