Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
- Subject: Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
- From: Micha Fuhrmann <email@hidden>
- Date: Fri, 04 Dec 2009 15:44:11 +0100
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 (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