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
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
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
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:
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
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
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