diff options
-rw-r--r-- | Source/SPAppController.m | 6 |
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; } } |