• 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: Re: Scrolling text in Status Item - adding a menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Scrolling text in Status Item - adding a menu


  • Subject: Re: Re: Scrolling text in Status Item - adding a menu
  • From: mercer <email@hidden>
  • Date: Mon, 30 Oct 2006 21:15:44 -0500

I don't have any advice, Eric.


But I'd really, really like to know if anyone knows how Apple puts the pop-down slider in the volume control menubar item.


Because if someone could tell me how that's done, I might be able to finish my idea of having a menubar item (an NSStatusItem, actually) pop-down a textview with some text in it when the user clicks on it.


-m


On 10/9/06, Eric Blanpied <email@hidden> wrote:
OK, I've got the scrolling text working well in my NSStatusItem. I
used setView to set a custom view, drew the text into an image an
then used compositeToPoint: fromRect: to animate the text.

Now, I need to make the NSStatusItem drop a menu when clicked, and
that's got me stumped. It seems that when you use setView: you give
up on ALL the menu behavior. Even using setMenu: and then
popUpStatusItemMenu: won't make a menu appear. If I leave out the
setView: call it works fine. It's as if you get to use either
setView: or setMenu:, but not both.

Any advice?

thanks

-eric

On Oct 8, 2006, at 12:43 pm, Eric Blanpied wrote:

> Thanks, but it sounds like you're providing advice on sizing the
> view, while what I'm really interested in is advice about animating
> (scrolling right-to left) text in the menubar, presumably in a view.
>
> Does anyone have any pointers?
>
> thanks
>
> -e
>
> On Oct 8, 2006, at 12:00 pm, Philippe Heinrich Regenass wrote:
>
>> hai
>>
>> i think you can break the text with "\n" and then you can read the
>> height from text to resize your view or textfield....
>>
>> i don't know...
>>
>> best regards
>>
>> philippe
>> Am 08.10.2006 um 20:48 schrieb Eric Blanpied:
>>
>>> I need to create an NSStatusItem which displays a bit of
>>> horizontally scrolling text, much like the messages the airport
>>> menu extra displays about connection status and so on.
>>>
>>> My hunch is that the best approach is to create a View-based
>>> NSStatusItem with a static width, and do some sort of animation
>>> with the text. I've never done anything like this, though, so any
>>> advice, pointers, samples would be really helpful.
>>>
>>> thanks
>>>
>>> -e
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Cocoa-dev mailing list      (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>> 40treeinspired.ch
>>>
>>> This email sent to email@hidden
>>
>
> _______________________________________________
> 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

 _______________________________________________
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

_______________________________________________
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: Re: Scrolling text in Status Item - adding a menu
      • From: "Alan Smith" <email@hidden>
References: 
 >Scrolling text in Status Item (From: Eric Blanpied <email@hidden>)
 >Re: Scrolling text in Status Item (From: Philippe Heinrich Regenass <email@hidden>)
 >Re: Scrolling text in Status Item (From: Eric Blanpied <email@hidden>)
 >Re: Scrolling text in Status Item - adding a menu (From: Eric Blanpied <email@hidden>)

  • Prev by Date: Re: how does one split a block of newline-separated text into an NSArray of NSStrings?
  • Next by Date: Re: Re: Scrolling text in Status Item - adding a menu
  • Previous by thread: Re: Scrolling text in Status Item - adding a menu
  • Next by thread: Re: Re: Scrolling text in Status Item - adding a menu
  • Index(es):
    • Date
    • Thread