Can MCPeerID be used as a key in a dictionary?
Can MCPeerID be used as a key in a dictionary?
- Subject: Can MCPeerID be used as a key in a dictionary?
- From: Rick Mann <email@hidden>
- Date: Thu, 22 May 2014 16:52:29 -0700
Is MCPeerID usable as a key? It can be used as a key, I've verified that, but will I only ever get the same instance for a specific peer, even after disconnecting and re-connecting? If the instances are different, are the -hash and -equals: methods properly overridden?
If not, how can I map peers to data structures in my code? Should each peer generate a UUID that remains constant for the life of the app on that device, and send that over during connection?
Thanks!
--
Rick
_______________________________________________
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