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

[NEWBIE]: Selecting Cells in a Browser


  • Subject: [NEWBIE]: Selecting Cells in a Browser
  • From: J Tichenor <email@hidden>
  • Date: Sun, 26 Sep 2004 18:01:18 +0100

Hi, me again. I'm going to ask endless "obvious" questions, hoping everyone's patience will hold and hoping that others are reading who are wondering the same things.

I want to be able to select specific cells in my browser programatically, specifically when a new record has been added to the data graph. So:

- I have added a new base object in a file structure/hierarchy -- the objects are recursive: ie: a myRecord has an array of myRecords

- depending on where in the graph I have added the object, I need to reload the column that the object will fit into and then select the newest object's cell

- I have Browser -selectedCell to tell me where I am when the user adds a new myRecord

- I now want to update the column that had the newest myRecord added and select the record. I know I need to use -selectCell, but it's determining the cell with the latest added record that is tripping me up. It's easy to figure out what the title of the latest cell is - same as the title of the latest myRecord.

The questions are:

-- 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

-- if I can figure out which column needs to be reloaded, how would I figure out where in the column my newest cell/object resides? I can't just assume it's the last, latest cell, because I'll be implementing a sorting procedure on newly added records, so the latest won't necessarily be at the bottom. I figure if I can somehow cycle all the cells and compare: their titles to the title of myRecord, I should have my cell and should be able to send it to -selectedCell. The question is: how? Can't see it in documentation, although I'm sure I'm just missing it?

Once again, any help would surely be appreciated. TIA.

~j~



James Tichenor
VFX Supervisor
AIM: email@hidden
(07779) 256 103
http://www.lehopictures.com/the_joint/


_______________________________________________ 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: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: [Newbie] Multiple NSTableViews
  • Next by Date: Re: Unit testing framework suggestions?
  • Previous by thread: Re: Cocoa based SIP / VoIP library
  • Next by thread: Re: [NEWBIE]: Selecting Cells in a Browser
  • Index(es):
    • Date
    • Thread