Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // AppDelegate.m
- - (void)applicationDidFinishLaunching:(NSNotification*)notification {
- [[self window] makeKeyAndOrderFront:self];
- [[self fooView] enterFullScreenMode:[NSScreen mainScreen] withOptions:nil];
- }
- // FooView.m
- - (void)keyDown:(NSEvent*)event {
- NSLog(@"%@ %@ - %@", self.className, NSStringFromSelector(_cmd), event);
- [self interpretKeyEvents:[NSArray arrayWithObject:event]];
- }
- - (void)cancelOperation:(id)sender {
- NSLog(@"%@ %@ - %@", self.className, NSStringFromSelector(_cmd), sender);
- [self exitFullScreenModeWithOptions:nil];
- }
- - (void)cancelOperation:(id)sender {
- NSLog(@"%@ %@ - %@", self.className, NSStringFromSelector(_cmd), sender);
- [self exitFullScreenModeWithOptions:nil];
- [self.window makeFirstResponder:self];
- }
- [self.view.window performSelector:@selector(makeKeyAndOrderFront:)
- withObject:nil
- afterDelay:0];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement