02111-1307, USA.
*/
-#import <NGObjWeb/NGObjWeb.h>
+#include <NGObjWeb/NGObjWeb.h>
@interface CalendarField : WOComponent
@end
+#include "common.h"
+
@implementation CalendarField
- (id)init {
- if ((self = [super init])) {
+ if ((self = [super init]) != nil) {
[self takeValue:@"12" forKey:@"hour"];
[self takeValue:@"30" forKey:@"minute"];
[self takeValue:@"50" forKey:@"second"];
}
return self;
}
-@end
+
+@end /* CalendarField */
+2005-08-01 Helge Hess <helge.hess@skyrix.com>
+
+ * fixed gcc 4.0 warnings
+
2004-09-28 Helge Hess <helge.hess@opengroupware.org>
* Resources/TreeView.plist: fixed a missing semicolon (breaks on
02111-1307, USA.
*/
-#import <NGObjWeb/NGObjWeb.h>
+#include <NGObjWeb/NGObjWeb.h>
@interface DateField : WOComponent
{
}
@end
+#include "common.h"
+
@implementation DateField
- (id)init {
- if ((self = [super init])) {
+ if ((self = [super init]) != nil) {
[self takeValue:@"2000" forKey:@"year"];
[self takeValue:@"10" forKey:@"month"];
[self takeValue:@"20" forKey:@"day"];
static inline void setDateWithKey(id obj, NSString *key) {
NSString *str;
- str = [obj objectForKey:key];
+ str = [(NSDictionary *)obj objectForKey:key];
- if (str) {
+ if ([str isNotNull]) {
NSCalendarDate *date;
date = [NSCalendarDate dateWithString:str
calendarFormat:@"%Y-%m-%d %H:%M:%S %Z"];
- [obj setObject:date forKey:key];
+ [(NSMutableDictionary *)obj setObject:date forKey:key];
}
}
-- (id)init {
- if ((self = [super init])) {
- }
- return self;
-}
-
- (void)dealloc {
- RELEASE(self->list);
+ [self->list release];
[super dealloc];
}
02111-1307, USA.
*/
-#import <NGObjWeb/NGObjWeb.h>
+#include <NGObjWeb/NGObjWeb.h>
@interface RichString : WOComponent
{
}
@end
+#include "common.h"
+
@implementation RichString
- (id)init {
- if ((self = [super init])) {
+ if ((self = [super init]) != nil) {
[self takeValue:@"richString richString richString" forKey:@"value"];
}
return self;
}
-@end
+
+@end /* RichString */
}
- (BOOL)isGroupCity {
- id obj1;
- id obj2;
-
+ NSDictionary *obj1, *obj2;
+
obj1 = [self valueForKey:@"item"];
obj2 = [self valueForKey:@"previousItem"];
}
- (BOOL)isGroupZip {
- id obj1;
- id obj2;
+ NSDictionary *obj1, *obj2;
obj1 = [self valueForKey:@"item"];
obj2 = [self valueForKey:@"previousItem"];
02111-1307, USA.
*/
-#import <NGObjWeb/NGObjWeb.h>
+#include <NGObjWeb/NGObjWeb.h>
-@interface TimeField: WOComponent
+@interface TimeField : WOComponent
{
}
+
@end
+#include "common.h"
+
@implementation TimeField
+
- (id)init {
- if ((self = [super init])) {
+ if ((self = [super init]) != nil) {
[self takeValue:@"12" forKey:@"hour"];
[self takeValue:@"30" forKey:@"minute"];
[self takeValue:@"40" forKey:@"second"];
}
return self;
}
-@end
+
+@end /* TimeField */
static inline void setDateWithKey(id obj, NSString *key) {
NSString *str;
- str = [obj objectForKey:key];
+ str = [(NSDictionary *)obj objectForKey:key];
- if (str) {
+ if ([str isNotNull]) {
NSCalendarDate *date;
date = [NSCalendarDate dateWithString:str
calendarFormat:@"%Y-%m-%d %H:%M:%S %Z"];
- [obj setObject:date forKey:key];
+ [(NSMutableDictionary *)obj setObject:date forKey:key];
}
}
static inline void setDateWithKey(id obj, NSString *key) {
NSString *str;
- str = [obj objectForKey:key];
-
- if (str) {
+ str = [(NSDictionary *)obj objectForKey:key];
+
+ if ([str isNotNull]) {
NSCalendarDate *date;
-
+
date = [NSCalendarDate dateWithString:str
calendarFormat:@"%Y-%m-%d %H:%M:%S %Z"];
- [obj setObject:date forKey:key];
+ [(NSMutableDictionary *)obj setObject:date forKey:key];
}
}
-- (id)init {
- if ((self = [super init])) {
- }
- return self;
-}
-
- (void)dealloc {
- RELEASE(self->list);
+ [self->list release];
[super dealloc];
}
+/* accessors */
+
- (NSArray *)abList {
return [NSArray arrayWithObjects:@"a", @"b", nil];
}