• 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
Mixing Object Types in a NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mixing Object Types in a NSDictionary


  • Subject: Mixing Object Types in a NSDictionary
  • From: Kam Dahlin <email@hidden>
  • Date: Tue, 11 Jul 2006 16:41:45 -0700

Hi All,

Just wondering if it is a bad practice to mix Object types in an NSDictionary/NSArray?

I have a model class that I thought would be easier built and more future proof by having my instance members stored inside of a single NSDictionary, instead of having a big list of instance members in my model class. I have types of NSImage, NSNumber and NSString and was wondering if it is a bad practice to mix these object types in a NSDictionary?

Regards,

Kam Dahlin
Studio Systems Specialist
Vulcan Studio Group
Vulcan Inc / Submersible Music Inc

email@hidden




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Mixing Object Types in a NSDictionary
      • From: Rosyna <email@hidden>
  • Prev by Date: Re: NSStatusItem in Carbon
  • Next by Date: Re: Mixing Object Types in a NSDictionary
  • Previous by thread: Re: scrolling NSTextView over NSImageView
  • Next by thread: Re: Mixing Object Types in a NSDictionary
  • Index(es):
    • Date
    • Thread