Merge branch 'master' of git@github.com:tolmasky/cappuccino into tolmasky

This commit is contained in:
Tom Robinson
2009-02-21 01:34:36 -08:00
3 changed files with 22 additions and 0 deletions
+1
View File
@@ -25,6 +25,7 @@
@import "CPAnimation.j"
@import "CPApplication.j"
@import "CPButton.j"
@import "CPButtonBar.j"
@import "CPClipView.j"
@import "CPCollectionView.j"
@import "CPColor.j"
+1
View File
@@ -90,6 +90,7 @@ var CPCibObjectDataKey = @"CPCibObjectDataKey";
[objectData instantiateWithOwner:owner topLevelObjects:topLevelObjects]
[objectData establishConnectionsWithOwner:owner topLevelObjects:topLevelObjects];
[objectData awakeWithOwner:owner topLevelObjects:topLevelObjects];
var menu;
+20
View File
@@ -223,4 +223,24 @@ var _CPCibObjectDataNamesKeysKey = @"_CPCibObjectDataNamesKeysKey
}
}
- (void)awakeWithOwner:(id)anOwner topLevelObjects:(CPMutableArray)topLevelObjects
{
var count = [_objectsKeys count];
while (count--)
{
var object = _objectsKeys[count],
instantiatedObject = _replacementObjects[[object hash]];
if (instantiatedObject)
object = instantiatedObject;
if (object !== _fileOwner && [object respondsToSelector:@selector(awakeFromCib)])
[object awakeFromCib];
}
if ([anOwner respondsToSelector:@selector(awakeFromCib)])
[anOwner awakeFromCib];
}
@end