• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pasteboard question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Pasteboard question (From: Davide Scheriani <email@hidden>)

  • Prev by Date: Re: Cocoa et al as HCI usability problem
  • Next by Date: Re: How to change Tool modes programmatically for a Image View?
  • Previous by thread: Pasteboard question
  • Next by thread: Re: Pasteboard question
  • Index(es):
    • Date
    • Thread