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]; }