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.

2
  • How does mouse events come into play with NSTabView? Skipping details is not going to get you anything. Commented Sep 18, 2014 at 15:25
  • I m not using NSTabView. TabViewController is name of NSViewController. TabView is NSView which is custom view of TabViewController. Commented Sep 19, 2014 at 5:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.