Re: cocoa call for 'text item delimiters'
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