Re: [SOLVED] Changing the position of a NSStatusItem
Re: [SOLVED] Changing the position of a NSStatusItem
- Subject: Re: [SOLVED] Changing the position of a NSStatusItem
- From: Olivier Lanctôt <email@hidden>
- Date: Fri, 12 Nov 2004 17:12:19 -0500
pass the biggest SInt32 possible (2147483647)
Be sure to actually define the @interface for the hidden methods,
because it won't work otherwise. (no idea why)
On Fri, 12 Nov 2004 16:28:44 -0500, Olivier Lanctôt
<email@hidden> wrote:
> Ok.. last thing I need to know is... what are the priorities
> constants.. searched the headers and found none...
>
> Hmmm!
>
>
>
>
> On Fri, 12 Nov 2004 15:28:35 -0500, Kevin Ballard <email@hidden> wrote:
> > 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
> >
> >
> >
>
>
> --
> Olivier
>
--
Olivier
_______________________________________________
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