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

Re: NSStatusItem position problem


  • Subject: Re: NSStatusItem position problem
  • From: Orr Philip <email@hidden>
  • Date: Mon, 26 Mar 2007 12:19:13 +0100

Hi Uli,

I was looking to even trying to find a way to save the current state of the NSStatusItem MenuView, insert my own NSView, that at least would allow me to use the [[[myStatusItem view] window] frame]. When finished returning the view back to the original menu again and destroying the NSView, that you would think, would be the easiest solution.
Philip



On 26 Mar 2007, at 09:42, Uli Kusterer wrote:

Am 26.03.2007 um 09:55 schrieb Orr Philip:
As far as setting the custom view back to what it was before, do you mean back to an NSMenuView?
Yes, back to my menu item again.

I hope there's a better way, but what you could do is create two status items, one with the menu and one with a view or whatever, and then set the width of the one you don't need to 0, thus effectively hiding it.


My first thought was to recreate the status item each time, but since IIRC status items get appended to the menu bar, that would mean that if someone else puts up a status item as well, your item would change places.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de




_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: NSStatusItem position problem
      • From: Uli Kusterer <email@hidden>
References: 
 >NSStatusItem position problem (From: Orr Philip <email@hidden>)
 >Re: NSStatusItem position problem (From: Jake Sprouse <email@hidden>)
 >Re: NSStatusItem position problem (From: Orr Philip <email@hidden>)
 >Re: NSStatusItem position problem (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Core Data Fetched Property: fetching children
  • Next by Date: Re: Newbie: Encoding NSData to a string
  • Previous by thread: Re: NSStatusItem position problem
  • Next by thread: Re: NSStatusItem position problem
  • Index(es):
    • Date
    • Thread