Re: newbie EXC_BAD_ACCESS
Re: newbie EXC_BAD_ACCESS
- Subject: Re: newbie EXC_BAD_ACCESS
- From: Daniel Child <email@hidden>
- Date: Mon, 21 Mar 2005 19:31:13 -1000
On Monday, March 21, 2005, at 05:01 PM, Charilaos Skiadas wrote:
It is more convenient to put all the necessary variables on your init,
and hide all the set.. in there, instead of having them all around the
place. It is a question of distributing the responsibilities to the
right place.
Then Hamish takes this one step further, by using the convenience
method instead of the init, since you never needed to keep sd anyway,
just wanted to pass it to the addStrokeDesc method. The rest is
packing the code more tightly, but that's not my particular cup of > tea.
Between what you just said, and rereading that article (have seen it
before but did not at the time appreciate the difference in approaches
with arrays), I think I have it. Thanks! I'll try making a practice of
setting up good inits and convenience constructors.
Thanks too to Hamish for all the input.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden