• 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: [NEWBIE]: Selecting Cells in a Browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NEWBIE]: Selecting Cells in a Browser


  • Subject: Re: [NEWBIE]: Selecting Cells in a Browser
  • From: Stéphane Sudre <email@hidden>
  • Date: Sun, 26 Sep 2004 22:41:56 +0200


On dimanche, septembre 26, 2004, at 08:15 PM, J Tichenor wrote:


-- even though I have NSBrowser -selectedCell, how do I determine what my current column is? NSCell doesn't have a -column method as far as I can tell

It doesn't?

selectedColumn

- (int)selectedColumn
 Returns the index of the last column with a selected item.

Ok, thanks. I didn't try that because I thought it had something to do with selecting the whole column, as opposed to the column that the selected column is in. So cool.

Any ideas on iterating through cells in the column?

If you need to iterate through cells, it means your source model is wrong. Because the idea is to iterate through your data.


If what you want next is to select the newest cell in the appropriate column. As soon as you have found the index in your data, you can use the appropriate method from the NSBrowser class.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [NEWBIE]: Selecting Cells in a Browser
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: [NEWBIE]: Selecting Cells in a Browser (From: J Tichenor <email@hidden>)

  • Prev by Date: Re: Unit testing framework suggestions?
  • Next by Date: Re: Unit testing framework suggestions?
  • Previous by thread: Re: [NEWBIE]: Selecting Cells in a Browser
  • Next by thread: Re: [NEWBIE]: Selecting Cells in a Browser
  • Index(es):
    • Date
    • Thread