• 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
Re: Text item delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Text item delimiters (From: Evan Coleman <email@hidden>)

  • Prev by Date: php and cocoa
  • Next by Date: Re: Distributed object vending problem
  • Previous by thread: Text item delimiters
  • Next by thread: php and cocoa
  • Index(es):
    • Date
    • Thread