Re: Cocoa --> Java Interfaces?
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.