Mercurial > dwindows
changeset 1774:4cc999e757a3
Check for pointerArrayWithWeakObjects before weakObjectsPointerArray on Mac
since they seem to behave differently and the former is still available.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 15 Jul 2012 06:30:03 +0000 |
parents | da7786b8573f |
children | ae8dedac4358 |
files | mac/dw.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Sun Jul 15 05:35:30 2012 +0000 +++ b/mac/dw.m Sun Jul 15 06:30:03 2012 +0000 @@ -5,7 +5,7 @@ * (C) 2011-2012 Brian Smith <brian@dbsoft.org> * (C) 2011 Mark Hessling <mark@rexx.org> * - * Requires 10.5 or later.f + * Requires 10.5 or later. * clang -std=c99 -g -o dwtest -D__MAC__ -I. dwtest.c mac/dw.m -framework Cocoa -framework WebKit */ #import <Cocoa/Cocoa.h> @@ -1874,10 +1874,10 @@ -(void)clear { if(data) { [data removeAllObjects]; while([titles count]) { [titles removePointerAtIndex:0]; } } lastAddPoint = 0; } -(void)setup { - SEL swopa = NSSelectorFromString(@"weakObjectsPointerArray"); + SEL swopa = NSSelectorFromString(@"pointerArrayWithWeakObjects"); if(![[NSPointerArray class] respondsToSelector:swopa]) - swopa = NSSelectorFromString(@"pointerArrayWithWeakObjects"); + swopa = NSSelectorFromString(@"weakObjectsPointerArray"); if(![[NSPointerArray class] respondsToSelector:swopa]) return;