• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView - typing attributes not applied to first character typed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: curious behavior of Conditionally Sets Enabled in NSTableView
  • Next by Date: Re: Help with custom NSCell and Bindings in Table View
  • Previous by thread: Re: Text like the window title of iPhoto 6 : how ?
  • Next by thread: SQLite vs. Apple's Cocoa SQLite
  • Index(es):
    • Date
    • Thread