Re: NSTextView bindings; value path
Re: NSTextView bindings; value path
- Subject: Re: NSTextView bindings; value path
- From: Ken Thomases <email@hidden>
- Date: Fri, 9 Jan 2009 17:20:52 -0600
On Jan 9, 2009, at 4:11 AM, Matthew Morton wrote:
The documentation concerning the valuePath at
http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSTextView.html
says An NSString that specifies the full path of the content to
display in the NSTextView.
What should be at the path referred to by the NSString?
I'm assuming the path should refer to a file in one of the formats
supported by NSAttributedString, as with the -
initWithPath:documentAttributes: method. NSTextStorage is a subclass
of NSAttributedString.
You'll want to look at the docs for the AppKit additions to the
NSAttributedString class:
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSAttributedString_AppKitAdditions/
You can use +[NSAttributedStrings textTypes] to get a list of the
types, although you shouldn't need to reference that for your actual
binding. I would think that would be mostly interesting for
development/debugging information.
Cheers,
Ken
_______________________________________________
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