TextEdit features in my Cocoa app
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