• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Q] Selecting "selected" tab views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: [Q] Selecting "selected" tab views
      • From: j o a r <email@hidden>
    • Re: [Q] Selecting "selected" tab views
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: [Q] Selecting "selected" tab views (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: [Q] Selecting "selected" tab views
  • Next by Date: Re: [Q] Selecting "selected" tab views
  • Previous by thread: Re: [Q] Selecting "selected" tab views
  • Next by thread: Re: [Q] Selecting "selected" tab views
  • Index(es):
    • Date
    • Thread