SummerBoard_ = [value boolValue];
if (NSNumber *value = [settings objectForKey:@"Debug"])
Debug_ = [value boolValue];
+ if (NSNumber *value = [settings objectForKey:@"RecordUI"])
+ UIDebug_ = [value boolValue];
NSArray *themes([settings objectForKey:@"Themes"]);
if (themes == nil)
}
// }}}
- if (Debug_ && [Manager_ fileExistsAtPath:@"/tmp/UIImages"])
- UIDebug_ = true;
+ if (UIDebug_ && ![Manager_ fileExistsAtPath:@"/tmp/UIImages"]) {
+ NSError *error(nil);
+ if (![Manager_ createDirectoryAtPath:@"/tmp/UIImages" withIntermediateDirectories:NO attributes:[NSDictionary dictionaryWithObjectsAndKeys:
+ [NSNumber numberWithShort:0777], NSFilePosixPermissions,
+ nil] error:&error])
+ NSLog(@"WB:Error: cannot create /tmp/UIImages (%@)", error);
+ }
[pool release];
}
</dict>
</array>
</dict>
+ <dict>
+ <key>cell</key>
+ <string>PSGroupCell</string>
+ <key>footerText</key>
+ <string>All UIImages that are not themed will be saved as PNGs into /tmp/UIImages.</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSSwitchCell</string>
+ <key>default</key>
+ <false/>
+ <key>key</key>
+ <string>RecordUI</string>
+ <key>label</key>
+ <string>Record UIImages</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSGroupCell</string>
+ <key>isStaticText</key>
+ <string>true</string>
+ <key>requiredCapabilities</key>
+ <array>
+ <dict>
+ <key>wildcat</key>
+ <false/>
+ <key>voip</key>
+ <false/>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSTitleValueCell</string>
+ <key>label</key>
+ <string>All UIImages that are not themed will be saved as PNGs into /tmp/UIImages.</string>
+ <key>requiredCapabilities</key>
+ <array>
+ <dict>
+ <key>wildcat</key>
+ <false/>
+ <key>voip</key>
+ <false/>
+ </dict>
+ </array>
+ </dict>
</array>
<key>title</key>
<string>WinterBoard</string>