Commits

Peter Hosey  committed 12f33ca

When a document window becomes main, update the shared Font Manager with the hash-display font for that window's document.

  • Participants
  • Parent commits 4599b16
  • Branches lion-only

Comments (0)

Files changed (1)

File MyDocument.m

 
 @end
 
+@interface MyDocument (WindowDelegateConformance) <NSWindowDelegate>
+@end
+
 @implementation MyDocument
 {
 	SecGroupTransformRef MD5, SHA1;
 }
 
 @end
+
+@implementation MyDocument (WindowDelegateConformance)
+
+- (void) windowDidBecomeMain:(NSNotification *)notification {
+	[[NSFontManager sharedFontManager] setSelectedFont:self.displayFont isMultiple:NO];
+}
+
+@end