Article View: comp.sys.next.programmer
Article #1712dragImage
From: Guido Schoepp
Date: Fri, 02 Oct 1992 17:33
Date: Fri, 02 Oct 1992 17:33
36 lines
1353 bytes
1353 bytes
Hi.
Is any working Drag'n'Drop example using the new
dragImage:at:offset:event:pasteboad:source:slideBack: method out there?
I tried this little code. Dragging works fine but no app shows any reaction.
What's wrong?
- mouseDown:(NXEvent *)theEvent
{ NXPoint l = {0.0, 0.0};
NXPoint o = {0.0, 0.0};
Pasteboard *pboard = [Pasteboard newName:NXDragPboard];
NXImage *anImage = [NXImage findImageNamed:"NXradioH"];
char picPath[1024];
strcpy(picPath,"/Pictures/test.tiff");
[pboard declareTypes:&NXFilenamePboardType num:1 owner:self];
[pboard writeType:NXFilenamePboardType
data:picPath
length:strlen(picPath)+1];
[self dragImage:anImage
at:&l
offset:&o
event:theEvent
pasteboard:pboard
source:self
slideBack:YES];
return self;
}
Any help is appreciated.
Guido
--
|||| |||| |||| Guido Schoepp
|||| |||| / NeXT Registered Developer
|| \ || \ |||| gus@rrz.de
Technical Details
Message-ID:
<1992Oct2.173316.795@rrz.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!sun-barr!ames!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!rrz!gusShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!sun-barr!ames!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!rrz!gus From: gus@rrz.de (Guido Schoepp) Newsgroups: comp.sys.next.programmer Subject: dragImage Message-ID: <1992Oct2.173316.795@rrz.de> Date: 2 Oct 92 17:33:16 GMT Sender: gus@rrz.de Organization: Rhein-Rechenzentrum GmbH, Koblenz, Germany Lines: 36