Re: Disable the drag snap-back?
Re: Disable the drag snap-back?
- Subject: Re: Disable the drag snap-back?
- From: Vince DeMarco <email@hidden>
- Date: Thu, 7 Feb 2002 19:42:55 -0800
On Thursday, February 7, 2002, at 11:25 AM, Ammon Skidmore wrote:
How do I disable the animation that occurs when a drag is dropped on a
destination that can't receive the drag?
I am doing this so I implement a poof-style remove operation from a
NSTableView. I think I've tried just about everything I can in
NSDragging.h, without going into undocumented territory. I hope this
ability isn't undocumented, since it's trivial to do in Carbon.
Look at this in NSView
- (BOOL)dragFile:(NSString *)filename fromRect:(NSRect)rect
slideBack:(BOOL) slideFlag event:(NSEvent *)event;
or if you are dragging something else
- (void)dragImage:(NSImage *)anImage at:(NSPoint)viewLocation
offset:(NSSize)initialOffset event:(NSEvent *)event
pasteboard:(NSPasteboard *)pboard source:(id)sourceObj
slideBack:(BOOL)slideFlag
notice the slideFlag in both cases...
Or you could look in the documentation.
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/
ObjC_classic/Classes/NSView.html#//apple_ref/occ/instm/NSView/dragImage:at:
offset:event:pasteboard:source:slideBack:
vince
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.