• 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: DO: Protocols and Categories don't play nice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DO: Protocols and Categories don't play nice


  • Subject: Re: DO: Protocols and Categories don't play nice
  • From: Greg Titus <email@hidden>
  • Date: Mon, 6 Oct 2003 13:30:48 -0700

On Monday, October 6, 2003, at 01:20 PM, AgentM wrote:
Am I missing something? How are other people doing this? Right now, it looks least complicated to consolidate my categories into a monster definition. Sorry for the long mail- I *really* don't want to give up my categories....

You can inherit protocols from other protocols. For instance:

@protocol MyProtocol <NSObject, NSCoding, NSCopying>
@end

Means that MyProtocol has all the methods of the three other protocols, and that's it.

Is that what you are aiming for?

Hope this helps,
- Greg
_______________________________________________
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.

  • Follow-Ups:
    • Re: DO: Protocols and Categories don't play nice
      • From: AgentM <email@hidden>
References: 
 >DO: Protocols and Categories don't play nice (From: AgentM <email@hidden>)

  • Prev by Date: DO: Protocols and Categories don't play nice
  • Next by Date: Re: iTunes style searching on an NSTableView
  • Previous by thread: DO: Protocols and Categories don't play nice
  • Next by thread: Re: DO: Protocols and Categories don't play nice
  • Index(es):
    • Date
    • Thread