From 7ca50e4d28e7bd8c1c05fa360f4a746f5975ed98 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Tue, 15 Sep 2009 17:13:32 -0700 Subject: [PATCH] Fix for accessing view controllers for a document. Reviewed by me. --- AppKit/CPDocument.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPDocument.j b/AppKit/CPDocument.j index 76838a3fa..82159b55f 100644 --- a/AppKit/CPDocument.j +++ b/AppKit/CPDocument.j @@ -323,7 +323,7 @@ var CPDocumentUntitledCount = 0; - (CPArray)viewControllers { - return [_viewControllersForWindowControllers allObjects]; + return [_viewControllersForWindowControllers allValues]; } - (void)addViewController:(CPViewController)aViewController forWindowController:(CPWindowController)aWindowController