• 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
ObjC newbie - simple NSString question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ObjC newbie - simple NSString question


  • Subject: ObjC newbie - simple NSString question
  • From: "Mark Orchard" <email@hidden>
  • Date: Tue, 14 Aug 2001 12:01:24 +1000

Hi all,

I'm learning ObjC and in the process converting a Java/Cocoa app across to
ObjC. This may sound like a simple/dumb question but is there a way (i.e.
NSString API call) to trim leading and trailing whitespace from an NSString?
In Java it's myString.trim() and I believe there was something in CFString
(is this old NeXTStep?). I've searched AppKit.pdf, Foundation.pdf and Google
but nothing obvious.
I guess I could roll my own, and that wouldn't be too hard but you would
think you could count on this sort of convenience method in a modern String
API.

Please tell me I'm missing something!

Cheers,

Mark


  • Follow-Ups:
    • Re: ObjC newbie - simple NSString question
      • From: Aaron Tuller <email@hidden>
  • Prev by Date: Fwd: Re: Looking for a clue on how to play with the Finder
  • Next by Date: Encryption and Compression woes
  • Previous by thread: Re: Fun with AuthorizationExecuteWithPrivileges...
  • Next by thread: Re: ObjC newbie - simple NSString question
  • Index(es):
    • Date
    • Thread