• 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: initializers in Categories?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initializers in Categories?


  • Subject: Re: initializers in Categories?
  • From: "A.M." <email@hidden>
  • Date: Thu, 13 Jul 2006 16:02:04 -0400 (EDT)

> I wasn't talking about overriding an existing -init method (although
> that's another good question - should you?), I was talking about *adding*
> new initializers via a Category.

Ok- sorry. Adding methods is always fine- but be wary of superclass
methods too.

Overwriting methods is muddy water (even though categories allow it). The
reason is that one would have to perform backflips to call the original
method. Also, if one overwrites the same method multiple times with
categories, it's not immediately clear which method will prevail (though
it is deterministic).

-M

 _______________________________________________
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: 
 >initializers in Categories? (From: Rob Ross <email@hidden>)
 >Re: initializers in Categories? (From: "A.M." <email@hidden>)
 >Re: initializers in Categories? (From: Rob Ross <email@hidden>)

  • Prev by Date: Re: NSEvent -keyCode decoder ring?
  • Next by Date: Re: initializers in Categories?
  • Previous by thread: Re: initializers in Categories?
  • Next by thread: Re: initializers in Categories?
  • Index(es):
    • Date
    • Thread