• 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: Newbie reference question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie reference question


  • Subject: Re: Newbie reference question
  • From: email@hidden
  • Date: Wed, 15 May 2002 10:34:45 -0700

Joe Feld wrote:
|It's not always intuitive if I'm looking for a
|reference to something common to all C or just specific to Obj-C.

Here's the general rule of thumb: if it starts with an "@", or is enclosed in square brackets ("[" and "]", array subscripts excluded), it's Objective-C. Otherwise, it's C. (The most common exceptions are the SEL and id keywords, which look like C but are actually Objective-C.)

Just to complicate matters, it's quite possible to glue the Objective-C extensions to C onto C++, to create Objective-C++. Care needs to be taken in mixing the two kinds of objects, but they do mix. The same rule of thumb applies, just replacing "C" with "C++". (If you want to experiment with Objective-C++, the secret is to change the file extension from ".m" to ".mm".)

Glen Fisher
_______________________________________________
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: 
 >Re: Newbie reference question (From: Joe Feld <email@hidden>)

  • Prev by Date: What's the difference between NSBGOnly, LSBackgroundOnly and NSUI Element?
  • Next by Date: RE: Simple NSTableView Question - Newbie
  • Previous by thread: Re: Newbie reference question
  • Next by thread: Re: Newbie reference question
  • Index(es):
    • Date
    • Thread