Advertisement
Guest User

Untitled

a guest
Sep 5th, 2011
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.28 KB | None | 0 0
  1. var
  2.   obj: TObject;
  3.   ctx: TRttiContext;
  4.   prop: TRttiProperty;
  5.   view: NSView;
  6. begin
  7.   obj := TObject(FmxHandleToObjC(Self.Handle));
  8.   ctx := TRttiContext.Create;
  9.   prop := ctx.GetType(obj.ClassType).GetProperty('View');
  10.   view := prop.GetValue(obj).AsInterface as NSView;
  11. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement