FROM : Steven Crosley
DATE : Fri Feb 01 20:33:27 2008
Looks like it was an issue with the setAddressBook function. Works
like a charm now, and I think I more fully understand how memory
management works. Thanks again for all your help!
Before suggestions:
- (void)setAddressBook
{
book = [ABAddressBook sharedAddressBook];
person = (ABPerson *)[book recordForUniqueId:[self uid]];
}
After suggestions:
- (void)setAddressBook
{
[book release];
[person release];
book = [[ABAddressBook sharedAddressBook] retain];
person = (ABPerson *)[[book recordForUniqueId:[self uid]] retain];
}
On Feb 1, 2008, at 12:51 PM, j o a r wrote:
>
> On Feb 1, 2008, at 10:29 AM, Steven Crosley wrote:
>
>> [NSCFString valueForProperty:]: unrecognized selector sent to
>> instance 0x1b90e0
>
>
> Sounds like a message sent to a deallocated object, something that
> using NSZombieEnabled would help you troubleshoot. Give it a try!
>
> j o a r
>
>
DATE : Fri Feb 01 20:33:27 2008
Looks like it was an issue with the setAddressBook function. Works
like a charm now, and I think I more fully understand how memory
management works. Thanks again for all your help!
Before suggestions:
- (void)setAddressBook
{
book = [ABAddressBook sharedAddressBook];
person = (ABPerson *)[book recordForUniqueId:[self uid]];
}
After suggestions:
- (void)setAddressBook
{
[book release];
[person release];
book = [[ABAddressBook sharedAddressBook] retain];
person = (ABPerson *)[[book recordForUniqueId:[self uid]] retain];
}
On Feb 1, 2008, at 12:51 PM, j o a r wrote:
>
> On Feb 1, 2008, at 10:29 AM, Steven Crosley wrote:
>
>> [NSCFString valueForProperty:]: unrecognized selector sent to
>> instance 0x1b90e0
>
>
> Sounds like a message sent to a deallocated object, something that
> using NSZombieEnabled would help you troubleshoot. Give it a try!
>
> j o a r
>
>
| Related mails | Author | Date |
|---|---|---|
| Steven Crosley | Feb 1, 18:13 | |
| Adhamh Findlay | Feb 1, 18:25 | |
| Steven Crosley | Feb 1, 18:36 | |
| Chris Suter | Feb 1, 18:46 | |
| Steven Crosley | Feb 1, 19:29 | |
| j o a r | Feb 1, 19:51 | |
| Steven Crosley | Feb 1, 20:33 | |
| Mike Abdullah | Feb 1, 21:38 | |
| Michael Watson | Feb 1, 22:15 | |
| Chris Suter | Feb 2, 03:58 |






Cocoa mail archive

