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

Click here to return to the 'Updated Version' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Updated Version
Authored by: arcticmac on Sep 11, '09 08:27:39AM
Since I first submitted this hint 2+ weeks ago, I've done quite a bit of playing and fine-tuned the process a bit. An updated, more detailed version of this hint is available on my website.

[ Reply to This | # ]
Authored by: sayler on Sep 11, '09 10:00:30AM

It seems like there should be an easier (= more self-contained) way of doing this with Dtrace.

[ Reply to This | # ]
Authored by: arcticmac on Sep 11, '09 12:07:55PM

I think not, or at least I couldn't find one on quickly.

Basically, the issue is that preference keys are passed as NSCFString objects, about which DTrace knows nothing. Plus dtrace doesn't have any of your libraries loaded, so you can't just call a library function to get a c-string representation, which means you're stuck. Unless you want to go mucking around and trying to figure out how various instances of NSCFString store their characters, which is a whole lot HARDER than just using gdb.

The way on my website is somewhat more self contained, but it still isn't something that you could, say, do from Instruments.

[ Reply to This | # ]