• 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: tableView Drag and Drop frustration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: tableView Drag and Drop frustration
      • From: Kurt Marek <email@hidden>
References: 
 >tableView Drag and Drop frustration (From: Kurt Marek <email@hidden>)

  • Prev by Date: Re: app slower under Panther
  • Next by Date: Distributed Objects overkill?
  • Previous by thread: tableView Drag and Drop frustration
  • Next by thread: Re: tableView Drag and Drop frustration
  • Index(es):
    • Date
    • Thread