Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ArtOfWarfare

macrumors G3
Original poster
Nov 26, 2007
9,672
6,212
Okay, I'm begging to think maybe there's a better way to do this, but I have no clue how.

Here's what I have:
An array of dictionaries (called Assignments.)
Each dictionary has 3 keys. (Name, Class, and Date.)

I would like to create a table of the assignments. It should have a section for each Class, in which all of the Assignments with that Class are put.

So, help?

Right now the process I have...
1.) Run through all the Classes and create an NSMutableDictionary for each.
2.) Run through all the Assignments and place them in the right Dictionary.
3.) Run through all the classes and remove the dictionaries for the ones without them.

That's all good and fine. I have plenty of NSLogs showing that everything was done properly.

But when I try making the table, it crashes.

Does someone else have another way of doing this? Maybe you've had to do something similar and would be willing to share the code you used?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.