Re: Problem assigning NSView bounds from subview.bounds

2012-02-13 Thread Kyle Sluder
On Feb 13, 2012, at 7:02 AM, Michael Crawford wrote: > I'm trying to have a superview resize itself to match the bounds of a subview > when the subview is added. When I do, the superview bounds become NaN. > > Why would this: > > - (void)didAddSubview:(NSView *)view > { >// resize to matc

Problem assigning NSView bounds from subview.bounds

2012-02-13 Thread Michael Crawford
I'm trying to have a superview resize itself to match the bounds of a subview when the subview is added. When I do, the superview bounds become NaN. Why would this: - (void)didAddSubview:(NSView *)view { // resize to match bounds of given subview NSLog(@"%@ = %@, %@ = %@", self, NSStrin