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

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.

  • Follow-Ups:
    • Re: Highlighting NSImageCells in an NSMatrix
      • From: John Pannell <email@hidden>
  • Prev by Date: NSHomeDirectory() leak?
  • Next by Date: Re: NSHomeDirectory() leak?
  • Previous by thread: Re: NSHomeDirectory() leak?
  • Next by thread: Re: Highlighting NSImageCells in an NSMatrix
  • Index(es):
    • Date
    • Thread