• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSString newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSString newbie question
      • From: Paul Lynch <email@hidden>
    • Re: NSString newbie question
      • From: "Mitchell Hashimoto" <email@hidden>
References: 
 >NSString newbie question (From: "Bobby B" <email@hidden>)

  • Prev by Date: RE: NSString newbie question
  • Next by Date: Re: NSString newbie question
  • Previous by thread: RE: NSString newbie question
  • Next by thread: Re: NSString newbie question
  • Index(es):
    • Date
    • Thread