Re: why Obj-C
Re: why Obj-C
- Subject: Re: why Obj-C
- From: Adam Atlas <email@hidden>
- Date: Fri, 5 Apr 2002 07:55:24 -0500
I am not sure how to interpret you wink smiley. You could conceivably
write
[someObject doSomething] as
objc_msgSend(someObject, @selector(doSomething)).
Objective-C's message expression [receiver selector] is translated into
objc_msgSend(receiver, selector) by the compiler. You can access all of
Cocoa from ANSI C without using the Objective-C compiler at all, but it
would be hideous.
I don't know, is that really possible? This couldn't be done in an ANSI
.c file, because the compiler wouldn't be recognizing Obj-C syntax in
the imported header files, etc. and because selectors aren't a part of
ANSI C. It would work in a .m file, but why would you want to?
--
Adam Atlas
Atomm Software
http://www.atommic.com
_______________________________________________
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.