• 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: Are there any NSUserDefaults keys which aren't valid?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are there any NSUserDefaults keys which aren't valid?


  • Subject: Re: Are there any NSUserDefaults keys which aren't valid?
  • From: Jonathan del Strother <email@hidden>
  • Date: Thu, 26 Jan 2006 19:59:08 +0000

On 26 Jan 2006, at 19:32, j o a r wrote:


On 26 jan 2006, at 20.20, John Stiles wrote:

@synchronized may not be a sufficient workaround. When the AppKit docs say that something isn't thread-safe, you are required to run it on the main thread. Violate that contract and you are in "unspecified behavior" territory.

Absolutely true! But, like was pointed out in the other thread on this topic a few days ago:


<http://www.cocoabuilder.com/archive/message/cocoa/2005/8/11/144082>

If his users are using 10.4 and later, he probably shouldn't have to lock at all.

Johathan; In the sample code provided, you haven't described the "fileDate" variable. Can you tell us how it's created and used?


It's set up a little earlier on, via :

NSDate* fileDate = [[[NSFileManager defaultManager] fileAttributesAtPath:file traverseLink:YES] objectForKey:NSFileModificationDate];


'file' has been guaranteed to exist, using

if ([[NSFileManager defaultManager] fileExistsAtPath:file])
{...


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Are there any NSUserDefaults keys which aren't valid?
      • From: Adam Maxwell <email@hidden>
    • Re: Are there any NSUserDefaults keys which aren't valid?
      • From: j o a r <email@hidden>
References: 
 >Are there any NSUserDefaults keys which aren't valid? (From: Jonathan del Strother <email@hidden>)
 >Re: Are there any NSUserDefaults keys which aren't valid? (From: j o a r <email@hidden>)
 >Re: Are there any NSUserDefaults keys which aren't valid? (From: Jonathan del Strother <email@hidden>)
 >Re: Are there any NSUserDefaults keys which aren't valid? (From: John Stiles <email@hidden>)
 >Re: Are there any NSUserDefaults keys which aren't valid? (From: j o a r <email@hidden>)

  • Prev by Date: Re: realreplayer style NSWindow
  • Next by Date: Re: CoreData: Intermittent crash in -[NSSQLRow dealloc]
  • Previous by thread: Re: Are there any NSUserDefaults keys which aren't valid?
  • Next by thread: Re: Are there any NSUserDefaults keys which aren't valid?
  • Index(es):
    • Date
    • Thread