NSFileManager thread safety?

2009-11-15 Thread David Cake
The following code snippet works fine from my main thread. NSFileManager *tempFileManager = [[NSFileManager alloc] init]; NSString *path= [self tempDirPath]; if(![tempFileManager removeItemAtPath: path error: nil]) { NSLog(@"failed to remove temp files");

Re: Disk burning virtual folder problem

2009-10-19 Thread David Cake
At 2:58 PM +1100 19/10/09, Graham Cox wrote: On 19/10/2009, at 9:58 AM, David Cake wrote: DRFolder *rootFolder = [DRFolder folderWithPath:[self burnDirPath]] ^^^ rootFolder [rootFolder makeVirtual]; and then I try to add some other files to the contents of this directory NSURL *source

Re: video DVD burn on Mac OS X?

2009-10-18 Thread David Cake
At 12:17 PM +1300 19/10/09, Paul M wrote: Take a look at the source for DVDAuthor. If there aren't any better alternatives, I may end up just doing what Burn does, and calling dvdauthor via NSTask. On 19/10/2009, at 11:58 AM, David Cake wrote: While I am on the subject of DVD bu

video DVD burn on Mac OS X?

2009-10-18 Thread David Cake
While I am on the subject of DVD burning, are there any methods of creating a video DVD playable in DVD players programmatically, other than directly calling another program such as dvdauthor? Regards David ___ Cocoa-dev mail

Disk burning virtual folder problem

2009-10-18 Thread David Cake
I'm having a problem with some disk burning code that has me baffled. It works fine on my main development machine, I take it to a second machine (even if I build and run it from within XCode on a second machine) and it mysteriously fails. I create a burn folder and make it virtual DRFolder *r

Re: subclassing UIScrollView

2009-03-11 Thread David Cake
At 2:47 PM -0700 11/3/09, David Duncan wrote: On Mar 11, 2009, at 2:39 PM, David Cake wrote: I've sub-classed UI Scroll view. Ultimately, what I am trying to do is allow scrolling in only certain directions. Just using a delegate, I can determine which direction scrolling is taking plac

subclassing UIScrollView

2009-03-11 Thread David Cake
I've sub-classed UI Scroll view. Ultimately, what I am trying to do is allow scrolling in only certain directions. Just using a delegate, I can determine which direction scrolling is taking place it, but there doesn't seem to be any way I can do anything about it until it is over. My