FROM : John Clayton
DATE : Sun Dec 29 17:07:19 2002
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, a.<email_removed> 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_removed>
> 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_removed>
----------------------------------
Ask a question, remain a fool for five minutes
Don't ask a question, remain a fool forever
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sun Dec 29 17:07:19 2002
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, a.<email_removed> 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_removed>
> 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_removed>
----------------------------------
Ask a question, remain a fool for five minutes
Don't ask a question, remain a fool forever
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| <a.griekspoor | Dec 28, 23:05 | |
| John Clayton | Dec 29, 17:07 | |
| John Clayton | Dec 29, 17:13 | |
| Mike Ferris | Dec 29, 19:47 |






Cocoa mail archive

