nagyistoce / maccode

Automatically exported from code.google.com/p/maccode
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

PSMTabBarControl doesn't really work if created manually #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

if I create a PSMTabBarControl with initWithFrame: (instead of loading it from 
a control), the tabs 
don't resize if the tab control size changes. This is because

   [self setPostsFrameChangedNotifications:YES];
   [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(frameDidChange:) 
name:NSViewFrameDidChangeNotification object:self];

is only called in awakeFromNib. Am I supposed to call awakeFromNib manually 
after creating the 
control or is this a bug? Or am I missing something else?

Thanks,
Nico

Original issue reported on code.google.com by nicotha...@gmail.com on 3 Nov 2007 at 10:06