public void Save()
{
PBXDictionary result = new PBXDictionary();
result.Add( "archiveVersion", 1 );
result.Add( "classes", new PBXDictionary() );
result.Add( "objectVersion", 45 );
Consolidate();
result.Add( "objects", _objects );
result.Add( "rootObject", _rootObjectKey );
Backup();
// Parse result object directly into file
PBXParser parser = new PBXParser();
StreamWriter saveFile = File.CreateText( System.IO.Path.Combine( this.filePath, "project.pbxproj" ) );
saveFile.Write( parser.Encode( result, false ) );
saveFile.Close();
// Xcode4Controller.Connect();
// Xcode4Controller.OpenProject(filePath);
}