Re: cocoa call for 'text item delimiters'
Re: cocoa call for 'text item delimiters'
- Subject: Re: cocoa call for 'text item delimiters'
- From: Ev <email@hidden>
- Date: Tue, 09 Aug 2011 09:58:53 -0400
Try going through NSArray's documentation
Sent from my iPhone
On Aug 9, 2011, at 8:21 AM, Wayne Melrose <email@hidden> wrote:
>
> On 9. aug. 2011, at 14:14, Shane Stanley wrote:
>
>> 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/>
>
>
> Thanks Shane, I figured that there would be at least one, I would say that 'componentsSeparatedByString' is probably what I'm looking for, although I'd like to check them all out..
>
> This is going to be a question which could be met with a "RTFM" kind of response.. But is there a good place to find these types of commands? I realise that Xcode is very well documented, so much so that I find it really daunting to look there.. Is there a smart list of these commands that I'm overlooking in the documentation?
> _______________________________________________
> 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
_______________________________________________
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