Post

Replies

Boosts

Views

Activity

iOS Safari Website Data and JavaScript
HI, Just discovered... If I update - change function arguments the JavaScript on my website fails as Safari keeps the previous version and doesn't notice that the JavaScript is new (only a very small change - one function now has two arguments instead of one, then calls AJAX). Is there a way to force a reloading of the JavaScript? This is really annoying. After much checking around (and not much sleep) on various other devices and browsers I finally cleared iOS Safari's history, and all is well. I don't know if others have had this problem, but I thought I'd post it here anyway. I always automatically clear the browser history when closing or re-launching the browser during development of web stuff. Regards, Paul
0
0
357
Jul ’24
How liable is Apple?
Hi, An Apple bug has caused our iPad App sales to plummet and customers have contacted Apple asking for refunds. This bug is not our fault, it is Apple's fault. I reported it to Apple last November and the ticket is still open and nothing has been done. They can't even be bothered to reply when I ask about the progress. I am disgusted with Apple. So, how liable is Apple? Regards, Paul
4
1
1.1k
Sep ’21
NSUserDefaults no-go macOS, Objective-C, Big Sur
Called in 'applicationDidFinishLaunching'. Return 'b' is YES but it does not work. Also if 'synchronize' is to be deprecated what to use? Also, cannot find where it should be stored in /library/preferences/ ?? How else to store needed unique user data? NSString *valueToSave = @"3"; [[NSUserDefaults standardUserDefaults] setObject:valueToSave forKey:@"infoDLG"]; BOOL b = [[NSUserDefaults standardUserDefaults] synchronize]; Any help appreciated, Paul. (Sorry, no idea what Tags to use.)
1
0
590
Jul ’21
How many Certificates do I need?
Hi, Over many years and changing computers a few times I seem to have collected lots of certificates. How many and what certificates do I need? I have:- 5 Developer ID Application macOS, all current. 2 Mac Installer Distribution macOS, all current. 1 Distribution for ALL, current. 3 Development for ALL, all current for 3 computers. Can I delete most certificates and only keep 1 each for:- 1 Developer ID Application macOS. 1 Mac Installer Distribution. 1 Distribution ALL. 1 Development for the current computer I'm using now. If I do that will xcode work it out without too much messing about? Any help appreciated. Thanks Paul
6
0
2.5k
Jun ’21
Broken Mac
My development Mac broke :-( I have installed XCode on a new Mac and need to get a private key to notarize my macOS apps. XCode tells me to send an email to myself to get my private key, obviously I can't get the key from my broken Mac. Can I revoke and delete all certificates and start again? Any help appreciated, Thanks -paul
1
0
687
May ’21
certificates
Hi, What certificates do I need for macOS development and distribution (not interested in iOS). Everytime I have to renew the damn thing I have forgotten what is required and what I need to do. Thanks, Paul
2
0
1.2k
May ’21
CGPDFDocumentRef Bug?
My iOS App (iPad) is rendering a multipage PDF using CGPDFDocumentRef. In iOS11 and previous it renders the images perfectly but in iOS12 and iOS13 it renders the first page in colour but the rest are monochrome. Now in iOS14, even from the first page, the images are either completely black or are distorted with diagonal black lines running through them. Any blocks of a single colour are missing. The pdf was generated in Adobe InDesign on Mac and I've checked the pdf file in Preview, Adobe Reader and Adobe Acrobat on macOS and in Adobe Reader, Edge, Firefox, Chrome, Opera and Brave on Windows 10 and all is perfect. Any help appreciated, Thanks - Paul
1
0
478
Nov ’20
Bug in CGPDFDocumentRef?
My iOS App (iPad) is rendering a multipage PDF using CGPDFDocumentRef. In iOS11 and previous it renders the images perfectly but in iOS12 and iOS13 it renders the first page in colour but the rest are monochrome. Now in iOS14, even from the first page, the images are either completely black or are distorted with diagonal black lines running through them. Any blocks of a single colour are missing. (This is an App for schools, educational content, and most schools are hesitant to upgrade their iOS so I have to support all the way back to iOS8.) The pdf was generated in Adobe InDesign on Mac and I've checked the pdf file in Preview, Adobe Reader and Adobe Acrobat on macOS and in Adobe Reader, Edge, Firefox, Chrome, Opera and Brave on Windows 10 and all is perfect. Any help appreciated, Thanks - Paul
0
0
565
Oct ’20
Read binary file in swift
HI, I can't find how to read my data file in swift (converting from Objective-C). The file consists a mixture of bytes, UInt16, UInt32, SInts16 ,strings (as pascal strings), png and mp3 data all mixed up as I use a 'byte' to indicate what sort of data is next. I tried:- var data = (NSData)();fileHandle?.readData(ofLength: MemoryLayout.size(ofValue: UInt8())) But can't use "getBytes etc" so can't get the value. I thought this would work for UInt16s but no-go var num = UInt16(); fileHandle?.readData(ofLength: MemoryLayout.size(ofValue: UInt16())) I'm about to give up and stay with Objective-C. Any help appreciated. Paul
9
0
8.4k
Jul ’20
AVCaptureDevice requestAccessForMediaType
Hi,MacOS 10.15.2<key>NSMicrophoneUsageDescription</key> <string>Record audio!</string>This crashes.[AVCaptureDevice requestAccessForMediaType:AVMediaTypeAudio completionHandler:^(BOOL granted) { if (granted) { // [self setupCaptureSession]; } }];Also,Preferences->Security & Privacy - Microphone has no reference to the Voice Memo app even after using it and allowing access to the mic.Any help appreciated.Paul
2
0
1.2k
Jan ’20