• 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: [SOLVED] Changing the position of a NSStatusItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: [SOLVED] Changing the position of a NSStatusItem
      • From: Peter Maurer <email@hidden>
References: 
 >Changing the position of a NSStatusItem (From: Olivier Lanctôt <email@hidden>)
 >Re: Changing the position of a NSStatusItem (From: Kevin Ballard <email@hidden>)
 >Re: Changing the position of a NSStatusItem (From: Olivier Lanctôt <email@hidden>)

  • Prev by Date: Re: Has anyone used xmllib2 in an X-Code project?
  • Next by Date: Re: No DO connection when tool invoked via SSH
  • Previous by thread: Re: Changing the position of a NSStatusItem
  • Next by thread: Re: [SOLVED] Changing the position of a NSStatusItem
  • Index(es):
    • Date
    • Thread