summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
AgeCommit message (Collapse)Author
2011-06-16Fix STR #2665: Mac OS: use bundle name when available.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16Fix STR #2664.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-03Fixes bug entitled "Fl::event_text() omitted for keyups?" in fltk.development.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-31Fix STR #2652: Mac OS-specific bug in Fl::remove_fd().Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8771 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-30Fix Fl_Paged_Device::print_window(), Fl_Window::decorated_w() and ↵Manolo Gouy
Fl_Window::decorated_h() when the window is iconized for all platforms. Also, factorized some duplicated code in src/Fl_x.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-21Fix STR #2635 for Mac OS: allow fl_xid() even if window is not yet shown.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-15Mac OS: implemented the effect of the 2nd arg of Fl_Window::label(label, ↵Manolo Gouy
iconlabel) - continued. Now works also if called before the window is shown(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-15Mac OS: implemented the effect of the 2nd arg of Fl_Window::label(label, ↵Manolo Gouy
iconlabel) that sets the window name when it is iconized (or minimized). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-13Fix for STR #2629: remove beep when typing cmd-<key> under Mac OS.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-12Mac OS: simplified by removing Fl_X::contains_GL_subwindow() function. Manolo Gouy
This operation is now performed within Fl_cocoa.mm git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-11On Mac OS, allow creation of a window in a minimized form.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-07Restoring correct keyboard handling under Mac OS X 10.5.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-29Corrected spurious FL_NUMLOCK setting.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-27Reorganized keyboard input-handling code.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8626 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-22Mac OS: exact implementation of the Fl::screen_dpi() function.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8619 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-19Added fallback mechanism if malformed UTF-8 is used for a window title.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8608 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-19Misc code cleaning.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8607 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-18Mac OS: The Fl_mac.cxx testManolo Gouy
if (winclass != kHelpWindowClass) is now replaced in Fl_cocoa.mm by its exact equivalent: if ( w->border() || (!w->modal() && !w->tooltip_window()) ) so that tooltip windows are handled as in carbon. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8601 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-17Mac OS: Fixed bug where an application could be left with only a tooltip ↵Manolo Gouy
window opened. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8599 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-17A quick hack to prevent the OSX tooltip-crash onIan MacArthur
badly formed UTF8 strings. This probably is not the best solution, but it does work. Note that the problem actually seems to be in setting the window title, and indeed if you try to label ANY window with a badly formed UTF8 string (not just a tooltip) you get the same exception thrown. NOTE: I'm not even sure why we try to set the window title in tooltips, as it is never used and the tooltip label itlsef still works fine. Anyway, we can do something better, but this will work for now. Aside: If you close an app on OSX whilst a tooltip is visible, the app will not exit, as there is still a window open (the tooltip) but no way to cancel the tooltip. Don't know if this is OSX specific or not though but it is certainly a bug. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8598 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-15Added Fl_Paged_Device::print_window() to print a window with its title bar ↵Manolo Gouy
and frame. Added Fl_Window::decorated_w() and Fl_Window::decorated_h() that return the size of a window with its title bar and frame. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-13Improved the accuracy of clipping when printing on Mac OS.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8586 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-13Now sends FL_HIDE/FL_SHOW events when window is iconized/un-iconized.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-12Restores change made in r.8557 that blocked system menu shortcuts.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8583 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-11Added missing fl_lock_function() / fl_unlock_function() pairs of calls.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8576 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-08Added missing test of necessity of fl_open_display() call.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8571 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-06Window title bars are now printed with their rounded angles.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-05Mac OS: Fl_Window::resize() shd not modify the maximum window size if it is 0.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-05Removed an NSAutoreleasePool allocation/release.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-05Mac OS: the "Print Front Window" item of the application menu now prints ↵Manolo Gouy
also the title bar. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-05Removed usage of NSMainMenuWindowLevel to use only 3 window levels.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-03Mac OS: removed duplicate FL_KEYBOARDS events with function and modifier keys.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-01about STR #2599: - fix the synchro between key presses and key eventsManolo Gouy
- implement character palette input by FL_PASTE events git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-01Fixed dependencies of bundled libs, corrected a typo.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-01Mac OS: fixes in STR #2588 the warning message "_createMenuRef called with ↵Manolo Gouy
existing principal MenuRef already associated with menu". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-30Mac OS: Make the Fl::event_key() function distinguish between left and right ↵Manolo Gouy
modifier keys. Also, don't rebuild the application menu if one is already there. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-30Removed global variable appleMenu.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-29Fix STR #2588. FLTK was subclassing a very important system-defined class ↵Manolo Gouy
NSApplication. This created conflict with other libraries that do the same. This STR reports that Tcl/Tk is one such library. The fix removes any NSApplication subclass usage in FLTK, and requires to initialize the NSApplication-subclassing library before calling fl_open_display(). In this condition an FLTK application can also use an NSApplication-subclassing library such as Tk. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-29Set svn properties.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-29Minor change.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-28Mac OS: simplified the handling of text input:Manolo Gouy
use the FLTextView subclass of NSTextView only for Mac OS < 10.5 because it's not necessary for Mac OS >= 10.5 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-28Mac OS: added field subwindow to Fl_X class that is true if this is a subwindow.Manolo Gouy
Useful when deleting a window because subwindows share their xid with their parent window (unlike under MSWIn or Xlib), so subwindows should not delete their xid. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-25Fix STR #2595. Mac OS. When deleting a subwindow, don't delete the Cocoa window Manolo Gouy
(xid) attached to it because it is in fact the Cocoa window of its parent window. I check that by making sure that none of the windows in the window list uses this Cocoa window. Is there a better algorithm ? git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-25Mac OS: implement the Cocoa equivalent of Carbon's kEventWindowHidden handler.Manolo Gouy
Positive effect visible with the clock demo. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-24Fix STR #2594: the focus after creating a new window was not set correctlyManolo Gouy
because some code present in Fl_mac.cxx was not reflected in Fl_cocoa.mm. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-20Fix STR #2589: incorrect cohabitation of modal and non-modal windows.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-04Mac OS: modified the definition of the fl_mac_os_version global variable to ↵Manolo Gouy
allow v 10.10.10 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-01STR 2580: the first Fl::add_timeout() call now calls fl_open_display() ↵Manolo Gouy
because that is necessary for timeout events to be recovered by the event loop. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-01STR 2580: Fl::add_fd() now calls fl_open_display() because that is necessary ↵Manolo Gouy
for the fd event to be recovered by the event loop. Before main() is called, only fl_mac_os_version is initialized. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8488 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-28The got_events global variable is now updated when an event is processed by ↵Manolo Gouy
do_queued_events git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121