• 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: Custom view controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom view controller


  • Subject: Re: Custom view controller
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 5 Nov 2008 09:13:09 -0600

On Nov 5, 2008, at 1:26 AM, Tomaž Kragelj wrote:

My application should be tiger compatible, so I can't use NSViewController. I created a custom view controller class with similar interface albeit much simpler. However I am not sure about the following (taken from NSViewController documentation): "...taking the same care to prevent reference cycles when controls are bound to the nib file's owner".

Since my view controlle's dealloc is never called although I release it and it is set as nib file's owner, I suspect this is the problem. Can someone point me in direction of what is meant with "preventing reference cycles" in this situation?

My impression is that the solution isn't simple. It involves some private classes for auto-unbinding.


You can actually use an NSWindowController (or a custom subclass, if you need additional interface) to load a nib, even if there's no window in the nib to be controlled.

Cheers,
Ken

_______________________________________________

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


  • Follow-Ups:
    • Re: Custom view controller
      • From: Tomaž Kragelj <email@hidden>
References: 
 >Custom view controller (From: Tomaž Kragelj <email@hidden>)

  • Prev by Date: Re: Custom view controller
  • Next by Date: NSClassDescription Clarification
  • Previous by thread: Re: Custom view controller
  • Next by thread: Re: Custom view controller
  • Index(es):
    • Date
    • Thread