From: Michael J. Rubinsky Date: Sat, 31 Jan 2009 23:04:17 +0000 (-0500) Subject: Remove cruft - add the export controller as a delegate for the X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=742a4354967bbf58e85d78b397a2a4988fc9303c;p=horde.git Remove cruft - add the export controller as a delegate for the server list NSTableView --- diff --git a/iPhoto2Ansel/AnselExportController.m b/iPhoto2Ansel/AnselExportController.m index 8300a268f..3f3943373 100644 --- a/iPhoto2Ansel/AnselExportController.m +++ b/iPhoto2Ansel/AnselExportController.m @@ -132,6 +132,7 @@ NSString * const TURAnselServerPasswordKey = @"password"; - (IBAction) closeServerList: (id)sender { + [serverTable setDelegate: nil]; [NSApp endSheet: serverListPanel]; [serverListPanel orderOut: nil]; } @@ -303,6 +304,8 @@ NSString * const TURAnselServerPasswordKey = @"password"; modalDelegate: nil didEndSelector: nil contextInfo: nil]; + + [serverTable setDelegate: self]; } // See if we have everything we need to export... @@ -607,6 +610,13 @@ NSString * const TURAnselServerPasswordKey = @"password"; } } + +#pragma mark NSTableView Notifications +- (void)NSTableViewSelectionDidChangeNotification: (NSNotification *)notification +{ + NSLog(@"%@", notification); +} + #pragma mark TURAnselGalleryPanel Notifications - (void)TURAnselGalleryPanelDidAddGallery { @@ -642,8 +652,6 @@ NSString * const TURAnselServerPasswordKey = @"password"; #pragma mark NSTableView Datasource - (int)numberOfRowsInTableView:(NSTableView *)aTableView { - NSLog(@"Table count"); - NSLog(@"%@", anselServers); return [anselServers count]; }