Thread View: comp.sys.next.programmer
2 messages
2 total messages
Started by Guido Schoepp
Fri, 02 Oct 1992 17:33
dragImage
Author: 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
Re: dragImage
Author: Guido Schoepp
Date: Mon, 05 Oct 1992 10:07
Date: Mon, 05 Oct 1992 10:07
19 lines
1025 bytes
1025 bytes
I wrote > 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? > [ totally correct example ... snip ] Sorry for the confusion: The example works but I thought that it's possible with the new dragging features to drag'n'drop between views that belong to the same window. It's possible when you use color dragging. Does anybody know how to get this effect? Thanks Guido -- |||| |||| |||| Guido Schoepp |||| |||| / NeXT Registered Developer || \ || \ |||| gus@rrz.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads