discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Just another NSTabView bug


From: Andreas Höschler
Subject: Re: Just another NSTabView bug
Date: Sun, 21 May 2006 23:49:27 +0200

Hello all,

I have discovered that resizing a NSTabView (setFrame:) does not resize the views of the tab view items, like it does on MacOSX. Can anybody confirm, that this is a bug? Or can this be altered with some kind of resizing mask that might have a different default value on MacOSX?

Please add the following method to NSTabView.m

- (void)setFrame:(NSRect)rect
{
   [super setFrame:rect];
   NSRect contentRect = [self contentRect];
   int i, count = [self numberOfTabViewItems];
   for (i = 0 ; i < count ; i++)
     {
      NSView *view = [[self tabViewItemAtIndex:i] view];
      [view setFrame:contentRect];
     }
}

Regards,

 Andreas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]