bug-gnustep
[Top][All Lists]
Advanced

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

Re: Fix: GMAppKit.m (NSCell), -encodeWithModelArchiver:


From: Nicola Pero
Subject: Re: Fix: GMAppKit.m (NSCell), -encodeWithModelArchiver:
Date: Mon, 10 Jun 2002 08:01:00 +0100 (BST)

Thanks Georg, maybe another solution would be not to encode the
sendActionMask at all, since it's never decoded :-)

Anyway, thanks for the fix, I applied it to CVS

> Hi,
> 
> here is a patch for model archiving (nib2gmodel) which fixes the encoding of  
> [NSCell isContinuous] (and -sendActionMask:).
> The actionMask is now restored after reading (and nullifying) it with 
> sendActionOn:0.
> This change makes sure the values are still valid, when written in the second 
> pass.
> [...]
>       [archiver encodeBOOL:[self isSelectable] withName:@"isSelectable"];
>       [archiver encodeBOOL:[self isScrollable] withName:@"isScrollable"];
>       [archiver encodeBOOL:[self isContinuous] withName:@"isContinuous"];
> !     actionMask = [self sendActionOn:0];
> !     [archiver encodeInt:actionMask withName:@"sendActionMask"];
> !     [self sendActionOn:actionMask];
>   }
> 
>   - (id)initWithModelUnarchiver:(GMUnarchiver*)unarchiver




reply via email to

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