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

Re: Using a subclassed NSMatrix with NSBrowser


  • Subject: Re: Using a subclassed NSMatrix with NSBrowser
  • From: Alex Fuller <email@hidden>
  • Date: Sun, 05 May 2002 19:24:13 +0100

OK, I'm stupid... :-) I realised it was easiest to tell my NSMatrix subclass
about its NSBrowser manually and then set the path in the browser.

Alex

On 4/5/02 5:24 pm, Alex Fuller <email@hidden> wrote:

> 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.
_______________________________________________
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.

References: 
 >Using a subclassed NSMatrix with NSBrowser (From: Alex Fuller <email@hidden>)

  • Prev by Date: Re: Main event loop in non-main thread, Quartz Compositor
  • Next by Date: Re: Formatting numbers, currency, and dates based on locale
  • Previous by thread: Using a subclassed NSMatrix with NSBrowser
  • Next by thread: NSImage & NSImageRep
  • Index(es):
    • Date
    • Thread