Re: Setting company checkbox programatically in an AddressBook

2008-12-09 Thread development2
On Dec 9, 2008, at 2:31 PM, Nick Zitzmann wrote: On Dec 9, 2008, at 2:18 PM, development2 wrote: int personFlags = [[addressItem valueForProperty:kABPersonFlags] intValue]; That should be an NSInteger, not an int, and you should use - integerValue instead. Yeah thanks, saw that in th

Re: Setting company checkbox programatically in an AddressBook

2008-12-09 Thread Nick Zitzmann
On Dec 9, 2008, at 2:18 PM, development2 wrote: int personFlags = [[addressItem valueForProperty:kABPersonFlags] intValue]; That should be an NSInteger, not an int, and you should use - integerValue instead. personFlags = (kABShowAsMask && kABShowAsCompany); That shou