Live update of NSTextField in tool bar
Live update of NSTextField in tool bar
- Subject: Live update of NSTextField in tool bar
- From: John Nairn <email@hidden>
- Date: Tue, 09 Dec 2003 08:35:49 -0700
I currently have an NSTextField that displays size of a custom view
which changes while resizing the window. It dynamically shows the size
during the resize. I recently decided to add a tool bar to the window
and move this field from the bottom of the window to the tool bar (it
is in a view that is a tool bar item). It displays the size fine, but
does not update while resizing; it only displays the new size after the
resize is done. I tried to induce a resize in the drawRect of my custom
view with
[showSizeField setStringValue:theNewSize];
[showSizeField display];
but it does not display until the live resize is done.
Is there a way to update fields in the tool bar while resizing the
window?
------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.eng.utah.edu/~nairn
_______________________________________________
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.