* Tell the designer to use rtti to obtain the eventss parameters

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2646 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
loesje_
2013-02-02 16:46:28 +00:00
parent 678dbe14c1
commit 5e40fc3cfa

View File

@ -57,6 +57,7 @@ type
private
FMyForm: NSObject;
public
function UseRTTIForMethods(aComponent: TComponent): boolean; override;
// needed by the lazarus form editor
class function CreateMediator(TheOwner, aForm: TComponent): TDesignerMediator; override;
class function FormClass: TComponentClass; override;
@ -262,6 +263,14 @@ begin
inherited Destroy;
end;
function TNSObjectDesignerMediator.UseRTTIForMethods(aComponent: TComponent): boolean;
begin
if aComponent is tiOSFakeComponent then
result := true
else
Result:=inherited UseRTTIForMethods(aComponent);
end;
class function TNSObjectDesignerMediator.CreateMediator(TheOwner, aForm: TComponent): TDesignerMediator;
var
Mediator: TNSObjectDesignerMediator;