Re: NSAttributedString and bindings
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.