Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var
- obj: TObject;
- ctx: TRttiContext;
- prop: TRttiProperty;
- view: NSView;
- begin
- obj := TObject(FmxHandleToObjC(Self.Handle));
- ctx := TRttiContext.Create;
- prop := ctx.GetType(obj.ClassType).GetProperty('View');
- view := prop.GetValue(obj).AsInterface as NSView;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement