Document based application and drag & drop open
Document based application and drag & drop open
- Subject: Document based application and drag & drop open
- From: Domenico Testa <email@hidden>
- Date: Wed, 21 Jan 2009 10:01:34 +0100
I'm writing a pyobjc document-based cocoa application, but i think my
question relates to cocoa framework rather than on programming language, so
i post it here.
The application is a digital signature client that should be able to sign
any file type producing a .p7m file.
Apllication will support timestamping too, so it could generate .tsr files
too.
I began from the document-based cocoa template from XCode and i've
subclassed NSDocument for P7MDocument and for TSRDocument, writing two
separating Windows, each in its XIB file.
Using Info.plist i can obtain that double clicks on supported file types
open my app (and the right NSDocument window too), showing the right UI.
Now i want that every file could be dragged on application dock icon to
spawn a modal window asking the operation to take. I've tried overloading
application:openFiles but it works just for supported files.
I want to distinguish drag-on-icon file opening from double-click file
opening: how could i achieve this result?
Thanks in advance
--
Domenico Testa
http://del.icio.us/domtes
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden