Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / January 2006



Tip: Looking for answers? Try searching our database.

Grey user notifications in OS X

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew Ebling - 24 Jan 2006 21:35 GMT
Does anyone know how to create the grey on-screen user prompts which
are displayed when you press F12/Eject, or when you adjust the screen
brightness or volume control on a laptop?

All of my experience to date is for drawing within ordinary windows,
let alone drawing straight to the screen and with transparency.

I'm not asking for a complete solution, just a few pointers of where to
get started (any particular Cocoa classes that I should check out), or
an overall approach to adopt.

Many thanks,

Andrew
Gregory Weston - 25 Jan 2006 03:27 GMT
> Does anyone know how to create the grey on-screen user prompts which
> are displayed when you press F12/Eject, or when you adjust the screen
> brightness or volume control on a laptop?

Trivial, but not obvious. You can start with Apple's sample code for a
round translucent window.

<http://developer.apple.com/samplecode/RoundTransparentWindow/RoundTransp
arentWindow.html>

> All of my experience to date is for drawing within ordinary windows,
> let alone drawing straight to the screen and with transparency.

Don't worry; you're not drawing straight to the screen. It's just a
window that happens to not be opaque. It's actually quite
straightforward. Send e-mail if you get stuck.

G

Signature

"Congurutulation!!!" - The subject line on some spam I received last night.
I have no idea what it means, but it's such a cool "word" (by which I mean
pronouncable sequence of letters) regardless.

Andrew Ebling - 25 Jan 2006 08:03 GMT
>> Does anyone know how to create the grey on-screen user prompts which
>> are displayed when you press F12/Eject, or when you adjust the screen
[quoted text clipped - 12 lines]
> window that happens to not be opaque. It's actually quite
> straightforward. Send e-mail if you get stuck.

Hi Gregory,

Thanks very much - _exactly_ what I was looking for.  As you say - it's
easy when you know how :-).

thanks again,

Andrew
Clark S. Cox III - 25 Jan 2006 13:28 GMT
> Does anyone know how to create the grey on-screen user prompts which
> are displayed when you press F12/Eject, or when you adjust the screen
[quoted text clipped - 6 lines]
> get started (any particular Cocoa classes that I should check out), or
> an overall approach to adopt.

If you want to post notifications like this to the user, I'd suggest
not re-inventing the wheel. Check out Growl: <http://growl.info/>

Signature

Clark S. Cox, III
clarkcox3@gmail.com

Andrew Ebling - 28 Jan 2006 16:49 GMT
>> Does anyone know how to create the grey on-screen user prompts which
>> are displayed when you press F12/Eject, or when you adjust the screen
[quoted text clipped - 9 lines]
> If you want to post notifications like this to the user, I'd suggest
> not re-inventing the wheel. Check out Growl: <http://growl.info/>

Thanks for the tip!

Is it possible to bundle Growl into an application?  I really hate it
when I download software and then have to go and download some random
framework to make it work - goes completely against the "just works"
thing.  If I wanted life to be that much hassle, I'd use Linux ;-).

Andy
Gregory Weston - 29 Jan 2006 16:05 GMT
> >> Does anyone know how to create the grey on-screen user prompts which
> >> are displayed when you press F12/Eject, or when you adjust the screen
[quoted text clipped - 16 lines]
> framework to make it work - goes completely against the "just works"
> thing.  If I wanted life to be that much hassle, I'd use Linux ;-).

Growl use requires embedding one of two frameworks. One of those
frameworks has an integrated installer.

Adding Growl will increase the size of your executable by about 250k for
just the support, 1.6M for the installer.

Signature

"Congurutulation!!!" - The subject line on some spam I received last night.
I have no idea what it means, but it's such a cool "word" (by which I mean
pronouncable sequence of letters) regardless.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.