Clicking in an attributed TextField
Clicking in an attributed TextField
- Subject: Clicking in an attributed TextField
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sat, 9 Feb 2008 16:52:39 +0700
I have (10.4.11) a very simple app, which has one window with one
NSTextField (selectable, not editable) and one NSButton.
When I click the button, a colourful text is put into the textfield
([ textField setAttributedStringValue: colouredString ]).
The textField has no fieldEditor ( [ testWindow fieldEditor: NO
forObject: textField ] == nil ).
So far all is fine.
Now, when I click in the textField, a fieldEditor is created (an
NSTextView).
But:
None of the attributes of my colouredString gets copied into the
textStorage of the fieldEditor. It just uses the default system font
(LucidaGrande 13pt.) and the system text colour (black).
How can this be avoided?
Kind reagrds,
Gerriet.
_______________________________________________
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