Re: Pasteboard question
Re: Pasteboard question
- Subject: Re: Pasteboard question
- From: "Shawn Erickson" <email@hidden>
- Date: Fri, 23 May 2008 13:50:20 -0700
On Fri, May 23, 2008 at 1:36 PM, Davide Scheriani
<email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden