• 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: #define
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #define


  • Subject: Re: #define
  • From: Christian Longshore Claiborn <email@hidden>
  • Date: Wed, 12 Mar 2003 17:30:42 -0800

You shouldn't need to make any definition there, if what you describe is true. If you wanted to use the C API, you could set
-DUSE_C_API
in the "Other C Compiler Flags" portion of your target definition. But since the file seems to define the Objective-C version by default, you ought to be all set.

Christian

On Wednesday, March 12, 2003, at 04:28 pm, Hussain Bandukwala wrote:

Hi All,

This is a very rudimentary question and would appreciate it if someone would answer it for me.

There is a C and an Objective C version of an API in the same .m file.

The file is in the following fornat:

#ifdef USE_C_API
C version

#else
Objective C version

I would like to use the Objective C version. Whatand where in the file do I make the required definition to access the Objective C version?

Thanks,
Hussain

======================================================================= =
Hussain H. Bandukwala,
C-1116, 1189 Beall Ave.,
The College of Wooster,
Wooster, OH - 44691.
(Home) -- (330)-287-3000 (x-7107)
(Cell) -- (330)-412-1980
http://pages.wooster.edu/hbandukwala
"They build too low who build beneath the skies."
-- an inscription on a building in Washington, D.C.
======================================================================= =
_______________________________________________
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.
_______________________________________________
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: 
 >#define (From: "Hussain Bandukwala" <email@hidden>)

  • Prev by Date: Re: Grep Support in Cocoa
  • Next by Date: Re: Dictionary keys
  • Previous by thread: #define
  • Next by thread: Stripping HTML tags
  • Index(es):
    • Date
    • Thread