continue to solve problem with enterFullScreenMode...
continue to solve problem with enterFullScreenMode...
- Subject: continue to solve problem with enterFullScreenMode...
- From: Carlo Gulliani <email@hidden>
- Date: Mon, 2 Feb 2009 04:32:12 -0800 (PST)
Hi all, on last week i was writing about how to change window decoration after launching. After some manipulation i've got enterFullScreenMode. My app has main window, which has webView. webView is web view object of WebKit class. My webView can send and receive any arguments to/from javascript. It all i wrote in the 3rd class - WebViewController. S if i use enterFullScreenMode with the next code's lines: NSView *view = webView;
NSDictionary *opts = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], NSFullScreenModeAllScreens, nil];
[self makeFirstResponder:view];
if ([view isInFullScreenMode]) [view exitFullScreenModeWithOptions:opts];
else [view enterFullScreenMode:[self screen] withOptions:opts]; for the first, i have class WindowDecoration.h which is subclass of NSWindow. Also i have KeyboardEvents.h, which i use in my info.plist as Principal Class -> KeyboardEvents In KeyboardEvents i listen which of keyboard buttons was pressed, if apple+f, my app must to switch in full screen mode, it works, but when i switch to another mode, my webView start to play from first frame and it doesn't listen WebViewController class. also mouse events doesn't works too( I was trying to add makeFisrstResponder, but i've not got result too. Can you help me to solve it, thanks in advance
_______________________________________________
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