mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 19:56:21 +02:00
Cocoa: fix typos
This commit is contained in:
parent
890ae752ca
commit
e5b2c70c00
@ -603,7 +603,7 @@ end;
|
||||
|
||||
function getNSStringObject( const aString: id ) : NSString;
|
||||
begin
|
||||
if aString.isKindOfClass( NSAttributedString.classClass ) then
|
||||
if aString.isKindOfClass( NSAttributedString ) then
|
||||
Result:= NSAttributedString( aString ).string_
|
||||
else
|
||||
Result:= NSString( aString );
|
||||
|
@ -290,7 +290,7 @@ begin
|
||||
if sc.frame.size.height = 0 then Exit; // do nothing
|
||||
ps := pt.y / sc.frame.size.height;
|
||||
end;
|
||||
sz := (sc.maxInt - sc.minInt - sc.pageInt);;
|
||||
sz := (sc.maxInt - sc.minInt - sc.pageInt);
|
||||
newPos := Round(sc.minInt + sz * ps);
|
||||
sc.lclSetPos(NewPos);
|
||||
end;
|
||||
|
@ -2726,7 +2726,7 @@ begin
|
||||
SM_LCLHasFormAlphaBlend:
|
||||
Result := 1;
|
||||
else
|
||||
DebugLn('TCocoaWidgetSet.GetSystemMetrics TODO ', DbgS(NIndex));;
|
||||
DebugLn('TCocoaWidgetSet.GetSystemMetrics TODO ', DbgS(NIndex));
|
||||
end;
|
||||
|
||||
{$IFDEF VerboseWinAPI}
|
||||
|
@ -1059,7 +1059,6 @@ end;
|
||||
// between LCL and COCOA, see also:
|
||||
// https://wiki.lazarus.freepascal.org/Cocoa_Internals/Application#Focus_Change
|
||||
// 4. makeFirstResponder() is Reentrant and Thread-safe
|
||||
//
|
||||
function TCocoaWindow.makeFirstResponder( aResponder : NSResponder ): ObjCBOOL;
|
||||
var
|
||||
lastResponder : NSResponder;
|
||||
|
@ -1051,7 +1051,7 @@ begin
|
||||
sz := lTableLV.intercellSpacing;
|
||||
// Windows compatibility. on Windows there's no extra space between columns
|
||||
sz.width := 0;
|
||||
lTableLV.setIntercellSpacing(sz);;
|
||||
lTableLV.setIntercellSpacing(sz);
|
||||
lTableLV.release;
|
||||
{$IFDEF COCOA_DEBUG_LISTVIEW}
|
||||
WriteLn(Format('[TCocoaWSCustomListView.CreateHandle] headerView=%d', [PtrInt(lTableLV.headerView)]));
|
||||
|
@ -402,7 +402,7 @@ var
|
||||
control: TControl;
|
||||
begin
|
||||
GetCursorPos(P);
|
||||
control:= FindControlAtPosition(P, true);;
|
||||
control:= FindControlAtPosition(P, true);
|
||||
if Assigned(control) then
|
||||
TCocoaCursor(Screen.Cursors[control.Cursor]).SetCursor;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user