+2004-12-19 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v4.5.103
+
+ * WOContext.m: fixed bug in -pushCursor:, first element in newly
+ allocated stack was never set
+
+ * DynamicElements/WORepetition.m: reverted use of -pushCursor/
+ -popCursor for ComplexRepetition, but only in case index is not used.
+
2004-12-18 Marcus Mueller <znek@mulle-kybernetik.com>
* DynamicElements/WORepetition.m: bugfix in -appendToResponse:... for
if (self->item) {
[self->item setValue:lItem inComponent:sComponent];
}
-
+ else {
+ if (!self->index) {
+ [_ctx pushCursor:lItem];
+ }
+ }
+
/* get identifier used for action-links */
if (self->identifier) {
if (self->identifier == nil)
[_ctx deleteLastElementIDComponent]; /* repetition index */
+ if (!self->item && !self->index)
+ [_ctx popCursor];
+
//if (self->index) [self->index setUnsignedIntValue:0];
//if (self->item) [self->item setValue:nil];
}
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.102;
+ DYLIB_CURRENT_VERSION = 4.5.103;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.102;
+ DYLIB_CURRENT_VERSION = 4.5.103;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.102;
+ DYLIB_CURRENT_VERSION = 4.5.103;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
# version file
-SUBMINOR_VERSION:=102
+SUBMINOR_VERSION:=103
# v4.5.91 requires libNGExtensions v4.5.134
# v4.5.84 requires libNGExtensions v4.5.127
@implementation WOComponent(Cursors)
- (void)pushCursor:(id)_obj {
- NSMutableArray *ctxStack;
-
if (debugCursor)
[self logWithFormat:@"enter cursor: %@", _obj];
- if ((ctxStack = self->cycleContext) == nil)
+ if (!self->cycleContext)
self->cycleContext = [[NSMutableArray alloc] initWithCapacity:8];
/* add to cursor stack */
- [ctxStack addObject:(_obj ? _obj : [NSNull null])];
+ [self->cycleContext addObject:(_obj ? _obj : [NSNull null])];
/* set active cursor */
- if (![_obj isNotNull]) _obj = nil;
[self setObject:_obj forKey:@"_"];
}
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.102;
+ DYLIB_CURRENT_VERSION = 4.5.103;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = NO;