Skip navigation.
 
mlPosition of NSStatusItem
FROM : [nexUmoja] Fabian Jäger
DATE : Mon Nov 19 23:14:09 2007

Hey guys,
is there a way to get the position of an NSStatusItem in the system's 
menubar? At the moment I use the following hack:

@implementation NSStatusItem (Hack)
- (NSRect)hackFrame
{
   return [_fWindow frame];
}
@end

But unfortunately I only get (-34.0, 0.0) as the position, which does 
not seem like screen-space coordinates :(

Fabian
nexUmoja.org

Related mailsAuthorDate
mlPosition of NSStatusItem [nexUmoja] Fabian… Nov 19, 23:14
mlRe: Position of NSStatusItem Joachim Deelen Nov 20, 22:11
mlRe: Position of NSStatusItem Joachim Deelen Nov 20, 22:57
mlRe: Position of NSStatusItem [nexUmoja] Fabian… Nov 20, 23:03
mlRe: Position of NSStatusItem Joachim Deelen Nov 20, 23:34
mlRe: Position of NSStatusItem [nexUmoja] Fabian… Nov 20, 23:59
mlRe: Position of NSStatusItem Peter Maurer Nov 22, 09:09
mlRe: Position of NSStatusItem [nexUmoja] Fabian… Nov 22, 11:37
mlRe: Position of NSStatusItem Joachim Deelen Nov 23, 23:26
mlRe: Position of NSStatusItem [nexUmoja] Fabian… Nov 24, 03:18