+2005-07-18 Helge Hess <helge.hess@opengroupware.org>
+
+ * UIxComponent.m: minor code reorgs (v0.9.31)
+
2005-07-18 Marcus Mueller <znek@mulle-kybernetik.com>
* SOGoAptFormatter.[hm]: added -titlePlaceholder API for properly
}
- (NSMutableDictionary *)_queryParameters {
- if(!self->queryParameters) {
- WORequest *req;
- NSString *uri;
- NSRange r;
+ // TODO: this code is weird, should use WORequest methods for parsing
+ WORequest *req;
+ NSString *uri;
+ NSRange r;
+
+ if (self->queryParameters)
+ return self->queryParameters;
+
+ self->queryParameters = [[NSMutableDictionary alloc] initWithCapacity:8];
- self->queryParameters = [[NSMutableDictionary alloc] initWithCapacity:8];
+ req = [[self context] request];
+ uri = [req uri];
+ r = [uri rangeOfString:@"?" options:NSBackwardsSearch];
+ if (r.length > 0) {
+ NSString *qs;
- req = [[self context] request];
- uri = [req uri];
- r = [uri rangeOfString:@"?" options:NSBackwardsSearch];
- if (r.length > 0) {
- NSString *qs;
-
- qs = [uri substringFromIndex:NSMaxRange(r)];
- [self _parseQueryString:qs];
- }
- }
+ qs = [uri substringFromIndex:NSMaxRange(r)];
+ [self _parseQueryString:qs];
+ }
return self->queryParameters;
}
}
- (void)setSelectedDateQueryParameter:(NSCalendarDate *)_newDate
- inDictionary:(NSMutableDictionary *)_qp;
+ inDictionary:(NSMutableDictionary *)_qp;
{
if(_newDate != nil)
[_qp setObject:[self dateStringForDate:_newDate] forKey:@"day"];