Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: `Bind` to widget vs. `action:sender ` architecture – Tk vs. Cocoa
3 points by mucholove on Dec 16, 2019 | hide | past | favorite | 1 comment
Hi all! I'm using Tk for the first time and am comparing it with my experience using Apple's Cocoa.

Though I love how fast Tk is to get up and running—I'm sort of missing the flexibility provided by `sender:action`—not to mention that it brings up a lot of questions regarding app architecture.

Can you help clear out what the common nomenclature is between these 2 different architectures? What kind of problems should I expect as I develop between the 2?




You can actually use the sender architecture in TCL!

It’s a bit hidden—but you can call %W and get a reference to the TK Widget and therefore any stored property that might be on there. Rad.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: