While dropping a file from Finder into our app works as expected – dropping from Mail behaves differently on the Mac (works fine on iPad):
[session hasItemsConformingToTypeIdentifiers:…] is false for the type identifier of the dragged file. The session only contains an item for "public.url" and that is also the only thing I can ever get from the item provider.
[itemProvider loadItemForTypeIdentifier:@"public.url" options:nil completionHandler:^(NSData* item, NSError* error) {
is described to do a coercion: "The contents of the URL is read and returned as NSData" but the data returned is just the NSData encoding of the URL.
The URL is also not accessible – not even when invoking startAccessingSecurityScopedResource first.
The console reports: Failed to get a sandbox extension I tried adding the com.apple.security.files.bookmarks.document-scope and com.apple.security.files.bookmarks.app-scope entitlement, but that did not help either.
Post
Replies
Boosts
Views
Activity
Using the predicate from the WWDC 2018 slides,
NSCompoundPredicate(type: NSCompoundPredicate.LogicalType.and, subpredicates: [ NSPredicate(format: "indexed:by:(xCoord, \"byLocation\") between { %@, %@ }", argumentArray: [ 0, 30 ]), NSPredicate(format: "indexed:by:(yCoord, \"byLocation\") between { %@, %@ }", argumentArray: [ 0, 44 ])])
on a model with an R-Tree index named "byLocation" on the properties xCoord & yCoord (float)
gives me a strange error message:
[<NSKeyPathExpression 0x60000164fcc0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.
Somebody seen this before?