nitc :: PbxUUIDGenerator :: defaultinit
# Generator of PBX UUIDs
#
# PBX UUID are composed of 24 hex characters.
# They only need to be unique within the same project.
#
# This implementation simply counts upward from 0.
class PbxUUIDGenerator
private var seed = 0
# Generate a new UUID
fun next_uuid: String
do
seed += 1
var hex_val = seed.to_hex.to_upper
return "0"*(24-hex_val.length) + hex_val
end
end
src/platform/xcode_templates.nit:60,1--77,3