• 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: Disable the drag snap-back?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Disable the drag snap-back? (From: Ammon Skidmore <email@hidden>)

  • Prev by Date: Re: Multiple nibs
  • Next by Date: Re: newbie question on 'Cocoa Programming for Mac OS X'
  • Previous by thread: Disable the drag snap-back?
  • Next by thread: Disable the drag snap-back?
  • Index(es):
    • Date
    • Thread