• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: Marc Blatt <email@hidden>
  • Date: Tue, 29 Jul 2003 13:49:39 -0700

My apologies for the repost. Somehow I deleted the Subject line on my previous post.

On Tuesday, Jul 29, 2003, at 10:26 US/Pacific, Marc Blatt wrote:

I have created a Cocoa method that searches the address book for a
specific group (or subgroup). The first three calls to this method work
without a problem, returning an array containing the group or an empty
array if no such group exists. However, on the fourth call I get the
following when the [ABGroup searchElementForProperty:...] code is
executed:

*** Selector 'isKindOfClass:' sent to dealloced instance 0x1267150 of
class ABGroup.
Break at '-[_NSZombie methodSignatureForSelector:]' to debug.

I'm wondering if this is a bug in the ABAddressBook framework or
whether there is some memory retain requirement for ABGroup searches
that I failed to address. I'm coding it in xCode with the GCC 3.3
compiler.

Also, it appears that the methodSignatureForSelector: call is within
the ABAddressBook framework since I have not overridden this method.
How can I set a break point for this when the framework only provides
access to header files.

Any thoughts would be greatly appreciated. Here's the code for the
method:

- (NSArray *)searchForGroup:(NSString *)groupSearchValue
{
ABAddressBook *ab = [ABAddressBook sharedAddressBook];
ABSearchElement *propertyLocsGroup;
NSArray *results;

NSLog(@"Group Search Value is: %@", groupSearchValue);

// Search for an existing group or subgroup
propertyLocsGroup = [ABGroup
searchElementForProperty:kABGroupNameProperty
label:nil
key:nil
value:groupSearchValue
comparison:kABEqualCaseInsensitive];

results = [ab recordsMatchingSearchElement:propertyLocsGroup];
return results;
}

Thanks in advance,
Marc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: (no subject)
      • From: Marc Blatt <email@hidden>
  • Prev by Date: Re: Memory Management
  • Next by Date: Button Text Color
  • Previous by thread: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread