• 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: Trouble centering window after mode switch (solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble centering window after mode switch (solved)


  • Subject: Re: Trouble centering window after mode switch (solved)
  • From: Ricky Sharp <email@hidden>
  • Date: Tue, 30 Jan 2007 18:52:07 -0600

On Jan 30, 2007, at 6:21 PM, John Stiles wrote:

As I understand it, you can't capture a display and then use the window server to draw on it. It will work sometimes on some machines, but not all the time on all machines.
I think a captured display is basically only good for OpenGL, or you can blit on it yourself (the OS provides a CG call to get the base address and rowbytes of the framebuffer).
If this is an overgeneralization, I hope someone else on-list can provide clarification.

This is correct. I did respond to the original e-mail, but perhaps it never got through. Basically, yes, you cannot mix AppKit with captured displays. Things may or may not work.


Avoid the cocoa-dev sample (named 'slideshow' something). There are Apple examples that show how to use OpenGL or even direct-pixel access to draw into a captured display.

For details as to the why, search quartz-dev (subject 'Alerts above a shielding window').

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Trouble centering window after mode switch (solved)
      • From: "Matt R" <email@hidden>
References: 
 >Re: Trouble centering window after mode switch (solved) (From: "Matt R" <email@hidden>)
 >Re: Trouble centering window after mode switch (solved) (From: John Stiles <email@hidden>)

  • Prev by Date: Enabling/Disabling specific rows in an NSTableView with Cocoa Bindings
  • Next by Date: return YES from validateMenuItem but menu item remains disabled
  • Previous by thread: Re: Trouble centering window after mode switch (solved)
  • Next by thread: Re: Trouble centering window after mode switch (solved)
  • Index(es):
    • Date
    • Thread