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

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

  • Prev by Date: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
  • Next by Date: Re: beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector: on 10.6
  • Previous by thread: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
  • Next by thread: Re: IKImageBrowserView D&D with IKImageBrowserNSDataRepresentationType
  • Index(es):
    • Date
    • Thread