Source/AIInterfaceController.m
branchadium-1.5.11
changeset 6016 325e2ab3406f
parent 4897 5ea3bd51010d
equal deleted inserted replaced
6014:fcb71cb71a3d 6016:325e2ab3406f
  1828 #pragma mark Custom Printing
  1828 #pragma mark Custom Printing
  1829 - (IBAction)adiumPrint:(id)sender
  1829 - (IBAction)adiumPrint:(id)sender
  1830 {
  1830 {
  1831 	//Pass the print command to the window, which is responsible for routing it to the correct place or
  1831 	//Pass the print command to the window, which is responsible for routing it to the correct place or
  1832 	//creating a view and printing.  Adium will not print from a window that does not respond to adiumPrint:
  1832 	//creating a view and printing.  Adium will not print from a window that does not respond to adiumPrint:
  1833 	NSWindow	*keyWindowController = [[[NSApplication sharedApplication] keyWindow] windowController];
  1833 	NSWindowController	*keyWindowController = [[[NSApplication sharedApplication] keyWindow] windowController];
  1834 	if ([keyWindowController respondsToSelector:@selector(adiumPrint:)]) {
  1834 	if ([keyWindowController respondsToSelector:@selector(adiumPrint:)]) {
  1835 		[keyWindowController performSelector:@selector(adiumPrint:)
  1835 		[keyWindowController performSelector:@selector(adiumPrint:)
  1836 								  withObject:sender];
  1836 								  withObject:sender];
  1837 	}
  1837 	}
  1838 }
  1838 }