mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Use insertSplitViewItem in addSplitViewItem
This commit is contained in:
parent
7734331930
commit
285a77debb
1 changed files with 1 additions and 10 deletions
|
@ -70,16 +70,7 @@
|
|||
|
||||
- (void) addSplitViewItem: (NSSplitViewItem *)item
|
||||
{
|
||||
NSViewController *vc = [item viewController];
|
||||
[_splitViewItems addObject: item];
|
||||
if (vc != nil)
|
||||
{
|
||||
NSView *v = [vc view];
|
||||
if (v != nil)
|
||||
{
|
||||
[[self splitView] addSubview: v];
|
||||
}
|
||||
}
|
||||
[self insertSplitViewItem: item atIndex: [_splitViewItems count]];
|
||||
}
|
||||
|
||||
- (void) insertSplitViewItem: (NSSplitViewItem *)item atIndex: (NSInteger)index
|
||||
|
|
Loading…
Reference in a new issue