* Show .xib resource files in iphone project options.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2623 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
loesje_
2013-01-14 21:42:04 +00:00
parent 0b6368ae7b
commit 91e9adb6c5

View File

@ -289,10 +289,19 @@ var
path : AnsiString;
st : TStringList;
i : Integer;
AProjectFile: TLazProjectFile;
begin
path := ResolveProjectPath(edtResDir.Text);
path := ResolveProjectPath(trim(edtResDir.Text));
st:=TStringList.Create;
try
for i := 0 to LazarusIDE.ActiveProject.FileCount-1 do
begin
AProjectFile := LazarusIDE.ActiveProject.Files[i];
if (AProjectFile.IsPartOfProject) and FileExistsUTF8(ChangeFileExt(AProjectFile.filename,'.xib')) then
st.add(AProjectFile.filename);
end;
EnumFilesAtDir(path, '*.xib', st);
nibFilesBox.Clear;
for i:=0 to st.Count-1 do