• 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
Reading System Preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reading System Preferences


  • Subject: Reading System Preferences
  • From: Seth Willits <email@hidden>
  • Date: Fri, 1 Aug 2003 15:06:38 -0700

I'm trying to read the homepage preference set in the System Preferences. I looked in the plist files to find what the key was, changed it in System Prefs to make sure I was looking the right one and then tried to read it in Cocoa like in the code below but there's no string found for the key.

I must be missing something, but I've read the NSUserDefaults section in Cocoa Programming and looked in the Apple documentation but I can't find anything.


[[NSUserDefaults standardUserDefaults] stringForKey:@"WWWHomePage"]


Thanks,

Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames

"Not everything that can be counted counts, and not everything that counts
can be counted."
-- Albert Einstein
------------------------------------------------------------------------ ---
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Reading System Preferences
      • From: Scott Anguish <email@hidden>
    • Re: Reading System Preferences
      • From: David Thorup <email@hidden>
  • Prev by Date: Re: NSBezierPath setLineDash:count:phase:
  • Next by Date: Re: ProgressIndicator Always Hidden If...
  • Previous by thread: Re: NSBezierPath setLineDash:count:phase:
  • Next by thread: Re: Reading System Preferences
  • Index(es):
    • Date
    • Thread