• 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: How to allow files drag from a tableView to the Finder ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to allow files drag from a tableView to the Finder ?


  • Subject: Re: How to allow files drag from a tableView to the Finder ?
  • From: Bill Bumgarner <email@hidden>
  • Date: Fri, 3 May 2002 15:23:12 -0400

You need to use an NSFilenamePboardType (or NSFilenamesPboardType), not NSUrlPboardType.

I.e. something like the following, assuming the paths variable is an NSArray full of NSStrings, each NSString being a path to an individual file.

[pboard declareTypes:[NSArray arrayWithObject:NSFilenamesPboardType] owner:self];
[pboard setPropertyList:paths forType: NSFilenamesPboardType];

When dragging files out of a TableView, I have sometimes found it to be more intuitive to have a DragWell from which the dragging starts. Some users are confused about the concept of a dragging out of a TableView unless there is a column that contains icons.

b.bum


On Friday, May 3, 2002, at 03:06 PM, email@hidden wrote:

Date: Fri, 3 May 2002 20:31:20 +0200
Subject: How to allow files drag from a tableView to the Finder ?
From: =?ISO-8859-1?Q?Quentin_Math=E9?= <email@hidden>
To: email@hidden

b.bum
....lying there snoring,
breath smelling like a 1948 buick.
_______________________________________________
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.

  • Prev by Date: Fwd: WWDC: Drinks at Gordon Biersch this Sunday for WO and Cocoa folks
  • Next by Date: Re: Returns from a sheet
  • Previous by thread: How to allow files drag from a tableView to the Finder ?
  • Next by thread: Re: Trying to read selection states
  • Index(es):
    • Date
    • Thread