diff options
| author | Manolo Gouy <Manolo> | 2013-09-23 19:00:15 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2013-09-23 19:00:15 +0000 |
| commit | 3d7d2938c7378d3197a30ffc999b56d0a62e3540 (patch) | |
| tree | 48ed125bf17f0e082fff7c25796dde61b99af2dd /src | |
| parent | cedcc3f52e7d60ed13f3e825147f9590cb1045dd (diff) | |
Fixes the copy/paste implementation to run on many Mac OS versions.
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 2c45e9f94..2b68ea887 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2703,7 +2703,13 @@ static void convert_crlf(char * s, size_t len) } // fltk 1.3 clipboard support constant definitions: -static const NSString *utf8_format = @"public.utf8-plain-text"; +static const NSString *calc_utf8_format(void) +{ + if (fl_mac_os_version >= 100500) return @"public.utf8-plain-text"; + return NSStringPboardType; +} + +static const NSString *utf8_format = calc_utf8_format(); // clipboard variables definitions : char *fl_selection_buffer[2]; |
