• 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
User Defaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

User Defaults


  • Subject: User Defaults
  • From: alex gordillo <email@hidden>
  • Date: Thu, 10 Nov 2005 16:27:23 -0500

Hey all,

I have an NSTableView (one column only) that is dynamically populated with an array of web services. I'm trying to use NSUserDefaults so that it remembers the last row selected. I don't want to do it using the row index numbers because the number of items could possibly change every time the app is launched, so I figure I must do it by the name of the object in the row. In my awakeFromNib method, I'm trying to write the method that reads the default and sets the tableview to the current setting. I don't know how I can set a selected row using an object name and not the row index. Any help would be appreciated.

Thanks,
Alex
_______________________________________________
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: User Defaults
      • From: Kaspar Fischer <email@hidden>
  • Prev by Date: Documentation update
  • Next by Date: Re: Progress bar
  • Previous by thread: Documentation update
  • Next by thread: Re: User Defaults
  • Index(es):
    • Date
    • Thread