Hi,
I'm doing a little project that in it's core is supposed to push a button, and an .epub file should then open up.
I've google'd it alot and have only been able to find ways to do it in ios, but not osx. Hope someone can help
Thanks in advance
Hi,
I'm doing a little project that in it's core is supposed to push a button, and an .epub file should then open up.
I've google'd it alot and have only been able to find ways to do it in ios, but not osx. Hope someone can help
Thanks in advance
>have only been able to find ways to do it in ios, but not osx.
The basics are the same...find the epub in the file system, parse it based on it's specs, output XML and read via wkwebview. Since you've got that code for iOS, all you need to do is find/meld a macOS sample* for document display. You might want to leave the iOS code in place as best you can so your deliverable supports both**.
About that button, see ButtonMadness: Creating and Customizing AppKit Controls
* h ttps://github.com/mbarnig/WKWebView
** h ttps://www.theverge.com/2017/12/20/16800834/apple-mac-ios-combined-apps