The dots show in the cell's "highlighted" state. If you send,
[cell setHighlighted: YES];
then you'll get dots... until it gets clicked on, then it
automatically un-highlights itself.
The solution is thus to subclass NSLevelIndicatorCell and override
isHighlighted to always return YES. Seems to work.
I realize this is 10 months late, but I needed the answer to this
myself, figured it out, and thought I should share.
Jeffrey
On Mar 23, 2008, at 11:10 PM, Jens Alfke wrote:
I've put an NSLevelIndicator into a panel, configured it to show
iTunes-style star ratings, and made it editable. Unfortunately it
doesn't draw the dots where stars would go; so if the current rating
is zero stars, the control is completely invisible. This presents a
UI problem, as the user has no idea there's something there to click.
I remember I previously ran into this a few years ago and reported
it — it turned out to be a bug in the cell's implementation in
AppKit. The cell suppresses the dots when it's in a table view and
the row it's in isn't selected [as in iTunes], but the code for this
didn't consider the case where it _wasn't_ in a table view, with the
result that it always suppresses the dots.
Unfortunately I can't remember the workaround, or whether there even
is one. Has anyone else dealt with this?
—Jens_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/jeffrey%40jeffreyearly.com
This email sent to jeff...@jeffreyearly.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com