Folks;
I have a sandboxed macOS app that provides text handling via a service.
This app has been for sale in the Mac App Store for several years.
The basic mechanics of the service work just fine…
To set the scene:
user opens a file in some fashion
user makes a text selection within this open file
user invokes my app’s service
In the course of development of this service, I now have established an NSURL (file) for the user’s document.
However, when I later attempt to open this url I get a sandbox error: client lacks entitlements? for path: ….
NOTE: It does not matter where the file is located!
My app already has this entitlement: com.apple.security.files.user-selected.read-write
My question: Is there an entitlement that will permit me to programmatically open this fileURL?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I have an Objective-C macOS app which provides a service that provides unique services on selected text.
This app has been for sale in the Mac App Store for several years.
The app registers as service provider during 'appDidFinishLaunching' with: [[NSApplication sharedApplication] setServicesProvider:self];
When my service is invoked it uses the standard service method:
(void)serviceName:(NSPasteboard *)pboard userData:(NSString *)userData error:(NSString **)error
In the body of this standard service method the contents of the NSPasteboard (pboard) are examined and consumed by my app.
- (void) kudosService:(NSPasteboard *)pboard userData:(NSString *)userData error:(NSString **)error; {
if ([pboard pasteboardItems].count==0) { return; }
NSPasteboardItem *pI = [pboard pasteboardItems][0];
NSLog(@"pI:%@",pI.types );
for (NSString *uti in pI.types) {
NSLog(@"uti:%@ string:%@",uti, [pI stringForType:uti] );
}
...
}
Something has changed with Preview app; at this point I'm inclined to think the change occurred with version 11.
Console output for Preview
pI:(
"public.utf8-plain-text",
"public.rtf",
"public.utf16-external-plain-text"
)
uti:public.utf8-plain-text string:(null)
uti:public.rtf string:(null)
uti:public.utf16-external-plain-text string:(null)
This is the output regardless of whether or not the user has a mere text selection OR has formally 'Cop(ied)' [Cmd-C] the text in the Preview window!
Please NOTE if I open the exact same .pdf document in Safari and invoke the service from Safari I see the expected Console output:
pI:(
"public.utf8-plain-text"
)
uti:public.utf8-plain-text string:The Best Gluten-Free Chocolate Cake
When did this change in Preview behavior occur?
Can anyone point me to some documentation, which I have obviously overlooked, that would shed some light on this matter!
M1Pro running macOS 12.5 & Xcode 13.4.1
developing a macOS application using storyboards
simple beginning to an app:
appDelegate, a custom windowController, and a custom viewController
windowContent set in IB using drag
no error reported during build
when run:
windowWillLoad is called
viewController viewDidLoad is called
window didLoad is called
appDelegate applicationDidFinishLaunching is called
window is drawn on screen
but nothing appears in the window
view has 2 verticalStackViews, a tableView, and a horizontalStackView
I'm stumped....
Any thoughts appreciated on how to track this down!
I have setup and verified a sandbox account for testing.
I have received both email and text verification and received the email noting that the account has been enabled for two-factor.
Yet I receive the error below on both iOS and macOS devices.
Can someone shed some light on this matter?
Thanks!
Steve
iTunes Account creation not allowed
This Apple ID cannot be used with the iTunes Store at this time. Please try again later
Folks;
I have successfully implemented an iOS Action Extension which reads plain text from a user's selection.
Now I want to augment this to allow the user the call the action on RTF or HTML.
I have added NSExtensionActivationSupportsAttachmentsWithMinCount (1) and NSExtensionActivationSupportsAttachmentsWithMaxCount (3) to the ActivationRule.
I have updated the ActionViewController to handle the itemProviders...
BUT
guard let extensionItems = extensionContext?.inputItems as? [NSExtensionItem] else {...}
only shows 1 item of plainText...
What else do I need to do to allow my action to handle RTF or HTML?
Thanks for you time!
Steve
I have MacCatalyst app that a few weeks ago I successfully submitted and it was approved for both the iOS app version as well as a macOS version (AppStoreConnect)
Now when I use Archive in Xcode when the Organizer window opens the widget at top left is set to 'Other Items' additionally no version information is shown and the 'Validate' button is disabled...
I know this is probably ridiculous but I don't see (nor do I recall) how I tell Xcode to archive for macCatalyst or archive for iOS..
Can someone help me out here - please?