News for hackers. Stuff that matters.
Re:React as a UI Runtime by mpweiher on Sunday February 03, 2019 @04:16PM (#19072265)
Just checked how many implementations of drawRect there are in different apps:

Pages: 63

Keynote: 81

Numbers: 61

Re:React as a UI Runtime by coldtea on Monday February 04, 2019 @03:58AM (#19074896)
Compared to how many uses of ordinary widgets though?

And are those uses because that's how they draw their overall UI -- e.g. do they use drawRect as the main paradigm, or do they merely create new widget looks and behaviors (that they then treat the same as Cocoa ready-made widgets, append to parent, etc)?

E.g. do they draw the UI or some large part of the UI that way, or is just drawRect used to have some custom looking derivative of Button, Label and so on?

Re:React as a UI Runtime by mpweiher on Monday February 04, 2019 @10:45AM (#19077199)
There were actually 130 (I had forgotten CALayer's drawInContext:). Of these 100 were either direct NSView subclasses or CALayer subclasses. Of the remaining, a quick scan indicates around 20 direct or indirect subclasses of NSControl.