You can use an enum. The compiler treats them as constant and they are 
available both in Obj-C and Swift.

Le 12 août 2014 à 20:04, Paul Scott <psc...@skycoast.us> a écrit :

> Except the compiler cannot treat them as constants for optimization.
> 
> Paul
> 
>> On Aug 12, 2014, at 10:57 AM, Gerriet M. Denkmann <gerr...@mdenkmann.de> 
>> wrote:
>> 
>> 
>> On 13 Aug 2014, at 00:52, Jeff Kelley <slauncha...@gmail.com> wrote:
>> 
>>> Gerriet,
>>> 
>>>     You should be able to make a constant variable, not a preprocessor 
>>> definition, and import the file that declares it in your project’s bridging 
>>> header. Something like this:
>>> 
>>> in Constants.h:
>>> extern const NSInteger kParameterA;
>>> 
>>> in Constants.m:
>>> const NSInteger kParameterA = 17;
>>> 
>>> Then, in your bridging header, you’d import Constants.h.
>> 
>> Sounds like a good idea. I will try it tomorrow.
>> Thanks a lot!
>> 
>> 
>> Kind regards,
>> 
>> Gerriet.
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/mailing%40xenonium.com
> 
> This email sent to mail...@xenonium.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to