addSubview \ replaceSubview won't support embedded controls
addSubview \ replaceSubview won't support embedded controls
- Subject: addSubview \ replaceSubview won't support embedded controls
- From: Graham Wihlidal <email@hidden>
- Date: Thu, 2 May 2002 14:28:01 -0600
Hey everyone,
Here's my implementation:
I have a window which has a popup menu and an NSView. The popup menu
holds items for different panes to view. Upon selecting a certain one
the NSView I have on that window is to "switch" to a particular view
which I made in IB. Two switch the views, I basically embed the popup
view into the basic one I have in the window using addSubview to make it
display as a child view of the one in the window, and replaceSubview to
swap it.
This seems to work for every base level control (base level meaning the
only "parent view" it sits above is the view pane) and controls that sit
on top of other controls are never drawn.
For example:
Top of the view has a static text saying "This is a test"
Below that has an image view. I put a data browser on top of the image
view (the borders for image view make it look really nice) and tried
displaying that view. Everything displayed except the data browser
because it was on top of something.
Anyone have any ideas? If I can't figure this issue out, I'll probably
have the image view already on the window and put the "swappable view"
on top of it to achieve the same effect
Thanks in advance,
Graham Wihlidal
_______________________________________________
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.