Remove 1 deprecation warning.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2017-11-03 12:09:20 +00:00
parent 54571fcacf
commit 8f52feac84

View File

@ -427,7 +427,7 @@ void Fl_Cocoa_Printer_Driver::draw_decorated_window(Fl_Window *win, int x_offset
return;
}
Fl_Display_Device::display_device()->set_current(); // send win to front and make it current
NSString *title = [fl_xid(win) title];
NSString *title = [(NSWindow*)fl_xid(win) title];
[title retain];
[(NSWindow*)fl_xid(win) setTitle:@""]; // temporarily set a void window title
win->show();