On Aug 9, 2011, at 7:58 AM, Jerry Krinock wrote:

> This is how it's usually done:
> 
> In a .m, .c or .cpp file,
> 
> NSString* const constEntityNameLog = @"Log_entity" ;
> 
> and if you need to use this constant in other files, add, in the counterpart 
> header file,
> 
> extern NSString* const constEntityNameLog ;

If you don't need to use it in other files, define it as a static.

static NSString* const constEntityNameLog = @"Log_entity" ;

Regards,
Ken

_______________________________________________

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

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

Reply via email to