diff --git a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt index ad8b066a..12fdc606 100644 --- a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt +++ b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/BigDecimal.kt @@ -41,4 +41,9 @@ actual class BigDecimal(val decimal: NSDecimalNumber) { // it's almost impossibl return super.equals(other) } + + override fun toString(): String { + return decimal.description ?: decimal.descriptionWithLocale(NSLocale.currentLocale) + } + } \ No newline at end of file diff --git a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/File.kt b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/File.kt index 0bc89117..155c8219 100644 --- a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/File.kt +++ b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/File.kt @@ -27,4 +27,9 @@ actual class File actual constructor(path: String) : NSURL(fileURLWithPath = pat return NSFileManager.defaultManager.createDirectoryAtURL(this, true, null, null) } + + override fun description(): String? { + return getAbsolutePath() + } + } \ No newline at end of file diff --git a/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/File.kt b/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/File.kt index fe90d4bf..9b2df165 100644 --- a/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/File.kt +++ b/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/File.kt @@ -37,4 +37,9 @@ actual class File actual constructor(path: String) : java.io.File(path) { return super.mkdirs() } + + override fun toString(): String { + return absolutePath + } + } \ No newline at end of file