• 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
Specifying a class which conforms to a protocol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Specifying a class which conforms to a protocol


  • Subject: Specifying a class which conforms to a protocol
  • From: David Newberry <email@hidden>
  • Date: Sun, 28 Jul 2002 16:50:56 -0700

Hi all,

In my app, I have a class which I want to create instances of another class. To allow for more freedom though, I don't want to tie it down to creating only one kind of class... the only real requirement is that the class conform to a particular (formal) protocol. I've set it up so that the class to use is passed as a Class variable, but it wont let me specify something like "(Class <myProtocol>)class", which is what I'd like to do. Is there any way to do this?

Thanks,
-David Newberry
_______________________________________________
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: Specifying a class which conforms to a protocol
      • From: Nathan Day <email@hidden>
  • Prev by Date: Re: Creating a class cluster
  • Next by Date: Re: cocoa-dev digest, Vol 2 #1010 - 13 msgs
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #1008 - 12 msgs
  • Next by thread: Re: Specifying a class which conforms to a protocol
  • Index(es):
    • Date
    • Thread