• 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: "Raphael Sebbe" <email@hidden>
  • Date: Wed, 5 Nov 2008 10:32:10 +0100

Binding to the file's owner has the side effect of retaining it. Owner owns
the view, the view owns the owner through binding -> this is a retain cycle.

Another thing that may interest you is that top-level objects in a nib
should be explicitly released when no NSWindowController is used to load the
nib (or NSViewController).

Raphael

On Wed, Nov 5, 2008 at 8:26 AM, Tomaž Kragelj <email@hidden> wrote:

> Hello
>
> 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?
>
> Thanks, Tom
> _______________________________________________
>
> 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
>
_______________________________________________

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: 
 >Custom view controller (From: Tomaž Kragelj <email@hidden>)

  • Prev by Date: Custom view controller
  • Next by Date: [iPhone dev]UIImagePickerController'view display nothing except a cancel button
  • Previous by thread: Custom view controller
  • Next by thread: Re: Custom view controller
  • Index(es):
    • Date
    • Thread