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 should be one ampersand, not two.

                [addressItem removeValueForProperty:kABPersonFlags];
[addressItem setValue:[[NSNumber numberWithInt:personFlags] stringValue] <<<<< Crashes HERE
                                  forProperty:kABPersonFlags];


Why are you setting a string in that property? Remove the -stringValue and change the +numberWithInt: to +numberWithInteger: and it ought to work.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to