Re: Clicking the tabview tab...
Re: Clicking the tabview tab...
- Subject: Re: Clicking the tabview tab...
- From: John Clayton <email@hidden>
- Date: Sun, 29 Dec 2002 11:07:19 -0500
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.