• 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: modifying self in init
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modifying self in init


  • Subject: Re: modifying self in init
  • From: Allan Odgaard <email@hidden>
  • Date: Wed, 15 Sep 2004 12:50:58 +0200

On 15. Sep 2004, at 8:08, Mike Bolton wrote:

Anyways, if anyone can give me any advice or suggestions on how to properly implement this,

Your first implementation (modifying self) is fine, and probably what I would use.


I've searched the list archives for similar problems, but I didn't find any
messages which addressed modifying the value of self.

You may try to search for class clusters and/or singleton design pattern, here it's also sort of needed (try the CocoaDev wiki, it has tutorials on these things).


And you don't need any extra retains in your code.
--
http://macromates.com/ ::: TextMate, OS X text editor
http://macromates.com/sigpipe/ ::: Personal weblog about programming


_______________________________________________
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: 
 >modifying self in init (From: Mike Bolton <email@hidden>)

  • Prev by Date: Re: query: setNeedsDisplay
  • Next by Date: Re: Distributing vs. re-using source code?
  • Previous by thread: modifying self in init
  • Next by thread: Re: modifying self in init
  • Index(es):
    • Date
    • Thread