• 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: Sanity Check
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sanity Check


  • Subject: Re: Sanity Check
  • From: vincent habchi <email@hidden>
  • Date: Thu, 8 Jul 2010 20:37:51 +0200

Le 8 juil. 2010 à 19:34, Kyle Sluder a écrit :

>> Because I retain it in the init method , I don't need a reference to it
>> where the alloc is called
>
> Retaining self in -init is wrong. It doesn't matter if it works.

You can retain your controller in -windowDidLoad and (auto)release it in -windowWillClose. That's what I usually do for non-modal windows. For modal window, the problem is even more simple.

Vincent_______________________________________________

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: 
 >Sanity Check (From: email@hidden)
 >Re: Sanity Check (From: Mike Abdullah <email@hidden>)
 >Re: Sanity Check (From: email@hidden)
 >Re: Sanity Check (From: Sherm Pendley <email@hidden>)
 >Re: Sanity Check (From: email@hidden)
 >Re: Sanity Check (From: Kyle Sluder <email@hidden>)
 >Re: Sanity Check (From: email@hidden)
 >Re: Sanity Check (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Sanity Check
  • Next by Date: Re: Programmatically highlighting an NSMenuItem
  • Previous by thread: Re: Sanity Check
  • Next by thread: Fwd: Sanity Check
  • Index(es):
    • Date
    • Thread