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: Sun, 1 Feb 2004 15:28:42 +0100
Here's the method you need to implement:
- (void)setHighlighted:(BOOL)flag
Hm, for testing purposes I tried to invoke NSRectFill([[ self
controlView] bounds]); but nothing happened. I actually think my
problem goes a little deeper. Maybe this is complete nonsense, but it
"feels" like this is happening:
The ImageView completely draws itself over the Cell, so that the
highlighting (performed on the cell) is overdrawn. Maybe I get this
feeling because in IB is created a matrix of NSImageViews, having 1 row
and 4 cols, and the ImageViews completely fill a cell.
In awakeFromNib is set the prototype-cell to NSImageCell.
Programmatically, I add and delete cells.
Maybe you could provide me with some more info on what to do :)
As I mentioned:
NSRectFill (see above) didn't do anything, and
[[ self controlView] setKeyboardFocusRingNeedsDisplayInRect:[[ self
controlView] bounds]];
didn't do anything, either.
- 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.