RE: Bug in NSImageView?
RE: Bug in NSImageView?
- Subject: RE: Bug in NSImageView?
- From: Lance Drake <email@hidden>
- Date: Tue, 20 Jul 2004 20:37:13 -0600
However, I would also like a background color in the generatorListView,
so I set it to an NSImageView and everything is ruined. My subviews no
longer stick to the top of the generatorListView, so they all pile on
top of each other at the bottom. The ONLY thing I changed was the
class of generatorListView in IB from a "Custom View" to an "Image
View".
Hi Daniel,
A bug report (#3565539) was filed which stated that adding items in a
NIB hierarchy can occur such that things appear to physically be 'in
front' - but are logically 'in back'. It may be that the 'bug' you
describe is in IB - and not with NSImageView. With luck, someone who
actually knows what's going on will chime in and explain this to the
both of us.
In this bug report an NSQuickDrawView was cited - but an NSImageView is
probably an equal substitute.
1. Open an application NIB, add an NSQuickDrawView, then add an
NSButton into the window
2. Position the NSButton to be 'on top' of the NSQuickDrawView area.
3. Observe the list mode of the Window object - Notice, in that list
where the NSQuickDraw view is in relation to the NSButton
5. Go back to the window view,select the NSQuickDrawView object and
reverse the layering order by way of the menu (Move to front/back)
6. Go back to the list of objects in the window and notice that the
NSButton is in the reverse position to the NSQuickDrawView item from
where it was.
7. Build the app - see the window - observe that when the Button is
viewed in the NIB as being in FRONT of the NSQuickDrawView that it is
not visible but that when the NSButton is shown as being BEHIND the
NSQuickDrawView, then it is visible.
So - what you see on the screen in the IB window is not accurate, with
regards the stacking order of items. As items are added 'on top' -
they are placed 'at the bottom'.
This may or may not be indicative of your problem. Who knows why more
people haven't noticed or made note of this anomaly, but it was a
problem for me until I understood what was happening. Now I simply
stack things in reverse - and they behave/appear as expected.
Lance Drake
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.