• 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
How does Pixie work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How does Pixie work?


  • Subject: How does Pixie work?
  • From: Stonewall Ballard <email@hidden>
  • Date: Wed, 03 Jul 2002 19:32:02 -0400

How does Pixie get the screen bits under the cursor?

I was told that you could use an invisible window to read the screen,
presumably by calling something like:

[[NSBitmapImageRep alloc] initWithFocusedViewRect: myFrame]

I've made a very nice transparent window by setting its opacity to NO, and
filling its content view with clearColor, but the image I get from the above
operation is just gray.

Strangely, some other code I've seen for grabbing the screen by covering it
with a large transparent window and doing the above operation doesn't work
on my Macs.

For example, see <http://borkware.com/quickies/one?topic=Graphics>. This
produces a "background pinstripe" image on my TiBook and my desktop G4, but
apparently, it works on other systems. Is this related?

TIA for any help, esp. pointers to sample code.

- Stoney

--
Stonewall Ballard
email@hidden http://www.sb.org/stoney/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How does Pixie work?
      • From: Finlay Dobbie <email@hidden>
    • Re: How does Pixie work?
      • From: Thomas Jahnsen <email@hidden>
  • Prev by Date: Re: [Solved] NSOutlineView init problem, thanks Brian
  • Next by Date: Re: NSEnumerator ordering ?
  • Previous by thread: Re: [Solved] NSOutlineView init problem, thanks Brian
  • Next by thread: Re: How does Pixie work?
  • Index(es):
    • Date
    • Thread