From 93f51eaa421f69f73954f89cc0bb02ffeefbd16d Mon Sep 17 00:00:00 2001 From: cacaodev Date: Fri, 16 Mar 2012 16:38:42 +0100 Subject: [PATCH] CPViewController The cib should be initialized with bundle information. --- AppKit/CPViewController.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPViewController.j b/AppKit/CPViewController.j index 45a743c01..879df04ae 100644 --- a/AppKit/CPViewController.j +++ b/AppKit/CPViewController.j @@ -160,7 +160,7 @@ var CPViewControllerCachedCibs; if (!cib) { // if the cib isn't cached yet : fetch it and cache it - cib = [[CPCib alloc] initWithContentsOfURL:[_cibBundle pathForResource:_cibName + @".cib"]]; + cib = [[CPCib alloc] initWithCibNamed:_cibName bundle:_cibBundle]; [CPViewControllerCachedCibs setObject:cib forKey:_cibName]; }