Re: Scrolling text in Status Item - adding a menu
Re: Scrolling text in Status Item - adding a menu
- Subject: Re: Scrolling text in Status Item - adding a menu
- From: Eric Blanpied <email@hidden>
- Date: Mon, 9 Oct 2006 10:43:44 -0700
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