Shane, a big thank you is in order.
I had read up on Ranges on the Apple Developer pages this morning, and my interpretation of the document was range was <start of range-end of range>, not <start of range-length>. A big mistake. Explored's page 208, which I had forgotten about, explains range much more succinctly.
As an ex-teacher, I find Apples approach to documentation regarding terminology very frustrating. They often don't give concrete examples, just above-average-intelligence explanations.
Regards
Santa
On 24/09/2014, at 10:21 PM, Shane Stanley < email@hidden> wrote: On 24 Sep 2014, at 10:07 pm, Brian Christmas < email@hidden> wrote: Why won't the last two lines work, please? By the look of your variables, your ranges are wrong. The second value is the length of the range, not end offset. If you wrote them out as records as explained on page 208, you'd be less likely to make the mistake.
In the second case, the second parameter should be reference if you want the out value to be returned. And you have the same problem with ranges; don't be lazy, type out the records.
I've spent 7 blasted hours trying different permutations A little less thrashing and a bit more reading might save you time in the long run. Just sayin'.
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
|