mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user