• 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: Cocoa --> Java Interfaces?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa --> Java Interfaces?


  • Subject: Re: Cocoa --> Java Interfaces?
  • From: James Duncan Davidson <email@hidden>
  • Date: Sun, 18 May 2003 18:36:05 -0700

On Saturday, May 17, 2003, at 16:01 US/Pacific, Brian Gilman wrote:

I know this might seem like a dumb question but, I really need some
clarification on Cocoa @Protocol. Are these like Java interfaces?

Pretty much. ObjC protocols are simple lists of methods gathered under a name. You can check whether or not an object conforms to a particular protocol or whatever. That said, since ObjC is dynamically typed, most of the reasons that you use interfaces in Java don't need to be addressed this way in ObjC.

More info at (assuming you have the dev tools installed):

file:///Developer/Documentation/Cocoa/ObjectiveC/ 3objc_language_overview/index.html

Look under the section on formal protocols.



James Duncan Davidson
Coder, Speaker, Author
http://x180.net/
[life live];



James Duncan Davidson
Coder, Speaker, Author
http://x180.net/
[life live];
_______________________________________________
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.

References: 
 >Cocoa --> Java Interfaces? (From: Brian Gilman <email@hidden>)

  • Prev by Date: Re: OT: WWDC
  • Next by Date: Re: Calling C++ library and/or framework from Obj C
  • Previous by thread: Cocoa --> Java Interfaces?
  • Next by thread: reading a text file
  • Index(es):
    • Date
    • Thread