• 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: Protocol doesn't seem to compile? (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Protocol doesn't seem to compile? (SOLVED)


  • Subject: Re: Protocol doesn't seem to compile? (SOLVED)
  • From: Sherm Pendley <email@hidden>
  • Date: Fri, 27 Feb 2004 10:54:13 -0500

On Feb 27, 2004, at 10:21 AM, Jason Vowell wrote:

So if one were wanting to do something like what I was describing.. just
writing protocols for someone else to implement.. these protocols would need
to be writing inside a .m files so that the make file that Xcode writes
would actually look for them.

You need to leave your protocols in .h files - how else would someone else be able to include them?

Use #import to include the declarations found in the .h files, just like any user of your protocol would do.

And yes, the whole deal with header files can be a PITA at first, if you've got a Java background. Doing away with that sort of thing is one of the few things Java got right, IMHO.

sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • RE: Protocol doesn't seem to compile? (SOLVED)
      • From: "Jason Vowell" <email@hidden>
    • Re: Protocol doesn't seem to compile? (SOLVED)
      • From: Ondra Cada <email@hidden>
References: 
 >RE: Protocol doesn't seem to compile? (SOLVED) (From: "Jason Vowell" <email@hidden>)

  • Prev by Date: Re: Protocol doesn't seem to compile?
  • Next by Date: Open Recent and the User Preferences Database
  • Previous by thread: RE: Protocol doesn't seem to compile? (SOLVED)
  • Next by thread: Re: Protocol doesn't seem to compile? (SOLVED)
  • Index(es):
    • Date
    • Thread