Re: cocoa-dev digest, Vol 1 #899 - 16 msgs
Re: cocoa-dev digest, Vol 1 #899 - 16 msgs
- Subject: Re: cocoa-dev digest, Vol 1 #899 - 16 msgs
- From: Simon Stapleton <email@hidden>
- Date: Tue, 27 Nov 2001 17:10:37 +0000 (GMT)
>
From: Jake <email@hidden>
>
To: Cocoa Dev <email@hidden>
>
Cc: Sam Goldman <email@hidden>
>
Subject: Re: horizontal tabs in TabView
>
>
Yes and yes.(wasn't thinking straight after 10 hours reading cocoa
>
documentation :). How to put tabs at left, right, and bottom?
>
>
thank you.
>
>
> Do you mean vertical, or am I misinterpreting you?
>
>
>
> - Sam
>
>
>
> On 11/26/01 9:24 PM, "Jake" <email@hidden> wrote:
>
>
>
> > I searched the archive but weren't able to find an answer.
>
> > I tried "horizontal tabview", "tab bottom", etc.
>
> >
>
> > So how does one make a horizontal tab like those used in the
left
>
handside
>
> > of the ProjectBuilder? There doesn't seem to be an option to
alter
>
it
>
> > either in the attribute panel in IB nor in the NSTabView Object-
C
>
API.
From the 'Appkit constants' section :
NSTabViewType
typedef enum _NSTabViewType {
NSTopTabsBezelBorder,
NSLeftTabsBezelBorder,
NSBottomTabsBezelBorder,
NSRightTabsBezelBorder
NSNoTabsBezelBorder,
NSNoTabsLineBorder,
NSNoTabsNoBorder
} NSTabViewType;
Now, I'm not sure if anything other than NSTopTabsBezelBorder or
NSNoTabs* actually work or not.
You'll have to set them programmatically if they do, I guess.
<<Looks in NSTabView docs>>
Ah. Almost exactly right at the top of the documentation for
NSTabView, just under the class description...
NSBottomTabsBezelBorder : Tabs are on the bottom of the view with a
bezeled border. Not yet supported. Defaults to NSTopTabsBezelBorder
NSLeftTabsBezelBorder : Tabs are on the left of the view with a
bezeled border. Not yet supported. Defaults to NSTopTabsBezelBorder
NSRightTabsBezelBorder : Tabs are on the right of the view with a
bezeled border. Not yet supported. Defaults to NSTopTabsBezelBorder
So, I'd guess you can't do it yet. There's actually quite a lot of
stuff in the PB UI that can't be done 'out of the box' with standard
Cocoa, like non-bezeled tabviews, teensy tabviews, click-to-hide
tabviews, etc.
But all in all, it wouldn't have been a a difficult FM to R ;-) The
archives here are good, but the Apple docs are fair to middlin'[1] as
well.
Simon
[1] JOKE! They're good, I like them, I was joking, please don't
flame me.
--
PGP Key ID : 0x50D0698D
--
If the answer isn\'t obvious, the question is a distraction. Go find
an easier question.