Re: Best way to manage double-clicked files?

2011-12-12 Thread C.W. Betts
ot;C.W. Betts" > To: "julius" , "Cocoa Development" > > Sent: Saturday, December 10, 2011 4:51:44 PM > Subject: Re: Best way to manage double-clicked files? > > > On Dec 10, 2011, at 8:23 AM, julius wrote: > >> On Fri, 09 Dec 2011 13:14:26 -0

Re: Best way to manage double-clicked files?

2011-12-11 Thread julius
On 11 Dec 2011, at 00:51, C.W. Betts wrote: >> > I want it so that when I double-click a file in Finder, a window pops up and > lets me select an option, then the window goes away. I'm wondering if > NSDocument is the best way to do this, or if another method would be better > suited. I w

Re: Best way to manage double-clicked files?

2011-12-10 Thread Quincey Morris
On Dec 10, 2011, at 16:51 , C.W. Betts wrote: > - (BOOL)readFromFileWrapper:(NSFileWrapper *)fileWrapper ofType:(NSString > *)typeName error:(NSError **)outError > { > int chosen = [self showMemoryCardChooserForFile:[fileWrapper filename]]; > if (chosen == 0) { > return

Re: Best way to manage double-clicked files?

2011-12-10 Thread Lee Ann Rucker
Try the application delegate method application:openFile: - it gets called before the NSDocument handling gets a shot at it. - Original Message - From: "C.W. Betts" To: "julius" , "Cocoa Development" Sent: Saturday, December 10, 2011 4:51:44 PM Subject:

Re: Best way to manage double-clicked files?

2011-12-10 Thread C.W. Betts
On Dec 10, 2011, at 8:23 AM, julius wrote: > On Fri, 09 Dec 2011 13:14:26 -0700 C.W. Betts wrote >> >> What is the best way to handle double-clicked files in an application that >> doesn't use documents? The reason I ask is because a project I'm working on, >> PCSX-R, currently uses NSDocument

Re: Best way to manage double-clicked files?

2011-12-10 Thread julius
On Fri, 09 Dec 2011 13:14:26 -0700 C.W. Betts wrote > > What is the best way to handle double-clicked files in an application that > doesn't use documents? The reason I ask is because a project I'm working on, > PCSX-R, currently uses NSDocument subclasses to handle opening of files > double-cl

Best way to manage double-clicked files?

2011-12-09 Thread C.W. Betts
What is the best way to handle double-clicked files in an application that doesn't use documents? The reason I ask is because a project I'm working on, PCSX-R, currently uses NSDocument subclasses to handle opening of files double-clicked in the Finder. However, the readFromFileWrapper:ofType:er