• 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
Deleting the last word of an NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deleting the last word of an NSString


  • Subject: Deleting the last word of an NSString
  • From: Jonathan del Strother <email@hidden>
  • Date: Fri, 5 Aug 2005 17:50:59 +0100

I need to delete the last word in an NSString. In theory, this is easy, but I need to replicate the behaviour of a Cocoa text field when you press Option-Backspace. I keep on running into special cases where my solution doesn't quite match up, and was wondering if there was a definitive way of finding what the last word is, complete with Cocoa's considerations for punctuation.

Thanks,
Jon
_______________________________________________
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: Deleting the last word of an NSString
      • From: Aki Inoue <email@hidden>
  • Prev by Date: Localizing NSDateFormatter does not work with NSDateFormatterBehavior10_4
  • Next by Date: NSPersistentDocument arrayController Data
  • Previous by thread: Re: Localizing NSDateFormatter does not work with NSDateFormatterBehavior10_4
  • Next by thread: Re: Deleting the last word of an NSString
  • Index(es):
    • Date
    • Thread