• 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
Re: NSTextView bindings; value path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTextView bindings; value path (From: Matthew Morton <email@hidden>)

  • Prev by Date: [moderator] Re: Thanks
  • Next by Date: Re: Pasting into another app
  • Previous by thread: NSTextView bindings; value path
  • Next by thread: Problem with setting fonts in NSTextView
  • Index(es):
    • Date
    • Thread