Re: Proper place to define static strings
Re: Proper place to define static strings
- Subject: Re: Proper place to define static strings
- From: Ondra Cada <email@hidden>
- Date: Fri, 30 Aug 2002 18:28:26 +0200
On Friday, August 30, 2002, at 02:31 , Philip Streck wrote:
When writing an Objective C class and you need to define a static string
what is the proper place and method of doing so? I assume using #define
in my source file is taboo here :-)
#define is quite right. Cocoa itself uses global variables instead. Both
ways are right; the latter slightly better, but the difference's
negligible (just the scope of coalescing). Suit yourself.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.