Hi there,
I am slightly confused: I want to use an altered ScratchSkin directory at startup of scratch using the scratch source...
But I am not sure how to use the class method readSkinFrom: aDirectory to initialize my own dictionary...as far as I understand it, it should be called in ScratchFrameMorph new before
ScratchSkin ifNil: [^ super new]. "no default skin"
(?)
I am using a mac and the absolute path is /ScratchSource/ScratchSkin therefore I tried
self readSkinFrom: '/ScratchSource/ScratchSkin'.
Suggestions are very welcome...
cheers
Offline
Thinking about it, it might be inappropriate to create the dictionary on every startup...how can I use the workspace for 'onetime initialization' of that dictionary calling something like
ScratchFrameMorph readSkinFrom: '/ScratchSource/ScratchSkin'
?
cheers
Last edited by jagnobli (2009-08-03 12:41:47)
Offline
CLOSED
I have figured it out by myself...
ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')
as described in the method comments...sometimes it's that easy...
Last edited by jagnobli (2009-08-04 06:04:12)
Offline