• 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: How to set a default row in NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set a default row in NSTableView?


  • Subject: Re: How to set a default row in NSTableView?
  • From: Mark Dawson <email@hidden>
  • Date: Tue, 21 Jun 2005 15:47:55 -0700

I would have thought so, but my debugging shows that -tableView objectValueForTableColumn: (loading the datasource) doesn't happen until AFTER my awakeFromNib gets called. I assume that I shouldn't call -selectRowIndexes before any data has been loaded?

Thanks,

Mark

On Jun 21, 2005, at 5:25 PM, email@hidden wrote:

How do I select a default row in an NSTableView? From what I can tell,
I call
selectRowIndexes:byExtendingSelection: and scrollRowToVisible: to set
and center that row; however, I don't know where/when to call them. Do
I check to see if I'm being called for the last row in
tableView:(NSTableView*)tableView objectValueForTableColumn:, then call
them, or is there a better place? The default row would need to be
programically set, not in IB. RIght now (10.3.9) nothing is selected,
by default.

I'm a beginner, but I think this is something you'd do in an -awakeFromNib: method in a controller class in the NIB file.


Ben
--
Ben Kazez
iCal Events Widget
http://www.benkazez.com

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


This email sent to email@hidden


_______________________________________________ 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: How to set a default row in NSTableView?
      • From: Andy Lee <email@hidden>
    • Re: How to set a default row in NSTableView?
      • From: j o a r <email@hidden>
References: 
 >Re: How to set a default row in NSTableView? (From: Ben Kazez <email@hidden>)

  • Prev by Date: Sync pull order and to-many relationships
  • Next by Date: Function Pointer of Class Member Function in Cocoa
  • Previous by thread: Re: How to set a default row in NSTableView?
  • Next by thread: Re: How to set a default row in NSTableView?
  • Index(es):
    • Date
    • Thread