#DOCUMENTATION by cg
class: DisplaySurface
comment/format in: #uuid:
changed: #uuid
--- a/DisplaySurface.st Thu Nov 09 22:17:51 2017 +0100
+++ b/DisplaySurface.st Thu Nov 09 22:20:59 2017 +0100
@@ -804,28 +804,35 @@
This is a widget id, as specified in the uispec (if it is defined there).
Will be the same for all instances
(i.e. the same in different instances of the application).
- Contrast this with the instanceUuid, which is unique for each view."
-
- ^ uuid
+ Contrast this with the instanceUuid, which is unique for each view.
+
+ Notice: old uiSpecs do not provide/define a uuid, and nil is returned;
+ so the application's specs must be re-edited and saved again."
+
+ uuid isNil ifTrue:[^ uuid].
+ ^ uuid asUUID
"
Transcript topView uuid
Transcript topView instanceUuid
"
- "Modified (comment): / 09-11-2017 / 22:16:56 / cg"
+ "Modified (comment): / 09-11-2017 / 22:20:39 / cg"
!
-uuid:aUUID
+uuid:aUuidOrUuidString
"set my uuid (for automation and the pollonium st/x capture/replay tool).
This is a widget id, as specified in the uispec (if it is definedthere).
Will be the same for all instances
(i.e. the same in different instances of the application).
- Contrast this with the instanceUuid, which is unique for each view."
-
- uuid := aUUID
-
- "Modified (comment): / 09-11-2017 / 22:16:08 / cg"
+ Contrast this with the instanceUuid, which is unique for each view.
+
+ Notice: old uiSpecs do not provide/define a uuid, and nil is returned from uuid;
+ so the application's specs must be re-edited and saved again."
+
+ uuid := aUuidOrUuidString
+
+ "Modified (comment): / 09-11-2017 / 22:20:51 / cg"
! !
!DisplaySurface methodsFor:'accessing-names'!