|
@@ -28,7 +28,10 @@ unit uMyDarwin;
|
|
|
interface
|
|
|
|
|
|
uses
|
|
|
- Classes, SysUtils, UnixType, MacOSAll, CocoaAll, CocoaUtils, CocoaInt, Cocoa_Extra, InterfaceBase, Menus, CocoaWSMenus;
|
|
|
+ Classes, SysUtils, UnixType,
|
|
|
+ InterfaceBase, Controls, Menus,
|
|
|
+ MacOSAll, CocoaAll, CocoaPrivate, CocoaInt,
|
|
|
+ Cocoa_Extra, CocoaWSMenus, CocoaUtils;
|
|
|
|
|
|
// Darwin Util Function
|
|
|
function StringToNSString(const S: String): NSString;
|
|
@@ -36,6 +39,8 @@ function StringToCFStringRef(const S: String): CFStringRef;
|
|
|
function NSArrayToList(const theArray:NSArray): TStringList;
|
|
|
function ListToNSArray(const list:TStrings): NSArray;
|
|
|
|
|
|
+procedure cocoaInvalidControlCursor( const control:TWinControl );
|
|
|
+
|
|
|
function NSGetTempPath: String;
|
|
|
|
|
|
function NSGetFolderPath(Folder: NSSearchPathDirectory): String;
|
|
@@ -326,6 +331,19 @@ begin
|
|
|
CFRelease(FileNameRef);
|
|
|
end;
|
|
|
|
|
|
+
|
|
|
+procedure cocoaInvalidControlCursor( const control:TWinControl );
|
|
|
+var
|
|
|
+ view: NSView;
|
|
|
+begin
|
|
|
+ if control.HandleAllocated then
|
|
|
+ begin
|
|
|
+ view:= NSObject(control.Handle).lclContentView;
|
|
|
+ view.window.invalidateCursorRectsForView( view );
|
|
|
+ end;
|
|
|
+end;
|
|
|
+
|
|
|
+
|
|
|
var
|
|
|
NetFS: TLibHandle = NilHandle;
|
|
|
CoreServices: TLibHandle = NilHandle;
|