Re: Highlighting NSImageCells in an NSMatrix
Re: Highlighting NSImageCells in an NSMatrix
- Subject: Re: Highlighting NSImageCells in an NSMatrix
- From: Michael Becker <email@hidden>
- Date: Fri, 30 Jan 2004 14:22:47 +0100
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?
I have the feeling that there really is no "simple" way to do that. So
if anybody knows how to achieve this, I'd be happy to know :)
Thanks,
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.