• 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: Adam Maxwell <email@hidden>
  • Date: Thu, 26 Jan 2006 15:08:05 -0800

On Thursday, January 26, 2006, at 01:48PM, Jonathan del Strother <email@hidden> wrote:

>On 26 Jan 2006, at 19:32, j o a r wrote:
>>
>> 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])

NSFileManager isn't thread safe, though (which is very unfortunate).  Are you accounting for that?

<http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/articles/CocoaSafety.html>

-- Adam

 _______________________________________________
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

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>)
 >Re: Are there any NSUserDefaults keys which aren't valid? (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: Re: Are there any NSUserDefaults keys which aren't valid?
  • Next by Date: Re: NSCursor Resize Cursor
  • 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