(self, remote_object)
| 1256 | return None |
| 1257 | |
| 1258 | def GetChildByRemoteObject(self, remote_object): |
| 1259 | # This method is a little bit esoteric. Given a remote_object, which |
| 1260 | # should be a PBXFileReference in another project file, this method will |
| 1261 | # return this group's PBXReferenceProxy object serving as a local proxy |
| 1262 | # for the remote PBXFileReference. |
| 1263 | # |
| 1264 | # This function might benefit from a dict optimization as GetChildByPath |
| 1265 | # for some workloads, but profiling shows that it's not currently a |
| 1266 | # problem. |
| 1267 | if "children" not in self._properties: |
| 1268 | return None |
| 1269 | |
| 1270 | for child in self._properties["children"]: |
| 1271 | if not isinstance(child, PBXReferenceProxy): |
| 1272 | continue |
| 1273 | |
| 1274 | container_proxy = child._properties["remoteRef"] |
| 1275 | if container_proxy._properties["remoteGlobalIDString"] == remote_object: |
| 1276 | return child |
| 1277 | |
| 1278 | return None |
| 1279 | |
| 1280 | def AddOrGetFileByPath(self, path, hierarchical): |
| 1281 | """Returns an existing or new file reference corresponding to path. |
no outgoing calls
no test coverage detected