• 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: Rating-style LevelIndicator not showing dots
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rating-style LevelIndicator not showing dots


  • Subject: Re: Rating-style LevelIndicator not showing dots
  • From: Jeffrey J.Early <email@hidden>
  • Date: Sat, 31 Jan 2009 18:30:17 -0800

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 (email@hidden)

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:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Prev by Date: Re: How to draw text with fade out effect?
  • Next by Date: Re: Flowing text between text fields
  • Previous by thread: Re: Anyone actually used OpenMP with cocoa on leopard 10.5?
  • Next by thread: NSTextField with an date formatting
  • Index(es):
    • Date
    • Thread