• 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 and mouseDragged event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IKImageBrowserView and mouseDragged event


  • Subject: Re: IKImageBrowserView and mouseDragged event
  • From: "Sandeep Chayapathi" <email@hidden>
  • Date: Fri, 28 Nov 2008 11:57:11 -0500

I did try the  -setDraggingDestinationDelegate: , but it is meant for a drag
destination and not drag source. From the  documentation (here:
http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/Concepts/dragsource.html#//apple_ref/doc/uid/20000976-CJBFBADF
 )
I have to implement draggingSourceOperationMaskForLocal and invoke
dragImage:at:offset:event:pasteboard:source:slideBack:  in mouseDown: or
mouseDragged: method    to make it a drag source. I have a NSView subclass,
that is a delegate of the IKImageBrowserView view and have implemented the
methods above, yet these never get called.

Also I tried setting the class of the IKImageBrowserView object to my custom
class, only then would the - mouseDragged: even would work, but I lost a
bunch of other IKImageBrowserView features (such as cell selection etc).

-- Sandeep


On Fri, Nov 28, 2008 at 11:27 AM, douglas welton <
email@hidden> wrote:

> Sandeep,
>
> Did you set the dragging destination delegate using
> -setDraggingDestinationDelegate:?
>
> more info here:
>
> <
> http://developer.apple.com/documentation/GraphicsImaging/Conceptual/ImageKitProgrammingGuide/ImageBrowser/chapter_4_section_7.html#//apple_ref/doc/uid/TP40004907-CH5-SW8
> >
>
> regards,
>
> douglas
>
> On Nov 28, 2008, at 1:12 AM, Sandeep Chayapathi wrote:
>
>  Greetings,
>> In my app I have an IKImageBrowserView, and I want to make this an drag
>> source. I have followed thedragging source
>> docs<
>> http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/Concepts/dragsource.html#//apple_ref/doc/uid/20000976
>> >
>> but
>> to no avail. In my view class the mouseDragged never gets called. Any help
>> on making the IKImageBrowserView a drag source or making it respond to
>> mouseDragged even is appreciated. Thanks.
>>
>>
>> -- Sandeep
>>
>
_______________________________________________

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 and mouseDragged event
      • From: douglas welton <email@hidden>
    • Re: IKImageBrowserView and mouseDragged event
      • From: Thomas Goossens <email@hidden>
References: 
 >IKImageBrowserView and mouseDragged event (From: "Sandeep Chayapathi" <email@hidden>)
 >Re: IKImageBrowserView and mouseDragged event (From: douglas welton <email@hidden>)

  • Prev by Date: Re: IKImageBrowserView and mouseDragged event
  • Next by Date: Re: Using a string as filepath
  • Previous by thread: Re: IKImageBrowserView and mouseDragged event
  • Next by thread: Re: IKImageBrowserView and mouseDragged event
  • Index(es):
    • Date
    • Thread