It's an example of what you'll need to know if you want to program for the iPad and iPhone if SJ has his way.
On Tue, May 4, 2010 at 3:34 PM, <[email protected]> wrote: > On 05/04/2010 at 03:23 PM, Randall Reetz <[email protected]> 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]]; _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
