• 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
Using a subclassed NSMatrix with NSBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using a subclassed NSMatrix with NSBrowser


  • Subject: Using a subclassed NSMatrix with NSBrowser
  • From: Alex Fuller <email@hidden>
  • Date: Sat, 04 May 2002 17:24:59 +0100

I've got a subclass of NSMatrix (which is being used as the matrix class in
an NSBrowser) in which I have to override the mouseDown handler, because the
standard one consumes the mouseDragged event too (i.e. the NSMatrix's
mouseDragged method is never called).

That's fine, except that it means I have to perform cell selection on mouse
clicks, and doing a [self selectCellAtRow:Column:] highlights a cell but
doesn't trigger the NSBrowser into responding to branch selection. Does
anyone know how to get the NSBrowser to realise a branch has been selected?

As far as I can tell the NSMatrix does not know about its NSBrowser, so
presumably the NSBrowser is watching for cells or columns in the NSMatrix to
be marked as dirty or something. There doesn't seem to be anything in the
docs about this.

Alternatively is there a method in NSMatrix other than mouseDragged which is
actually called by mouseDown when the mouse is dragged which I can override?
That would be easier.

Alex

P.S. if anyone does have any answers to these questions - how the hell do
you know? ;-) Am I missing some vital source of information, is it a matter
of having the ear of an insider, or (most likely) am I just stupid?
_______________________________________________
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: Using a subclassed NSMatrix with NSBrowser
      • From: Alex Fuller <email@hidden>
  • Prev by Date: Re: Leaks When Running MultiThreaded (Even w/ AutoRelease Pool)
  • Next by Date: NSImage & NSImageRep
  • Previous by thread: Re: GCC 3.1
  • Next by thread: Re: Using a subclassed NSMatrix with NSBrowser
  • Index(es):
    • Date
    • Thread