Post

Replies

Boosts

Views

Activity

Reply to write() not working in OS betas for files in App Group, from app and extension
The data in the NSString is all data which can be represented with the ASCII encoding I was caught out a few years ago when the iOS keyboard started automatically converting straight quoutes into curly open- and close-quotes, which are not ASCII. I wonder if something similar is happening to you? Maybe your date-time string has come from a formatter that has changed behaviour? Is there a reason you can’t convert to UTF-8?
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’23
Reply to Save texture as Tiff
My first guess would be that something is trying to undo a pre-multiplied alpha that never happened. Yes, probably. I have a vague recollection that CGImage's default behaviour is not what you expect and you need to set a flag somewhere. Call CGImageGetAlphaInfo and see if it claims to be premultiplied or not. But the numbers don't seem to work out. Is that something to do with gamma? I notice that you have set linearSRGB as the colour space.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’23
Reply to AppStoreConnect API - How to set pricing
Still no word from Apple on setting individual pricing. If anyone has suggestions I'm still looking for a solution. I wrote up how I set IAP pricing here: https://developer.apple.com/forums/thread/732527 You want to set the app's price, right? That's not the same, but maybe my notes will give you some clues. Is there a way for me to report incomplete DocC in the online documentation File a bug, ha ha. or even ask questions? You can ask here. Or Stack Overflow.
Jul ’23
Reply to "Required Reason" API - stat()
I've submitted a request for an additional reason using the form here: https://developer.apple.com/contact/request/privacy-manifest-reason/ I've suggested that an additional reason be added for stat() etc., "to read non-timestamp metadata". I'll update this if I get a reply. I've also submitted a bug (FB12798615) saying that C++ timestamp-reading functions aren't on the list. Of course there isn't a suitable Feedback category for that so it's under "something else". I'll update here if I get a reply.
Topic: Privacy & Security SubTopic: General Tags:
Jul ’23
Reply to SQLite - Select statement to extract 1 year of data
Is there a way to include capturing the latest date as part of the query? SELECT * FROM table WHERE d > date( (SELECT max(d) FROM table), '-1 year' ) With more complex sub-selects, it might look better if you move it to a WITH clause at the start. Turns out that SQLite supports a case statement. So I incorporated that and strftime into my query to adjust the date back to Friday if the current date is Saturday '6' or Sunday '0'. Julian Day Numbers are often useful for calculations like this. It possibly isn't quicker or clearer than what you're currently doing but it's a useful feature to be aware of generally.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’23
Reply to App Store Connect API: why do I only have to provide a checksum when uploading app screenshots and not for app event screenshots?
The old XML API required checksums for screenshots, and in fact I think the Transporter uploader relied on comparing checksums to determine whether to actually send the file Events are newer and weren't supported in the XML API. Fundamentally the answer is "it just does".
Jul ’23
Reply to how can i make a ios bluetooth classic program? is this Mission Impossible?
The is no API for Bluetooth Classic on iOS What I should have written was "there is no API for things that you actually want to use, like serial ports, on Bluetooth Classic". Yes you can do GATT over classic - I had forgotten about that - but I'm not actually aware of any practical use for it. arduino file includes "bluetoothSerial.h" That doesn't look promising.
Topic: App & System Services SubTopic: Hardware Tags:
Jul ’23