• 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: implement directly a protocol?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: implement directly a protocol?


  • Subject: Re: implement directly a protocol?
  • From: "Erik M. Buck" <email@hidden>
  • Date: Sat, 10 Nov 2001 11:04:45 -0600

> Is it permitted to implement directly a protocol? The reason I ask is that
> the compiler doesn't complain for:

No. Class names and protocol names do not conflict.

>
> @protocol A
> @end

Above you declared a protocol name
>
> @implementation A

Here you declared a new class name. @interface is not required for classes.


References: 
 >implement directly a protocol? (From: email@hidden)

  • Prev by Date: Rant & Rave
  • Next by Date: Re: New Cocoa Programmer
  • Previous by thread: Re: implement directly a protocol?
  • Next by thread: Rant & Rave
  • Index(es):
    • Date
    • Thread