Re: Mouse clicks from NSOutlineView
Re: Mouse clicks from NSOutlineView
- Subject: Re: Mouse clicks from NSOutlineView
- From: James Bucanek <email@hidden>
- Date: Sat, 6 Jan 2007 09:21:25 -0700
From one previous Java head to another, welcome to Cocoa!
Jonathan Robson wrote on Saturday, January 6, 2007:
>In the interface builder I have a dialog with a NSOutlineView control
>on it. I have successfully got to the stage of the NSOutlineView
>listing bonjour services running on my network, but what I cannot
>figure out is how to capture the mouse click event when someone
>clicks on a row. I have read mailing list entries which suggest
>subclassing the NSOutlineView, but I cannot seem to figure out how
>you do this in the interface builder.
Like so many questions posted to programming forums, it would be more helpful to know *what* you're trying to accomplish. It is very rare to have to intercept the mouse or keyboard events directly, and I'd be really surprised if you ran into one of those situations on your very first Cocoa application.
It's far more likely that there is some other mechanism that will satisfy your needs, but you need to tell us what those needs are.
That said, you can dig into the details of event handling in the Cocoa Event Handling guide: <file:///Developer/ADC Reference Library/documentation/Cocoa/Conceptual/EventOverview/index.html#//apple_ref/doc/uid/10000060i>
>So far I have created a subclass form NSOutlineView in interface
>builder, this gives me a new class in the classes tab, but I have no
>idea how I get that onto my dialog window to use.
Inspector palette > Custom class
--
James Bucanek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden