discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bug with adding subviews?


From: Nicola Pero
Subject: Re: Possible bug with adding subviews?
Date: Tue, 12 Feb 2002 19:21:42 +0000 (GMT)

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.

> Hi,
> 
> I converted a MacOSX nib using nib2gmodel, and am debugging the results :=(
> 
> The issue here is that GNUstep complains thus:
> 
> Uncaught exception NSInvalidArgumentException, reason: addSubview: creates a 
> loop in the views tree!
> 
> The problem occurs under the following conditions:
> 
> - unarchiving from gmodel file
> - NSBox object ("box") has contentview "a"
> - nsview "a" also appears in box's subviews array

this is the problem - it must be saved only once




reply via email to

[Prev in Thread] Current Thread [Next in Thread]