You've already forked lazarus-ccr
* 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:
@ -72,6 +72,7 @@ implementation
|
||||
uses
|
||||
LazIDEIntf, Controls, iOS_Views, iOSXIBResource, UnitResources,
|
||||
LazFilesUtils,
|
||||
sysutils,
|
||||
FileUtil;
|
||||
|
||||
procedure register;
|
||||
@ -93,13 +94,15 @@ 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';
|
||||
ProjFile := LazarusIDE.GetProjectFileWithRootComponent(Component);
|
||||
s := ChangeFileExt(ProjFile.Filename,'.xib');
|
||||
if FileExistsUTF8(s) then ExecCmdLineNoWait('open "'+s+'"');
|
||||
end;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user