• 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: "[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


References: 
 >Re: NSStatusItem position problem (From: "[nexUmoja] Fabian Jäger" <email@hidden>)

  • Prev by Date: Re: Key Value Observing?
  • Next by Date: Re: How can I create a multipage PDF?
  • Previous by thread: Re: NSStatusItem position problem
  • Next by thread: Core data app & data loss
  • Index(es):
    • Date
    • Thread