A Custom Window for a Game

Jordan
Unregistered
 
Post: #1
How do I make a customized window in cocoa for graphic purposes?

What I want to do:

-allocate and intitalize window 100 x 100 pixels in size, but without the usuals: title bar, minimize button, etc.

-make the alpha value of the window transparent, so the rectangle that forms the window isn't seen

-create a graphics view over the window so that any opaque drawing on top of the window may be used to make custom circular window for my game

The best example of what I mean already exists. It's the floating clock that comes with OS X 10.3.5. In analog mode it floats atop windows. It can be moved around with mouse drag. But, I don't have any hints from my books or from the examples from Xcode.

How do I create this kind of window and view?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
GIYF. I found this quickly enough: http://developer.apple.com/samplecode/Ro...indow.html
Quote this message in a reply
Jordan
Unregistered
 
Post: #3
Thank you. I'll let you know how this artical helps.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Objective-C: drawing a custom class to a custom view GryphonClaw 1 4,130 Dec 10, 2004 03:32 AM
Last Post: GryphonClaw