11 posts tagged ‘Cocoa’
NSFileManager’s File Copy Error Messages Lie
Jeff Johnson: The error says that the source file InstallHistory.plist doesn’t exist, but the file does exist! The true reason for the copy failure is that the destination directory /Users/Shared/nonexistent/ doesn’t exist. Sigh.I tested my command-line tool all the way back to macOS 10.13 High Sierra, and the behavior is the same! This is an […]
Search Suggestion Menus in AppKit
John Brayton: Even though Safari, Mail, and Finder implement search suggestion menus, there is no standard AppKit mechanism for providing them in AppKit. Popping up an NSMenu does not work because the search field cannot receive keystrokes while the menu is displayed. Interestingly there is a good mechanism for providing search suggestion menus in SwiftUI, […]
Hacking NSAlert Button Appearance
Daniel Jalkut: Notice how the “Bar” and “Baz” buttons do not have a border or background color, making it difficult to know whether they are even buttons at all. The line between Bar and Baz clunks up the interface even more.[…]This exploded view from the Xcode view debugger shows that the top, default button, is […]