• 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
Update NSTextField programatically while cursor is in it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Setting focus for a NSTextField view
  • Next by Date: Distributed Objects, copying thereof
  • Previous by thread: Re: Setting focus for a NSTextField view
  • Next by thread: Re: Update NSTextField programatically while cursor is in it
  • Index(es):
    • Date
    • Thread