How to read numbers file as json format DIRECTLY in objective-c/swift codes?
Hello~
Here I'm trying to use apple numbers file in my macOS application, after get path using NSBundle's pathForResource I got the correct path, but how to read the content as json string?
- Have tried NSString's stringWithContentOfFile:encoding:error: with UTF-8 encoding and get the error says this file cannot be read using utf-8.
- Also tried ASCII encoding but the content becomes two charactor "PK"..
- Outside objective-c codes in xcode, I have ways to convert numbers file to json strings, but I just want directly use .numbers file in xcode because need frequently modify it.. It's not elegant to manually convert it every time.
It's there any method or library can just read apple numbers file to fine encoded string?
[Edited by Moderator]
MacBook Pro 16″, macOS 13.2