Post

Replies

Boosts

Views

Activity

Reply to Managing External Subviews and Layout
when [[alloc] initWithNibName] returned, it was not guaranteed that those nibs would be loaded I do think it is loaded when initWithNibName returns. As for avoiding an extra view, I do not see this as a problem. There are so many objects allocated by the system, that even if you have hundreds of view, just an extra view each time will not make a difference. There are probably many other places in code more important top focus on if you need to optimize. In anycase, good to read it works. You should close the thread now.
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’21
Reply to How to create IEEE P1363 signature
Are you sure key is a valid SecKey ? A SecKey instance that represents a key that is stored in a keychain can be safely cast to a SecKeychainItem for manipulation as a keychain item. On the other hand, if the key is not stored in a keychain, casting the object to a SecKeychainItem and passing it to Keychain Services functions returns errors. Do you get a printed error ? If yes, which ? Do you get error when calling SecKeyVerifySignature ?
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to Apple Security vs Malware/Spyware
The perfect filter does not exist. Even big companies have been compromised (I read that Xcode itself had been compromised in China 5 or 6 years ago). What I would do (and try to do myself): be cautious on the apps you download organise rolling backup of your important stuff (at least on 2 different physical support, where you alternate successive backups) apply a very strict discipline never to open a mail attachement if you are not 120% sure it is OK update OS to the last available security patches if one day you fear a machine has been compromised, immediately disconnect from the network and quarantine.
Topic: App & System Services SubTopic: Hardware Tags:
May ’21
Reply to SceneView SwiftUI
Did you try yo use the Debug View Hierarchy in Xcode during execution, to see exactly what the hierarchy of views is ? To access the tool, it is the 7th icon - shaped as a vertical rect with 2 smaller rects on its sides - from the left on the frame above the console) You may find an intermediary view that you have to make transparent. I tried rapidly, and found several layers (one is dropshadowview)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21