• 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
Converting mod date from FSCatalogInfo to NSDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting mod date from FSCatalogInfo to NSDate


  • Subject: Converting mod date from FSCatalogInfo to NSDate
  • From: Ken Tozier <email@hidden>
  • Date: Wed, 26 Jul 2006 12:29:17 -0400

Hi

I'm storing some file information in a database and need to convert the file modification date returned from FSCatalogInfo to either an NSDate or an NSCalendarDate. I found a link here: http:// www.cocoabuilder.com/archive/message/cocoa/2001/8/1/45890 but all he solutions listed in that thread seem to use deprecated functions and/ or methods. Is there a newer way to convert a file modification date to an NSDate?

I need to use FSCatalogInfo instead of [NSFileManager attributesAtPath:...] to get some info NSFileManager doesn't return (like the directory valence)

Thanks

Ken
_______________________________________________
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: Converting mod date from FSCatalogInfo to NSDate
      • From: Ryan Britton <email@hidden>
    • Re: Converting mod date from FSCatalogInfo to NSDate
      • From: Deborah Goldsmith <email@hidden>
  • Prev by Date: Re: Custom window with small stoplight
  • Next by Date: NSString** in scanners
  • Previous by thread: RE: How to convert 32bit to 24 bit NSBitmapImageRep
  • Next by thread: Re: Converting mod date from FSCatalogInfo to NSDate
  • Index(es):
    • Date
    • Thread