mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 01:19:16 +02:00
cocoa: adding a debug utility to print the hierarchy of controls
git-svn-id: trunk@61390 -
This commit is contained in:
parent
f65c6130f3
commit
ea8b00fa1d
@ -159,6 +159,7 @@ function CocoaModifiersToShiftState(AModifiers: NSUInteger; AMouseButtons: NSUIn
|
||||
|
||||
function NSObjectDebugStr(obj: NSObject): string;
|
||||
function CallbackDebugStr(cb: ICommonCallback): string;
|
||||
procedure DebugDumpParents(fromView: NSView);
|
||||
|
||||
implementation
|
||||
|
||||
@ -1766,5 +1767,13 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure DebugDumpParents(fromView: NSView);
|
||||
begin
|
||||
while Assigned(fromView) do begin
|
||||
writeln(fromView.lclClassName);
|
||||
fromView := fromView.superView;
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user