An attempt to fix the unrecognized selector exception (by writing the queries analoguously to the other ones)

This commit is contained in:
Ivan Zakharyaschev
2016-07-19 19:15:18 +03:00
parent a6ae11c2e0
commit deaec0bd7b
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -244,7 +244,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// otherwise it'll prevent WP8 phones from sync'ing. See #3028 for details.
o = [o activeSyncRepresentationInContext: context];
if ([[context valueForKey: @"ASProtocolVersion"] isEqualToString: @"2.5"])
if ([[context objectForKey: @"ASProtocolVersion"] isEqualToString: @"2.5"])
{
[s appendFormat: @"<Body xmlns=\"Calendar:\">%@</Body>", o];
[s appendString: @"<BodyTruncated xmlns=\"Calendar:\">0</BodyTruncated>"];
@@ -487,7 +487,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
}
// FIXME: merge with iCalToDo
if ([[context valueForKey: @"ASProtocolVersion"] isEqualToString: @"2.5"])
if ([[context objectForKey: @"ASProtocolVersion"] isEqualToString: @"2.5"])
{
if ((o = [theValues objectForKey: @"Body"]))
[self setComment: o];