Specifying a class which conforms to a protocol
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.