
Of late I’ve been working on a Cocoa update for an old app of mine, xMod. xMod edits hidden preferences (I know, you’ve heard this all before.) Each preference is stored in a property list on its own, along with the information that xMod will display about it. This system will allow us to add more hidden preferences without updating the entire app.
The first thing to get ironed out was the underlying system for the database of .xpref files. This post isn’t going to actually explain anything, but I’m attaching some source code that is extremely well-commented. Start out reading in AppController .h, and move from there. Watch the debugger/console (whichever you prefer) when you launch the app for the first time. It’s kind of cool.
Post observations and questions about the code in the comments, please. Keep in mind, nothing will ever actually be shown in the UI, but if you watch the log, you’ll see what is happening.











Leave Your Response