Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Token Concatation in Info.plist Files?



Thanks, Douglas!

Try this:

#define		__macroConcat2A( a, b  )		a##b
#define		__macroConcat2( a, b )		__macroConcat2A( a, b )

Yes, this works.

I did some hunting and research on various sites, and even the archive to this list.

I think you can only use the ## within a macro definition, and you need two macros to get it to work.

That's what I was doing wrong: I was using it in an invocation instead of a definition.


I do not understand why, I tried it with one and it didn't work, and then found something that said use the double definition method above.

A single '#' stringifies the following token: That is, it encloses it in quotation marks.


Cheers,

Andreas Wittenstein
BitJazz Inc.
http://www.bitjazz.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Token Concatation in Info.plist Files? (From: Andreas Wittenstein <email@hidden>)
 >Re: Token Concatation in Info.plist Files? (From: Douglas Norton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.