• 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: NSMapTable C function API equivalent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSMapTable C function API equivalent (From: George King <email@hidden>)

  • Prev by Date: NSMapTable C function API equivalent
  • Next by Date: Re: NSXMLParser - howto resolve entities defined in DTD
  • Previous by thread: NSMapTable C function API equivalent
  • Next by thread: Re: How determine if file is in Trash, given Path or Alias
  • Index(es):
    • Date
    • Thread