Author: mlytwyn Date: Thu Feb 23 17:27:41 2017 New Revision: 40352 URL: http://svn.gna.org/viewcvs/gnustep?rev=40352&view=rev Log: Added comments for describing the various global variables and their usage
Modified: libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m Modified: libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m URL: http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m?rev=40352&r1=40351&r2=40352&view=diff ============================================================================== --- libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m (original) +++ libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m Thu Feb 23 17:27:41 2017 @@ -383,8 +383,14 @@ @"NSControlAllowsExpansionToolTips" : @"allowsExpansionToolTips" }; RETAIN(XmlKeyMapTable); - // These define keys that typically are a combination of key values stored as separate - // attributes... + // These define keys that are alwasy "CONTAINED" since they typically are a combination of key values + // stored as separate and/or multiple attributed values that may be combined as in the case of flags + // and masks. There are some that have NO direct cross reference (i.e. NSSupport, NSBGColor, etc) + // Each of the ones listed here will MOST PROBABLY have an entry in the 'XmlKeyToDecoderSelectorMap' + // below that provides a cross referenced to an asociated decoding method... + // If there is an easy way to check whether an existing OLD XIB key is contained within the XIB 5 + // version the 'containsValueForKey:' method in this file should be modified and the key omitted from this + // list (i.e. NSContents, NSAlternateContents, NSIntercellSpacingWidth, NSIntercellSpacingHeight, etc)... XmlKeysDefined = @[ @"NSWindowBacking", @"NSWTFlags", @"NSvFlags", @"NSBGColor", @"NSSize", //@"IBIsSystemFont", @@ -409,7 +415,7 @@ @"NSpiFlags" ]; RETAIN(XmlKeysDefined); - // These define XML tags (i.e. '<autoresizingMask ') to an associated decode method... + // These define XML tags (i.e. '<autoresizingMask ...') to an associated decode method... XmlTagToDecoderSelectorMap = @{ @"tableColumnResizingMask" : @"decodeTableColumnResizingMaskForElement:", @"autoresizingMask" : @"decodeAutoresizingMaskForElement:", @"windowStyleMask" : @"decodeWindowStyleMaskForElement:", @@ -418,7 +424,9 @@ @"tableViewGridLines" : @"decodeTableViewGridLinesForElement:" }; RETAIN(XmlTagToDecoderSelectorMap); - // These define XML keys (i.e. '<object key="name"') to an associated decode method... + // These define XML attribute keys (i.e. '<object key="name" key="name" ...') to an associated decode method... + // The associated decode method may process MULTIPLE keyed attributes as in such cases as + // decoding the integer flag masks... XmlKeyToDecoderSelectorMap = @{ @"NSIntercellSpacingHeight" : @"decodeIntercellSpacingHeightForElement:", @"NSIntercellSpacingWidth" : @"decodeIntercellSpacingWidthForElement:", @"NSColumnAutoresizingStyle" : @"decodeColumnAutoresizingStyleForElement:", _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs