aboutsummaryrefslogtreecommitdiff
path: root/src/docs_writer.cpp
diff options
context:
space:
mode:
authorZach Clark <zachmclark@gmail.com>2025-05-27 17:04:19 -0700
committerZach Clark <zachmclark@gmail.com>2025-05-27 17:04:19 -0700
commit78d83288a0d84c1ee4e4dc27c70a70d1ef60e03d (patch)
treeed07617f8a271dfd3746f45345e0e5510d6bf458 /src/docs_writer.cpp
parent2f2561a74520dbf1d4d6c2b1e37dbf7b6d00613b (diff)
Add missing SEL _cmd argument to objc class_addMethod IMPs
When trying to grab the window pointer off the notification in a windowDidBecomeKey implementation, I kept getting segfaults calling notification->object(). The second argument of these needs to be a SEL. https://developer.apple.com/documentation/objectivec/class_addmethod(_:_:_:_:)?language=objc#Discussion I imagine existing code is getting by by setting the window information in the delegate's context userdata, which works fine when you only have one window as you can avoid needing to call notification->object(), until you want one delegate assigned to two windows, hard to work around.
Diffstat (limited to 'src/docs_writer.cpp')
0 files changed, 0 insertions, 0 deletions