in scrooge-generator/src/main/scala/com/twitter/scrooge/backend/CocoaGenerator.scala [86:98]
def getTypeValueMethod(t: FieldType, name: String): String = {
val code = t match {
case TBool => "[%s boolValue]"
case TByte => "[%s intValue]"
case TI16 => "[%s intValue]"
case TI32 => "[%s intValue]"
case TI64 => "[%s longLongValue]"
case TDouble => "[%s doubleValue]"
case EnumType(_, _) => "[%s intValue]"
case _ => "%s"
}
code format name
}