also search in class for resources (in findResourceIn:)
authorClaus Gittinger <cg@exept.de>
Fri, 22 May 1998 20:29:51 +0200
changeset 848 88f7f0ab7623
parent 847 15f688710007
child 849 0001a9185d99
also search in class for resources (in findResourceIn:)
ResourceRetriever.st
--- a/ResourceRetriever.st	Fri May 22 11:57:38 1998 +0200
+++ b/ResourceRetriever.st	Fri May 22 20:29:51 1998 +0200
@@ -111,6 +111,13 @@
         ^aResourceOwner resources string: label
     ].
 
+    ((aResourceOwner isSubclassOf: ApplicationModel) or: 
+    [aResourceOwner isSubclassOf: SimpleView]) 
+    ifTrue:
+    [
+        ^aResourceOwner resources string: label
+    ].
+
     ^self labelResources string:label
   
 !