Drag and Drop of Colour --- Documentation Appears to be Incorrect
Drag and Drop of Colour --- Documentation Appears to be Incorrect
- Subject: Drag and Drop of Colour --- Documentation Appears to be Incorrect
- From: Henry McGilton <email@hidden>
- Date: Mon, 24 Mar 2003 22:45:22 -0800
The Programming Topics documentation on Drag and Drop contains some
sample
code:
file:///Developer/Documentation/Cocoa/TasksAndConcepts/
ProgrammingTopics/DragandDrop/index.html#//apple_ref/doc/uid/10000069i
The code, somewhat excerpted, looks more or less thuswise:
if ( [[pboard types] containsObject:NSColorPboardType] ) {
if (sourceDragMask & NSDragOperationCopy) {
return NSDragOperationCopy;
}
}
I determined by experimentation that a dragged Color sourceDragMask
is NSDragOperationGeneric and not NSDragOperationCopy as indicated
in this example and the surrounding documentation.
I am developing on 10.2.4.
When I coded according to the documentation, the colour swatch would
just slide back. Now I am coding according to what I believe to be
what the implementation actually does, my application gets the colour
changes.
I would appreciate any comments on this issue from the wizzzzzards
of the list.
Best Wishes,
........ Henry
===============================+============================
Henry McGilton | Trilithon Software
Boulevardier, Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden |
http://www.trilithon.com
===============================+============================
_______________________________________________
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.