Re: tableView Drag and Drop frustration
Re: tableView Drag and Drop frustration
- Subject: Re: tableView Drag and Drop frustration
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 1 Nov 2003 22:34:56 -0800
On Nov 1, 2003, at 9:56 PM, Kurt Marek wrote:
[destinationTableView registerForDraggedTypes: [NSArray
arrayWithObjects:NSGeneralPboardType, nil]];
The problem is that I get an error saying that NSGeneralPboardType is
undeclared in that last line of code.
NSGeneralPboard identifies the usual copy pasteboard
(<
http://developer.apple.com/documentation/Cocoa/Conceptual/
CopyandPaste/Concepts/NamedPasteboards.html>). There are a number of
other constants which identify the data the pasteboard may contain,
including NSFileContentsPboardType, NSStringPboardType and
NSTIFFPboardType (see:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
CopyandPaste/Concepts/DataTypes.html>).
Looking at the documentation, it doesn't appear that
NSGeneralPboardType is a stock type, but copying a dictionary doesn't
fall into any of the stock types. How do I get around this?
You should define a custom type for your own data.
"Types other than those listed above [DataTypes.html] can also be used.
For example, your application may keep data in a private format that is
richer than any of the existing types. That format can also be used as
a pasteboard type."
mmalc
_______________________________________________
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.