Hello,
I am having some issues with the mouseDown method.
Here is my code:
This code is inside WelcomeView.h (Subclass of NSView). window is an IBOutlet NSWindow and tileView is an IBOutlet NSView.
Why won't the window's tile change and why won't the view change. I get no errors or warnings the code just doesn't work. I put an NSLog inside the mouseDown: method to see if WelcomeView was taking any clicks and it was. The NSLog worked, but the setTitle and setContentView don't
Any Ideas?
Thanks!
I am having some issues with the mouseDown method.
Here is my code:
Code:
-(void)mouseDown:(NSEvent *)theEvent{
[window setTitle:@"News Tiles"];
[window setContentView:tileView];
}
Why won't the window's tile change and why won't the view change. I get no errors or warnings the code just doesn't work. I put an NSLog inside the mouseDown: method to see if WelcomeView was taking any clicks and it was. The NSLog worked, but the setTitle and setContentView don't
Any Ideas?
Thanks!