Does NSTextView needsDisplay?
Does NSTextView needsDisplay?
- Subject: Does NSTextView needsDisplay?
- From: John Nairn <email@hidden>
- Date: Fri, 17 May 2002 08:33:38 -0600
I have a simple app based on the first RaiseMan example in "Cocoa
Programming for Mac OS X" (i.e., there are data in records with one
record displayed in fields of the window at a time. Clicking "Next" or
"Previous" button loads a new record)
My display has 5 NSTextFields and 1 NSTextView in one NSBox and a single
NSTextView in a second NSBox. All works fine except the NSTextView in
the second NSBox is very slow to update. It can take seconds and
sometimes if I do not move the mouse it never updates until the mouse is
moved. The NSTextView in the first NSBox with NSTextFields does not have
the same problem.
It looks like I fixed it by adding [mySlowTextView setNeedsDisplay:YES]
when loading the record. My question is whether this is a standard need
for NSTextView or if something else is going on? For example, I do not
need it for the other NSTextView?
----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu
_______________________________________________
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.