• 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: Can I draw directly to the screen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I draw directly to the screen?


  • Subject: Re: Can I draw directly to the screen?
  • From: "Corey O'Connor" <email@hidden>
  • Date: Tue, 8 Feb 2005 10:24:51 -0800

You don't actually draw "directly" to the screen. You instead draw to
a borderless window with a transparent background. If the window is at
the frontmost layer and OS X handles the transparent background
correctly, then you can get all the features of drawing directly to
the screen with just drawing to a view like normal. Even OpenGL if the
system supports it. :-)

I'll see if I can't find some sample code I wrote a long while ago to
do this, but somebody else probably has more solid advice ;-)

-Corey O'Connor


On Tue, 8 Feb 2005 11:17:39 -0700, Fei Li <email@hidden> wrote:
>
> Hello all,
> I'd like to let user select a rectangle area on the screen, just like
> Apple's Grab under Applications\Utilities. When I select area on screen,
> seems I use mouse drawing a red rectangle directly to screen. In display's
> preference pane, in arrangement tab, when I select a screen, it draw a red
> frame around that screen, seems also draw directly to that screen. Usually I
> make drawings in custom view, but these two are quite different. If anyone
> know how Apple did these?
>
> Thanks for any information!
> Fei
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>


--
-Corey O'Connor
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Can I draw directly to the screen? (From: "Fei Li" <email@hidden>)

  • Prev by Date: Can I draw directly to the screen?
  • Next by Date: Drag and Drop with tableviews...
  • Previous by thread: Can I draw directly to the screen?
  • Next by thread: Drag and Drop with tableviews...
  • Index(es):
    • Date
    • Thread