• 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
Re: Why doesn't CFDictionaryContainsKey() work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why doesn't CFDictionaryContainsKey() work?


  • Subject: Re: Why doesn't CFDictionaryContainsKey() work?
  • From: Shawn Erickson <email@hidden>
  • Date: Thu, 16 Nov 2006 08:13:51 -0800


On Nov 16, 2006, at 8:07 AM, Alan Smith wrote:

- (BOOL)hasKey:(id)key
{
	return CFDictionaryContainsKey(self, *key);
}

Why do you dereference "key" before calling into CFDictionaryContainsKey?


Remove that and things should work because "id" is a pointer already.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Why doesn't CFDictionaryContainsKey() work? (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Why doesn't CFDictionaryContainsKey() work?
  • Next by Date: Using NSTextCell to act like the Address Book in custom NSTextView
  • Previous by thread: Why doesn't CFDictionaryContainsKey() work?
  • Next by thread: Re: Why doesn't CFDictionaryContainsKey() work?
  • Index(es):
    • Date
    • Thread