Re: Newbie Question: NSTabView and NSTabViewItem
Re: Newbie Question: NSTabView and NSTabViewItem
- Subject: Re: Newbie Question: NSTabView and NSTabViewItem
- From: Dan Wood <email@hidden>
- Date: Wed, 09 May 2001 09:04:24 -0700
If I'm understanding your question correctly, I think that you haven't
figure out the right technique to put elements into individual tab view
items from within Interface Builder. I had a similar problem until I
just kept clicking on the tab view enough times.
After creating your tabview, double-click, once or twice, within the tab
view area. The highlighting border should change visually in a subtle
way to tell you that this tab view item is active. Then you drag items
into the tab view. They should clip to the bounds of the tab view; they
don't live "on top" of the tab view. Then, double-click to another tab
view item, and you should see that the items you dragged into the first
item should be hidden, and you have a fresh slate for the next tab view
item.
If you do things this way, then when you run the app (or test it with
IB), you will automatically see the items in tab 1 hidden when you click
on tab 2, and so forth.
On Tuesday, May 8, 2001, at 07:41 PM, William Jamieson wrote:
Hello All!!!
I have just started to get stuck into developing Java Cocoa
applications for
the Mac OS X environment. My first project is redeveloping the
FaceSpan/AppleScript server maintenance application I built last year so
that I know what I am trying to achieve.
In this application I have a preferences window with a NSTabView to
break up
the various sections of the preferences window (5 tabs in total). I
have
written a method which can tell which tab has been selected by using my
app
controller as the delegate for the NSTabView.
What I've spent the last 2 days researching and can't figure out is how
can
I display and hide the information on the different screens when the
user
changes the selected tab. For example:
1. The user is currently on tab 1 and the screen shows all the fields
and
info relevant to the first tab.
2. Then the user clicks on tab 2.
How do I hide all the fields and info relevant to the first tab and the
show
all the fields and info relevant to the second tab????
I have looked through all the docs, examples, sample code and apple web
pages I can find and still cannot find an answer.
Any help would be greatly appreciated!!!!!!
Regards
William Jamieson
Systems Developer
Smart Works Systems
_____________________________________________________________
113 Ferrars St Phone: 03) 9696 6851
Southbank Fax: 03) 9690 0092
VIC 3006 Mobile: 0412 715 735
Australia Email: email@hidden
WWW: http://www.smartworks.com.au/
_____________________________________________________________
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
--
Dan Wood
email@hidden
http://www.karelia.com/
http://www.bikealameda.org/
Mac OS X Developer: Online Resume:
http://www.karelia.com/resume.html