FROM : Shawn Erickson
DATE : Fri May 23 22:50:20 2008
On Fri, May 23, 2008 at 1:36 PM, Davide Scheriani
<<email_removed>> 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
DATE : Fri May 23 22:50:20 2008
On Fri, May 23, 2008 at 1:36 PM, Davide Scheriani
<<email_removed>> 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
| Related mails | Author | Date |
|---|---|---|
| Davide Scheriani | May 23, 22:36 | |
| Shawn Erickson | May 23, 22:50 | |
| Graham Cox | May 24, 06:14 |






Cocoa mail archive

