• 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: What is Mac's "custom" for an agent to display its GUI?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is Mac's "custom" for an agent to display its GUI?


  • Subject: Re: What is Mac's "custom" for an agent to display its GUI?
  • From: Conrad Shultz <email@hidden>
  • Date: Tue, 16 Nov 2010 17:45:52 -0800

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/16/10 5:27 PM, eveningnick eveningnick wrote:
> Hello!
> I have to write an application, that should run on the background.
> When the user needs, it should display some control panel. On Windows
> system i would have used System tray, and an icon there - when the
> user clicks on that icon, it displays some GUI. but what is the Mac's
> usual practice? I am thinking that the analog to that tray application
> is an agent, launched by launchd. On what event it is considered to be
> good to trigger that "control panel"?
> All i could think of - is installing a global event tap (but i need
> accessibility Enabled then all the time - it is neither a good idea)
> and watch some Shortcut pressed on a keyboard.

If I'm understanding what you are asking, why not put an icon in the
menu bar?  I'm referring to the icon(s) to the left of the clock, e.g.
volume, Wi-Fi, Bluetooth, etc.  The pertinent classes are NSStatusItem
and NSStatusBar.  (Be sure to read the usability notes in the latter.)

Several applications use this for what I think you describe.  (I
currently have NSStatusItems from Tweetie, Dropbox, and Growl.)

> Another idea was to create an item in "System preferences" (but, could
> it be done? And how?).

See NSPreferencePane, probably by way its associated Programming Guide
at
http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/PreferencePanes/PreferencePanes.html

> And where should I install that application? Installing in
> /Applications doesn't seem to be nice, because it's not really a
> full-gui applicatlion, It's rather some kind of background system
> helper.

I will let someone more experienced in these matters address this issue;
I will note that Dropbox, Google Notifier, and QuickSilver all fit your
general description and are all in Applications.  This does not mean you
won't have a LaunchDaemon or the like to get things going as well.

- --
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFM4zPQaOlrz5+0JdURAntiAJ4sWnl2v+q+XnWKCW+nA814hFj6uACeMG9M
UMwDLojEyKX8vBWQ+fDojxE=
=XDYe
-----END PGP SIGNATURE-----
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >What is Mac's "custom" for an agent to display its GUI? (From: eveningnick eveningnick <email@hidden>)

  • Prev by Date: Re: What is Mac's "custom" for an agent to display its GUI?
  • Next by Date: Re: What is Mac's "custom" for an agent to display its GUI?
  • Previous by thread: Re: What is Mac's "custom" for an agent to display its GUI?
  • Next by thread: Re: What is Mac's "custom" for an agent to display its GUI?
  • Index(es):
    • Date
    • Thread