• 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: Strange behavior of "NSUserDefaults"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange behavior of "NSUserDefaults"


  • Subject: Re: Strange behavior of "NSUserDefaults"
  • From: Itrat Khan <email@hidden>
  • Date: Wed, 21 Aug 2002 12:54:51 -0400

On Tuesday, August 20, 2002, at 04:48 PM, Frank Blome wrote:

tells me: "syntax error, found `forKey' " while compiling but I can start the app after it.

If have even tried the code above in one line:

[[NSUserDefaults standardUserDefaults] setBool:[sender state] forKey:@"CheckVersion"];

but the result is the same. It is basic work, but I can't fix this damn syntax error...


I've seen this problem when I've accidentally added an option-space somewhere in a line instead of a space. That was a couple of Project Builder releases ago, but maybe it's the same problem you're having. Try deleting and retyping the entire function.

Regards,
Itrat.

............................................................
Modeless Software, Inc.
London, Ontario (Canada)
Tel: +1 519 473 2037
Web: www.liquidledger.com
_______________________________________________
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: 
 >Strange behavior of "NSUserDefaults" (From: Frank Blome <email@hidden>)

  • Prev by Date: Re: NSDateFormatter
  • Next by Date: Re: years:months:days:hours:minutes:seconds:sinceDate: really slow!
  • Previous by thread: Strange behavior of "NSUserDefaults"
  • Next by thread: How to make an NSColor correspond to a grayscale value?
  • Index(es):
    • Date
    • Thread