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

Re: Mixing Object Types in a NSDictionary


  • Subject: Re: Mixing Object Types in a NSDictionary
  • From: Chris Suter <email@hidden>
  • Date: Wed, 12 Jul 2006 09:54:52 +1000


On 12/07/2006, at 9:48 AM, Rosyna wrote:

That's how it was designed. Most NSDictionaries will mix the types of values.

Ack, at 7/11/06, Kam Dahlin said:

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?

I'm no expert (not having used CoreData myself), but I was under the impression that sub-classes of NSManagedObject will store instance members in exactly this way, so you should consider using that.




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Mixing Object Types in a NSDictionary (From: Kam Dahlin <email@hidden>)
 >Re: Mixing Object Types in a NSDictionary (From: Rosyna <email@hidden>)

  • Prev by Date: Terminating from Separate Thread
  • Next by Date: Re: Terminating from Separate Thread
  • Previous by thread: Re: Mixing Object Types in a NSDictionary
  • Next by thread: RE: Mixing Object Types in a NSDictionary
  • Index(es):
    • Date
    • Thread