• 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: Categories, Protocols, Delegates and ToolTips
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Categories, Protocols, Delegates and ToolTips


  • Subject: Re: Categories, Protocols, Delegates and ToolTips
  • From: Malte Tancred <email@hidden>
  • Date: Wed, 19 Jun 2002 18:20:31 +0200

On wednesday, june 19, 2002, at 05:41 , Paul Cezanne wrote:
If you implement in a category methods that already exist, your implementation will replace the original, which could be risky.

why? As long as I call super I should be ok, no? (Ok, I can see how I might do stuff that would be "bad" but since I am adding functionality seperate from the control, I think I am ok here.)

It's risky because the original method is replaced. A category is not a subclass thus the original implementation cannot be reached by calling super.

Cheerio,
Malte
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Categories, Protocols, Delegates and ToolTips (From: Paul Cezanne <email@hidden>)

  • Prev by Date: Corruption of text display in NSTextView
  • Next by Date: Re: toolbar in a sheet drawing issues
  • Previous by thread: Re: Categories, Protocols, Delegates and ToolTips
  • Next by thread: Re: Categories, Protocols, Delegates and ToolTips
  • Index(es):
    • Date
    • Thread