Saturday, January 20, 2018

#1 2010-08-17 05:59:52 pm

SuperScripter
Member
Registered: 2010-03-10
Posts: 63

Documents and Packages?

I'm writing an App which involves packages as the file it reads from. I've configured this properly and all, but I've run into an issue.

It works fine with open panels, but when I [do what I think is] implement a way for the App to read the file when it is double clicked, I get the following error:

readFromFileWrapper:ofType:error: must be overridden for your application to handle file packages.


This is clearly a Cocoa type thing, but I have no idea how to override this. It spits out in the Debugger Console, if that helps.

Also, just to confirm, to enable double-clickability, you just use the following, right?

Applescript:

on read from file theObject of type ofType path name pathName
   --Do your thing here
end read from file

Thanks as usual!


Filed under: document, package, override

Offline

 

#2 2010-08-17 06:35:26 pm

ief2
Member
Registered: 2010-07-23
Posts: 66
Website

Re: Documents and Packages?

Combining this with a connection in your documents nib should indeed make it work


Find your magical software at www.wizardsoftware.tk.

Offline

 

#3 2010-08-17 11:21:19 pm

SuperScripter
Member
Registered: 2010-03-10
Posts: 63

Re: Documents and Packages?

I'm sorry, but I don't understand. hmm

By "connection", you mean right clicking to open up that panel full of options, right? If so, I couldn't find anything significant.

I'm not sure if I couldn't find the right thing, or if I couldn't explain my problem well enough. If it's the latter, I'll try to elaborate. wink

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)