• 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: cocoa call for 'text item delimiters'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa call for 'text item delimiters'


  • Subject: Re: cocoa call for 'text item delimiters'
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 09 Aug 2011 22:14:36 +1000

On Aug 9, 2011, at 10:01 PM, Wayne Melrose wrote:

> Is there now a smarter way to parse text items than using applescript's text item delimiters ?

It depends on what parsing you are doing and what you are starting with. If you have an NSString to begin with, you might as well use componentsSeparatedByString: instead of TIDs, and similarly for NSArrays and componentsJoinedByString:. And for more complex stuff, things like stringByTrimmingCharactersInSet: and NSScanner make more sense.

But for most cases, I suspect the smartest way will be the most convenient way.


--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: cocoa call for 'text item delimiters'
      • From: Wayne Melrose <email@hidden>
References: 
 >cocoa call for 'text item delimiters' (From: Wayne Melrose <email@hidden>)

  • Prev by Date: cocoa call for 'text item delimiters'
  • Next by Date: Re: cocoa call for 'text item delimiters'
  • Previous by thread: cocoa call for 'text item delimiters'
  • Next by thread: Re: cocoa call for 'text item delimiters'
  • Index(es):
    • Date
    • Thread