• 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
TextEdit features in my Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TextEdit features in my Cocoa app


  • Subject: TextEdit features in my Cocoa app
  • From: Chris Heimark <email@hidden>
  • Date: Mon, 17 Sep 2007 20:42:23 -0400

Thanks Douglas and Finlay.

Douglas, what do you mean by: "Probably the main problem is that you need to have a file in the filesystem in order to use NSFilenamesPboardType." ?

On Sep 17, 2007, at 8:16 PM, Douglas Davidson wrote:


On Sep 17, 2007, at 5:07 PM, Chris Heimark wrote:

D&D from an NSTextView to the finder isn't natively supported. Can one of you fine folks on the list just give a hint as to what I must do to add this additional capability? I'm just looking for your basic best approach angle to achieve this behavior.

The delegate needs to implement textView:writablePasteboardTypesForCell:atIndex: and textView:writeCell:atIndex:toPasteboard:type:. You should be able to look at /Developer/Examples/AppKit/TextEdit for examples. Probably the main problem is that you need to have a file in the filesystem in order to use NSFilenamesPboardType.


Douglas Davidson



_______________________________________________

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


  • Prev by Date: Re: TextEdit features in my Cocoa app
  • Next by Date: Re: Cocoa frameworks/class diagrams or posters
  • Previous by thread: Re: TextEdit features in my Cocoa app
  • Next by thread: Cocoa frameworks/class diagrams or posters
  • Index(es):
    • Date
    • Thread