Use names for boards / programmers

This commit is contained in:
Matthias Neeracher 2014-12-03 15:38:13 +01:00 committed by Matthias Neeracher
parent c89a9dcb1a
commit f367d663ae

View File

@ -298,11 +298,19 @@ class ASProjDoc: NSDocument, NSOutlineViewDelegate {
}
func boards() -> [String] {
return [String](ASHardware.instance().boards.keys)
var result = [String]()
for (ident, prop) in ASHardware.instance().boards {
result.append(prop["name"])
}
return result
}
func programmers() -> [String] {
return [String](ASHardware.instance().programmers.keys)
var result = [String]()
for (ident, prop) in ASHardware.instance().programmers {
result.append(prop["name"])
}
return result
}
}