mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:27:40 +00:00
Small keyed decoing improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29963 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a798a9bcc1
commit
58afda1e08
5 changed files with 24 additions and 11 deletions
|
@ -831,6 +831,9 @@ that makes decoding and encoding compatible with the old code.
|
|||
- (id) initWithCoder: (NSCoder *)aDecoder
|
||||
{
|
||||
self = [super initWithCoder: aDecoder];
|
||||
if (!self)
|
||||
return nil;
|
||||
|
||||
if ([aDecoder allowsKeyedCoding])
|
||||
{
|
||||
id textString = nil;
|
||||
|
@ -919,8 +922,9 @@ that makes decoding and encoding compatible with the old code.
|
|||
|
||||
if ([aDecoder containsValueForKey: @"NSTVFlags"])
|
||||
{
|
||||
[aDecoder decodeIntForKey: @"NSTVFlags"];
|
||||
//[aDecoder decodeIntForKey: @"NSTVFlags"];
|
||||
}
|
||||
//@"NSDragTypes"
|
||||
|
||||
// Don't add the string if it's nil
|
||||
if(textString != nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue