• 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: Implementing a status indicator (like iChat's)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing a status indicator (like iChat's)


  • Subject: Re: Implementing a status indicator (like iChat's)
  • From: David Rio Vierra <email@hidden>
  • Date: Mon, 23 Dec 2002 22:38:03 -1000

Try using an NSImageView and changing its displayed NSImage around. Be sure to setNeedsDisplay:YES the image view whenever you change its image. The files iChat uses to display status are /System/Library/PrivateFrameworks/InstantMessage.framework/Resources/ status-{available,away,idle}.tiff

- Rio

On Monday, December 23, 2002, at 02:07 PM, Dylan McNamee wrote:

I'm writing a little app that monitors whether a couple daemons
are running, and allows you to start/stop another daemon.

In addition to the textual (foo is running) indication, I'd like
to have a colored dot change from green to red (or gray).
The closest analog to this out there is the status button next
to my name on iChat. Can anyone tell me how this thing might
have been implemented? It doesn't seem to be a widget available
in InterfaceBuilder.

I've got two problems with using an NSButton with no label:
1) when it's not got focus, all NSButtons seem to go gray.
2) it's too big
3) (for good measure) when I click on it, it toggles. (NSButtons
don't seem to go into "output-only" mode very well).

I did a little exploring of iChat's nibs in IB, but couldn't
figure out which nib corresponded to the buddy list window.
I did notice one tiff file with an amber gummy of the right size,
but no others. So I suspect it might be using some kind of
NSImage, but how is it doing red and green with only an amber
tiff?

Any ideas?

dylan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Implementing a status indicator (like iChat's)
      • From: Joshua S Emmons <email@hidden>
References: 
 >Implementing a status indicator (like iChat's) (From: Dylan McNamee <email@hidden>)

  • Prev by Date: Re: Implementing a status indicator (like iChat's)
  • Next by Date: Re: NSCFNumber, no pool in place - just leaking
  • Previous by thread: Re: Implementing a status indicator (like iChat's)
  • Next by thread: Re: Implementing a status indicator (like iChat's)
  • Index(es):
    • Date
    • Thread