• 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: Nib & retainCount confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nib & retainCount confusion


  • Subject: Re: Nib & retainCount confusion
  • From: Keary Suska <email@hidden>
  • Date: Wed, 03 Oct 2007 16:39:37 -0600
  • Thread-topic: Nib & retainCount confusion

on 10/3/07 3:01 PM, email@hidden purportedly said:

> What is the "top level objects dictionary" you refer to? Is that my
> object that the controller is bound to?

When using a nib loading method such as NSBundle's
-loadNibFile:externalNameTable:withZone:, you can maintain references to the
top level objects (the items that appear in IB's "instance" window) in a
dictionary. It's the only way I know of to have some control over when nib
objects are released. If you don't do this, or you don't use an
NSWindowController subclass (which takes care of its own nib objects), your
nib objects will leak.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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

References: 
 >Re: Nib & retainCount confusion (From: email@hidden)

  • Prev by Date: Re: Title bar on left of Panel
  • Next by Date: Re: Title bar on left of Panel
  • Previous by thread: Re: Nib & retainCount confusion
  • Next by thread: Re: Nib & retainCount confusion
  • Index(es):
    • Date
    • Thread