From 54571fcacfffbccb191df0843cb5df6b881b8d85 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 3 Nov 2017 10:36:15 +0000 Subject: Remove 3 deprecation warnings. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm b/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm index a3fb55034..95382f50e 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm +++ b/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm @@ -429,13 +429,13 @@ void Fl_Cocoa_Printer_Driver::draw_decorated_window(Fl_Window *win, int x_offset Fl_Display_Device::display_device()->set_current(); // send win to front and make it current NSString *title = [fl_xid(win) title]; [title retain]; - [fl_xid(win) setTitle:@""]; // temporarily set a void window title + [(NSWindow*)fl_xid(win) setTitle:@""]; // temporarily set a void window title win->show(); Fl::check(); // capture the window title bar with no title Fl_Shared_Image *top, *left, *bottom, *right; win->driver()->capture_titlebar_and_borders(top, left, bottom, right); - [fl_xid(win) setTitle:title]; // put back the window title + [(NSWindow*)fl_xid(win) setTitle:title]; // put back the window title this->set_current(); // back to the Fl_Paged_Device top->draw(x_offset, y_offset); // print the title bar top->release(); -- cgit v1.2.3