summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
AgeCommit message (Collapse)Author
2013-04-30Use the [NSimage initWithCGImage:size:] message when possible.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-26Changed © (copyright) date to 2013.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-19Cosmetic improvement of image used when dragging non-text data.Manolo Gouy
Minimum OS version has been verified. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9892 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-18Cosmetic improvement of image used when dragging non-text data.Manolo Gouy
Minimum OS version still has to be verified. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-16Renamed src/Fl_Sys_Menu_Bar.cxx to src/Fl_Sys_Menu_Bar.mm because ↵Manolo Gouy
objective-c code is used. Some code is transferred from Fl_cocoa.mm thus reducing somewhat this very large source file. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9885 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-15Removed processing of obsolete deadkey flag.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9882 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-15Reduced the usage of global variables.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-09Mac OS text input: fixed processing of dead key followed by non-text key.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9817 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-08Mac OS text input: removed the Fl::marked_text_length() function that's not ↵Manolo Gouy
necessary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-02Mac OS text input: a single FL_KEYBOARD event is now sent when processing ↵Manolo Gouy
dead keys. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-28Fix STR#2928: alt+e on US keyboard not processed correctly as shortcut on ↵Manolo Gouy
Mac OS. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-25Mac OS: added support for internationalization of the application menu.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-20Mac OS: changed memory allocation style of static NSBitmapImageRep* ↵Manolo Gouy
rect_to_NSBitmapImageRep(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-19Mac OS: fixed a crash when printing window with OS 10.5Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-19Mac OS: fixed processing of system menu shortcuts that had been partly ↵Manolo Gouy
damaged in r.9799, and fixed application menu with OS <= 10.3 that was duplicated. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9803 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-18r.9800 was a bad move; going back.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-18Simplification of the - (BOOL)[FLView ↵Manolo Gouy
performKeyEquivalent:(NSEvent*)theEvent] method. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-17Mac OS: reorganized the text input handling code. Added a detailed ↵Manolo Gouy
description of what the code does for this rather complex issue in comments. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-14Mac OS: added support for the text input feature introduced in OS 10.7 ↵Manolo Gouy
"Lion" where pressing and holding some key opens a window with possible accented characters: added [NSView windowLevel] useful for fullscreen windows. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-13Mac OS: added support for the text input feature introduced in OS 10.7 ↵Manolo Gouy
"Lion" where pressing and holding some key opens a window with possible accented characters. This feature is used by the Fl_Input_ and Fl_Text_Editor widgets. User-defined text input widgets can optionally use this feature, but the default behavior is to not use it. Fl_Secret_Input turns it off, for example. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-10About the fix for a problem apparent with the "cube" test program:Manolo Gouy
if the cube window is moved around rapidly, the GL pixels leak away from where they should be. This problem no longer occurs with Mac OS 10.7 and above. The fix is thus made effective only when OS < 10.7. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9790 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-08Fix STR#2915 where subwindow stayed hidden after hide() and then show().Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-07Mac OS: divided the FLDelegate object in two objects, FLWindowDelegate and ↵Manolo Gouy
FLAppDelegate. This might help mixing FLTK and other window-creating systems. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-26Mac OS text input: corrected processing of arrow keys during character ↵Manolo Gouy
composition. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-24Mac OS text input: defined a small API that user-defined text editing ↵Manolo Gouy
widgets can use to signal marked text. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-20Mac OS text input: corrected minor issue when text widget is in a subwindow ↵Manolo Gouy
(cont'd). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-20Mac OS text input: corrected minor issue when text widget is in a subwindow.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-18Removed compilation warning.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9766 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-18Mac OS text input support: use primary selection for marked text in ↵Manolo Gouy
Fl_Text_Display + some reformatting. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-17Mac OS: improved text input support with visible display of marked text in ↵Manolo Gouy
text widgets. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9761 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-16Mac OS text input: set marked text as selected in text widgets so user is ↵Manolo Gouy
aware of it. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-15Mac OS text input: Fl::compose_state is a number of bytes (not of characters).Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9757 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-15Mac OS: fixed [FLView keyDown:] for OS 10.3Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9755 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-14Mac OS: fixed [FLView keyDown:] for OS ≤ 10.5Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9754 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-14MacOS: towards implementing the NSTextInput protocol to support the text ↵Manolo Gouy
input management system (cont'd). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9753 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-14MacOS: towards implementing the NSTextInput protocol to support the text ↵Manolo Gouy
input management system. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9752 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-30Fix STR #2890: MacOS unbundled applications don't appear in dock nor menu ↵Manolo Gouy
bar (cont'd). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9734 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-21Fix STR #2890: MacOS 10.8 unbundled applications don't appear in dock nor ↵Manolo Gouy
menu bar git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-17Mac OS: make clear that image capture from screen returns an image in ↵Manolo Gouy
premultiplied RGBA format (cont'd). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-15Mac OS: make clear that image capture from screen returns an image in ↵Manolo Gouy
premultiplied RGBA format. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-15Fixes STR #2887: Fl_Scroll widget fails under Mac OS X 10.8 on MacBook Pro ↵Manolo Gouy
with retina display. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9721 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-13Fix a Mac OS bug appeared with OS X 10.8: when a file is dragged on the ↵Manolo Gouy
application icon, a delay of several seconds occur until the first application window opens (cont'd). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9716 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-12Fix a Mac OS bug appeared with OS X 10.8: when a file is dragged on the ↵Manolo Gouy
application icon, a delay of several seconds occur until the first application window opens. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9715 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-09-28Added missing use of NSAutoreleasePool object in calc_mac_os_version().Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-09-27Removed several deprecation warnings.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-09-26Removed deprecation warning for FSCompareFSRefs().Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-09-17Fix for bug described in fltk.development "fl_scroll not copying all ↵Manolo Gouy
channels on OS X" http://www.fltk.org/newsgroups.php?s13117+gfltk.development+v13134+T0 Sending the CGImage message to an NSBitmapImageRep object seems to be the solution when Mac OS X >=10.5. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-16Mac OS: some optimization of timer objects + code reordering.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-15Mac OS: improved Fl::repeat_timeout() so the next scheduled timeout is ↵Manolo Gouy
counted from the previous one. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9611 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-14Mac OS: added necessary fl_open_display() in Fl::y() and ↵Manolo Gouy
Fl_X::screen_work_area() functions. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9602 ea41ed52-d2ee-0310-a9c1-e6b18d33e121