• 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: Ondra Cada <email@hidden>
  • Date: Thu, 16 Sep 2004 13:36:23 +0200

Ben,

On 16.9.2004, at 8:41, Ben Golding wrote:

Anyway, that's how I'd do it which would avoid having to fiddle with reassigning to self altogether.

Actually you did not: you just switched from init-based to class-convenience-method-based subclass selection.


Both have their merits, of course -- depends on the usage. The class-convenience-method-based selection is generally simpler and perhaps a tad cleaner, too. Often though you don't want to make the abstract class even if the alloc/init pair is used, in which case it is not sufficient, and you have to implement the init-based one (or both). Also, in some cases of more complicated initialization the init-based selection may prove simpler.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


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

  • Prev by Date: Search LDAP directory using AddressBook API?
  • Next by Date: Re: Global hotkeys
  • Previous by thread: Re: modifying self in init
  • Next by thread: Subject: Re: Country codes vs. Language codes
  • Index(es):
    • Date
    • Thread