Use NSObject<protocolname>. Instead of id<...>
Sent from my phone
On Aug 28, 2009, at 2:36 PM, Rick Mann <rm...@latencyzero.com> 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).
I have a similar issue when trying to retain and release the
delegate (which I think can sometimes be avoided but should be used
for strict generality, right?).
Am I doing something wrong, like failing to declare my protocol
correctly?
TIA,
Rick
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/haikusw%40mac.com
This email sent to haik...@mac.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com