Re: [ANN] PropertyMaster(TM): customizable Xcode script to create, cleanup, and maintain properties-synthesize-viewDidUnload-dealloc
Re: [ANN] PropertyMaster(TM): customizable Xcode script to create, cleanup, and maintain properties-synthesize-viewDidUnload-dealloc
- Subject: Re: [ANN] PropertyMaster(TM): customizable Xcode script to create, cleanup, and maintain properties-synthesize-viewDidUnload-dealloc
- From: Jean-Denis Muys <email@hidden>
- Date: Thu, 21 Apr 2011 11:06:32 +0000
- Thread-topic: [ANN] PropertyMaster(TM): customizable Xcode script to create, cleanup, and maintain properties-synthesize-viewDidUnload-dealloc
Le 20 avr. 2011 à 03:18, "David Hoerl" <email@hidden> a écrit :
> The only possible downside I can see to removing the ivars is that subclass usage must use the "self.property" form, which many knowledgeable people have said should have been used in the first place.
>
In my experience there is another downsize: any property not backed by an explicit ivar is not visible in the debugger. This annoying behavior is the reason why my pattern is now to declare all my property ivars (public and private) in the class extension.
The downside of *that* is that my code is now only compatible with LLVM, as GCC doesn't support ivars in class extensions.
Finally I now set all my deallocated ivars to 0xDeadBeef instead of nil, with the goal of crashing early if I reuse them.
JD
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden