Post

Replies

Boosts

Views

Activity

Reply to NSWorkspace openURL fails on file in iCloud Drive
[quote='868376022, DTS Engineer, /thread/809171?answerId=868376022#868376022'] To be clear, you specifically meant: /Applications ...not the standard Applications directory? That's not actually one of our standard directories, which opens the possibility that the system "missed" the existence of the app, so it wasn't registered with LaunchServices. [/quote] The Launch Services Programming Guide says that A built-in background tool, run whenever the system is booted or a new user logs in, automatically searches the Applications folders in the system, network, local, and user domains and registers any new applications it finds there. The one in the user domain is ~/Applications. Also note that the Finder gives that one the standard Applications icon, whereas if you create an Applications folder in some random location, it gets a generic folder icon. So at least by some measures it is one of your standard directories. I'll see if I can replicate in a VM.
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to NSWorkspace openURL fails on file in iCloud Drive
@DTS Engineer Thank you for the detailed reply! It may take me a while to respond to all of your points, but here is a start: Yes, the issue here is that "nothing" (no app launch and/or document open) is happening. The target app is a copy of BBEdit in my ~/Applications folder. Using the open command to open the same text file with the same copy of BBEdit works fine. Regarding "How did your app "get" that file URL? Is your app able to open the file? And is the file already downloaded or is it still dataless?" The file is downloaded. My app gets the URL by drag and drop from the Finder. My app does not attempt to open the file on its own, it just forwards the URL to be opened by another app, BBEdit in this case, somewhat like what the Dock does. Dang, now all of a sudden it's working. Obviously I need to do a lot more testing.
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to How to print WKWebView in Sequoia?
[quote='861468022, Frameworks Engineer, /thread/803249?answerId=861468022#861468022'] We'd be interested to see a test app/content where it is failing in the way you describe. [/quote] I've posted a test app here: https://github.com/jwwalker/WKWebView-print-test By the way, although I titled this post with "Sequoia", I just now tested on a different machine running a Tahoe 26.1 beta, and observed the same behavior.
Topic: Safari & Web SubTopic: General Tags:
Oct ’25
Reply to How to print WKWebView in Sequoia?
@Etresoft : In my code, I'm using fit pagination for both horizontal and vertical. I think that may fix your ridiculously tall pages. Safari also generates such pages when exporting to PDF, so perhaps "automatic" is what's doing that. When you export to PDF, that's not the same as printing to PDF. There is no opportunity to set a pagination option.
Topic: Safari & Web SubTopic: General Tags:
Oct ’25
Reply to How to print WKWebView in Sequoia?
[quote='861471022, DTS Engineer, /thread/803249?answerId=861471022#861471022'] Can you provide some URLs to content you're having trouble printing? [/quote] My content is available here: https://github.com/jwwalker/PlainCalc/blob/master/PlainCalc3/Resources/Help/PlainCalcHelp.md.html This is a "MarkDeep" file. It mostly looks like MarkDown, but functions as HTML, and displays correctly in a WKWebView.
Topic: Safari & Web SubTopic: General Tags:
Oct ’25
Reply to How to print WKWebView in Sequoia?
[quote='861468022, Frameworks Engineer, /thread/803249?answerId=861468022#861468022'] Which is exactly what the createPDF: API is for. That asks the WKWebView to draw into a PDF the exact same way it would draw to the screen or to print, and it results in a nice vectorized PDF instead of rasterized images. [/quote] Yes, I tried that, but it produced a PDF with one ridiculously tall page. Is there another way to produce a PDF with pagination? I'll work on distilling this down to a good test app for a bug report.
Topic: Safari & Web SubTopic: General Tags:
Oct ’25