Deleting the last word of an NSString
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