Charles Whittington

Results 19 comments of Charles Whittington

One possible counterpoint is that while copy is Ctrl/Cmd C, cut and paste are X and V. I don't think those mean anything beyond the fact that they're physically next...

That makes sense. I did, in fact, have generalized tabbing on other platforms in mind, but that's probably getting way ahead of myself. I've learned two new things: - A...

Not sure what was going on with artifact downloading, but I guess it's working now? I've encountered an odd issue. I changed the Merge All Windows command to use a...

> SEL is a "selector" - which is Objective C terminology for a dynamic method call. When you invoke [myobj somemethod], somemethod is the selector. When you construct a menu...

My two cents: I think this arrangement feels more intuitive than the multiple-classes route, and quite possibly avoids snarly inheritance problems down the road. There's a use case this abstraction...

Hmm. `main_window = LAST_WINDOW` or even `exit_window = LAST_WINDOW` is indeed a nice, clear description for how it's implemented on GTK/Windows, less so for Mac. Ideally one would be specifying...

> > Ideally one would be specifying the "flavor" or "intent" of app they want to make, and the persistent/close-on-last-window behavior is abstracted away. > > That's usually spelled "subclassing"...

Yep, that's exactly what I meant! | `main_window` value | App behavior | |-------------------------|------------------------------------------------------------| | `toga.BACKGROUND_APP` | Background app (systray / menubar item) | | Any window instance | App...

Ah, I had not thought of that. I could see an argument for either option (accepting the behavior or raising an error), or for a middle ground of printing a...

> The only difference between MainWindow and Window would be that closing a MainWindow exits the app. But there's no need to enforce that there's exactly one MainWindow. We could...