• 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
Re: AnyObject and protocols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AnyObject and protocols


  • Subject: Re: AnyObject and protocols
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 04 Aug 2015 23:22:55 +0000

On Aug 4, 2015, at 15:58 , Rick Mann <email@hidden> wrote:
>
> I'm curious why, and what the right approach might be?

As to why, the problem is that instances of a type conforming to a protocol aren’t necessarily objects. If you want them to be, try declaring your protocol like this:

	protocol P: class {
		…
	}



_______________________________________________

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: AnyObject and protocols
      • From: Rick Mann <email@hidden>
References: 
 >AnyObject and protocols (From: Rick Mann <email@hidden>)

  • Prev by Date: AnyObject and protocols
  • Next by Date: Re: AnyObject and protocols
  • Previous by thread: AnyObject and protocols
  • Next by thread: Re: AnyObject and protocols
  • Index(es):
    • Date
    • Thread