Re: How do I create a NSArray of NSString constants?
Re: How do I create a NSArray of NSString constants?
- Subject: Re: How do I create a NSArray of NSString constants?
- From: Andreas Mayer <email@hidden>
- Date: Mon, 27 Jun 2005 18:57:20 +0200
Am 27.06.2005 um 18:31 Uhr schrieb Scott Mitchell:
But what I really need to do is to create an NSArray of these strings.
Um... why?
I'd create an accessor method of some sorts; like
- (NSString *)localizedStringForSubmitPeriod:(int)period
{
NSString *key = [NSString stringWithFormat:@"GB_Submit_Period%i",
period];
NSString *result = NSLocalizedString(key, @"");
return result;
}
Can I not create a constant NSArray like this?
No, you can't.
Andreas
_______________________________________________
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