mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
53 lines
697 B
C++
53 lines
697 B
C++
/* -*- c++ -*- */
|
|
#include <stdio.h>
|
|
#include "view.h"
|
|
|
|
@implementation CTView
|
|
|
|
-(BOOL)acceptsFirstResponder
|
|
{
|
|
printf ("acceptsFirstResponder\n");
|
|
return YES;
|
|
}
|
|
|
|
-(void) timedUpdate
|
|
{
|
|
printf ("ping\n");
|
|
[self setNeedsDisplay:TRUE];
|
|
}
|
|
|
|
-(BOOL)becomeFirstResponder
|
|
{
|
|
printf ("becomeFirstResponder\n");
|
|
return YES;
|
|
}
|
|
|
|
-(BOOL)resignFirstResponder
|
|
{
|
|
printf ("resignFirstResponder\n");
|
|
return YES;
|
|
}
|
|
|
|
-(void) keyDown: (NSEvent *) theEvent
|
|
{
|
|
printf ("keyDown\n");
|
|
[self interpretKeyEvents: [NSArray arrayWithObject: theEvent]];
|
|
}
|
|
|
|
-(void)noop: (id)sender
|
|
{
|
|
printf ("noop\n");
|
|
}
|
|
|
|
-(BOOL)isFlipped
|
|
{
|
|
return YES;
|
|
}
|
|
|
|
-(void)drawRect: (NSRect)rect
|
|
{
|
|
printf ("here we are!\n");
|
|
}
|
|
|
|
@end
|
|
|