Skip to content

Commit

Permalink
nib2cib fix for multiple subviews in a Custom View
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Robinson committed Oct 23, 2008
1 parent cb53db0 commit f34265a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AppKit/Cib/_CPCibCustomView.j
Expand Up @@ -73,7 +73,9 @@ var _CPCibCustomViewClassNameKey = @"_CPCibCustomViewClassNameKey";
[view setBounds:[self bounds]];

// Since the object replacement logic hasn't had a chance to kick in yet, we need to do it manually:
var subviews = [self subviews],

// we need to copy subviews since each time we add a subview to a different view its removed from the original subviews array
var subviews = [[self subviews] copy],
index = 0,
count = subviews.length;

Expand Down

0 comments on commit f34265a

Please sign in to comment.