Newbie question: constants
Newbie question: constants
- Subject: Newbie question: constants
- From: "Colin O'Connor" <email@hidden>
- Date: Thu, 18 Nov 2004 22:14:33 -0500
I'm coming from a heavy Java background, with little experience in C or C++,
so I'm sure this is a stupid question. What's the best way to create
constants, both public (available to all classes) and private (available to
only the class in which it was declared)? Specifically object constants
(i.e. NSString or NSArray), but also primitives like int as well.
I know I can use @public in my header file, but I can't initialize variables
in the header.
Thanks in advance,
Colin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden