• 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: 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.

  • Follow-Ups:
    • Re: Highlighting NSImageCells in an NSMatrix
      • From: Daryn <email@hidden>
References: 
 >Highlighting NSImageCells in an NSMatrix (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: Objective C language [NEWBEE QUESTIONS]
  • Next by Date: OK to use setCharactersToBeSkipped:nil ?
  • Previous by thread: Highlighting NSImageCells in an NSMatrix
  • Next by thread: Re: Highlighting NSImageCells in an NSMatrix
  • Index(es):
    • Date
    • Thread