mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:07:38 +00:00
General tidyup - make updates work properly etc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3647 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6f7d5e3738
commit
d9402deccf
5 changed files with 1402 additions and 1179 deletions
|
@ -1220,23 +1220,25 @@ BOOL done = NO;
|
|||
windows_need_update = flag;
|
||||
}
|
||||
|
||||
- (void)updateWindows // send an update message
|
||||
- (void) updateWindows // send an update message
|
||||
{ // to all visible windows
|
||||
int i, count;
|
||||
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||
int i, count;
|
||||
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||
NSArray *window_list = [self windows];
|
||||
|
||||
windows_need_update = NO;
|
||||
// notify that an update is
|
||||
// imminent
|
||||
[nc postNotificationName:NSApplicationWillUpdateNotification object:self];
|
||||
[nc postNotificationName:NSApplicationWillUpdateNotification object: self];
|
||||
|
||||
for (i = 0, count = [window_list count]; i < count; i++)
|
||||
{
|
||||
NSWindow *win = [window_list objectAtIndex:i];
|
||||
if ([win isVisible]) // send update only if the
|
||||
[win update]; // window is visible
|
||||
}
|
||||
// notify update did occur
|
||||
[nc postNotificationName:NSApplicationDidUpdateNotification object:self];
|
||||
for (i = 0, count = [window_list count]; i < count; i++)
|
||||
{
|
||||
NSWindow *win = [window_list objectAtIndex: i];
|
||||
if ([win isVisible]) // send update only if the
|
||||
[win update]; // window is visible
|
||||
}
|
||||
// notify update did occur
|
||||
[nc postNotificationName:NSApplicationDidUpdateNotification object:self];
|
||||
}
|
||||
|
||||
- (NSArray*) windows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue