• 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 08:55:39 +0100

So, [[[myStatusItem view] window] frame] will tell you the position of your status item.
If I have an NSMenuView then the [myStatusItem view] is nil so I can't get the frame.

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.

Phil


On 26 Mar 2007, at 02:38, Jake Sprouse wrote:

So, [[[myStatusItem view] window] frame] will tell you the position of your status item.

As far as setting the custom view back to what it was before, do you mean back to an NSMenuView?
-J


On Mar 25, 2007, at 5:52 PM, Orr Philip wrote:

Hi there all,

I'm really stuck in trying to find the global position and size of my NSStatusItem.

When in debug mode I can see _fWindow, which contains exactly what I need, only its private and can't be used.

Simply I'm looking for its start position along the menubar and its length.

Any thoughts or pointers on this would be much appreciated.

Also, if you attach a custom view to your NSStatusItem can you reset it back to what is was before?

Phil
_______________________________________________

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:
40jakesprouse.net


This email sent to email@hidden


_______________________________________________

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>)

  • Prev by Date: Re: Compositing shrunk cells
  • Next by Date: Re: Localization of standard paths necessary?
  • Previous by thread: Re: NSStatusItem position problem
  • Next by thread: Re: NSStatusItem position problem
  • Index(es):
    • Date
    • Thread