On Fri, May 23, 2008 at 1:36 PM, Davide Scheriani
<[EMAIL PROTECTED]> wrote:
> helo guys.
> I wanted to use the PasteBoard to use for may drag'n drop table view,
> and I wish to save a mutable array i the pastboard.
> I wrote this but I get "null" back:
>
>
> ================= CODE =================
>
> [pboard declareTypes:[NSArray arrayWithObject:NSGeneralPboard] owner:self];

NSGeneralPboard is the name of a pasteboard not a type of data you can
place on the pasteboard. It is the pasteboard instance you get back
when you use +[NSPasteboard generalPasteboard] (aka generalPasteboard
uses pasteboardWithName:NSGeneralPboard). Also since you appear to be
talking about dragging I believe you want the dragging paste board
which is named NSDragPboard.

Anyway have you read over the following?

<http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/UsingDragAndDrop.html#//apple_ref/doc/uid/20000726-BABFIDAB>

-Shawn
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to