Re: NSStatusItem position problem
Re: NSStatusItem position problem
- Subject: Re: NSStatusItem position problem
- From: "[nexUmoja] Fabian Jäger" <email@hidden>
- Date: Tue, 11 Dec 2007 21:12:26 +0100
Hey guys,
can anyone try this code and tell me if there is really a problem
with 10.4 ?!
////////////////////////////////////////////////////////////////////////
//
@interface NSStatusItem (Hack)
- (NSRect)hackFrame;
@end
@implementation NSStatusItem (Hack)
- (NSRect)hackFrame
{
return [_fWindow frame];
}
@end
With this:
NSLog(@"Menu coords x: %f, y: %f\n", [myStatusItem
hackFrame].origin.x, [myStatusItem hackFrame].origin.y);
////////////////////////////////////////////////////////////////////////
//
Fabian
On 05.12.2007, at 17:20, [nexUmoja] Fabian Jäger wrote:
I have similar problems and I checked my code multiple times for
typos :(
I found out that it works perfectly with Leopard and has problems
under 10.4.11 ?!
Fabian
On 27.11.2007, at 15:24, Uli Kusterer wrote:
Am 26.11.2007 um 20:06 schrieb Federico:
NSLog(@"Menu coords x: %f, y: %f\n", [myStatusItem
hackFrame].origin.x, [myStatusItem hackFrame].origin.x);
No idea why you get such weird values, but check for typos. The
code you posted prints the "x" value twice... maybe you have
similar typos elsewhere?
_______________________________________________
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