* Removed hardcoded path to xib-file to be opened in Xcode

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2680 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
loesje_
2013-02-13 20:23:04 +00:00
parent 9e192acebc
commit aad0b0ff0a

View File

@ -72,6 +72,7 @@ implementation
uses
LazIDEIntf, Controls, iOS_Views, iOSXIBResource, UnitResources,
LazFilesUtils,
sysutils,
FileUtil;
procedure register;
@ -93,14 +94,16 @@ end;
procedure TiOSShowInXCode.ExecuteVerb(Index: Integer);
var
s: string;
ProjFile: TLazProjectFile;
begin
If Index<FStartIndex then
inherited ExecuteVerb(Index)
else
case (Index-FstartIndex) of
0 : begin
s := '/Users/joost/svn/testlrs/onzin/appdelegate_iphoneu.xib';
if FileExistsUTF8(s) then ExecCmdLineNoWait('open "'+s +'"');
ProjFile := LazarusIDE.GetProjectFileWithRootComponent(Component);
s := ChangeFileExt(ProjFile.Filename,'.xib');
if FileExistsUTF8(s) then ExecCmdLineNoWait('open "'+s+'"');
end;
end;
end;