Re: Binary Data Format for NSTextView
Re: Binary Data Format for NSTextView
- Subject: Re: Binary Data Format for NSTextView
- From: mmalc crawford <email@hidden>
- Date: Wed, 5 Dec 2007 21:43:10 -0800
On Dec 5, 2007, at 9:21 PM, Mike Rossetti wrote:
Could someone tell me what the format is of the data managed via a
'data' binding for an NSTextView supporting rich text that is bound
to a Core Data binary attribute?
"The NSData contains either the RTF or RTFD representation of the
NSTextView contents, depending on the configuration of the NSTextView."
<http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSTextView.html
>
You can get the attributed string back with, for example,
initWithRTF:documentAttributes:.
<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSAttributedString_AppKitAdditions/Reference/Reference.html#//apple_ref/occ/instm/NSAttributedString/initWithRTF:documentAttributes:
>
mmalc
_______________________________________________
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