Re: [Newbie Q] Memory Management in Cocoa
Re: [Newbie Q] Memory Management in Cocoa
- Subject: Re: [Newbie Q] Memory Management in Cocoa
- From: Kevin Elliott <email@hidden>
- Date: Tue, 5 Nov 2002 14:53:48 -0800
At 23:35 +0100 on 11/5/02, Ondra Cada wrote:
On Tuesday, November 5, 2002, at 11:25 , Kevin Elliott wrote:
Though, I don't think I've ever seen anyone actually call it...
Well, I keep the (so far as I know, never explicitly stated
anywhere) >convention of using alloc/init instead in production
code, but for any >quickly-rigged tool it seems to me far more
convenient to go
I found it to be one of the more interesting "quirks" of the language
as spec'd vs. language as used. I remember the first time I ran
across it immediately say "huh, that's handy", and promptly going
back to the standard [[object alloc] init] pattern. The only
justification I can think of is the visual "parallelism" between
[[object alloc] init] and [[object alloc] init: some_args...]. That
and the fact that no one else seems to use it.
--
_____________________________________________
Kevin Elliott <
mailto:email@hidden> ICQ#23758827
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.