Re: Mouse clicks from NSOutlineView
Re: Mouse clicks from NSOutlineView
- Subject: Re: Mouse clicks from NSOutlineView
- From: Jonathan Robson <email@hidden>
- Date: Sat, 6 Jan 2007 14:02:49 -0600
Hi There,
Eventually I doubt that I will need to detect the mouse click, but
while I'm experimenting with bonjour it gives me a shortcut to call
my bonjour service facade. I could have probably spent less time
wiring up a button, but once I realized I was having dificulty I was
consumed in finding out how on earth to make it work :-). It seems
that I was not creating the class files for my subclass before trying
to select it as the NSOutlineView custom class, as a result I
couldn't see my subclass in the custom class view.
Cheers
Jonathan
On Jan 6, 2007, at 10:21 AM, James Bucanek wrote:
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%
20Library/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