• 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]: Categories, etc vs subclassing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NEWBIE]: Categories, etc vs subclassing


  • Subject: Re: [NEWBIE]: Categories, etc vs subclassing
  • From: Evan Schoenberg <email@hidden>
  • Date: Wed, 20 Oct 2004 03:40:49 -0500


On Oct 20, 2004, at 3:34 AM, j o a r wrote:

Sure you can. The only pit fall with this approach is that you can have multiple categories overriding the same method, and it's probably undefined (depending on when they are loaded into the runtime) which one will take precedence.

True, so long as the original method wasn't define in a category, your category has precedence... but that's not a safe assumption. So I should have said, "You can't safely override methods."

-Evan

_______________________________________________
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: 
 >[NEWBIE]: Categories, etc vs subclassing (From: J Tichenor <email@hidden>)
 >Re: [NEWBIE]: Categories, etc vs subclassing (From: Evan Schoenberg <email@hidden>)
 >Re: [NEWBIE]: Categories, etc vs subclassing (From: j o a r <email@hidden>)

  • Prev by Date: Re: [NEWBIE]: Categories, etc vs subclassing
  • Next by Date: NSTableView edit problem
  • Previous by thread: Re: [NEWBIE]: Categories, etc vs subclassing
  • Next by thread: Re: [NEWBIE]: Categories, etc vs subclassing
  • Index(es):
    • Date
    • Thread