[Q] How to handle mouseDown when PDFView is in full screen mode?
[Q] How to handle mouseDown when PDFView is in full screen mode?
- Subject: [Q] How to handle mouseDown when PDFView is in full screen mode?
- From: JongAm Park <email@hidden>
- Date: Sun, 10 Oct 2010 12:18:39 -0700
Hello,
I would like to implement on-screen buttons like the ones Preview presents in its full screen mode.
I used this to enter full screen mode.
enterFullScreenMode: withOptions:
When it becomes full screen mode, I pressed mouse button, but it is not processed.
@implementation PDFView ( FullScreenExt )
- (void)mouseDown:(NSEvent *)theEvent
{
NSLog( @"mouseDown handling...");
if( [self isInFullScreenMode] )
{
NSLog( @"Is in full screen mode...");
[self exitFullScreenModeWithOptions:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:NSNormalWindowLevel] forKey:NSFullScreenModeWindowLevel]];
}
else
NSLog( @"Is not in full screen mode...");
[super mouseDown:theEvent];
}
@end
Is there a way to handle mouseDown in fullscreen mode?
are there also some sample codes for on-screen buttons of Preview?
Thanks,
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden