• 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: Clicking the tabview tab...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clicking the tabview tab...


  • Subject: Re: Clicking the tabview tab...
  • From: Mike Ferris <email@hidden>
  • Date: Sun, 29 Dec 2002 10:47:41 -0800

The control in Project Builder is actually a subclass of NSSplitView, not NSTabView. It implements the tabbing behavior itself while inheriting the split view behavior.

Mike


Begin forwarded message:

From: John Clayton <email@hidden>
Date: Sun Dec 29, 2002 8:07:19 AM US/Pacific
To: email@hidden
Cc: email@hidden
Subject: Re: Clicking the tabview tab...

I am not sure this is the best way to accomplish this, but I simply
subclassed NSTabView and implemented my own mouse down handler, keeping
track of the selected tab and then toggling the tab view.


- (void)mouseDown:(NSEvent *)theEvent {
[super mouseDown:theEvent];
if([[self selectedTabViewItem] isEqual:lastItem] && [theEvent
clickCount] < 2) {
[projectController toggleInSplitView:self];
}
lastItem = [self selectedTabViewItem];
}


On Saturday, December 28, 2002, at 05:05 PM, email@hidden wrote:

Another small question...
After searching the archives I can't really find a lead to implement
the following...
I would like to imitate the tabview/splitview combination of
projectbuilder. In other words, if I click the tab of a tabviewitem, a
splitview should collapse/expand or resize. However, I can't find an
action that is posted upon clicking the tab. One of the problems lies
in the fact that the delegate shouldselect tabviewitem isn't triggered
if the tabviewitem is already selected.

Maybe someone from the project builder team can help me on the way...
Thanks!
Alex
*****
LabAssistant - "Organize your life!"
http://www.mekentosj.com/labassistant
_______________________________________________
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.


Regards,

John Clayton

----------------------------------
email@hidden
----------------------------------
Ask a question, remain a fool for five minutes
Don't ask a question, remain a fool forever
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Re: Clicking the tabview tab... (From: John Clayton <email@hidden>)

  • Prev by Date: Re: Best way to get different events for a button mouseDown and mouseUp?
  • Next by Date: Re: multithreading limits?
  • Previous by thread: Re: Clicking the tabview tab...
  • Next by thread: handling tab overflow in a tab view
  • Index(es):
    • Date
    • Thread