aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-01-10 14:51:20 +0100
committerMax <post@wickenrode.com>2015-01-10 14:51:20 +0100
commitd5ffcf83d78e5dc2c6185c13ecce5456b613a655 (patch)
tree42001586322be7339b37895edce075a5759d8237 /Source/SPAppController.m
parent4fafe928e01b6dbf1674eebddd8b9816a9ebcdd1 (diff)
downloadsequelpro-d5ffcf83d78e5dc2c6185c13ecce5456b613a655.tar.gz
sequelpro-d5ffcf83d78e5dc2c6185c13ecce5456b613a655.tar.bz2
sequelpro-d5ffcf83d78e5dc2c6185c13ecce5456b613a655.zip
Fix a compiler warning
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 0840978d..0d60437b 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -670,10 +670,10 @@
}
// Update Bundle Editor if it was already initialized
- for (id win in [NSApp windows])
+ for (NSWindow *win in [NSApp windows])
{
- if ([[[[win delegate] class] description] isEqualToString:@"SPBundleEditorController"]) {
- [[win delegate] reloadBundles:nil];
+ if ([[win delegate] class] == [SPBundleEditorController class]) {
+ [((SPBundleEditorController *)[win delegate]) reloadBundles:nil];
break;
}
}