summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
AgeCommit message (Collapse)Author
2014-09-15Add methods to enable and disable the system's input methods.Pierre Ossman
This needs to be done from FLTK as it affects the window interaction, which FLTK is largely responsible for. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-15Add methods to intercept low level system events.Pierre Ossman
This gives applications the means to handle some low level integration with the system that might otherwise not be possible without modifying FLTK itself. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13Removed several compilation warnings with OS X SDK 10.10Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13Allow compilation with SDK 10.10 and use new API to discover os version at ↵Manolo Gouy
runtime. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13Allow compilation with SDK 10.10 and use new API to identify OS version at ↵Manolo Gouy
runtime. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-09Fix for STR #3128Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-07Handle deprecation with Mac OS 10.9 of SetFrontProcess(), ↵Manolo Gouy
GetCurrentProcess(), GetFrontProcess(), SameProcess(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-27Added the Fl_Shaped_Window class to support windows of arbitrary shapes.Manolo Gouy
The new class is fully Doxygen-documented. Added an example program (example/shapedwindow.cxx) that exercises the new class. Modified all IDE-supporting files accordingly. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-26Mac OS: a borderless, non-modal window was not created properly.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-17Fix inverted logic. It's the even depth values that include alpha.Pierre Ossman
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16Add method to set any custom cursor, based on a Fl_RGB_Image object.Pierre Ossman
Also change our fallback cursors to use this method, so that fallback cursors are handled in a platform independent manner. STR #2660. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16Make sure that modal and non-modal windows are at a higher levelPierre Ossman
than "normal" windows. This is mostly necessary when full screen windows are present as those are raised to a higher level in order to obscure the dock and main menu. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-15After r.10119 calling Fl_Window::make_current() within a widget's draw ↵Manolo Gouy
function created errors. This patch fixes that. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-11canBecomeMainWindow() is not absolutely necessary, but it makesPierre Ossman
the window decorations behave better by properly graying out windows that will have their input stolen by a modal one. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-11Support for full screen over multiple monitors.Pierre Ossman
The API follows that of EWMH, which gives you a good control over which monitors to use. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23Added copy/paste from/to FLTK applications of graphical data.Manolo Gouy
Added Fl_Image_Surface class to draw into an Fl_Image object. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-27Fix STR#3063: compilation using Mac OS 10.4 (cont'd).Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-27Fix STR#3063: compilation using Mac OS 10.4 (cont'd).Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-22Mac OS: drawing to windows at each FLTK event loop is now done as normally ↵Manolo Gouy
with Cocoa, that is, by the [NSView drawRect:] implementation. The system therefore has prepared before the adequate graphics context for the window. This introduces a limitation: it's not possible to call Fl::wait(), Fl::check() nor Fl::ready() while in the draw() function of a widget. Use an idle callback instead. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-23print_window():: make the test specific to a printer device.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-30Mac OS: have Fl_Paged_Device::print_window() support all devices.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-22Mac OS: handle possible NULL return after screen capture attempt.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21Mac OS: use the exact title bar font when printing window.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10077 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21Mac OS: improved window printing when window title is longer than the window ↵Manolo Gouy
width. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-19Mac OS: drawing to screen is now performed by direct drawing to windows ↵Manolo Gouy
(drawing was done to views before). This eliminates the necessity to lock/unlock views that was tricky to do properly because of interaction with undocumented system-performed locks. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-18Mac OS: put idle processing under an alloc/release pair of an NSAutoreleasePool.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-07Cleaner definition under Mac OS of the fl_default_cursor global variable ↵Manolo Gouy
that doesn't hide its type. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-20Mac OS text input: fixed minor problem when typing cmd-key while there's ↵Manolo Gouy
marked text. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-11Added informative comment to Fl_Paged_Device::print_window()Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-10Removed use of deprecated NSStringPboardType constant.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-09Simplified the code that supports application opening by dropping file onto ↵Manolo Gouy
icon. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-08Improved window printing by using a vectorial font for the window title.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-30The FLView object is now released just after the setContentView message is sent.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-29Fix STR#3010: Program can crash under Mac OS when a dialog window is closedManolo Gouy
if the opening of this dialog window made the previous window to be redrawn. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10021 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-13Bracket calls to timer callbacks with ↵Manolo Gouy
fl_lock_function()/fl_unlock_function() as occurs under WIN32 and X11. This was also missing in the FLTK 1.1 carbon version. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10019 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-29Fix mac-specific STR#2999. Use PostScript font name to ask the system for a ↵Manolo Gouy
font, and full font name to display a font name. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-23Modified Fl_Paged_Device::print_window() so it works with any kind of ↵Manolo Gouy
Fl_Paged_Device instance. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-25Removed some of the warnings mentioned in [fltk.coredev] New warnings with ↵Manolo Gouy
FLTK 1.3.x svn r9991 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24Remove errors with the Apple LLVM version 4.2 compiler.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24Clarification of change in constant used for text-containing pasteboards ↵Manolo Gouy
across Mac OS versions. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-23Fixes the copy/paste implementation to run on many Mac OS versions.Manolo Gouy
Checked on 10.3, 10.5, 10.6 and 10.8 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-23Fixed implementation of paste with NSPasteboard that did not work well under ↵Manolo Gouy
Mac OS 10.5 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-12Implemented copy/paste with Cocoa's NSPasteboard instead of Core ↵Manolo Gouy
Foundation's Pasteboard Manager which allows quite simpler code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-11STR 2636. Add ability to get notifications whenever thePierre Ossman
clipboard changes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-06Fixed typo in comments.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-05Removed linkage with undocumented function CPSEnableForegroundOperation() ↵Manolo Gouy
used to support Mac OS 10.2 or below. This made no sense because the Copy/Paste implementation requires Mac OS 10.3. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9964 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-04Copy directly pasteboard data when pasting if it's UTF-8 encoded.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9962 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-04Added fl_lock/unlock_function() calls for extra caution in - ↵Manolo Gouy
(void)applicationDidChangeScreenParameters: git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-29Mac OS X text input: stop sending the FL_PASTE event after character palette ↵Manolo Gouy
events; send instead FL_KEYBOARD as for regular text input. Fl::event_key() will return 0 during palette events. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9927 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-08Call [NSWindow setRestorable:NO] for each FLTK window.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121