Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'I could be wrong...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I could be wrong...
Authored by: Anonymous on Dec 28, '01 02:34:07PM

That won't tell you *all* the defaults; only the ones that the app has explicitly changed.

A properly written Cocoa application will register a set of default values that effectively provide the "default" defaults to be used by the app. These values are not written into the defaults database. When the app changes a particular default's value, that new value will be written and will be accessible in the manner described.

(Yes, gdb is on the developer CD)

However, defaults do not have to be registered, either. To truly find all of the defaults an application ever looks for, you need to modify the defaults subsystem to log every default as it is accessed. This will catch *all* defaults, including ones that are never registered.

It isn't hard to do-- but you do need to compile a small hunk of code to make it work. If anyone is interested, send email and I can write up a brief article on how it is done.



[ Reply to This | # ]