mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 12:58:50 +00:00
Monotone-Parent: ab9f5dfc9882f0fa2e4df964b47cb60942c58c9a
Monotone-Revision: c3b32ea543ff55ff243677d396e4119c69bc0fbc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-04-19T22:24:03 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -218,23 +218,31 @@ static Class NSExceptionK, MAPIStoreFolderK;
|
||||
{
|
||||
MAPIStorePropertyGetter method = NULL;
|
||||
uint16_t propValue;
|
||||
SEL methodSel;
|
||||
const char *propName;
|
||||
int rc = MAPISTORE_ERR_NOT_FOUND;
|
||||
|
||||
|
||||
propValue = (propTag & 0xffff0000) >> 16;
|
||||
methodSel = MAPIStoreSelectorForPropertyGetter (propValue);
|
||||
|
||||
method = (MAPIStorePropertyGetter) classGetters[propValue];
|
||||
if (method)
|
||||
rc = method (self, NULL, data);
|
||||
rc = method (self, methodSel, data);
|
||||
else
|
||||
{
|
||||
propName = get_proptag_name (propTag);
|
||||
if (!propName)
|
||||
propName = "<unknown>";
|
||||
*data = NULL;
|
||||
|
||||
[self warnWithFormat:
|
||||
@"unimplemented property: %s (0x%.8x) in class '%@'",
|
||||
propName, propTag, NSStringFromClass (isa)];
|
||||
if (methodSel)
|
||||
{
|
||||
propName = get_proptag_name (propTag);
|
||||
if (!propName)
|
||||
propName = "<unknown>";
|
||||
[self warnWithFormat:
|
||||
@"unimplemented selector (%@) for %s (0x%.8x)",
|
||||
NSStringFromSelector (methodSel), propName, propTag];
|
||||
}
|
||||
else
|
||||
[self warnWithFormat: @"unsupported property tag: 0x%.8x", propTag];
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user