• 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
Live update of NSTextField in tool bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: best way to save document level settings?
  • Next by Date: Re: .webloc files and Safari (newbie)
  • Previous by thread: RE: paragraph style question
  • Next by thread: Re: Live update of NSTextField in tool bar
  • Index(es):
    • Date
    • Thread