• 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
Implementing delegates with formal protocols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Implementing delegates with formal protocols


  • Subject: Implementing delegates with formal protocols
  • From: Rick Mann <email@hidden>
  • Date: Fri, 28 Aug 2009 14:36:18 -0700

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 (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


  • Follow-Ups:
    • Re: Implementing delegates with formal protocols
      • From: tyler <email@hidden>
    • Re: Implementing delegates with formal protocols
      • From: tyler <email@hidden>
    • Re: Implementing delegates with formal protocols
      • From: tyler <email@hidden>
    • Re: Implementing delegates with formal protocols
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Right-to-Left / Bidi / Arabic / Hebrew support in my app
  • Next by Date: Re: Implementing delegates with formal protocols
  • Previous by thread: Re: libcrypto on Snow Leopard
  • Next by thread: Re: Implementing delegates with formal protocols
  • Index(es):
    • Date
    • Thread