• 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: Wayne Melrose <email@hidden>
  • Date: Tue, 09 Aug 2011 14:21:07 +0200

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

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

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