Mathieu Tozer's Dev Blog

Cocoa, the development of Words, and other software projects (including those dang assessment tasks).




Words: A Conservative Milestone - Manual Lists

0 comments

Been a bit quiet here for the past couple of days, been working on implementing groups for Words. I tried to follow the example of Apple's CoreRecipes app, but while I understood what was going on, the implementation directly ported wouldn't have worked with Words. In the recipes app, the highest Entity is the Recipe, whereas in Words, it is Language. Anyway to cut a long story short, I've taken the Mr. Obvious route and used a simple model for groups. I think I should be able to set up smart lists using a fetched property in a SmartList entity without too much hassle, which will fetch 'whatever' (whatever being specified by the user / system) and tell the WordArrayController to display it. Which will also allow me to have a 'fetch all the words in this language' which will be set as default and will be, in fact, the Words equivalent of the iTunes 'Library'.

If I WERE to use the fangled smart list stuff, I thought that a Language Array Controller would then in turn manage which GroupTreeController was active, which would then determine what words were accessable by the WordsArrayController. Anyway maybe that's for a later day when I am feeling more comfortable with Cocoa and Core Data. Right now while I'm essentially prototyping my App I'm going to TELL MYSELF it's OK to take the easy road. For Now. Ok I'm done. No really.

Sigh.

Honestly I really would have rathered I'd gotten the more fancy stuff working.

Here's what we have then:

With this data model


Words Milestone

0 comments

Imported my parser class from a previous project that adds words enmasse. Used memory management and arrays to pass around the words from an industrious parser class, and I'm satisfied with the results. Go Cocoa! I was also enjoying thinking about the modularity of the classes and code, and about what consists best design. UI still a mess, so no screenshot ;-)


Weekly Review: 07-09

0 comments

- Learnt first hand the advantages of using subversion for revision control.
- Found an old project in my archives that tokenises words. Still needs work done on it though, but it was nice to have such simple code reusability.
-Began experimenting with a grouping system, and decided to go against the example code provided by Apple to do smart groups with Core Data. Was a little disappointed in myself to taking the obvious route, however. Manual group system working.


Subversion

0 comments

Setting up subversion for my noodle timer project this morning, I tried adding to the custom class for my managed object. It all went pair shaped, and I decided that I need to read up more on how to do it. Previously, I would have sifted though the code and removed my changes, this time, I simple killed the working folder I made the modifications in, and 'rolled back' to the stable copy by checking out what I had checked in earlier. All worked perfectly. What a system! I saved time and now I am sure nothing has been broken by my own blunders.


+RSS | dev blog | Portfolio

About me

My status

Last posts

  • my del.icio.us
  • my flickr