Am 30.06.2011 um 18:24 schrieb Dennis:

>> Ah yes, didn't think it was reliable.
>> Thank you!
> 
> It isn't reliable without some error checking. There are a few places in the 
> above routine that can result in nil objects. Be sure to check for them.

Well, you can't force the users to enter their email address into their 
addressbook.

a.owner can be nil if no user is selected to be the current user.
p.valueForProperty(a.kABEmailProperty) can return nil if the user has no emails.


Greetings
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to