I use basic data and monitoring the region. The only way to distinguish between controlled regions is through an NSString for an identifier. I would like to use NSManagedObjectID, but I cannot get it to work.
What I tried:
NSURL *objURL = [managedObjectID URIRepresentation]; NSError *err; NSString *identifier = [NSString stringWithContentsOfURL:myURL encoding:NSASCIIStringEncoding error:&err];
I get an error:
The operation couldn’t be completed. (Cocoa error 256.)
Any ideas on a better way? Or what am I doing wrong?
URI NSManagedObjectID. stringWithContentsOfURL:encoding:error: , URI; , URI http file .. , URI NSManagedObjectID, , .
NSManagedObjectID
stringWithContentsOfURL:encoding:error:
http
file
,
NSString*identifier=[objURL absoluteString];
URL-.
, :
, objectID , . , .
Source: https://habr.com/ru/post/1760473/More articles:How to present MPMoviePlayerViewController from UITabBarController? - objective-cVisual Studio Portable - portabilityRails 3 and unobtrusive javascript - unobtrusive-javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1760471/emacs-command-to-indent-code-by-4-spaces-to-format-for-paste-into-stackoverflow-posts&usg=ALkJrhgZqeQ8QJzZpaOiMXuy8LqGJUrOHQSpring-WS vs JAX-WS - web-servicesПочему мои общие переменные очищаются между PerlChildInitHandler и PerlResponseHandler в mod_perl? - perlThe structure and format of Skype history databases - databaseПодсчитайте количество отмеченных флажков и покажите их на фиксированном div, используя jQuery - jquery400 bad request from twilio REST API using twilio-ruby - restHow to raise an attached event in wpf? - c #All Articles