You are writing a comment about Epic PyObjC, Part 3: Browsing, Caching, Indicating, here is a quick summary:
In this third segment of the Epic Introduction to PyObjC and Cocoa we spend some time in the standard application development workflow of iterating new idea from concept into feature. First, we have double clicking an entry open its page on FreeBase.com, then add disk based caching of results, and we end by adding an indicator to reassure users that the app hasn't frozen while retrieving data from Metaweb.
You are responding to this comment written by Josh Caswell on December 24th 2009, 19:37.
In applicationWillTerminate_ when deleting old cache entries, I have to iterate over the list of keys:
for key in self.cache.keys():
del self.cache[key]
so as to avoid a RuntimeError caused by the dictionary changing size while iterating.
I also noticed that you've used file as a variable name. It seems like it would be wise to avoid that, since it is a Python keyword.
Thanks for the great tutorial!
Please be aware that comment forms go stale after one hour.
Comments may make use of LifeFlow MarkDown. Raw html will be escaped.
Quick Introduction to LifeFlow MarkDown Syntax
A highlighted code block:
Other common languages work as well: scheme, python, java, html, etc.
Other markdown syntax: