IB question on z-order

  • Is there any way to change the Z-order of controls in IB?

    I created a group of switches (NSButton) for a dialog-box and then
    decided I wanted them grouped inside an NSBox.  I created the NSBox and
    dragged the switches inside it.  When I tested the interface I noticed
    that I could not click any of the switches inside the NSBox.
    Apparently the NSBox is on top of the switches.

    -Michael
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • Select the box and in the 'Layout' menu click 'Send to Back'

    D.

    On 26-Oct-03, at 8:19 PM, Michael Crawford wrote:

    > Is there any way to change the Z-order of controls in IB?
    >
    > I created a group of switches (NSButton) for a dialog-box and then
    > decided I wanted them grouped inside an NSBox.  I created the NSBox
    > and dragged the switches inside it.  When I tested the interface I
    > noticed that I could not click any of the switches inside the NSBox.
    > Apparently the NSBox is on top of the switches.
    >
    > -Michael
    > _______________________________________________
    > cocoa-dev mailing list | <cocoa-dev...>
    > Help/Unsubscribe/Archives:
    > http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    > Do not post admin requests to the list. They will be ignored.
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • On Oct 26, 2003, at 20:19, Michael Crawford wrote:

    > Is there any way to change the Z-order of controls in IB?
    >
    > I created a group of switches (NSButton) for a dialog-box and then
    > decided I wanted them grouped inside an NSBox.  I created the NSBox
    > and dragged the switches inside it.  When I tested the interface I
    > noticed that I could not click any of the switches inside the NSBox.
    > Apparently the NSBox is on top of the switches.

    Are you sure that the checkboxes are actually *inside* the box (i.e.
    are they subviews of the box)? Or are they siblings of the box? If it's
    the latter, then that can cause all sorts of problems.

    --
    Clark S. Cox III
    <clarkcox3...>
    http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html

    [demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • I think the switches are just overlaid on top of the box.  They need to
    be nested inside the box.  You can do this by selecting the switches
    and then selecting Layout:Make Subviews Of:Box.  You can also (in one
    mouse stroke) click and hold the switches, thus "popping" them and then
    dragging them into the box.

    -Amul

    On Oct 26, 2003, at 5:19 PM, Michael Crawford wrote:

    > Is there any way to change the Z-order of controls in IB?
    >
    > I created a group of switches (NSButton) for a dialog-box and then
    > decided I wanted them grouped inside an NSBox.  I created the NSBox
    > and dragged the switches inside it.  When I tested the interface I
    > noticed that I could not click any of the switches inside the NSBox.
    > Apparently the NSBox is on top of the switches.
    >
    > -Michael
    > _______________________________________________
    > cocoa-dev mailing list | <cocoa-dev...>
    > Help/Unsubscribe/Archives:
    > http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    > Do not post admin requests to the list. They will be ignored.
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • An even more certain way to control z-order is to switch
    your main nib doc view to a hierarchical list rather than an
    icon window.  (This is done with the icons at the upper-right
    of the nib document window).  You can then expand your window
    & views inside the outline view to see exact containment
    hierarchy, which makes it easy to tell if your controls are
    inside the NSBox & drag them there if not.

    - Christopher

    On Sunday, October 26, 2003, at 09:51  PM, Amul Goswamy wrote:

    > I think the switches are just overlaid on top of the box.  They need
    > to be nested inside the box.  You can do this by selecting the
    > switches and then selecting Layout:Make Subviews Of:Box.  You can also
    > (in one mouse stroke) click and hold the switches, thus "popping" them
    > and then dragging them into the box.
    >
    > -Amul
    >
    > On Oct 26, 2003, at 5:19 PM, Michael Crawford wrote:
    >
    >> Is there any way to change the Z-order of controls in IB?
    >>
    >> I created a group of switches (NSButton) for a dialog-box and then
    >> decided I wanted them grouped inside an NSBox.  I created the NSBox
    >> and dragged the switches inside it.  When I tested the interface I
    >> noticed that I could not click any of the switches inside the NSBox.
    >> Apparently the NSBox is on top of the switches.
    >>
    >> -Michael
    >> _______________________________________________
    >> cocoa-dev mailing list | <cocoa-dev...>
    >> Help/Unsubscribe/Archives:
    >> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    >> Do not post admin requests to the list. They will be ignored.
    > _______________________________________________
    > cocoa-dev mailing list | <cocoa-dev...>
    > Help/Unsubscribe/Archives:
    > http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    > Do not post admin requests to the list. They will be ignored.
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • This is not really the good solution. The issue is probably that the
    switches are NOT in the NSBox.

    So remove the NSBox, select the widgets you want to put in the box and
    use the command from the "Layout" Menu, "Make subviews of" > "Box".

    On lundi, octobre 27, 2003, at 02:38  AM, Dusan Vujosevic wrote:

    > Select the box and in the 'Layout' menu click 'Send to Back'
    >
    > D.
    >
    > On 26-Oct-03, at 8:19 PM, Michael Crawford wrote:
    >
    >> Is there any way to change the Z-order of controls in IB?
    >>
    >> I created a group of switches (NSButton) for a dialog-box and then
    >> decided I wanted them grouped inside an NSBox.  I created the NSBox
    >> and dragged the switches inside it.  When I tested the interface I
    >> noticed that I could not click any of the switches inside the NSBox.
    >> Apparently the NSBox is on top of the switches.
    >>
    >> -Michael
    >> _______________________________________________
    >> cocoa-dev mailing list | <cocoa-dev...>
    >> Help/Unsubscribe/Archives:
    >> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    >> Do not post admin requests to the list. They will be ignored.
    > _______________________________________________
    > cocoa-dev mailing list | <cocoa-dev...>
    > Help/Unsubscribe/Archives:
    > http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    > Do not post admin requests to the list. They will be ignored.
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
previous month october 2003 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today