• 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: How do I get a file reference w/o relying on the path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get a file reference w/o relying on the path?


  • Subject: Re: How do I get a file reference w/o relying on the path?
  • From: Noah Desch <email@hidden>
  • Date: Sun, 18 Apr 2010 11:45:57 -0400

On Apr 18, 2010, at 10:43 AM, Brad Stone wrote:

> I'm storing the bookmark data in an array displayed in a table:
> NSData *bookmarkData = [inAbsoluteURL bookmarkDataWithOptions:NSURLBookmarkCreationSuitableForBookmarkFile
> 								includingResourceValuesForKeys:nil
> 								relativeToURL:nil
> 								error:&error];


I am doing the same thing and it is still able to resolve the bookmarks when the file moves or its name changes. The only real difference I can see between our two approaches is that I am passing 0 for both the creation options and the resolution options.

What are the properties of the error object are you getting when the bookmark resolution fails?

-Noah
_______________________________________________

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 do I get a file reference w/o relying on the path?
      • From: Brad Stone <email@hidden>
References: 
 >How do I get a file reference w/o relying on the path? (From: Brad Stone <email@hidden>)
 >Re: How do I get a file reference w/o relying on the path? (From: Ken Thomases <email@hidden>)
 >Re: How do I get a file reference w/o relying on the path? (From: Brad Stone <email@hidden>)

  • Prev by Date: Re: Checking if a touch is within a UIButton’s bounds.
  • Next by Date: Re: +Hi+
  • Previous by thread: Re: How do I get a file reference w/o relying on the path?
  • Next by thread: Re: How do I get a file reference w/o relying on the path?
  • Index(es):
    • Date
    • Thread