NSTextView - typing attributes not applied to first character typed?
NSTextView - typing attributes not applied to first character typed?
- Subject: NSTextView - typing attributes not applied to first character typed?
- From: Scott Lehman <email@hidden>
- Date: Mon, 6 Mar 2006 14:18:36 -0800 (PST)
I encountered an issue with NSTextView that I didn't
see in the archives. I know it has nothing do to with
my code since it shows up if I just test an interface
in IB on 10.4.2.
I create a window with a NSTextView in IB and test the
interface. I apply a typing attribute (say, hitting
cmd-B), and then type a character. It doesn't show up
bold. I can choose a font face or change the size
even. The first character appears in 12pt plain
Helvetica.
It's as if the first attribute change request is lost
unless a character has already been typed. If I type
cmd-B, cmd-I, and then type a character, it comes out
italicized only. This only seems to happen before any
characters are typed.
I can easily work around this by sending a message to
set the typing attributes to the text view before any
typing occurs, but I would expect it to be properly
initialized for me already. Is this a bug?
Thanks,
Scott
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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