> 
> Message: 15
> Date: Tue, 01 Dec 2009 15:50:45 -0700
> From: "Mazen M. Abdel-Rahman" <mazen.m.abdelrah...@me.com>
> Subject: Control Appearance on Textured Window Sheet
> To: cocoa-dev@lists.apple.com
> Message-ID: <a12deefe-b9a7-4def-b2bb-8237af2d1...@me.com>
> Content-Type: text/plain; charset=us-ascii
> 
> Hi All,
> 
> First of all - I want to thank everyone for helping me with my previous 
> questions.
> 
> Now for my next question -
> 
> 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.
> 
> Any idea what I might be doing wrong? 
> 
> I made a small sample program to demonstrate this problem that I would be 
> happy to send to anyone interested.


Hi Everyone,

I was able to find a simple workaround for this issue.  In my tab view's 
delegate I have the following:

//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.
        [[tabViewItem view] display];
}

Thanks,
Mazen Abdel-Rahman


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to