Re: newbie EXC_BAD_ACCESS
Re: newbie EXC_BAD_ACCESS
- Subject: Re: newbie EXC_BAD_ACCESS
- From: Hamish Allan <email@hidden>
- Date: Tue, 22 Mar 2005 03:06:13 +0000
On Mar 22, 2005, at 2:44, Charilaos Skiadas wrote:
The class method is just a convenience method. What I would do
actually is implement both a class method and an instance method
Me too.
The only advantage to using explicit alloc/init and release, versus
the convenience methods, is that id you happen to create thousands of
autoreleased objects in the same loop, this might cause trouble, since
they won't get released until later.
This is true, and is the reason why Daniel was actually right to use
release rather than autorelease in that example (sorry Daniel -- I was
thinking about an initWithType:desc: method at the time).
If you haven't yet, you would want to read this:
http://www.stepwise.com/Articles/Technical/2001-03-11.01.html
Yes, that is a very clear article!
Best wishes,
Hamish
_______________________________________________
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