Re: C string constant->NSString constant without defining twice?
Re: C string constant->NSString constant without defining twice?
- Subject: Re: C string constant->NSString constant without defining twice?
- From: Dave DeLong <email@hidden>
- Date: Tue, 28 Apr 2009 09:20:47 -0600
It's possible it doesn't always work, but it worked for me when I
tried it...
Dave
On Apr 28, 2009, at 9:18 AM, Erik Buck wrote:
I haven't tried, but I don't think the following works because of
the way the pre-processor inserts spaces:
#define kConstCString "This is a const c string"
#define kConstNSString @kConstCString
Don't hard code paths! Use NSHomeDirectory() or
NSTemporaryDirectory() or
NSSearchPathForDirectoriesInDomains().
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden