Re: [Q] Selecting "selected" tab views
Re: [Q] Selecting "selected" tab views
- Subject: Re: [Q] Selecting "selected" tab views
- From: Finlay Dobbie <email@hidden>
- Date: Tue, 24 Sep 2002 19:40:21 +0100
On Tuesday, September 24, 2002, at 06:30 pm, Mark de Jong wrote:
Is there a way to trap when the current tab is selected?
Did you look at the NSTabView documentation? Specifically:
Methods Implemented by the Delegate
----
- (void)tabView:(NSTabView *)tabView
didSelectTabViewItem:(NSTabViewItem *)tabViewItem
- ((BOOL)tabView:(NSTabView *)tabView
shouldSelectTabViewItem:(NSTabViewItem *)tabViewItem
- (void)tabView:(NSTabView *)tabView
willSelectTabViewItem:(NSTabViewItem *)tabViewItem
I'm trying to implement something like PB's tabs where, if you click
on a tab that's already selected, some action occurs. It appears that
the tab in PB is actually a pushbutton, but that is not the case in
NSTabView.
PB's tabs are actually based on the PBXSlidingTabView class, so they're
not really NSTabViews.
-- Finlay
_______________________________________________
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.