Hi.
What is the most appropriate way to hook into the 'closeAll' command?
For now, I have implemented
- (void) closeAll: (id) sender;
in MyDerivedFromNSApplication class... And it works fine, but I have just one "problem": I can't find this method declared anywhere in any header. I only implemented the above after seeing "NSApplication closeAll:" in the call chain in the debugger. So in fact, I'm only guessing about the "(id) sender" part, and since (id) means almost nothing, I can't even be sure I'm right...
In other words, I think I'm cheating. (???) I'm *guessing* that closeAll exists in the system compile-ware, but that us public peeps are not supposed to have access to it...? ( I also tried overriding sendAction:, and then testing the SEL==closeAll, and that works, but it seems goofy if I can override closeAll: directly... )
Is it clear? I'm only just learning this cocoa stuff... Thanks.
What is the most appropriate way to hook into the 'closeAll' command?
For now, I have implemented
- (void) closeAll: (id) sender;
in MyDerivedFromNSApplication class... And it works fine, but I have just one "problem": I can't find this method declared anywhere in any header. I only implemented the above after seeing "NSApplication closeAll:" in the call chain in the debugger. So in fact, I'm only guessing about the "(id) sender" part, and since (id) means almost nothing, I can't even be sure I'm right...
In other words, I think I'm cheating. (???) I'm *guessing* that closeAll exists in the system compile-ware, but that us public peeps are not supposed to have access to it...? ( I also tried overriding sendAction:, and then testing the SEL==closeAll, and that works, but it seems goofy if I can override closeAll: directly... )
Is it clear? I'm only just learning this cocoa stuff... Thanks.