IBOutlet & NSTabView

  • Hi, list:

      I have a controller class with an IBOutlet defined as follows:

    IBOutlet NSTabView * mainTabView;

      I dragged it into the nib and the outlet appeared as expected. The
    trouble comes when I try to drag a connection from my controller
    instance to the tab view. When I release the drag and click the
    mainTabView entry in the inspector, the little red 'you-can't-do-
    that' warning shows up explaining that 'mainTabView must be of type
    NSTabView'. When I hover the option-drag over what is definitely my
    tab view (it's contained directly by the window), the little blue tag
    says "NSView".

      Is this a bug I should report or has something changed that I
    haven't read about?
  • Hi,

    I'm not able to reproduce this with IB 2.5 (437).  What version are
    you running?  Can you send me the nib?

    Thanks,
    Chuck

    On Jun 11, 2005, at 10:47 AM, SA Dev wrote:

    > Hi, list:
    >
    > I have a controller class with an IBOutlet defined as follows:
    >
    > IBOutlet NSTabView * mainTabView;
    >
    > I dragged it into the nib and the outlet appeared as expected.
    > The trouble comes when I try to drag a connection from my
    > controller instance to the tab view. When I release the drag and
    > click the mainTabView entry in the inspector, the little red 'you-
    > can't-do-that' warning shows up explaining that 'mainTabView must
    > be of type NSTabView'. When I hover the option-drag over what is
    > definitely my tab view (it's contained directly by the window), the
    > little blue tag says "NSView".
    >
    > Is this a bug I should report or has something changed that I
    > haven't read about?
    >
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Cocoa-dev mailing list      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/<fleming...>
    >
    > This email sent to <fleming...>
    >
  • On 6/11/05, SA Dev <dev...> wrote:
    > Hi, list:
    >
    > I have a controller class with an IBOutlet defined as follows:
    >
    > IBOutlet NSTabView * mainTabView;
    >
    > I dragged it into the nib and the outlet appeared as expected. The
    > trouble comes when I try to drag a connection from my controller
    > instance to the tab view. When I release the drag and click the
    > mainTabView entry in the inspector, the little red 'you-can't-do-
    > that' warning shows up explaining that 'mainTabView must be of type
    > NSTabView'. When I hover the option-drag over what is definitely my
    > tab view (it's contained directly by the window), the little blue tag
    > says "NSView".

    Hitting a borderless, tabless tabview (which is what I assume you
    have) instead of its content is a bit difficult. Temporarily give it a
    border and aim for that, or try aiming for the absolute bottom edge of
    its invisible border.
  • This was exactly the problem. I gave it a border and tabs, but I
    was aiming for the middle. Enabling the border *and* tabs made a
    pretty good-sized gap around the top and bottom edges and the blue
    tab changed to "NSTabView" ... thanks, Pontus.

    On Jun 11, 2005, at 2:22 PM, Pontus Ilbring wrote:

    > On 6/11/05, SA Dev <dev...> wrote:
    >
    >> Hi, list:
    >>
    >> I have a controller class with an IBOutlet defined as follows:
    >>
    >> IBOutlet NSTabView * mainTabView;
    >>
    >> I dragged it into the nib and the outlet appeared as expected. The
    >> trouble comes when I try to drag a connection from my controller
    >> instance to the tab view. When I release the drag and click the
    >> mainTabView entry in the inspector, the little red 'you-can't-do-
    >> that' warning shows up explaining that 'mainTabView must be of type
    >> NSTabView'. When I hover the option-drag over what is definitely my
    >> tab view (it's contained directly by the window), the little blue tag
    >> says "NSView".
    >>
    >
    > Hitting a borderless, tabless tabview (which is what I assume you
    > have) instead of its content is a bit difficult. Temporarily give it a
    > border and aim for that, or try aiming for the absolute bottom edge of
    > its invisible border.
    >
  • On Saturday, June 11, 2005, at 07:50PM, Pontus Ilbring wrote:

    > On 6/11/05, SA Dev <dev...>  wrote:
    >>
    >> I have a controller class with an IBOutlet defined as follows:
    >>
    >> IBOutlet NSTabView * mainTabView;
    >>
    >> I dragged it into the nib and the outlet appeared as expected. The
    >> trouble comes when I try to drag a connection from my controller
    >> instance to the tab view. When I release the drag and click the
    >> mainTabView entry in the inspector, the little red 'you-can't-do-
    >> that' warning shows up explaining that 'mainTabView must be of type
    >> NSTabView'. When I hover the option-drag over what is definitely my
    >> tab view (it's contained directly by the window), the little blue tag
    >> says "NSView".
    >
    > Hitting a borderless, tabless tabview (which is what I assume you
    > have) instead of its content is a bit difficult. Temporarily give it a
    > border and aim for that, or try aiming for the absolute bottom edge of
    > its invisible border.

    Alternatively, you can use the "outline" mode of the nib file's Instances view and then you know exactly what you're aiming at. Look at the wee buttons above the vertical scroll bar.
previous month june 2005 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      
Go to today
MindNode
MindNode offered a free license !