Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-15-2010, 05:57 AM   #1 (permalink)
djp_phillips
Registered Member
 
Join Date: Feb 2010
Posts: 83
djp_phillips is on a distinguished road
Default Storing custom structs in Dictionary

I remember watching a video on iTunes U, I cant find it again but someone mentioned that you can't store any kind of object in an NSArray or NSDictionary.

I ran into some trouble trying to save a struct into a dictionary, to make things more complex, the struct had a NSDictionary as one of it's properties.

The error message I get is: incompatible type for argument 1 of 'setObject:forKey:'

Am I correct when I say you can't store a struct in a NSDictionary ?

What workaround would you suggest if that's the case ?
djp_phillips is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,476
Threads: 94,040
Posts: 402,626
Top Poster: BrianSlick (7,978)
Welcome to our newest member, policy1
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:25 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.