Re: TextEdit features in my Cocoa app
Re: TextEdit features in my Cocoa app
- Subject: Re: TextEdit features in my Cocoa app
- From: Douglas Davidson <email@hidden>
- Date: Mon, 17 Sep 2007 17:16:39 -0700
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