• 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
Compiler constants in NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiler constants in NSString


  • Subject: Compiler constants in NSString
  • From: Stephane ODUL <email@hidden>
  • Date: Sun, 22 Sep 2002 20:08:08 -0700

Hi,

I'm wondering if there is a way to put a constant in a NSString at compile time, without using stringWithCString.

this works just fine:
[NSString stringWithCString:"Build date: " __DATE__ " " __TIME__]
This has an error at compile time:
@"Build date: " __DATE__ @" " __TIME__

Any idea ?

Stephane ODUL
http://www.soft.odul.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: NSTableView of NSColorWell
  • Next by Date: CFDataRef from char ?
  • Previous by thread: Re: How to use SystemStarter in 10.2?
  • Next by thread: CFDataRef from char ?
  • Index(es):
    • Date
    • Thread