Apples actual response to the Flash issue

Roger.E.Eller at sealedair.com Roger.E.Eller at sealedair.com
Tue May 4 15:34:24 EDT 2010


On 05/04/2010 at 03:23 PM, Randall Reetz <randall at randallreetz.com> wrote:
> Thomas McGrath sent the following to me.  Anyone know what it means or is
supposed to do?
>
> Randall
>
> On May 2, 2010, at 7:47 PM, Thomas McGrath III wrote:
>
>> [...]
>> NSString *documentsDirectory = [paths objectAtIndex:0];
>>
>> while(!madeNewPath) {
>> imgPath = [documentsDirectory stringByAppendingPathComponent:[NSString
stringWithFormat:@"WhatThe%i.jpg",x]];
>> if([[NSFileManager defaultManager] fileExistsAtPath:imgPath]) x++; else
madeNewPath = TRUE;
>> }
>> [...]
>>
>> restoredImg = [UIImage imageWithData:[NSData
dataWithContentsOfFile:imgPath]];
>>
>>

It is message sent back from the future. Once you execute it, it will learn
what you want and will just do it. ;)




More information about the Use-livecode mailing list