diff --git a/ChangeLog b/ChangeLog index 02be841d1..74ac63bcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-19 Wolfgang Sourdeau + + * UI/Scheduler/UIxComponentEditor.m (-_handleAttendeeData): make + direct use of the JSON constructor of NSDictionary rather than + instantiating an NSScanner. This simplifies the code. + 2009-11-18 Wolfgang Sourdeau * SoObjects/SOGo/NSString+Utilities.m (-isJSONString): new utility diff --git a/UI/Scheduler/UIxComponentEditor.m b/UI/Scheduler/UIxComponentEditor.m index 8bbc3260b..82680cdea 100644 --- a/UI/Scheduler/UIxComponentEditor.m +++ b/UI/Scheduler/UIxComponentEditor.m @@ -46,22 +46,22 @@ #import #import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import #import "../../Main/SOGo.h" @@ -1489,7 +1489,6 @@ RANGE(2); NSDictionary *attendeesData; NSArray *attendees; NSDictionary *currentData; - NSScanner *jsonScanner; WORequest *request; request = [context request]; @@ -1497,8 +1496,8 @@ RANGE(2); if ([json length]) { attendees = [NSArray array]; - jsonScanner = [NSScanner scannerWithString: json]; - if ([jsonScanner scanJSONObject: &attendeesData]) + attendeesData = [NSDictionary dictionaryWithJSONString: json]; + if (attendeesData) { newAttendees = [NSMutableArray array]; attendees = [attendeesData allValues];