• 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: Slight problem with updates in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slight problem with updates in NSTableView


  • Subject: Re: Slight problem with updates in NSTableView
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 22 Oct 2001 17:54:28 +0100

Drew,

>>>>>> Drew McCormack (DMC) wrote at Mon, 22 Oct 2001 15:50:05 +0200:
DMC> I had something very similar with an NSTextView: it wouldn't update
DMC> until the mouse moved over it. I suspect that for whatever reason, the
DMC> program is waiting before getting to the end of the event loop, since I
DMC> think it does the pending display updates there. So when you call
DMC> "displayIfNeeded", it flags the view as needing an update, but it only
DMC> carries the update out later.
DMC> The only solution I found was the one you suggest, ie, calling "display"
DMC> directly.

OF COURSE that views are updated at end of event loop! I thought the problem
is that joar's table view is not updated even thence.

OTOH, if you do something like

for (...) {
make_some_change_in_tableview; // or any other view
sleep_for_a_moment;
}

the window will *NOT* be redrawn unless you send an explicit
display/displayIfNeeded message in the loop. IIRC, this is even a documented
behaviour ;)

The joar's problem seems though -- if I understand properly -- that the
window does not understand displayIfNeeded properly... alas I have no idea
why.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Re: Slight problem with updates in NSTableView (From: Drew McCormack <email@hidden>)

  • Prev by Date: Re: [OT] CORBA with Mac OS X
  • Next by Date: Re: networking advice.
  • Previous by thread: Re: Slight problem with updates in NSTableView
  • Next by thread: Problems adding horiz scrollbar to NSTextView
  • Index(es):
    • Date
    • Thread