Mercurial > dwindows
changeset 718:002f33d4439d
More 10.5 fixes... some selectors cause exceptions.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 13 Mar 2011 05:47:02 +0000 |
parents | 17923b931393 |
children | d5e49ef8f541 |
files | mac/dw.m |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Sun Mar 13 05:38:59 2011 +0000 +++ b/mac/dw.m Sun Mar 13 05:47:02 2011 +0000 @@ -2139,7 +2139,9 @@ { NSPasteboard *pasteboard = [NSPasteboard generalPasteboard]; +#if MAC_OS_X_VERSION_10_6 > MAC_OS_X_VERSION_MAX_ALLOWED [pasteboard clearContents]; +#endif [pasteboard setString:[ NSString stringWithUTF8String:str ] forType:NSStringPboardType]; } @@ -5462,7 +5464,9 @@ [window setContentView:view]; [window setDelegate:view]; [window makeKeyAndOrderFront:nil]; +#if MAC_OS_X_VERSION_10_6 > MAC_OS_X_VERSION_MAX_ALLOWED [window setAllowsConcurrentViewDrawing:NO]; +#endif [view release]; /* If it isn't a toplevel window... */ @@ -5617,6 +5621,7 @@ if([object isMemberOfClass:[NSWindow class]]) { +#if MAC_OS_X_VERSION_10_6 > MAC_OS_X_VERSION_MAX_ALLOWED NSWindow *window = object; int currentstyle = (int)[window styleMask]; int tmp; @@ -5626,6 +5631,7 @@ tmp |= style; [window setStyleMask:tmp]; +#endif } else if([object isMemberOfClass:[NSTextView class]]) {