Re: Preventing windows from being dragged
Re: Preventing windows from being dragged
- Subject: Re: Preventing windows from being dragged
- From: Jason Coco <email@hidden>
- Date: Fri, 22 Aug 2008 16:25:37 -0400
On Aug 22, 2008, at 15:46 , Charles Srstka wrote:
On Aug 21, 2008, at 10:02 PM, Ricky Sharp wrote:
(1) never ever ever capture the display when using AppKit.
This appears to be incorrect, as Apple seems to endorse and even
provides sample code for capturing the screen while using AppKit:
It also appears that Leopard has added some support for this within
AppKit itself... three new methods were added to NSView:
-(BOOL)enterFullScreenMode:(NSScreen *)screen withOptions:
(NSDictionary *)options;
-(void)exitFullScreenModeWithScreen:(NSScreen *)screen;
-(BOOL)isInFullScreenMode;
I just tried them out and they were pretty easy and seemed to work
well enough. I didn't even bother with the options, just sent:
if( ![myView enterFullScreenMode:[NSScreen mainScreen]
withOptions:nil] ) { /* error out */ }Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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