Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.