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

Re: Live update of NSTextField in tool bar


  • Subject: Re: Live update of NSTextField in tool bar
  • From: John Nairn <email@hidden>
  • Date: Tue, 09 Dec 2003 15:04:41 -0700

I don't think that will help. The field updates fine after the resize is done (isn't that when windowDidResize will occur), but I want it to update during the live resize. I am setting the string in the drawRect method of the custom view and that method is called repeatedly during live resize. This call works fine for a field in the window (and not part of the custom view), but not for a field in the tool bar. The field that works is moving during live resize as well.

On Dec 9, 2003, at 2:34 PM, Daniel Todd Currie wrote:

Have you tried the -windowDidResize: delegate method for NSWindow?

On 2003 Dec 09, at 07:35, John Nairn wrote:

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.

  • Follow-Ups:
    • Re: Live update of NSTextField in tool bar
      • From: Daniel Todd Currie <email@hidden>
References: 
 >Live update of NSTextField in tool bar (From: John Nairn <email@hidden>)

  • Prev by Date: Re: Capturing slider movement in NSSlider
  • Next by Date: NSWindowController subclass: best practice
  • Previous by thread: Live update of NSTextField in tool bar
  • Next by thread: Re: Live update of NSTextField in tool bar
  • Index(es):
    • Date
    • Thread