Does Objective-J have protocols like Objective-C?

39 views
Skip to first unread message

jbrennan

unread,
Aug 17, 2009, 12:03:05 PM8/17/09
to Cappuccino & Objective-J
I can't seem to find a language spec for Objective-J and my blind
attempts to use @protocol have not been successful.

Are they supported by the language? Is there a language spec I can
look at?

Thanks,

Jason Brennan.

Ross Boucher

unread,
Aug 17, 2009, 12:05:40 PM8/17/09
to objec...@googlegroups.com
They are not supported, no. There is no formal specification. The
tutorial on cappuccino.org covers pretty much the entire language
though.

jbrennan

unread,
Aug 17, 2009, 12:32:32 PM8/17/09
to Cappuccino & Objective-J
Is there some analog to -repondsToSelector: I can be using to check
which methods a given object implements?

Thanks.

Ross Boucher

unread,
Aug 17, 2009, 12:41:22 PM8/17/09
to objec...@googlegroups.com
yes. respondsToSelector:

Objective-J is not statically typed. Though you can add type labels,
they are not enforced, at least not currently.
Reply all
Reply to author
Forward
0 new messages