• 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 refreshes are wacky.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField refreshes are wacky.


  • Subject: NSTextField refreshes are wacky.
  • From: Jonathan Feinberg <email@hidden>
  • Date: Mon, 11 Mar 2002 16:00:38 -0500

I am using an NSTextField as a status bar.

When I

[theField setStringValue:@"Foo"];

the new text gets written *over* whatever text was already there. I
haven't been able to find a mantra that will cause the field to
correctly erase itself before drawing the new string. On top of this,
it happens intermittently; sometimes the update happens correctly.

I have found that resizing the parent window will cause the field to display
correctly. This led me to try

[textStatus setStringValue:msg]; [textStatus setNeedsDisplay];
[[textStatus window] displayIfNeeded];

which caused the problem to happen less frequently. But it still happens.

Any clues?
--
Jonathan Feinberg email@hidden Inwood, NY, NY
http://MrFeinberg.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSTextField refreshes are wacky.
      • From: "Clark S. Cox III" <email@hidden>
  • Prev by Date: Update and another question
  • Next by Date: Re: NSTextField refreshes are wacky.
  • Previous by thread: Re: Update and another question
  • Next by thread: Re: NSTextField refreshes are wacky.
  • Index(es):
    • Date
    • Thread