Re: Sanity Check
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