[Glass] SIXX question

Dario Trussardi via Glass glass at lists.gemtalksystems.com
Tue Jan 20 04:16:30 PST 2015


Hi,

	i have a question about SIXX support.
	
	I hope to found some considerations in this list.

	Questions:

		i have a class with some instances variable definitions. ( varA  varB  varC varD 	ecc...... )

		Now when i save the data with sixx support i need to manipulate one specific instance ( for example varC  set too dictionary ) 
	
		for save only some varC sub dictionary element.

		If i use for the class the method :

		 	sixxContentOn: aStream indent: level context: dictionary

		i need to manage all the instances variable into it.

			self	 sixxInstVarNamed: #varA
			value: (self varA)
			on: aStream
			indent: level
			context: dictionary.


			self sixxInstVarNamed: #varB
			value: ( self varB )
			on: aStream
			indent: level +1
			context: dictionary.
	
			self	 sixxInstVarNamed: #varC
			value:  (self varC select:[:x | ( x isKindOf: SupportoCtlSys) not  ])
			on: aStream
			indent: level +1
			context: dictionary.

	

		But all other instances is ok, i need to manage only varC
	
		How i can do it?

		The class is complex and manipulates all instances variable is not a good solution.	


		Thanks for any considerations.

			Dario
	
	

	


More information about the Glass mailing list