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


Click here to return to the 'Display all defaults for any Cocoa app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display all defaults for any Cocoa app
Authored by: Hes Nikke on Mar 09, '03 03:14:33AM
it didn't work for XHints chat, a proprly written cocoa app (admitntly i can just look at the sourcefor OpenMac)

Program received signal SIGINT, Interrupt.
0x90073c48 in mach_msg_trap ()
(gdb) p $o = (unsigned int) objc_getClass("NSUserdefaults")
$1 = 0
(gdb) p $s = (unsigned int) sel_getUid("standardUserdefaults")
$2 = 2039392
(gdb) p $o = (unsigned int) objc_msgSend($o, $s)
$3 = 0
(gdb) p $s = (unsigned int) sel_getUid("dictionaryRepresentation")
$4 = 2422935564
(gdb) p $o = (unsigned int) objc_msgSend($o, $s)
$5 = 0
(gdb) p $s = (unsigned int) sel_getUid("description")
$6 = 2422933484
(gdb) p $o = (unsigned int) objc_msgSend($o, $s)
$7 = 0
(gdb) p (void) NSLog($o)
$8 = void
(gdb)

---
vacuums do not suck. they merely provide an absence that allows other objects to take the place of what becomes absent.

[ Reply to This | # ]