Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
- Subject: Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
- From: Thomas Goossens <email@hidden>
- Date: Fri, 04 Dec 2009 14:48:28 +0100
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 (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
_______________________________________________
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