NSTextField bound to NSAtrributedString
NSTextField bound to NSAtrributedString
- Subject: NSTextField bound to NSAtrributedString
- From: m <email@hidden>
- Date: Thu, 6 Oct 2005 14:54:00 -0700
I have several NSAttributedStrings in my model.
Each NSAttributedString is bound to a NSTextField's value binding.
Text attribute editing in the text field is enabled. Also enabled is
the "Continuously Updates Value" option in the text fields value
binding.
Something strange is happening: while the user is typing, the setter
in my model for the corresponding field is receiving NSString
objects, NOT NSAttributedString objects as expected. However, once
editing has completed (user hits enter or return, or changes to
another field), an NSAttributedString object is recieved by my models
setter.
Am I doing something wrong? Have I missed some setup? Is this a bug?
(I am using NSTextFields instead of NSTextViews because NSTextFields
already support the standard "editing multiple text items in a
dialog" interaction model.)
_murat
_______________________________________________
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