Highlighting NSImageCells in an NSMatrix
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.