0
;; @copyright Copyright (c) 2007 Tim Burks, Neon Design Technology, Inc.
0
-(global kPDFDisplaySinglePage 0)
0
-(global NSDragOperationCopy 1)
0
-(global NSPDFPboardType "Apple PDF pasteboard type")
0
-(global NSDragPboard "Apple CFPasteboard drag")
0
-(global NSRectClip (NuBridgedFunction functionWithName:"NSRectClip" signature:"v{_NSRect}"))
0
-(global NSIntersectionRect (NuBridgedFunction functionWithName:"NSIntersectionRect" signature:"{_NSRect}{_NSRect}{_NSRect}"))
0
-(global NSPointInRect (NuBridgedFunction functionWithName:"NSPointInRect" signature:"i{_NSPoint}{_NSRect}"))
0
-(global NSFilenamesPboardType "NSFilenamesPboardType")
0
-(global NSIntersectsRect (NuBridgedFunction functionWithName:"NSIntersectsRect" signature:"i{_NSRect}{_NSRect}"))
0
-(global NSInsetRect (NuBridgedFunction functionWithName:"NSInsetRect" signature:"{_NSRect}{_NSRect}ff"))
0
-(global NSSquareLineCapStyle 2)
0
\ No newline at end of file
0
+;; Switch on OS release.
0
+(if (>= 9 ((((NSString stringWithShellCommand:"uname -r") componentsSeparatedByString:".") objectAtIndex:0) intValue))
0
+ (then ;; Use Leopard BridgeSupport files
0
+ (load "bridgesupport")
0
+ (else ;; declare constants manually
0
+ (global kPDFDisplaySinglePage 0)
0
+ (global NSDragOperationCopy 1)
0
+ (global NSPDFPboardType "Apple PDF pasteboard type")
0
+ (global NSDragPboard "Apple CFPasteboard drag")
0
+ (global NSRectClip (NuBridgedFunction functionWithName:"NSRectClip" signature:"v{_NSRect}"))
0
+ (global NSIntersectionRect (NuBridgedFunction functionWithName:"NSIntersectionRect" signature:"{_NSRect}{_NSRect}{_NSRect}"))
0
+ (global NSPointInRect (NuBridgedFunction functionWithName:"NSPointInRect" signature:"i{_NSPoint}{_NSRect}"))
0
+ (global NSFilenamesPboardType "NSFilenamesPboardType")
0
+ (global NSIntersectsRect (NuBridgedFunction functionWithName:"NSIntersectsRect" signature:"i{_NSRect}{_NSRect}"))
0
+ (global NSInsetRect (NuBridgedFunction functionWithName:"NSInsetRect" signature:"{_NSRect}{_NSRect}ff"))
0
+ (global NSSquareLineCapStyle 2)))
0
\ No newline at end of file
Comments
No one has commented yet.