Post

Replies

Boosts

Views

Activity

Reply to Progress bar in NSTableCellView changes to other cell when scrolling
NSTableCellView are reused, to avoid wasting memory. So you will have to keep this in mind when designing the way you update the cells. One way to is subclass NSTableCellView, add a property that contains the object doing the work, and then observe the progress of the object. This avoid having to find the right cell everything. When a cell is reused, just swap the object and refresh the observers.
Topic: UI Frameworks SubTopic: AppKit
Jul ’24
Reply to Extract metadata MXF files
When in doubt, check the framework header directly, you can find the one you want in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaToolbox.framework/Versions/A/Headers/MTProfessionalVideoWorkflow.h
Topic: Media Technologies SubTopic: Audio Tags:
May ’24
Reply to Cocoa [NSView viewDidLoad] debugging
Calling a method on an object that has no implementation of that method should generate an exception, that should be printed in the log when running inside Xcode. Or you could override NSApplication - (void)reportException:(NSException *)exception and handle it on your own.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24