• 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: Position of my item in the statusBar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Position of my item in the statusBar


  • Subject: Re: Position of my item in the statusBar
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 17 Sep 2012 14:17:40 -0700

On Mon, Sep 17, 2012, at 02:12 PM, Tim Schröder wrote:
> Use something like this:
>
> NSRect frame = [[statusItem valueForKey:@"window"] frame];

Don't do this. -[NSStatusItem window] is private API and is not
guaranteed to exist.

Create a view, assign it to your status item, and use that for your
frame.

--Kyle Sluder

_______________________________________________

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


  • Follow-Ups:
    • Re: Position of my item in the statusBar
      • From: Erik Stainsby <email@hidden>
References: 
 >Position of my item in the statusBar (From: Erik Stainsby <email@hidden>)
 >Re: Position of my item in the statusBar (From: Tim Schröder <email@hidden>)

  • Prev by Date: Re: Position of my item in the statusBar
  • Next by Date: Re: Position of my item in the statusBar
  • Previous by thread: Re: Position of my item in the statusBar
  • Next by thread: Re: Position of my item in the statusBar
  • Index(es):
    • Date
    • Thread