• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Preventing windows from being dragged
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Preventing windows from being dragged
      • From: "Sean McBride" <email@hidden>
References: 
 >Preventing windows from being dragged (From: Mike <email@hidden>)
 >Re: Preventing windows from being dragged (From: Jason Coco <email@hidden>)
 >Re: Preventing windows from being dragged (From: Mike <email@hidden>)
 >Re: Preventing windows from being dragged (From: Jason Coco <email@hidden>)
 >Re: Preventing windows from being dragged (From: Mike <email@hidden>)
 >Re: Preventing windows from being dragged (From: Ricky Sharp <email@hidden>)
 >Re: Preventing windows from being dragged (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: failing opening socket
  • Next by Date: Re: Preventing windows from being dragged
  • Previous by thread: Re: Preventing windows from being dragged
  • Next by thread: Re: Preventing windows from being dragged
  • Index(es):
    • Date
    • Thread