Skip to content

Commit 9cdb9f1

Browse files
author
Lars Steiger
committed
[NSMapTable mapTableWithStrongToStrongObjects] is deprecated in 10.8
1 parent 9875f67 commit 9cdb9f1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

FsprgEmbeddedStore/FsprgEmbeddedStoreController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ - (id) init
4444
[self setDelegate:nil];
4545
[self setStoreHost:nil];
4646
[self setHostCertificates:[NSMutableDictionary dictionary]];
47+
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8
48+
[self setConnectionsToRequests:[NSMapTable strongToStrongObjectsMapTable]];
49+
#else
4750
[self setConnectionsToRequests:[NSMapTable mapTableWithStrongToStrongObjects]];
51+
#endif
4852
}
4953
return self;
5054
}

0 commit comments

Comments
 (0)