Why isn't changeFont: being called from my NSFontPanel?
问题 I'm creating an NSFontPanel but selecting a font doesn't call the changeFont: method. I have these methods defined in an NSWindowController subclass: - (IBAction)showFontPanel:(id)sender { [[NSFontPanel sharedFontPanel] makeKeyAndOrderFront:self]; NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; NSFont *theFont = [NSFont fontWithName:[prefs stringForKey:iepFontName] size:[prefs floatForKey:iepFontSize]]; [[NSFontPanel sharedFontPanel] setPanelFont:theFont isMultiple:NO]; [