Ok, thanks again, so far so good. Now as I drag an image or multiple images it creates a thumb of the dragged item(s), but as I drag to the desktop there's no plus sign badge on the dragged items and as a drop on the desktop it doesn't accept. I guess what I need to get is a
- (NSArray *)namesOfPromisedFilesDroppedAtDestination:(NSURL *)dropDestination{ And then perform the paste from my end. But I'm not receiving namesOfPromisedFilesDroppedAtDestination. I've looked in the sample code and the last example is from 2003. Micha On 4 déc. 2009, at 15:55, Thomas Goossens wrote: > return NSDragOperationNone in the two methods below: > > - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender > - (NSDragOperation)draggingUpdated:(id <NSDraggingInfo>)sender > > or invoke this during the setup of your IKImageBrowserView: > > registerForDraggedTypes:nil > > -- Thomas > > On Dec 4, 2009, at 3:44 PM, Micha Fuhrmann wrote: > >> Ha yes, >> >> I'm doing a from only. Now I've filled the pasteboard with my NSData objects >> for NSFilesPromisePboardType. Which methods should I implement if I don't >> want any drops enabled within the image browser but only to the finder? >> >> Any direction appreciated. >> >> On 4 déc. 2009, at 14:48, Thomas Goossens wrote: >> >>> Hi Micha, >>> >>> Are you trying to drag from the IKImageBrowserView or into the >>> IKImageBrowserView ? >>> >>> if from: you need to fill the pasteboard by implementing the datasource >>> method: >>> - (NSUInteger) imageBrowser:(IKImageBrowserView *) aBrowser >>> writeItemsAtIndexes:(NSIndexSet *) itemIndexes toPasteboard:(NSPasteboard >>> *)pasteboard; >>> >>> if into: there should be no difference between >>> IKImageBrowserNSDataRepresentationType and >>> IKImageBrowserPathRepresentationType. >>> >>> --Thomas >>> >>> On Dec 4, 2009, at 2:41 PM, Micha Fuhrmann wrote: >>> >>>> Dear All, >>>> >>>> Im using a IKImageBrowserView and trying to implement D&D. The image >>>> object I'm using is of IKImageBrowserNSDataRepresentationType. If I use >>>> IKImageBrowserPathRepresentationType D&D works fine. >>>> >>>> But with IKImageBrowserNSDataRepresentationType none of the delegates >>>> methods gets called: >>>> >>>> - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender >>>> - (NSDragOperation)draggingUpdated:(id <NSDraggingInfo>)sender >>>> - (BOOL) performDragOperation:(id <NSDraggingInfo>)sender >>>> >>>> I've tried >>>> >>>> IKImageBrowserView -> registerForDraggedTypes:[NSArray arrayWithObject: >>>> NSFilesPromisePboardType] >>>> >>>> To no avail. Any help as to which direction to take would be great. >>>> >>>> Thanks >>>> _______________________________________________ >>>> >>>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >>>> >>>> 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: >>>> http://lists.apple.com/mailman/options/cocoa-dev/tgoossens%40mac.com >>>> >>>> This email sent to tgooss...@mac.com >>> >> > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com