Re: Common Date between Swift and ObjC

2014-08-12 Thread Jean-Daniel Dupas
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 a écrit : > Except the compiler cannot treat them as constants for optimization. > > Paul > >> On Aug 12, 2014, at 10:57 AM, Gerriet M. Denkmann >> w

Re: Common Date between Swift and ObjC

2014-08-12 Thread Paul Scott
Except the compiler cannot treat them as constants for optimization. Paul > On Aug 12, 2014, at 10:57 AM, Gerriet M. Denkmann > wrote: > > > On 13 Aug 2014, at 00:52, Jeff Kelley wrote: > >> Gerriet, >> >> You should be able to make a constant variable, not a preprocessor >> definiti

Re: Common Date between Swift and ObjC

2014-08-12 Thread Gerriet M. Denkmann
On 13 Aug 2014, at 00:52, Jeff Kelley 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 kPara

Re: Common Date between Swift and ObjC

2014-08-12 Thread Jeff Kelley
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 you