Use ‘assign’ instead of ‘weak’ when building for 10.7

On Mac OS X 10.7 we cannot use weak references to (amongst others) NSImage objects. In this case, there shouldn’t be a problem with using assign.
This commit is contained in:
Allan Odgaard
2014-03-13 09:30:45 +07:00
parent 159edd8aad
commit 20dd3f0126

View File

@@ -82,7 +82,11 @@ static NSImage* BadgeForSCMStatus (scm::status::type scmStatus)
// ===============================
@interface OakFileIconImageRep : NSImageRep
#if !defined(MAC_OS_X_VERSION_10_7) || (MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_7)
@property (nonatomic, assign) OakFileIconImage* fileIconImage;
#else
@property (nonatomic, weak) OakFileIconImage* fileIconImage;
#endif
@property (nonatomic) NSArray* imageStack;
@end