• 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
Dictionary with enum keys?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dictionary with enum keys?


  • Subject: Dictionary with enum keys?
  • From: Debajit Adhikary <email@hidden>
  • Date: Mon, 27 Jul 2009 01:48:02 -0700

I need to create a dictionary/hashmap where the

   - Keys are enums
   - Values are some subclass of NSObject


NSDictionary won't work here (enums don't conform to NSCopying).

I could perhaps use a CFDictionaryRef here, but I'd like to know if is there
any other way to achieve this.
_______________________________________________

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

  • Follow-Ups:
    • Re: Dictionary with enum keys?
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Multiple keyboard shortcuts for the same menu command
  • Next by Date: Re: Cocoa Document-Based App v. Windows MDI App
  • Previous by thread: Re: Multiple keyboard shortcuts for the same menu command
  • Next by thread: Re: Dictionary with enum keys?
  • Index(es):
    • Date
    • Thread