Re: Re: License file in Document Architecture
Re: Re: License file in Document Architecture
- Subject: Re: Re: License file in Document Architecture
- From: "Mark Munz" <email@hidden>
- Date: Thu, 26 Oct 2006 09:34:05 -0700
No, This is a delegate method that gets called when your app should open a file.
From Apple docs:
Tells the delegate to open a single file.
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString
*)filename
Sent directly by theApplication to the delegate. The method should
open the file filename, returning YES if the file is successfully
opened, and NO otherwise.
I believe that if you don't intercept this, the NSDocumentController
is called to open the file.
On 10/26/06, Kevin Hoctor <email@hidden> wrote:
On Oct 26, 2006, at 11:18 AM, Mark Munz wrote:
> - (BOOL)application:(NSApplication *)theApplication openFile:
> (NSString *)filename
Mark, isn't this call for my application to send a file to the Finder
for opening by the default application? I want the opposite. When a
user double-clicks on a Debt Quencher License file (.dqlic), it
should trigger my app to read the file (which it does now
successfully via a DQLicense subclass of NSDocument).
Kevin Hoctor
No Thirst Software
http://nothirst.com
--
Mark Munz
unmarked software
http://www.unmarked.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden