• 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: Andy Lee <email@hidden>
  • Date: Tue, 21 Jun 2005 21:15:38 -0400

On Jun 21, 2005, at 6:47 PM, Mark Dawson wrote:
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?

How about if you call -reloadData in -awakeFromNib, and then proceed to select whichever row you want?


--Andy

_______________________________________________
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


References: 
 >Re: How to set a default row in NSTableView? (From: Ben Kazez <email@hidden>)
 >Re: How to set a default row in NSTableView? (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: Function Pointer of Class Member Function in Cocoa
  • Next by Date: Contextual menus not passing mousedown events
  • Previous by thread: Re: How to set a default row in NSTableView?
  • Next by thread: Confused by Apple's DragNDropOutlineView example
  • Index(es):
    • Date
    • Thread