• 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: 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


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

  • Prev by Date: Re: Global Variables
  • Next by Date: Re: Global Variables
  • Previous by thread: Re: newbie EXC_BAD_ACCESS
  • Next by thread: Re: newbie EXC_BAD_ACCESS
  • Index(es):
    • Date
    • Thread