• 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
NSMatrix with NSTextFieldCells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMatrix with NSTextFieldCells


  • Subject: NSMatrix with NSTextFieldCells
  • From: Philip Taff <email@hidden>
  • Date: Tue, 23 May 2006 17:04:13 -0500

I have an NSMatrix full of NSTextFieldCells. I have them set to be noneditable and nonselectable (they should be updated by my code, not directly by the user), but I want them to be visually selecatable by single-clicking. I've found that by sending
[theMatrix highlightCell:YES atRow:1 column:1];
I can get the desired visual effect. The problem is finding how to send it. I tried subclassing NSMatrix to add the highlight code to mouseUp:, and configured the matrix in IB to use my custom matrix, but the mouseUp: code was never called. I also tried subclassing NSTextFieldCell to implement mouseUp:, without much hope since it's not an NSResponder subclass, and that didn't work either.


Does anyone know how I can get my code called when the mouse button is released over one of the text cells in my matrix?

Thanks!

--Philip

(and I can post the email the code to the list if that would be helpful)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSMatrix with NSTextFieldCells
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: iTunes user rating
  • Next by Date: Re: [ANN] XCode 2.3
  • Previous by thread: Re: NSPredicate and NOT IN and array
  • Next by thread: Re: NSMatrix with NSTextFieldCells
  • Index(es):
    • Date
    • Thread