Post

Replies

Boosts

Views

Activity

Reply to NSMuatableAttributedString's appendString method only exist in iPhone-device build in iOS18, and not exist in Simulator-build
To avoid such things randomly exploding, it's better to add a three letter prefix to each category method of system classes. Objective-C has got no namespaces, so if you add a category to a system class, and then Apple implements something with the same name, bad things happen™. Maybe Apple's symbol it's in a library that's not loaded in the simulator? The simulator it's not an emulator, so often there are many differences.
6d
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.
Jul ’24