Skip to content

Commit

Permalink
Add call to setter as suggested by @fredkiefer
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Dec 27, 2023
1 parent 79fd2c8 commit 345b1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/NSView.m
Original file line number Diff line number Diff line change
Expand Up @@ -4752,7 +4752,7 @@ - (id) initWithCoder: (NSCoder*)aDecoder
// Decode the shadow...
if ([aDecoder containsValueForKey: @"NSViewShadow"])
{
_shadow = RETAIN([aDecoder decodeObjectForKey: @"NSViewShadow"]);
[self setShadow: [aDecoder decodeObjectForKey: @"NSViewShadow"]];
}

// the superview...
Expand Down Expand Up @@ -4821,7 +4821,7 @@ - (id) initWithCoder: (NSCoder*)aDecoder
// Decode the shadow if this is version 2 or greater...
if (version >= 2)
{
_shadow = RETAIN([aDecoder decodeObject]);
[self setShadow: [aDecoder decodeObject]];
}
}

Expand Down

0 comments on commit 345b1b4

Please sign in to comment.