• 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: why Obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Common UI
  • Next by Date: Re: why Obj-C -> IB evolution
  • Previous by thread: Re: why Obj-C
  • Next by thread: Re: why Obj-C
  • Index(es):
    • Date
    • Thread