• 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
Pasteboard file promises under 10.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pasteboard file promises under 10.6


  • Subject: Pasteboard file promises under 10.6
  • From: Frank Illenberger <email@hidden>
  • Date: Mon, 04 Jan 2010 19:06:43 +0100

Does anybody know how to get file promises working with the new pasteboard API in Snow Leopard?
When the dragging session in started, I put the following item onto the provided pasteboard:

    NSPasteboardItem* item = [[NSPasteboardItem alloc] init];
    [item setDataProvider:self forTypes:[NSArray arrayWithObject:(NSString*)kPasteboardTypeFileURLPromise]];
    [item setString:@"net.mycompany.mydocument" forType:kPasteboardTypeFilePromiseContent];
    [pboard writeObjects:[NSArray arrayWithObject:item]];

But when I drag my objects, the delegate method pasteboard:item:provideDataForType: is never called.
If I use "public.data" instead of my custom UTI, I get the following output in the console:

"Looked for HFSPromises on the pasteboard, but found none"

Sadly, the system documentation does not provide any more clues.

Cheers

Frank






_______________________________________________

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

  • Follow-Ups:
    • Re: Pasteboard file promises under 10.6
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: NSTreeController/OutlineView w/CoreData & Bindings & multiple selection?
  • Next by Date: Re: Custom NSFormatter classes
  • Previous by thread: Re: Retain Count of NSConnection object
  • Next by thread: Re: Pasteboard file promises under 10.6
  • Index(es):
    • Date
    • Thread