From b2561363f730fc2d10f28d8af9a2e3ca2698ecf5 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 11 Jul 2011 14:53:07 +0000 Subject: Mac OS: fix STR #2666 allowing to display copyright info in the default About window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 02a40569b..9ebbfc472 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2866,10 +2866,11 @@ void Fl_X::set_cursor(Fl_Cursor c) { NSDictionary *options; options = [NSDictionary dictionaryWithObjectsAndKeys: - [NSString stringWithFormat:@" GUI with FLTK %d.%d", FL_MAJOR_VERSION, - FL_MINOR_VERSION ], @"Copyright", + [[[NSAttributedString alloc] + initWithString:[NSString stringWithFormat:@" GUI with FLTK %d.%d", + FL_MAJOR_VERSION, FL_MINOR_VERSION ]] autorelease], @"Credits", nil]; - [NSApp orderFrontStandardAboutPanelWithOptions:options]; + [NSApp orderFrontStandardAboutPanelWithOptions:options]; } //#include - (void)printPanel -- cgit v1.2.3