Re: [Q] Selecting "selected" tab views
Re: [Q] Selecting "selected" tab views
- Subject: Re: [Q] Selecting "selected" tab views
- From: Mark de Jong <email@hidden>
- Date: Tue, 24 Sep 2002 12:19:37 -0700
Finlay,
Thanks for the response.
Yeah, I've played a lot with the delegates for NSTabView and the calls
you mention do NOT get called if you click on the currently selected
tab.
However, I didn't know about "PBXSlidingTabViews". Is that a class I
could use in my program or is it a private class? I'll try to find some
docs on those.
-- Mark
On Tuesday, September 24, 2002, at 11:40 AM, Finlay Dobbie wrote:
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.