Re: Cocoa:registerForDraggedTypes and NSTableView
Re: Cocoa:registerForDraggedTypes and NSTableView
- Subject: Re: Cocoa:registerForDraggedTypes and NSTableView
- From: Timothy Larkin <email@hidden>
- Date: Tue, 02 Apr 2002 07:23:55 -0500
On 2002.04.01 20:51, "Kent Sutherland" <email@hidden> wrote:
>
How
>
do I make it so that just items in that table view or another table view
>
in that window can be dropped onto the view?
The easiest way may be to create your own drag type, and then check in the
validate operation for the presence of the type. For instance
[pb declareTypes:[NSArray arrayWithObjects:NSStringPboardType,
MyTableDataPboardType, nil]....
>
Also, how do I make it so that dropping onto the view as a whole, or
>
over an object is not possible? I want to have it so that dropping
>
between objects is the only option.
Create a method for
- (void)setDropRow:(int)row
dropOperation:(NSTableViewDropOperation)operation
--
Timothy Larkin
Abstract Tools
Caroline, NY
_______________________________________________
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.