To quote, it has a ref to Apple's docs, that says:
"Note: For performance reasons, Cocoa does not enforce clipping
among sibling views or guarantee correct invalidation and drawing
behavior when sibling views overlap. If you want a view to be drawn
in front of another view, you should make the front view a subview
(or descendant) of the rear view."
Additionally, the poster (Michael Watson) says:
There are things in IB and NSView that appear to be planning for
future additions, but in the end, the documentation says not to
overlap views.
So we may (I have no knowledge about this) see something new in
Leopard, or we may not. Time will tell.
As for your issue, you may wish to try to draw the text onto the
image that you're trying to display, rather than placing text fields
above the image.
If we knew more about what you were trying to do (maybe a diagram or
screenshot?), maybe a more dynamic (as in, for updating the text)
solution could be conceived.
The aView contains an NSImageView and some white NSTextField labels.
The NSImageView contains a rounded corner rectangle gray image with
alpha
0.5. My intention is to see an half a transparent rounded corner
pop-up
window with some pure-white text over.
In IB I can quite see the half-transparent picture within the
NSImageView,
and the white text OVER the image. Instead when I launch the
application,
the white text gets multiplied (I guess) by the image alpha value and
results in a dark gray color. What did I forget? Any idea?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com