mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:30:37 +00:00
Fix coding bugs etc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14808 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
82d40abd70
commit
ca36571cc6
4 changed files with 15 additions and 11 deletions
|
@ -285,8 +285,8 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
_autoresizes_subviews = YES;
|
||||
_autoresizingMask = NSViewNotSizable;
|
||||
_coordinates_valid = NO;
|
||||
_nextKeyView = nil;
|
||||
_previousKeyView = nil;
|
||||
_nextKeyView = 0;
|
||||
_previousKeyView = 0;
|
||||
|
||||
_rFlags.flipped_view = [self isFlipped];
|
||||
|
||||
|
@ -3501,8 +3501,8 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
|||
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &_post_frame_changes];
|
||||
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &_autoresizes_subviews];
|
||||
[aCoder encodeValueOfObjCType: @encode(unsigned int) at: &_autoresizingMask];
|
||||
[aCoder encodeConditionalObject: _nextKeyView];
|
||||
[aCoder encodeConditionalObject: _previousKeyView];
|
||||
[aCoder encodeConditionalObject: [self nextKeyView]];
|
||||
[aCoder encodeConditionalObject: [self previousKeyView]];
|
||||
[aCoder encodeObject: _sub_views];
|
||||
NSDebugLLog(@"NSView", @"NSView: finish encoding\n");
|
||||
}
|
||||
|
@ -3512,6 +3512,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
|||
NSRect rect;
|
||||
NSEnumerator *e;
|
||||
NSView *sub;
|
||||
NSView *prev;
|
||||
NSArray *subs;
|
||||
|
||||
self = [super initWithCoder: aDecoder];
|
||||
|
@ -3549,8 +3550,9 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
|||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_autoresizes_subviews];
|
||||
[aDecoder decodeValueOfObjCType: @encode(unsigned int)
|
||||
at: &_autoresizingMask];
|
||||
_nextKeyView = [aDecoder decodeObject];
|
||||
_previousKeyView = [aDecoder decodeObject];
|
||||
[self setNextKeyView: [aDecoder decodeObject]];
|
||||
[[aDecoder decodeObject] setNextKeyView: self];
|
||||
|
||||
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &subs];
|
||||
e = [subs objectEnumerator];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue