mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
* GormCore/GormViewEditor.m: -editedObjectFrameDidChange:
alter code so that allViews under the editor are collected and set to not post notifications. This change prevents a notification/setFrame cycle which was occurring when certain controls were added as subviews to NSTabView or NSBox. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@36155 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3cd12bee73
commit
c92bf0ebfb
2 changed files with 27 additions and 4 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2013-02-16 20:10-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
|
* GormCore/GormViewEditor.m: -editedObjectFrameDidChange:
|
||||||
|
alter code so that allViews under the editor are collected
|
||||||
|
and set to not post notifications. This change prevents
|
||||||
|
a notification/setFrame cycle which was occurring when
|
||||||
|
certain controls were added as subviews to NSTabView or
|
||||||
|
NSBox.
|
||||||
|
|
||||||
2013-01-26 20:42-EST Gregory John Casamento <greg.casamento@gmail.com>
|
2013-01-26 20:42-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* GormCore/GormDocument.m: Corrected issue with adding cells to
|
* GormCore/GormDocument.m: Corrected issue with adding cells to
|
||||||
|
|
|
@ -325,14 +325,28 @@ static BOOL currently_displaying = NO;
|
||||||
|
|
||||||
- (void) editedObjectFrameDidChange: (id) sender
|
- (void) editedObjectFrameDidChange: (id) sender
|
||||||
{
|
{
|
||||||
[self setPostsFrameChangedNotifications:NO];
|
NSArray *allViews = allSubviews(self);
|
||||||
[self setPostsBoundsChangedNotifications:NO];
|
NSEnumerator *en = [allViews objectEnumerator];
|
||||||
|
id v = nil;
|
||||||
|
|
||||||
|
// Set all views under this view to not post changes...
|
||||||
|
while((v = [en nextObject]) != nil)
|
||||||
|
{
|
||||||
|
[v setPostsFrameChangedNotifications:NO];
|
||||||
|
[v setPostsBoundsChangedNotifications:NO];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the frame and the bounds...
|
||||||
[self setFrame: [_editedObject frame]];
|
[self setFrame: [_editedObject frame]];
|
||||||
[self setBounds: [_editedObject frame]];
|
[self setBounds: [_editedObject frame]];
|
||||||
|
|
||||||
[self setPostsFrameChangedNotifications:YES];
|
// Reset all views to post changes as expected...
|
||||||
[self setPostsBoundsChangedNotifications:YES];
|
en = [allViews objectEnumerator];
|
||||||
|
while((v = [en nextObject]) != nil)
|
||||||
|
{
|
||||||
|
[v setPostsFrameChangedNotifications:YES];
|
||||||
|
[v setPostsBoundsChangedNotifications:YES];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) frameDidChange: (id) sender
|
- (void) frameDidChange: (id) sender
|
||||||
|
|
Loading…
Reference in a new issue