Re: Text item delimiters
Re: Text item delimiters
- Subject: Re: Text item delimiters
- From: Ron Fleckner <email@hidden>
- Date: Tue, 21 Sep 2010 14:50:30 +1000
On 21/09/2010, at 8:34 AM, Evan Coleman wrote:
> In applescript I was able to do this:
>
> *set* TID *to* AppleScript's text item delimiters
>
> *set* AppleScript's text item delimiters *to* space
>
> *set* theString *to* *text** items* *of* theString
>
> *set* AppleScript's text item delimiters *to* " "
>
> *set* theString *to* theString *as* *string*
>
> *set* AppleScript's text item delimiters *to* TID
>
>
> How would I do the same thing in objective-c/cocoa?
>
>
> Thanks,
>
> Evan
see the NSString Class Reference and have a look at -componentsSeparatedByString:. There are lots of ways to cut up a string so read more of that reference for more ideas
Ron
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden