- (void) _setMoreHeaders:(NSMutableURLRequest *)request {
[super _setMoreHeaders:request];
+
if (ChipID_ != nil)
[request setValue:ChipID_ forHTTPHeaderField:@"X-Chip-ID"];
if (UniqueID_ != nil)
}
- (void) aboutButtonClicked {
- UIAlertView *alert = [[[UIAlertView alloc] init] autorelease];
+ UIAlertView *alert([[[UIAlertView alloc] init] autorelease]);
+
[alert setTitle:UCLocalize("ABOUT_CYDIA")];
[alert addButtonWithTitle:UCLocalize("CLOSE")];
[alert setCancelButtonIndex:0];
- (id) init {
if ((self = [super init]) != nil) {
- UIBarButtonItem *aboutItem = [[UIBarButtonItem alloc]
+ [[self navigationItem] setLeftBarButtonItem:[[[UIBarButtonItem alloc]
initWithTitle:UCLocalize("ABOUT")
style:UIBarButtonItemStylePlain
target:self
action:@selector(aboutButtonClicked)
- ];
- [[self navigationItem] setLeftBarButtonItem:aboutItem];
- [aboutItem release];
+ ] autorelease]];
} return self;
}