• 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
NSTextField selected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField selected


  • Subject: NSTextField selected
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 18 Jan 2008 19:11:27 +0700

I have an NSWindow which contains an NSTextField (selectable, not editable) which gets set via:
[ textField setAttributedStringValue: someStringWithColours ].


Works most of the time, but sometimes when I bring up the Window the TextField is selected (higlighted in blue). And when I click in the TextField the highlight disappears, but then the text is just plain black.
When I then set the TextField again, it still has no colour.
When I close the window, and bring it back on, the text is again selected.


Does anybody has any idea, how this comes to happen, and - even more important - how this can be avoided?

10.4.11 - not tried in 10.5.1.

Kind regards,

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


  • Prev by Date: NSFileManager and making sure you don't overwrite existing files 10.5
  • Next by Date: Re: where's "System Font Text" in Xcode3?
  • Previous by thread: Re: NSFileManager and making sure you don't overwrite existing files 10.5
  • Next by thread: Distributed Objects in Leopard
  • Index(es):
    • Date
    • Thread