• 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
Can MCPeerID be used as a key in a dictionary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Window gets moved to the wrong location when changing screen resolution
  • Next by Date: Re: NSOutlineView: what does this even mean?
  • Previous by thread: Window gets moved to the wrong location when changing screen resolution
  • Next by thread: paging and zooming
  • Index(es):
    • Date
    • Thread