1
0
Fork 0

beginnings of rewrite of defaults reading/writing

master
Spike Grobstein 14 years ago
parent ae89832c2a
commit 720112a9cb

@ -2801,9 +2801,9 @@
</dict> </dict>
</array> </array>
</dict> </dict>
<real>328577815.697043</real> <real>328578404.99264902</real>
<string>{930, 959}</string> <string>{733, 885}</string>
<string>{1434, 0}</string> <string>{1321, 0}</string>
<dict> <dict>
<key>$class</key> <key>$class</key>
<dict> <dict>
@ -2897,9 +2897,9 @@
</dict> </dict>
</array> </array>
</dict> </dict>
<real>328577902.92416799</real> <real>328578489.274598</real>
<string>{0, 1089}</string> <string>{1044, 1134}</string>
<string>{2472, 0}</string> <string>{2148, 0}</string>
<dict> <dict>
<key>$class</key> <key>$class</key>
<dict> <dict>
@ -3586,7 +3586,7 @@
<integer>323</integer> <integer>323</integer>
</dict> </dict>
<key>NS.time</key> <key>NS.time</key>
<real>328577829.65523702</real> <real>328578485.318919</real>
</dict> </dict>
<dict> <dict>
<key>$classes</key> <key>$classes</key>
@ -3597,7 +3597,7 @@
<key>$classname</key> <key>$classname</key>
<string>NSDate</string> <string>NSDate</string>
</dict> </dict>
<string>Today at 7:37 PM</string> <string>Today at 7:48 PM</string>
<integer>106</integer> <integer>106</integer>
<dict> <dict>
<key>$class</key> <key>$class</key>
@ -3893,7 +3893,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>464</integer> <integer>473</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -3905,7 +3905,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>465</integer> <integer>474</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -3975,7 +3975,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>407</integer> <integer>409</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -3983,7 +3983,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>415</integer> <integer>417</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4124,19 +4124,19 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>372</integer> <integer>374</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>376</integer> <integer>378</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>42</integer> <integer>362</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>389</integer> <integer>391</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4208,7 +4208,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>366</integer> <integer>369</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4220,13 +4220,18 @@
<integer>13</integer> <integer>13</integer>
</dict> </dict>
<key>NS.objects</key> <key>NS.objects</key>
<array/> <array>
<dict>
<key>CF$UID</key>
<integer>366</integer>
</dict>
</array>
</dict> </dict>
<dict> <dict>
<key>$class</key> <key>$class</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>53</integer> <integer>38</integer>
</dict> </dict>
<key>NS.objects</key> <key>NS.objects</key>
<array> <array>
@ -4236,8 +4241,24 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>369</integer> <integer>65</integer>
</dict>
<dict>
<key>CF$UID</key>
<integer>368</integer>
</dict>
</array>
</dict>
<string>DDWRT-Monitor</string>
<string>DDWRT_MonitorAppDelegate.m</string>
<dict>
<key>$class</key>
<dict>
<key>CF$UID</key>
<integer>53</integer>
</dict> </dict>
<key>NS.objects</key>
<array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>370</integer> <integer>370</integer>
@ -4246,6 +4267,14 @@
<key>CF$UID</key> <key>CF$UID</key>
<integer>371</integer> <integer>371</integer>
</dict> </dict>
<dict>
<key>CF$UID</key>
<integer>372</integer>
</dict>
<dict>
<key>CF$UID</key>
<integer>373</integer>
</dict>
</array> </array>
</dict> </dict>
<dict> <dict>
@ -4258,11 +4287,10 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>368</integer> <integer>367</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
<string>DDWRT-Monitor</string>
<dict> <dict>
<key>$class</key> <key>$class</key>
<dict> <dict>
@ -4273,7 +4301,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>368</integer> <integer>367</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -4291,7 +4319,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>368</integer> <integer>367</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -4309,7 +4337,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>368</integer> <integer>367</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -4327,15 +4355,15 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>373</integer> <integer>375</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>374</integer> <integer>376</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>375</integer> <integer>377</integer>
</dict> </dict>
</array> </array>
<key>NS.objects</key> <key>NS.objects</key>
@ -4367,31 +4395,31 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>377</integer> <integer>379</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>378</integer> <integer>380</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>379</integer> <integer>381</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>380</integer> <integer>382</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>381</integer> <integer>383</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>382</integer> <integer>384</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>383</integer> <integer>385</integer>
</dict> </dict>
</array> </array>
<key>NS.objects</key> <key>NS.objects</key>
@ -4410,11 +4438,11 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>384</integer> <integer>386</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>385</integer> <integer>387</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -4422,7 +4450,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>387</integer> <integer>389</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4438,7 +4466,7 @@
<key>$class</key> <key>$class</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>386</integer> <integer>388</integer>
</dict> </dict>
<key>NSRangeCount</key> <key>NSRangeCount</key>
<integer>0</integer> <integer>0</integer>
@ -4456,7 +4484,7 @@
<key>$class</key> <key>$class</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>388</integer> <integer>390</integer>
</dict> </dict>
<key>NSRangeCount</key> <key>NSRangeCount</key>
<integer>0</integer> <integer>0</integer>
@ -4479,14 +4507,6 @@
</dict> </dict>
<key>NS.keys</key> <key>NS.keys</key>
<array> <array>
<dict>
<key>CF$UID</key>
<integer>390</integer>
</dict>
<dict>
<key>CF$UID</key>
<integer>391</integer>
</dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>392</integer> <integer>392</integer>
@ -4519,6 +4539,14 @@
<key>CF$UID</key> <key>CF$UID</key>
<integer>399</integer> <integer>399</integer>
</dict> </dict>
<dict>
<key>CF$UID</key>
<integer>400</integer>
</dict>
<dict>
<key>CF$UID</key>
<integer>401</integer>
</dict>
</array> </array>
<key>NS.objects</key> <key>NS.objects</key>
<array> <array>
@ -4528,19 +4556,19 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>400</integer> <integer>402</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>401</integer> <integer>403</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>403</integer> <integer>405</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>404</integer> <integer>406</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -4552,7 +4580,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>405</integer> <integer>407</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -4560,7 +4588,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>406</integer> <integer>408</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4579,7 +4607,7 @@
<key>$class</key> <key>$class</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>402</integer> <integer>404</integer>
</dict> </dict>
<key>NS.objects</key> <key>NS.objects</key>
<array/> <array/>
@ -4598,7 +4626,7 @@
<key>$class</key> <key>$class</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>402</integer> <integer>404</integer>
</dict> </dict>
<key>NS.objects</key> <key>NS.objects</key>
<array/> <array/>
@ -4616,7 +4644,7 @@
<key>$class</key> <key>$class</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>402</integer> <integer>404</integer>
</dict> </dict>
<key>NS.objects</key> <key>NS.objects</key>
<array/> <array/>
@ -4625,7 +4653,7 @@
<key>$class</key> <key>$class</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>402</integer> <integer>404</integer>
</dict> </dict>
<key>NS.objects</key> <key>NS.objects</key>
<array/> <array/>
@ -4647,7 +4675,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>408</integer> <integer>410</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4661,15 +4689,15 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>409</integer> <integer>411</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>411</integer> <integer>413</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>413</integer> <integer>415</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4698,7 +4726,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>410</integer> <integer>412</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4728,7 +4756,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>412</integer> <integer>414</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4758,7 +4786,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>414</integer> <integer>416</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4808,15 +4836,15 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>416</integer> <integer>418</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>424</integer> <integer>430</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>442</integer> <integer>451</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -4828,11 +4856,11 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>457</integer> <integer>466</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>463</integer> <integer>472</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -4854,12 +4882,12 @@
<key>primaryEditorContextNode</key> <key>primaryEditorContextNode</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>417</integer> <integer>419</integer>
</dict> </dict>
<key>rootLayoutTreeNode</key> <key>rootLayoutTreeNode</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>422</integer> <integer>428</integer>
</dict> </dict>
</dict> </dict>
<dict> <dict>
@ -4878,14 +4906,14 @@
<key>documentArchivableRepresentation</key> <key>documentArchivableRepresentation</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>418</integer> <integer>420</integer>
</dict> </dict>
<key>orientation</key> <key>orientation</key>
<integer>0</integer> <integer>0</integer>
<key>parent</key> <key>parent</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>422</integer> <integer>428</integer>
</dict> </dict>
</dict> </dict>
<dict> <dict>
@ -4897,22 +4925,22 @@
<key>DocumentLocation</key> <key>DocumentLocation</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>421</integer> <integer>426</integer>
</dict> </dict>
<key>DomainIdentifier</key> <key>DomainIdentifier</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>0</integer> <integer>87</integer>
</dict> </dict>
<key>IdentifierPath</key> <key>IdentifierPath</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>419</integer> <integer>421</integer>
</dict> </dict>
<key>IndexOfDocumentIdentifier</key> <key>IndexOfDocumentIdentifier</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>420</integer> <integer>26</integer>
</dict> </dict>
</dict> </dict>
<dict> <dict>
@ -4922,9 +4950,58 @@
<integer>13</integer> <integer>13</integer>
</dict> </dict>
<key>NS.objects</key> <key>NS.objects</key>
<array/> <array>
<dict>
<key>CF$UID</key>
<integer>422</integer>
</dict>
<dict>
<key>CF$UID</key>
<integer>423</integer>
</dict>
<dict>
<key>CF$UID</key>
<integer>424</integer>
</dict>
</array>
</dict> </dict>
<integer>9223372036854775807</integer> <dict>
<key>$class</key>
<dict>
<key>CF$UID</key>
<integer>90</integer>
</dict>
<key>Identifier</key>
<dict>
<key>CF$UID</key>
<integer>368</integer>
</dict>
</dict>
<dict>
<key>$class</key>
<dict>
<key>CF$UID</key>
<integer>90</integer>
</dict>
<key>Identifier</key>
<dict>
<key>CF$UID</key>
<integer>65</integer>
</dict>
</dict>
<dict>
<key>$class</key>
<dict>
<key>CF$UID</key>
<integer>90</integer>
</dict>
<key>Identifier</key>
<dict>
<key>CF$UID</key>
<integer>425</integer>
</dict>
</dict>
<string>DDWRT-Monitor</string>
<dict> <dict>
<key>$class</key> <key>$class</key>
<dict> <dict>
@ -4934,7 +5011,7 @@
<key>documentURL</key> <key>documentURL</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>336</integer> <integer>427</integer>
</dict> </dict>
<key>timestamp</key> <key>timestamp</key>
<dict> <dict>
@ -4942,6 +5019,15 @@
<integer>0</integer> <integer>0</integer>
</dict> </dict>
</dict> </dict>
<dict>
<key>$class</key>
<dict>
<key>CF$UID</key>
<integer>97</integer>
</dict>
<key>NS.string</key>
<string>file://localhost/Users/spike/Downloads/DDWRT-Monitor/DDWRT_MonitorAppDelegate.m</string>
</dict>
<dict> <dict>
<key>$class</key> <key>$class</key>
<dict> <dict>
@ -4951,7 +5037,7 @@
<key>children</key> <key>children</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>423</integer> <integer>429</integer>
</dict> </dict>
<key>contentType</key> <key>contentType</key>
<integer>0</integer> <integer>0</integer>
@ -4978,7 +5064,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>417</integer> <integer>419</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -4999,7 +5085,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>425</integer> <integer>431</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5020,7 +5106,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>426</integer> <integer>432</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5049,7 +5135,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>427</integer> <integer>433</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -5057,7 +5143,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>440</integer> <integer>449</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5071,7 +5157,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>428</integer> <integer>434</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5116,23 +5202,23 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>429</integer> <integer>435</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>430</integer> <integer>436</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>433</integer> <integer>442</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>437</integer> <integer>446</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>438</integer> <integer>368</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -5140,7 +5226,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>439</integer> <integer>447</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5154,22 +5240,22 @@
<key>DocumentLocation</key> <key>DocumentLocation</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>421</integer> <integer>426</integer>
</dict> </dict>
<key>DomainIdentifier</key> <key>DomainIdentifier</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>0</integer> <integer>87</integer>
</dict> </dict>
<key>IdentifierPath</key> <key>IdentifierPath</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>431</integer> <integer>437</integer>
</dict> </dict>
<key>IndexOfDocumentIdentifier</key> <key>IndexOfDocumentIdentifier</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>432</integer> <integer>26</integer>
</dict> </dict>
</dict> </dict>
<dict> <dict>
@ -5179,9 +5265,58 @@
<integer>13</integer> <integer>13</integer>
</dict> </dict>
<key>NS.objects</key> <key>NS.objects</key>
<array/> <array>
<dict>
<key>CF$UID</key>
<integer>438</integer>
</dict> </dict>
<integer>9223372036854775807</integer> <dict>
<key>CF$UID</key>
<integer>439</integer>
</dict>
<dict>
<key>CF$UID</key>
<integer>440</integer>
</dict>
</array>
</dict>
<dict>
<key>$class</key>
<dict>
<key>CF$UID</key>
<integer>90</integer>
</dict>
<key>Identifier</key>
<dict>
<key>CF$UID</key>
<integer>368</integer>
</dict>
</dict>
<dict>
<key>$class</key>
<dict>
<key>CF$UID</key>
<integer>90</integer>
</dict>
<key>Identifier</key>
<dict>
<key>CF$UID</key>
<integer>65</integer>
</dict>
</dict>
<dict>
<key>$class</key>
<dict>
<key>CF$UID</key>
<integer>90</integer>
</dict>
<key>Identifier</key>
<dict>
<key>CF$UID</key>
<integer>441</integer>
</dict>
</dict>
<string>DDWRT-Monitor</string>
<dict> <dict>
<key>$class</key> <key>$class</key>
<dict> <dict>
@ -5211,11 +5346,11 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>434</integer> <integer>443</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>435</integer> <integer>444</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -5223,15 +5358,14 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>436</integer> <integer>445</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
<real>328577902.926952</real> <real>328578489.277578</real>
<string>{0, 1089}</string> <string>{1044, 1134}</string>
<string>{2472, 0}</string> <string>{2148, 0}</string>
<string>@implementation DDWRT_MonitorAppDelegate</string> <string>-initDefaults</string>
<string>DDWRT_MonitorAppDelegate.m</string>
<dict> <dict>
<key>$class</key> <key>$class</key>
<dict> <dict>
@ -5246,9 +5380,10 @@
<key>NS.relative</key> <key>NS.relative</key>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>336</integer> <integer>448</integer>
</dict> </dict>
</dict> </dict>
<string>file://localhost/Users/spike/Downloads/DDWRT-Monitor/DDWRT_MonitorAppDelegate.m</string>
<dict> <dict>
<key>$class</key> <key>$class</key>
<dict> <dict>
@ -5259,7 +5394,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>441</integer> <integer>450</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5305,11 +5440,11 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>443</integer> <integer>452</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>444</integer> <integer>453</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
@ -5317,11 +5452,11 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>445</integer> <integer>454</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>451</integer> <integer>460</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5384,7 +5519,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>446</integer> <integer>455</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5398,11 +5533,11 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>447</integer> <integer>456</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>449</integer> <integer>458</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5431,7 +5566,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>448</integer> <integer>457</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5461,7 +5596,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>450</integer> <integer>459</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5483,7 +5618,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>452</integer> <integer>461</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5497,11 +5632,11 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>453</integer> <integer>462</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>455</integer> <integer>464</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5530,7 +5665,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>454</integer> <integer>463</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5560,7 +5695,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>456</integer> <integer>465</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5582,7 +5717,7 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>458</integer> <integer>467</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5596,11 +5731,11 @@
<array> <array>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>459</integer> <integer>468</integer>
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>461</integer> <integer>470</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5629,7 +5764,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>460</integer> <integer>469</integer>
</dict> </dict>
</array> </array>
</dict> </dict>
@ -5659,7 +5794,7 @@
</dict> </dict>
<dict> <dict>
<key>CF$UID</key> <key>CF$UID</key>
<integer>462</integer> <integer>471</integer>
</dict> </dict>
</array> </array>
</dict> </dict>

@ -50,6 +50,7 @@
IBOutlet id menuWanDNSItem2; IBOutlet id menuWanDNSItem2;
IBOutlet id menuWanBandwidthGraph; IBOutlet id menuWanBandwidthGraph;
NSUserDefaults *defaults;
NSStatusItem *_appMenu; NSStatusItem *_appMenu;
NSAlert *modalWindow; NSAlert *modalWindow;
@ -65,6 +66,9 @@
BOOL _wrtReachable; BOOL _wrtReachable;
} }
- (void) initDefaults;
- (void) readDefaults;
- (void) terminate:(id)sender; - (void) terminate:(id)sender;
- (void) showConfigPanel:(id)sender; - (void) showConfigPanel:(id)sender;
- (void) hideConfigPanel:(id)sender; - (void) hideConfigPanel:(id)sender;

@ -15,43 +15,22 @@
//- (void)applicationDidFinishLaunching:(NSNotification *)aNotification //- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
- (void) awakeFromNib - (void) awakeFromNib
{ {
NSLog(@"Spike debug start.");
wrt_client = [[WRTStatusClient alloc] initWithHostname:@"router" port:80 username:@"spike" password:@"aaaassss"]; wrt_client = [[WRTStatusClient alloc] initWithHostname:@"router" port:80 username:@"spike" password:@"aaaassss"];
[wrt_client getStatusUpdate:@"graph_if.svg?vlan2" delegate: self];
NSLog(@"Spike debug end.");
// Insert code here to initialize your application // Insert code here to initialize your application
[self showMenubar]; [self showMenubar];
_wrtReachable = false; _wrtReachable = false;
// initialize defaults defaults = [NSUserDefaults standardUserDefaults];
NSString *hostname = [[NSUserDefaults standardUserDefaults] stringForKey:@"hostname"];
if (hostname == nil) // App first run: set up user defaults. // check if the app is configured yet
if (![defaults boolForKey:@"configured"])
{ {
NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys:nil]; [self initDefaults];
NSLog(@"Creating new user defaults");
// do any other initialization you want to do here - e.g. the starting default values.
//[[NSUserDefaults standardUserDefaults] setObject:@"192.168.1.1" foKey:@"hostname"];
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"showMenuIcon"];
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"useBytes"];
[[NSUserDefaults standardUserDefaults] setInteger:80 forKey:@"port"];
[[NSUserDefaults standardUserDefaults] setInteger:4 forKey:@"refreshTime"];
// sync the defaults to disk
[[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
[[NSUserDefaults standardUserDefaults] synchronize];
// TODO: Add modal alert "First launch" here...
[self showConfigPanel:nil];
} else { } else {
[self readDefaults];
NSLog(@"Using existing user defaults"); NSLog(@"Using existing user defaults");
//_readTimer = [NSTimer scheduledTimerWithTimeInterval:[[NSUserDefaults standardUserDefaults] integerForKey:@"refreshTime"] target:self selector:@selector(updateThroughput:) userInfo:nil repeats:YES]; //_readTimer = [NSTimer scheduledTimerWithTimeInterval:[[NSUserDefaults standardUserDefaults] integerForKey:@"refreshTime"] target:self selector:@selector(updateThroughput:) userInfo:nil repeats:YES];
@ -59,9 +38,9 @@
[self updateThroughput]; [self updateThroughput];
WRTRequest *wrtr = [[WRTRequest alloc] init]; //WRTRequest *wrtr = [[WRTRequest alloc] init];
[wrtr doRequest:self requestSelector:@selector(doUpdateStatus:) uri:@"Status_Router.live.asp"]; //[wrtr doRequest:self requestSelector:@selector(doUpdateStatus:) uri:@"Status_Router.live.asp"];
} }
} }
@ -75,6 +54,32 @@
[super dealloc]; [super dealloc];
} }
- (void) initDefaults
{
NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys:nil];
NSLog(@"Creating new user defaults");
// do any other initialization you want to do here - e.g. the starting default values.
//[[NSUserDefaults standardUserDefaults] setObject:@"192.168.1.1" foKey:@"hostname"];
[defaults setBool:YES forKey:@"showMenuIcon"];
[defaults setBool:YES forKey:@"useBytes"];
[defaults setInteger:80 forKey:@"port"];
[defaults setInteger:4 forKey:@"refreshTime"];
// sync the defaults to disk
[defaults registerDefaults:appDefaults];
[defaults synchronize];
// TODO: Add modal alert "First launch" here...
[self showConfigPanel:self];
}
- (void) readDefaults
{
}
- (void) terminate:(id)sender { - (void) terminate:(id)sender {
[[NSUserDefaults standardUserDefaults] synchronize]; [[NSUserDefaults standardUserDefaults] synchronize];
[self dealloc]; [self dealloc];
@ -241,9 +246,9 @@
[configStateStatus startAnimation:nil]; [configStateStatus startAnimation:nil];
[configStateStatus setHidden:false]; [configStateStatus setHidden:false];
WRTRequest *wrtr = [[WRTRequest alloc] init]; //WRTRequest *wrtr = [[WRTRequest alloc] init];
[wrtr doRequest:self requestSelector:@selector(configSaveRequestCallback:) uri:@"Status_Router.live.asp"]; //[wrtr doRequest:self requestSelector:@selector(configSaveRequestCallback:) uri:@"Status_Router.live.asp"];
} }
-(NSString *)getKey:(NSString *)stringData key:(NSString *)key -(NSString *)getKey:(NSString *)stringData key:(NSString *)key
@ -308,9 +313,9 @@
- (void) updateThroughput - (void) updateThroughput
{ {
WRTRequest *wrtr = [[WRTRequest alloc] init]; //WRTRequest *wrtr = [[WRTRequest alloc] init];
[wrtr doRequest:self requestSelector:@selector(throughputCallback:) uri:@"fetchif.cgi?ppp1"]; //[wrtr doRequest:self requestSelector:@selector(throughputCallback:) uri:@"fetchif.cgi?ppp1"];
} }
- (void) throughputCallback:(NSData *)data - (void) throughputCallback:(NSData *)data
@ -367,9 +372,9 @@
- (void) refreshWanMenu:(id)sender - (void) refreshWanMenu:(id)sender
{ {
NSLog(@"Refreshing Wan Menu"); NSLog(@"Refreshing Wan Menu");
WRTRequest *wrtr = [[WRTRequest alloc] init]; //WRTRequest *wrtr = [[WRTRequest alloc] init];
[wrtr doRequest:self requestSelector:@selector(wanRequestCallback:) uri:@"Status_Internet.live.asp"]; //[wrtr doRequest:self requestSelector:@selector(wanRequestCallback:) uri:@"Status_Internet.live.asp"];
} }
- (void) wanRequestCallback:(NSData *)data - (void) wanRequestCallback:(NSData *)data

Loading…
Cancel
Save