Re: NSTabView problem under Tiger
Re: NSTabView problem under Tiger
- Subject: Re: NSTabView problem under Tiger
- From: Troy Stephens <email@hidden>
- Date: Thu, 23 Jun 2005 15:38:08 -0700
On Jun 23, 2005, at 5:46 AM, Fritz Anderson wrote:
On Panther, I'm guessing you were benefitting from the fact that
overlapping (noncontained) NSViews have undefined behavior, and the
undefined behavior in Panther just happened to be that the
NSTabView's background got drawn behind the NSImageView, while the
tabs and content got drawn in front. In Tiger, the background
apparently gets drawn in the same layer as the rest of the control.
Having the NSTabView fill its own content background is indeed new
behavior on Tiger, which was introduced to improve window redraw
performance.
Note that NSTabView does not fill its content background when placed
in a textured (metal) window (though a textured window might not be
what you want).
I don't think there's anything you can do and still have NSTabView
do all the work. My next approach would be to have a transparent,
borderless NSTabView do the view switching, and an
NSSegmentedControl substitute for the tabs.
A transparent, borderless NSTabView will still draw the content
background fill.
--
Troy Stephens
Cocoa Frameworks
Apple Computer, Inc.
On Jun 22, 2005, at 9:09 PM, Chris Stephens wrote:
Hi folks,
I have been developing an application in Panther and it's all been
going swimmingly (mostly due to help from this list!).
Now I have Tiger and it all compiles fine but I get a different
display behaviour in the app when it's running. I've looked and
can't find anything that relates to my problem so forgive me if
this is a known and easy problem.
I have an NSTabView sitting on an NSImageView. The NSImageView
contains a PNG image with a texture. You can see what this look
like when it's behaving correctly here:
http://elucid.org/images/correct.png
This is actually a screenshot from Interface Builder running under
Tiger which shows the app exactly how it will appear when it is run
on Panther.
The exact same executable run on Tiger looks like this:
http://elucid.org/images/tigered.png
It's like the NSTabViewItem was transparent under Panther but isn't
under Tiger..?
Can anyone help me solve this?
Thanks,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden