Hello all,

somebody has modified the following NSTabView.m method recently. Don't do that!

- (void) insertTabViewItem: (NSTabViewItem*)tabViewItem
                   atIndex: (int)index
{
  [tabViewItem _setTabView: self];
  [_items insertObject: tabViewItem atIndex: index];

/*  *** You do not really want to do that; think about it!!!
 if ((_selected_item != NSNotFound) && (index <= _selected_item))
    {
     _selected_item++;
    }*/

  if ([_delegate respondsToSelector:
    @selector(tabViewDidChangeNumberOfTabViewItems:)])
    {
      [_delegate tabViewDidChangeNumberOfTabViewItems: self];
    }

  /* TODO (Optimize) - just mark the tabs rect as needing redisplay */
  [self setNeedsDisplay: YES];
}

Regards,

  Andreas



_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to