1 Replies Last post: Jun 18, 2013 3:53 PM by Anton Makeev  
Lucas Gramajo Newbie 1 posts since
Jun 14, 2013
Currently Being Moderated

Jun 14, 2013 12:33 AM

Defining constants on header file

Is there any way to automate the following process?

 

So I create a private constant in the .m file, making it private:

 

static CGFloat const kHeight = 30.0f;

 

And then I decide I need it to be public. Can I automate the addition of:

 

FOUNDATION_EXPORT CGFloat *const kHeight;

or 

extern CGFloat const kHeight;

 

to the header file? Even if it's not there by default, can I add this myself somehow?

 

Thanks.

Anton Makeev JetBrains 1,281 posts since
Dec 19, 2006
Currently Being Moderated
Jun 18, 2013 3:53 PM in response to: Lucas Gramajo
Re: Defining constants on header file

Lucas, not at the moment, but the suggestion is reasonable; here is the ticket

More Like This

  • Retrieving data ...