• 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
Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType


  • Subject: Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
  • From: Thomas Goossens <email@hidden>
  • Date: Fri, 04 Dec 2009 15:55:46 +0100

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 (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

  • Follow-Ups:
    • Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
      • From: Micha Fuhrmann <email@hidden>
References: 
 >IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType (From: Micha Fuhrmann <email@hidden>)
 >Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType (From: Thomas Goossens <email@hidden>)
 >Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType (From: Micha Fuhrmann <email@hidden>)

  • Prev by Date: Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
  • Next by Date: Re: Best way to hook into the run loop?
  • Previous by thread: Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
  • Next by thread: Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
  • Index(es):
    • Date
    • Thread