• 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: Ricky Sharp <email@hidden>
  • Date: Fri, 22 Aug 2008 17:03:15 -0500


On Aug 22, 2008, at 2:46 PM, 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:


http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/AdvancedDrawing/chapter_9_section_4.html#/ /apple_ref/doc/uid/TP40003290-CH207-DontLinkElementID_8


Hmm...they are not explicit about what they're doing in that doc. It's really about situations where you want complete control over all drawing (e.g. via OpenGL)

Apple engineers on quartz-dev first pointed out the huge problems you can run into if mixing captured displays with AppKit such that AppKit will also be drawing stuff.

You'll end up with numerous issues if attempting, for example, to use NSAlert. Alert windows usually will end up below your content window since its "too high" in the window list.

You can also end up with numerous drawing artifacts.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com



_______________________________________________

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


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: NSURLDownload Tiger Leopard
  • Next by Date: Re: Displaying time
  • Previous by thread: Re: Preventing windows from being dragged
  • Next by thread: Re: Preventing windows from being dragged
  • Index(es):
    • Date
    • Thread