Skip to content

Commit

Permalink
Merge pull request #1482 from cacaodev/CPViewController-bundle-fix
Browse files Browse the repository at this point in the history
CPViewController The cib should be initialized with bundle information.
  • Loading branch information
aparajita committed Mar 23, 2012
2 parents 7c807dd + 93f51ea commit 28ed2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AppKit/CPViewController.j
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 28ed2f9

Please sign in to comment.