Post

Replies

Boosts

Views

Activity

Reply to Managing External Subviews and Layout
Why don't you create the splitView in IB ? With 2 subviews, which are A and B. Then in the viewDidLoad of the splitView or even in applicationDidFinishLaunching, you can insert any object like this (to insert a dummy button in the first view (A for you if I understand well)): let button = NSButton(title: "New", target: self, action: nil) button.frame = CGRect(x: 20, y: 120, width: 100, height: 20) (self.splitView.subviews[0] as! NSScrollView).contentView.addSubview(button) With the same pattern, you can instantiate viewA and viewB and add them to the corresponding subview of the splitView. For the constraints, you can define them in the nib or programmatically (you should subclass NSScrollView for A and B to connect to the IBOutlets in that case). This is Swift, but you should have no problem to write it in objC. If that answers your question, don't forget to close the thread by marking this answer as correct. Otherwise, please explain the remaining problem.
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’21
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