Re: Changing the position of a NSStatusItem
Re: Changing the position of a NSStatusItem
- Subject: Re: Changing the position of a NSStatusItem
- From: Kevin Ballard <email@hidden>
- Date: Fri, 12 Nov 2004 15:28:35 -0500
Since you're going with hidden methods, I'd suggest looking at
NSStatusBar's
- (id)_statusItemWithLength:(float)fp8 withPriority:(int)fp12;
rather than NSStatusItem, seeing how the standard method to create an
NSStatusItem and insert it into the menubar is with NSStatusBar's
-statusItemWithLength:.
On Nov 12, 2004, at 1:46 PM, Olivier Lanctôt wrote:
I'm wondering how some apps change the position of their NSStatusItems.
From what IMve seen class dumped, the answer lies in the private
method:
@interface NSStatusItem (NSStatusItem_Private)
- (id)_initInStatusBar:(id)fp8 withLength:(float)length
withPriority:(int)priority;
<snip>
@end
But I have no idea what the priority argument needs to be.. I tried
-1, 0, 10, 100....
Any pointers?
--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden