I'm refreshing my Cocoa knowledge by working through Hillegass's 4th edition of the famous "Cocoa Programming for Mac OS X." I'm at the end of Chapter 13 where he describes how you can view your User Defaults via the terminal using the command:
The BNREmptyDocsFlag is 1 which is expected, but the BNRTableBGColor is a significant block of data:
62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 5624636c 6173735c 4e53436f 6c6f7253 70616365 554e5352 47428002 10014f10 1c302e34 38363230 36313232 3320302e 36393834 32333630 35382031 00d21011 12135a24 636c6173 736e616d 65582463 6c617373 6573574e 53436f6c 6f72a212 14584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d1171854 726f6f74 80010811 1a232d32 373b4148 4f5c6264 66858a95 9ea6a9b2 c4c7cc00 00000000 00010100 00000000 00001900 00000000 00000000 00000000 0000ce
I'm wondering why an NSColor (which is just a red, green, blue, alpha value right?) is so big? Is this bloat related to the way NSData boxes up NSColor objects? or am I missing something?
Code:
defaults read com.bignerdranch.RaiseMan
The BNREmptyDocsFlag is 1 which is expected, but the BNRTableBGColor is a significant block of data:
62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 5624636c 6173735c 4e53436f 6c6f7253 70616365 554e5352 47428002 10014f10 1c302e34 38363230 36313232 3320302e 36393834 32333630 35382031 00d21011 12135a24 636c6173 736e616d 65582463 6c617373 6573574e 53436f6c 6f72a212 14584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d1171854 726f6f74 80010811 1a232d32 373b4148 4f5c6264 66858a95 9ea6a9b2 c4c7cc00 00000000 00010100 00000000 00001900 00000000 00000000 00000000 0000ce
I'm wondering why an NSColor (which is just a red, green, blue, alpha value right?) is so big? Is this bloat related to the way NSData boxes up NSColor objects? or am I missing something?
Last edited: