• 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: Creating/saving/appending to files the Cocoa way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating/saving/appending to files the Cocoa way


  • Subject: Re: Creating/saving/appending to files the Cocoa way
  • From: Shane Stanley <email@hidden>
  • Date: Mon, 18 Jan 2010 10:07:38 +1100
  • Thread-topic: Creating/saving/appending to files the Cocoa way

On 18/1/10 9:32 AM, "John C. Welch" <email@hidden> wrote:

> Since I'm writing a string every second, (possibly faster), too much of a
> slowdown could be annoying.
>
You're probably not going to notice any difference. I just did some simple
tests, and make-NSString/make-NSData/use-NSFileHandle took about five times
as long as using AS's write (using a single line of text). Sounds awful, but
it's a case of 5,000 writes a second vs 25,000 a second -- academic if
you're writing a small amount once a second.

>> If you do use read/write, be aware that you have to enclose the commands in a
>> "tell current application" for them to work.
>>
> Makes sense
>
I keep thinking it does, too, but I'm not sure why. Maybe I'll check the
documentation...

--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>


 _______________________________________________
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: Creating/saving/appending to files the Cocoa way
      • From: "John C. Welch" <email@hidden>
    • Re: Creating/saving/appending to files the Cocoa way
      • From: "John C. Welch" <email@hidden>
References: 
 >Re: Creating/saving/appending to files the Cocoa way (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: Creating/saving/appending to files the Cocoa way
  • Next by Date: Re: Creating/saving/appending to files the Cocoa way
  • Previous by thread: Re: Creating/saving/appending to files the Cocoa way
  • Next by thread: Re: Creating/saving/appending to files the Cocoa way
  • Index(es):
    • Date
    • Thread