Re: NSString newbie question
Re: NSString newbie question
- Subject: Re: NSString newbie question
- From: "Mitchell Hashimoto" <email@hidden>
- Date: Wed, 15 Mar 2006 08:18:17 -0800
Hi,
I'm also new to ObjC/Cocoa but couldn't you just do this?
NSString *myStr = [[[[NSString alloc] initWithString:@"Rating: ("]
stringByAppendingString:[ratingOutlet stringValue]]
stringByAppendingString:@"/10"];
[ratingTextOutlet setStringValue:myStr2];
Also, is there any way to override the "+" operator in Objective C?
That could make concatenating strings much easier.
Mitch
_______________________________________________
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