kastork
05/16/2017, 12:14 PM2017-05-16 05:13:36.756 java[74340:51123711] *** Assertion failure in -[NSTouch normalizedPosition], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.82.104/AppKit.subproj/NSTouch.m:87
2017-05-16 05:13:36.757 java[74340:51123711] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot get normalizedPosition for this type of NSTouch'
edvin
05/16/2017, 12:16 PMedvin
05/16/2017, 12:16 PMkastork
05/16/2017, 12:19 PMtouchbar
"touch bar"
and normalizedPosition
get any hitsedvin
05/16/2017, 12:25 PMedvin
05/16/2017, 12:33 PMron
05/16/2017, 2:23 PMron
05/16/2017, 2:24 PMval name = script.subString(0, script.indexOf("."))
edvin
05/16/2017, 3:04 PMkastork
05/16/2017, 3:06 PMonUndock
is being called multiple times per view per navigation actionkastork
05/16/2017, 3:07 PMedvin
05/16/2017, 3:14 PMviewPos
to a calculated integer observable valueedvin
05/16/2017, 7:36 PMedvin
05/16/2017, 9:13 PMkastork
05/16/2017, 9:17 PMedvin
05/16/2017, 9:18 PMcarlw
05/17/2017, 12:19 AMcarlw
05/17/2017, 12:20 AMkastork
05/17/2017, 12:23 AMcarlw
05/17/2017, 12:24 AMkastork
05/17/2017, 12:25 AMkastork
05/17/2017, 12:26 AMkastork
05/17/2017, 12:28 AMkastork
05/17/2017, 12:31 AMnyxcharon
05/17/2017, 2:00 AMnyxcharon
05/17/2017, 2:08 AMval inputStream = FileInputStream(Paths.get(dir.absolutePath+"/topics.json").toFile())
val jsonReader: JsonReader = Json.createReader(inputStream)
val topicList = jsonReader.readArray().toModel<Topic>()
edvin
05/17/2017, 7:00 AMloadJsonArray(path).toModel<Topic>()
🙂edvin
05/17/2017, 7:04 AMinputStream.use {}
. The Java 8 Paths API provides a more concise way of doing line 1 from your example: Files.newInputStream(Paths.get(dir))
. In any case, the loadJsonArray
function solves these for you 🙂nimakro
05/17/2017, 8:03 AMtornadoFx
should also support the map
function from easyBind and then I realized we have already something like that for all binding types like stringBinding
(There is nothing in the guide about the binding extensions functions will add some docs if I find some time this week)... I realized that I was writing way to much boilerplate code in my current app 🙈..
Every time I go through the tornadoFx
code I find new awesome stuff 😉edvin
05/17/2017, 8:06 AM