• 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
Accepting file promise drags
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accepting file promise drags


  • Subject: Accepting file promise drags
  • From: John Dalbec <email@hidden>
  • Date: Sat, 27 Sep 2008 12:51:34 -0400

For completeness, I'd like to be able to accept file promise drags in my Cocoa application. What I want to do is to load an image file into the application after the drag source has written the file to the destination URL.

Is there any way for my application to receive a notification after the file has been completely written? I looked at kqueues and FSEvents and Workspace notifications but in each case I don't see a notification that the drag-source application has closed the file. Do I just have to keep attempting to load the image file each time I get notification of a change?

Also, it seems to me that applications are free to write files in ways that don't generate Workspace notifications. Am I missing something? Does NSWorkspace actually use one of the other mechanisms in the background?

Any suggestions?
Thanks,
John
_______________________________________________

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: Creating an NSForm programmatically & tabbing
  • Next by Date: Re: window controllers and managed object contexts
  • Previous by thread: Re: Creating an NSForm programmatically & tabbing
  • Next by thread: sizeof(unsigned long long)
  • Index(es):
    • Date
    • Thread