• 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: menu madness with retain count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: menu madness with retain count


  • Subject: Re: menu madness with retain count
  • From: Chris Hanson <email@hidden>
  • Date: Tue, 27 Apr 2010 22:39:53 -0700

On Apr 27, 2010, at 3:27 PM, Shawn Erickson wrote:

> On Tue, Apr 27, 2010 at 3:22 PM, Uli Kusterer
> <email@hidden> wrote:
>
>> For example, bindings were notorious for causing retain circles when you bound to File's Owner in a NIB, and that was fixed in 10.5, IIRC.
>
> Fairly sure it is still an issue unless you are using a
> NSWindowController subclass as the File's Owner (at least on 10.5 not
> looked at 10.6 directly).

NSWindowController and NSViewController both handle breaking retain cycles with File’s Owner as of 10.5.

Since NSViewController was introduced in 10.5, I would generally assume any Cocoa nibs these days should have a subclass of one of those two classes (or NSApplication, in the case of the main nib file) as its File’s Owner.

  — Chris

_______________________________________________

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: menu madness with retain count
      • From: Charles Srstka <email@hidden>
References: 
 >menu madness with retain count (From: Bill Appleton <email@hidden>)
 >Re: menu madness with retain count (From: Graham Cox <email@hidden>)
 >Re: menu madness with retain count (From: Bill Appleton <email@hidden>)
 >Re: menu madness with retain count (From: Jens Alfke <email@hidden>)
 >Re: menu madness with retain count (From: vincent habchi <email@hidden>)
 >Re: menu madness with retain count (From: Scott Ribe <email@hidden>)
 >Re: menu madness with retain count (From: vincent habchi <email@hidden>)
 >Re: menu madness with retain count (From: Steve Bird <email@hidden>)
 >Re: menu madness with retain count (From: Bill Appleton <email@hidden>)
 >Re: menu madness with retain count (From: Uli Kusterer <email@hidden>)
 >Re: menu madness with retain count (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: menu madness with retain count
  • Next by Date: Re: menu madness with retain count
  • Previous by thread: Re: menu madness with retain count
  • Next by thread: Re: menu madness with retain count
  • Index(es):
    • Date
    • Thread