• 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: NSAttributedString and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAttributedString and bindings


  • Subject: Re: NSAttributedString and bindings
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 5 Jun 2004 21:08:45 -0700

On Jun 5, 2004, at 8:01 PM, Matt Baker wrote:
I'm trying to write a master-detail interface with a NSTextView to show details of a single record
[...]
Now if I bind "aText" to the column, I get a set of hex characters (like <7b5c7274 66315c6d...). If I bind to strText I get nothing in the view but the log shows:
2004-06-05 22:00:17.919 BindingTest1[2306] *** -[NSConcreteMutableData string]: selector not recognized
2004-06-05 22:00:17.919 BindingTest1[2306] *** -[NSConcreteMutableData string]: selector not recognized
Am I wrong in using NSAttributedString to store styled text, or am I using the string converter wrong?

Text view's 'data' binding uses NSData:

<http://developer.apple.com/documentation/Cocoa/Reference/ CocoaBindingsRef/BindingsText/NSTextView.html>
Value Bindings
data
An NSData instance containing the formatted text of the NSTextView.
[...]
This binding is only available when the NSTextView is configured to allow multiple fonts.

Contrast:
'value'
An NSString that contains the plain text displayed in the NSTextView.
This binding is only available when the NSTextView is configured to display using as a single font.

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSAttributedString and bindings (From: Matt Baker <email@hidden>)

  • Prev by Date: Re: NSAttributedString and bindings
  • Next by Date: Re: NSObjectController HELP
  • Previous by thread: Re: NSAttributedString and bindings
  • Next by thread: Re: NSAttributedString and bindings
  • Index(es):
    • Date
    • Thread