}
- (void)windowWillClose:(NSNotification *)notification {
- [[self window] makeFirstResponder:nil];
- [(pithos_macosAppDelegate *)[[NSApplication sharedApplication] delegate] authenticate];
+ [self authenticationApply:self];
}
- (IBAction)toolbarItemSelected:(id)sender {
#pragma mark -
#pragma Authentication
+- (IBAction)authenticationApply:(id)sender {
+ [[self window] makeFirstResponder:nil];
+ [(pithos_macosAppDelegate *)[[NSApplication sharedApplication] delegate] authenticate];
+}
+
- (IBAction)authenticationLogin:(id)sender {
NSProcessInfo *processInfo = [NSProcessInfo processInfo];
NSString *loginURL = [NSString stringWithFormat:@"%@?next=pithos://%@_%d",