• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: newbie EXC_BAD_ACCESS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: newbie EXC_BAD_ACCESS (From: Daniel Child <email@hidden>)
 >Re: newbie EXC_BAD_ACCESS (From: Charilaos Skiadas <email@hidden>)

  • Prev by Date: Re: newbie EXC_BAD_ACCESS
  • Next by Date: Re: Benefits of subclassing NSWindowController?
  • Previous by thread: Re: newbie EXC_BAD_ACCESS
  • Next by thread: Re: newbie EXC_BAD_ACCESS
  • Index(es):
    • Date
    • Thread