0 Replies
      Latest reply on Mar 13, 2019 4:10 PM by carlfromtucson
      carlfromtucson Level 1 Level 1 (0 points)

        When calling:

        NSURL* aURL = [NSURL URLByResolvingBookmarkData:secBookmark options:options relativeToURL:nil bookmarkDataIsStale:&isStale error:&err];

         

        isStale is YES.

         

        When attempting to get a fresh bookmark, calling:

        NSData* secureBookmark = [aURL bookmarkDataWithOptions:options includingResourceValuesForKeys:nil relativeToURL:nil error:&err];

        produces:

         

        2019-03-11 15:53:51.603133-0700 XXX[534:8439] Error: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/oldmancoyote1/Desktop/E%20Projects%20folder/Drawing/Drawing%201%20.pdf, NSDebugDescription=Could not open() the item}

         

        If I ignore isStale, there appears to be no problem.  Can I safely ignore isStale?