• 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: image transition while dragging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image transition while dragging


  • Subject: Re: image transition while dragging
  • From: Kai BrĂ¼ning <email@hidden>
  • Date: Thu, 23 Apr 2009 17:45:17 +0200

Hi Rajesh,

as far as I know Cocoa has no provision for this at least up to Leopard. (If I remember correctly, you could do this easily with Carbon ;-) )

If you absolutely want this behavior, I can think of two ways to persuade:

- Return no or an empty image from dragImageForRowsWithIndexes:, track the mouse yourself and move a temporary window with an image of your chosing around on the screen. Should be doable, but probably not in a single afternoon.

- Read about Cocoa hacking and look for some private API IB might be using for its dragging. Usual caveats apply, like Apple might break your code with any update etc.

Best success
Kai


On 23.4.2009, at 13:23, rajesh wrote:

Hi All,

I am working on dragging table row (not for re-ordering or deleting) onto a NSView....
I am returning an processed image (for dragImage) in
- (NSImage *)dragImageForRowsWithIndexes:(NSIndexSet *)dragRows tableColumns:(NSArray *)tableColumns
event:(NSEvent *)dragEvent offset: (NSPointPointer)dragImageOffset
{
//
return doctoredImage;
}


I want to change the dragged image with smooth transition to another image, whenever it reaches its destination(NSView) or when drag moves out of the source(NSTableView) just like the effect to the drag image in interface builder tool when items from palette are dragged out of it.

Any pointers or ideas is appreciated.

Thanks
Rajesh.
_______________________________________________

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: image transition while dragging
      • From: rajesh <email@hidden>
    • Re: image transition while dragging
      • From: Kyle Sluder <email@hidden>
References: 
 >image transition while dragging (From: rajesh <email@hidden>)

  • Prev by Date: Re: -[NSSharedWorkspace openFile:]: Application exits with status 255
  • Next by Date: Re: image transition while dragging
  • Previous by thread: image transition while dragging
  • Next by thread: Re: image transition while dragging
  • Index(es):
    • Date
    • Thread