• 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
Highlighting NSImageCells in an NSMatrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Highlighting NSImageCells in an NSMatrix


  • Subject: Highlighting NSImageCells in an NSMatrix
  • From: Michael Becker <email@hidden>
  • Date: Fri, 30 Jan 2004 04:17:54 +0100

Hi!

So I got my NSMatrix with NSImageCells. I can select my cells, but they don't get highlighted when I do. After changing the prototype-cell to an NSTextFieldCell, they get highlighted nicely. I tried [ matrix setDrawsCellBackground:NO], didn't work. Then I subclassed NSImageCell to override the drawWithFrame:inRect:inView: method so it would directly call drawInteriorWithFrame, didn't work either. I even made drawWithFrame: draw nothing at all to the screen.

I assume that, when trying to highlight a cell, NSMatrix sends the appropriate message to the appropriate cell. So I guess that I have to do something with the cell's highlighting methods... but I thought highlighting an NSImageCell was kind of a common thing and not something that you're supposed to code yourself.

Am I just missing out on something very simple, or do I really have to subclass NSImageCell and provide my own highlighting-code?

- Michael
_______________________________________________
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: Highlighting NSImageCells in an NSMatrix
      • From: Michael Becker <email@hidden>
  • Prev by Date: NSFileWrapper not accepting local disks
  • Next by Date: Help with NSMatrix (for displaying images from iPhoto)
  • Previous by thread: NSFileWrapper not accepting local disks
  • Next by thread: Re: Highlighting NSImageCells in an NSMatrix
  • Index(es):
    • Date
    • Thread