NSTextField refreshes are wacky.
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.