• 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: rajesh <email@hidden>
  • Date: Thu, 23 Apr 2009 18:03:21 +0200

Hi Kai,

application is targeted for 10.5.+ and I assumed it should be easy in Leopard.

temporary window sums up how the frame change of drag-image is handled so smooth and neatly.

thanks
Rajesh
On Apr 23, 2009, at 5:45 PM, Kai BrĂ¼ning wrote:

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


References: 
 >image transition while dragging (From: rajesh <email@hidden>)
 >Re: image transition while dragging (From: Kai BrĂ¼ning <email@hidden>)

  • Prev by Date: Playing movie under 10.4 behaving differently than under 10.5
  • Next by Date: Re: How to make app login window to look like OS X user login window ?
  • Previous by thread: Re: image transition while dragging
  • Next by thread: ESC while editing NSOutlineView subclass
  • Index(es):
    • Date
    • Thread