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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to