return nil;
}
if ((self = [super init])) {
- self->resourceName = [_name copy];
+ NSRange r;
+
+ r = [_name rangeOfString:@"/"];
+ if (r.length == 0)
+ self->resourceName = [_name copy];
+ else {
+ self->frameworkName = [[_name substringToIndex:r.location] copy];
+ self->resourceName =
+ [[_name substringFromIndex:(r.location + r.length)] copy];
+ }
}
return self;
}
}
- (void)dealloc {
- [self->resourceName release];
+ [self->resourceName release];
+ [self->frameworkName release];
[super dealloc];
}
return self->resourceName;
}
- (NSString *)frameworkName {
- return nil;
+ return self->frameworkName;
}
/* value */
* WOApplication.m: the resource manager class to be used for a SOPE
application can now be choosen using the 'WODefaultResourceManager'
- default (defaults to WOResourceManager) (v4.5.116)
+ default (defaults to WOResourceManager) (v4.5.117)
2005-02-14 Helge Hess <helge.hess@opengroupware.org>
+ * Associations/WOResourceURLAssociation.m: added support for
+ framework resources (can be specified as "fwname/resource")
+ (v4.5.116)
+
* SoObjects/SoObjectRequestHandler.m: added a safety limit on the URL
to avoid excessive redirects to view URLs, the "stop suffix" can be
configured using the 'WORedirectURISafetySuffix' default (v4.5.115)