Re: NSTableView questions
Re: NSTableView questions
- Subject: Re: NSTableView questions
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 30 Oct 2003 21:16:52 -0800
On Oct 30, 2003, at 7:40 PM, Kurt Marek wrote:
>
I have a couple of newbie question about NSTableViews. I know that I
>
can use setDoubleAction: to set what happens when a row is
>
double-clicked, but how do I do the same for a single click
>
(selection)?
[tableView setAction:@selector(someAction:)] should do it, where
"tableView" is an NSTableView and "someAction:" is an action method...
>
Also, how do I get icons next to text in the same column?
You could try using the "ImageAndTextCell" class that appears in
several sample code collections on the ADC site, like this one:
<
http://developer.apple.com/samplecode/Sample_Code/QuickTime/Streaming/
QTSSInspector.htm>
Check the archives for more information: <
http://cocoa.mamasam.com/>
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://seiryu.home.comcast.net/
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone." - Bjarne Stroustrup
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.