mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-28 17:32:03 +00:00
Allows to leave of the suffix .cib from the filenames of cib files (just like cocoa does and states in the documentation).
This commit is contained in:
1 parent
e05816419e
commit
ad58952a32
1 file changed
+3
@@ -78,6 +78,9 @@ var CPCibObjectDataKey = @"CPCibObjectDataKey";
|
||||
|
||||
- (id)initWithCibNamed:(CPString)aName bundle:(CPBundle)aBundle loadDelegate:(id)aLoadDelegate
|
||||
{
|
||||
if ( ! [aName hasSuffix:@".cib"])
|
||||
aName = [aName stringByAppendingString:@".cib"];
|
||||
|
||||
// If aBundle is nil, use mainBundle, but ONLY for searching for the nib, not for resources later.
|
||||
self = [self initWithContentsOfURL:[aBundle || [CPBundle mainBundle] pathForResource:aName] loadDelegate:aLoadDelegate];
|
||||
|
||||
|
||||
Reference in new issue
Block a user