• 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
How to get remote metadata
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get remote metadata


  • Subject: How to get remote metadata
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 28 Sep 2015 00:08:05 +0700

I want to get some metadata for a remote file.
I tried:

NSString *path = @"/Public/UNIDATA/Blocks.txt";
NSURL *icuBlocksUrl = [ [ NSURL alloc ] initWithScheme: @"http"  host: @"unicode.org"  path: path ];
NSArray *keys = @[ NSURLContentModificationDateKey, NSURLCreationDateKey, NSURLFileSizeKey ];
NSError *outError;
NSDictionary *icuDict = [ icuBlocksUrl resourceValuesForKeys: keys  error: &outError ];

Now icuDict is non-nil but empty.

What am I doing wrong?

Gerriet.

P.S.

Just seen in small print: “This method applies only to URLs that represent file system resources.”

So this is not expected to work. What else can I do?



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: How to get remote metadata
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: -[NSThread start] blocks ?!?
  • Next by Date: Re: How to get remote metadata
  • Previous by thread: Re: -[NSThread start] blocks ?!?
  • Next by thread: Re: How to get remote metadata
  • Index(es):
    • Date
    • Thread