Re: Implementing delegates with formal protocols
Re: Implementing delegates with formal protocols
- Subject: Re: Implementing delegates with formal protocols
- From: Rick Mann <email@hidden>
- Date: Fri, 28 Aug 2009 14:57:07 -0700
Thanks for the suggestions. I have one suggestion saying to extend my
protocol to conform to NSObject, and another saying I should use
NSObject instead of ID.
Is one approach better than the other?
TIA!
On Aug 28, 2009, at 14:43:16, David Duncan wrote:
On Aug 28, 2009, at 2:36 PM, Rick Mann wrote:
I'm trying to implement a delegate pattern in my code, where the
delegate conforms to a formal protocol. But when I make the
delegate ivar id<MyProtocol> and try to send it
performSelectorOnMainThread:..., it complains that that action is
"not found in protocol(s).
Your protocol probably doesn't conform to NSObject, ala
@protocol MyProtocol<NSObject>
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden