1

I have TabViewController, and i have Make custom NSView for it TabView which i have inherits in XIB.

Now i have successfully implemented all mouse handle events in TabView and worked.

I want the same events in TabViewController, But i can't.

I have tried with ways which are suggested on forums, blogs and apple docs. But i could not get it.

TabViewController.xib 's custom view of TabView.

enter image description here

TabView with Mouse handle code.

- (BOOL)acceptsFirstResponder {
    return YES;  
}

-(void)mouseDragged:(NSEvent *)theEvent
{
}

-(void)mouseDown:(NSEvent *)theEvent
{
}

-(void)mouseEntered:(NSEvent *)theEvent
{
}

-(void)mouseExited:(NSEvent *)theEvent
{
}

-(void)mouseMoved:(NSEvent *)theEvent
{
}

-(void)mouseUp:(NSEvent *)theEvent
{
}

-(void)keyDown:(NSEvent*)theEvent
{
}

Every mouse methods called. I want this in TabViewController.

If someone have did the same procedure please suggest me.

Solid Soft
  • 1,872
  • 2
  • 25
  • 55
  • How does mouse events come into play with NSTabView? Skipping details is not going to get you anything. – El Tomato Sep 18 '14 at 15:25
  • I m not using NSTabView. TabViewController is name of NSViewController. TabView is NSView which is custom view of TabViewController. – Solid Soft Sep 19 '14 at 05:22

0 Answers0