|
From: | Richard Frith-Macdonald |
Subject: | Re: Possible bug with adding subviews? |
Date: | Wed, 13 Feb 2002 06:43:03 +0000 |
On Tuesday, February 12, 2002, at 11:58 PM, Nicola Pero wrote:
Try adding - (NSArray *)subviewsForModel { return [NSArray array]; }just after @implementation NSBox (GMArchiverMethods) in Model/GMAppKit.m,then rebuild nib2gmodel and regenerate the gmodel. If that works, I'll commit the fix to CVS.I don't think I want to do this -- it's common in InterfaceBuilder to enclose interface elements in a box - not just graphically, but hierarchically as well. So I'm not going to disregard all subviews of an NSBox. I'll look atRichards suggestions.NSBox has always a single subview, which is the content view. NSBox overrides addSubview: to add the subviews to the content view.
I had a look at the code .. and I agree with Nicola - the bug is in the encoding of the NSBox into the archive rather than the decoding, and his suggestion ought to
fix it.
[Prev in Thread] | Current Thread | [Next in Thread] |