[panel orderFront:self];
}
+/**
+ * Implent NSObject's changeFont() method to receive a notification about the
+ * changed font. Note that, as of 10.14, changeFont() is deprecated in
+ * NSObject - it will be removed at some point and the application delegate
+ * will have to be declared as implementing the NSFontChanging protocol.
+ */
- (void)changeFont:(id)sender
{
int mainTerm;
record_current_savefile();
}
+/**
+ * Implement NSObject's validateMenuItem() method to override enabling or
+ * disabling a menu item. Note that, as of 10.14, validateMenuItem() is
+ * deprecated in NSObject - it will be removed at some point and the
+ * application delegate will have to be declared as implementing the
+ * NSMenuItemValidation protocol.
+ */
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem
{
SEL sel = [menuItem action];