Fuzzy text in NSStatusItem

757 views Asked by At

I'm displaying a statusItem at launch like this:

theItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain];

 NSString *theString = [textField stringValue];
 (textField.stringValue = theString);

    [theItem setTitle:theString];
    [theItem setHighlightMode:YES];

The text looks very fuzzy. How can I clean up the look of the text?

Thanks.

Paul

Here's a screenshot with the digital menu bar clock on top, and NSStatusItem title on bottom:

Digital Clock on top, NSStatusItem title on bottom

2

There are 2 answers

1
Christian L On BEST ANSWER

Looks rather fine to me.

test status bar with "testing.…" in text

Okay, not "perfect" but it's more about uneven scaling than "fuzziness." Is this what you're seeing too?

0
Chris Cieslak On

Have you tried drawing the text into an image and using that image in the NSStatusItem?