Custom Cocoa Windows?

macrumors 6502a

I'd like to figure out a way to create those cool black-looking style floating palettes that Apple often creates, like the transparent black palette in iPhoto 5 that allows you to adjust brightness, contrast, color levels, etc. I believe these are also used in Motion as well.

Basically it's like those bezel "windows" that come up when you increase or decrease the volume via the keyboard -- they come up for about 3 seconds and are transparent, and they fade away after about a second or so. The "windows" for my Xcode project are going to act similarly and look similar (i.e.: black/gray, partially transparent, all four corners are rounded), except that the delay to fade is going to be different -- on the order of 10 seconds.

Ideally these windows would also be easily accessible via Cocoa methods (and not Carbon, because I'm not entirely familiar with Carbon).

macrumors 68030

Apple's developer page has sample code for a round transparent window. You can probably work from there, although it might be somewhat tricky to duplicate the black Motion/Aperture/iPhoto style windows.

macrumors 603

Apple's developer page has sample code for a round transparent window. You can probably work from there, although it might be somewhat tricky to duplicate the black Motion/Aperture/iPhoto style windows.

Click to expand...

Yup, work from this example to create a custom window with no title bar or border, then you can use

thread startermacrumors 6502a

Apple's developer page has sample code for a round transparent window. You can probably work from there, although it might be somewhat tricky to duplicate the black Motion/Aperture/iPhoto style windows.

Click to expand...

Can you give me a URL? The FunkyOverlayWindow example doesn't show how to modify the shape of a window -- the "funky overlay window" is still rectangular in shape. The cited example of the round window seems to be exactly the thing I need, but I can't find it.

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.