CPObjectCPCoreDragManager
@implementation CPCoreDragManager : CPObject
Method Summary | |
---|---|
+(CPCoreDragManager) | sharedCoreDragManager Returns the singleton instance of the drag manager. |
-(void) | dragImage:(CPImage)anImage fromWindow:(CPWindow)aWindow at:(CGPoint)imageLocation offset:(CGSize)mouseOffset event:(CPEvent)anEvent pasteboard:(CPPasteboard)aPasteboard source:(id)aSourceObject slideBack:(BOOL)slideBack Initiates a drag session. |
-(void) | dragView:(CPView)aView fromWindow:(CPWindow)aWindow at:(CGPoint)viewLocation offset:(CGSize)mouseOffset event:(CPEvent)anEvent pasteboard:(CPPasteboard)aPasteboard source:(id)aSourceObject slideBack:(BOOL)slideBack Initiates a drag session. |
Method Detail |
---|
+(CPCoreDragManager)sharedCoreDragManager
-(void)dragImage:(CPImage)anImage fromWindow:(CPWindow)aWindow at:(CGPoint)imageLocation offset:(CGSize)mouseOffset event:(CPEvent)anEvent pasteboard:(CPPasteboard)aPasteboard source:(id)aSourceObject slideBack:(BOOL)slideBack
anImage
- the image to be draggedaWindow
- the source window of the drag sessionimageLocation
- mouseOffset
- anEvent
- aPasteboard
- the pasteboard where the drag data is locatedaSourceObject
- the object where the drag startedslideBack
- if YES
, aView
slides back to
its origin on a failed drop-(void)dragView:(CPView)aView fromWindow:(CPWindow)aWindow at:(CGPoint)viewLocation offset:(CGSize)mouseOffset event:(CPEvent)anEvent pasteboard:(CPPasteboard)aPasteboard source:(id)aSourceObject slideBack:(BOOL)slideBack
aView
- the view being draggedaWindow
- the window where the drag source isviewLocation
- mouseOffset
- anEvent
- aPasteboard
- the pasteboard that contains the drag dataaSourceObject
- the object where the drag startedslideBack
- if YES
, aView
slides back to
its origin on a failed dropCreated on Thu Sep 04 07:27:02 PDT 2008