• 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: Simple Save Preference Tutorial
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Save Preference Tutorial


  • Subject: Re: Simple Save Preference Tutorial
  • From: John Blackburn <email@hidden>
  • Date: Sat, 23 Feb 2002 16:35:33 -0800

On Saturday, February 23, 2002, at 03:58 PM, Mohammad F. Haque wrote:

Hi, I was wondering if anybody knows any tutorial that explains how to save a preference.

Take a look at the documentation for NSUserDefaults:

-(BOOL)honk
{
[[NSUserDefaults standardUserDefaults] boolForKey:@"Honk"]
}

-(void)setHonk:(BOOL)honk
{
[[NSUserDefaults standardUserDefaults] setBool:honk forKey:@"Honk"];
}

John Blackburn
_______________________________________________
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.

References: 
 >Simple Save Preference Tutorial (From: "Mohammad F. Haque" <email@hidden>)

  • Prev by Date: Re: MySQL and Cocoa
  • Next by Date: Re: Simple Save Preference Tutorial
  • Previous by thread: Simple Save Preference Tutorial
  • Next by thread: Re: Simple Save Preference Tutorial
  • Index(es):
    • Date
    • Thread