NSTextView attributedString or data binding?
NSTextView attributedString or data binding?
- Subject: NSTextView attributedString or data binding?
- From: SA Dev <email@hidden>
- Date: Tue, 17 May 2005 10:35:59 -0400
List:
I have an editor window bound to an 'Entry' managed object. It's
got the title field, a few checkboxes for various states, and a plain
NSTextView for a summary field. All of those work and store their
persistent data on save with no problems.
I also have an NSTextView whose data binding is bound to the entry
entity's "contentData" attribute, which is a 'binary data' type. The
entity's contentData attribute is *not* set to transient but is
'optional' (since it can be empty). The text view is set to allow
multiple fonts and graphics. The data binding's 'continuously updates
value' is checked.
The problem is the contentData typed into the text field is not
being stored with the persistent data. I can enter info, close the
editor, re-open it and the info is still there. If I save, close the
whole document, re-open it, then open the entry in the editor, all
the other changed data is restored, but the contentData text view is
empty. I've also tried binding to the attributedString binding, but
it's just not working.
Any ideas?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden