• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re: License file in Document Architecture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: License file in Document Architecture
      • From: Kevin Hoctor <email@hidden>
References: 
 >License file in Document Architecture (From: Kevin Hoctor <email@hidden>)
 >Re: License file in Document Architecture (From: "I. Savant" <email@hidden>)
 >Re: License file in Document Architecture (From: Kevin Hoctor <email@hidden>)
 >Re: Re: License file in Document Architecture (From: "Mark Munz" <email@hidden>)
 >Re: License file in Document Architecture (From: Kevin Hoctor <email@hidden>)

  • Prev by Date: Re: License file in Document Architecture
  • Next by Date: Re: License file in Document Architecture
  • Previous by thread: Re: License file in Document Architecture
  • Next by thread: Re: License file in Document Architecture
  • Index(es):
    • Date
    • Thread