• 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: NSTableView questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSTableView questions (From: Kurt Marek <email@hidden>)

  • Prev by Date: Re: Animating control position
  • Next by Date: Re: Newbie - Finder Files Drag & Drop In Cocoa
  • Previous by thread: NSTableView questions
  • Next by thread: Timing of window miniaturization?
  • Index(es):
    • Date
    • Thread