Update NSTextField programatically while cursor is in it
Update NSTextField programatically while cursor is in it
- Subject: Update NSTextField programatically while cursor is in it
- From: Randy Bradley <email@hidden>
- Date: Thu, 8 Jun 2006 10:59:55 -0500
All,
I'm trying to update the contents of an NSTextField
programatically using setStringValue: method. My program works fine
as long as the cursor is not in the field I'm updating. If the
cursor is in that field, the value does get set but it doesn't get
redrawn until the end user selects another field. I've tried the
setNeedsDisplay: method. Do I need to do something else?
snip:
[animalField setStringValue:[tmpAnimal number]];
[animalField setNeedsDisplay:YES];
[self updateUI];
Thanks,
******************************************
Randy Bradley
IT Specialist
USDA ARS MARC
Clay Center, NE 68933
email@hidden
phone: 402-762-4156
******************************************
_______________________________________________
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