Hi All,
There was a problem with my last solution - it does not work if a user types in
anything into one of the controls. This time I had to call the superview's
display function - so for everything to always display properly both the
currently selected tabviewitem's view and it's superview need their -display
method to be called.
//TabView delegate functions
-(void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem
*)tabViewItem
{
//This is needed due to a bug where the previous tabViewItem's controls
//appear in the background. If a user types into one of the controls
the superview's display
//function has to be called as well.
NSView * superView = [[tabViewItem view] superview];
[[tabViewItem view] display];
[superView display];
}
Thanks,
Mazen Abdel-Rahmabn
>>
>> I have an application where I place the window in a separate *.xib (I called
>> "MyWindow.xib") file from the Main Menu. I deleted the window that's in
>> MainMenu.xib. When the application loads - my app delegate takes care of
>> loading the window through a subclassed window controller (which I named
>> "MyWindowController".
>>
>> "MyWindow.xib" also contains another window - with the textured style -
>> that is hidden when the application first starts - but appears as a sheet in
>> response to an action.
>>
>> On the sheet there is a tabview - with 2 tabs. My problem is that the last
>> tabs controls always show through. So for example - when the sheet first
>> comes down - you can can the controls for the user to enter in first name
>> and last name. If you click on the inactive tab - the user will see the
>> controls for city and state - but they will see in the background the
>> controls for first name and last name - though they will not be able to
>> select them at all. If the user goes back to the first tab the controls on
>> the second tab will be in the background.
>>
>> One more important thing - if I minimize the window - and then show it again
>> - the "background" controls disappear and everything appears as it should be.
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]