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* "%20"
> 
> *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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to