IKImageBrowserView out drag & drop with NSData
IKImageBrowserView out drag & drop with NSData
- Subject: IKImageBrowserView out drag & drop with NSData
- From: Micha Fuhrmann <email@hidden>
- Date: Mon, 07 Dec 2009 16:52:39 +0100
Hi everyone,
I'm using an IKImageBrowserView with data rep IKImageBrowserNSDataRepresentationType.
I'm using
- (NSUInteger) imageBrowser:(IKImageBrowserView *)aBrowser writeItemsAtIndexes:(NSIndexSet *) itemIndexes toPasteboard: (NSPasteboard *)pasteboard
and filling the pasteboard with
[pasteboard declareTypes:[NSArray arrayWithObject:(NSString *)kPasteboardTypeFileURLPromise] owner:self];
[pasteboard setPropertyList:imageData forType:(NSString *)kPasteboardTypeFileURLPromise];
imageData being an Array with NSData objects containing images.
The drag works fine, A nice red badge appears if I select multiple items, then the plus sign appears as I hover above the finder, but as I drop
- (NSArray *)namesOfPromisedFilesDroppedAtDestination:(NSURL *)dropDestination
Doesn't get called.
I'm stuck here, everything works fine, but I just need the drop location...
I've tried subclassing IKImageBrowserView as shown on http://speirs.org/
But then the badge is gone, the thumbs of the first image is gone too, and I've got the feeling I will bump into problems with sublclassing all the mouse action later on in the project.
Any help greatly appeciated.
_______________________________________________
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