Re: NSMapTable C function API equivalent
Re: NSMapTable C function API equivalent
- Subject: Re: NSMapTable C function API equivalent
- From: Seth Willits <email@hidden>
- Date: Mon, 1 Jun 2009 12:39:45 -0700
Can somebody point me to the documentation for the "C function API"
referred to above? I was hoping to find a CFMapTable but I suppose
that would be too obvious :)
Type NSMapTable into Xcode and command-double click on it to open
NSMapTable.h. The functions are all in the header.
They're also documented in Foundation reference:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html
Are there any known simple examples of using NSMapTable with C
pointers as keys?
I doubt it. It's pretty straightforward.
As for type casting, does this simply mean that I need to cast my
key and value C pointer types to id in order for the compiler to
accept them as message arguments?
Yes.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden