• 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
Document based application and drag & drop open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Flickering while capturing Live Video...
  • Next by Date: PDFView printing subviews
  • Previous by thread: Flickering while capturing Live Video...
  • Next by thread: PDFView printing subviews
  • Index(es):
    • Date
    • Thread