2004-09-28 Helge Hess <helge.hess@opengroupware.org>
+ * common.h(WEUriOfResource): use component resource manager if
+ available (v4.3.60)
+
* WETreeData.m: added new 'treeLink' association which can be used to
override the componentActionURL used for expand/collapse and therfore
allow for session less tree generation (v4.3.59)
WEExtensions_WOBUNDLE_LIBS += $(WEExtensions_BUNDLE_LIBS)
ifneq ($(GNUSTEP_BUILD_DIR),)
-WEExtensions_LIB_DIRS += -L$(GNUSTEP_OBJ_DIR)
+WEExtensions_LIB_DIRS += -L$(GNUSTEP_OBJ_DIR)
else
-WEExtensions_LIB_DIRS += -L./$(GNUSTEP_OBJ_DIR)
+WEExtensions_LIB_DIRS += -L./$(GNUSTEP_OBJ_DIR)
endif
# Apple
# version file
-SUBMINOR_VERSION:=59
+SUBMINOR_VERSION:=60
}
img = [_ctx objectForKey:_key];
+ [self logWithFormat:@"lookup icon: %@", img];
img = WEUriOfResource(img, _ctx);
+ [self logWithFormat:@" got: %@", img];
if (_key == WETreeView_Leaf) {
NSString *tmp = [self->icon stringValueInComponent:[_ctx component]];
sComponent = [_ctx component];
array = [self->list valueInComponent:sComponent];
if ([array count] < 1) return nil;
-
- stack = [NSMutableArray array];
+
+ stack = [NSMutableArray arrayWithCapacity:8];
idxId = [_ctx currentElementID]; // top level index
idCount = 0;
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
+// $Id: common.h 1 2004-08-20 10:08:27Z znek $
#ifndef __WEExtensions_common_H__
#define __WEExtensions_common_H__
if (_name == nil)
return nil;
-
+
languages = [_ctx hasSession]
? [[_ctx session] languages]
: [[_ctx request] browserLanguages];
- resourceManager = [[_ctx application] resourceManager];
+ if ((resourceManager = [[_ctx component] resourceManager]) == nil)
+ resourceManager = [[_ctx application] resourceManager];
uri = [resourceManager urlForResourceNamed:_name
inFramework:nil