• 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
NSStatusItem cleanup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSStatusItem cleanup


  • Subject: NSStatusItem cleanup
  • From: Philip George <email@hidden>
  • Date: Sat, 4 Jun 2005 13:30:24 -0500

When an NSStatusItem quits or is otherwise removed from the menu bar, other NSStatusItems that were sitting to its left, do not scoot over, leaving a big hole where the removed status item once sat.

What can I do to play nicely and clean up after myself, so that the remaining NSStatusItems will scoot to the right after I remove myself from the menu bar?

I've noticed that switching apps -- and thus switching menu bars -- causes all the remaining NSStatusItems to scoot to the right, filling the hole.

How can I trigger that same behavior as I quit my app?

Note that my app does not have a visible menu in the menu bar. It runs as LSBackgroundOnly .

- Philip



_______________________________________________
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


  • Follow-Ups:
    • Re: NSStatusItem cleanup
      • From: Rosyna <email@hidden>
    • Re: NSStatusItem cleanup
      • From: Philip George <email@hidden>
  • Prev by Date: Printing challenge with NSTextView and linked view
  • Next by Date: Memory management + NSScanner
  • Previous by thread: Printing challenge with NSTextView and linked view
  • Next by thread: Re: NSStatusItem cleanup
  • Index(es):
    • Date
    • Thread