NSKeyedArchiver returning unexpected class?

NSString is a class cluster : NSString is a class cluster, along with other Foundation types such as NSNumber and NSArray: Class clusters are a design pattern that the Foundation framework makes extensive use of. Class clusters group a number of private, concrete subclasses under a public, abstract superclass. The grouping of classes in this way simplifies the publicly visible architecture of an object-oriented framework without reducing its functional richness.

Class clusters are based on the Abstract Factory design pattern discussed in “Cocoa Design Patterns. €? Make sure you read the 'Subclassing Notes' in the NSString doc you have to implement a custom storage mechanism for your subclass.

My guess is that you aren't doing this, or if you are, you are still seeing those private classes pop up when you call the NSCoding methods on super because super will use the methods of the specific private class that the NSString refers to (which depends on its contents).

NSString is a class cluster: "NSString is a class cluster, along with other Foundation types such as NSNumber and NSArray: Class clusters are a design pattern that the Foundation framework makes extensive use of. Class clusters group a number of private, concrete subclasses under a public, abstract superclass. The grouping of classes in this way simplifies the publicly visible architecture of an object-oriented framework without reducing its functional richness.

Class clusters are based on the Abstract Factory design pattern discussed in “Cocoa Design Patterns. €" Make sure you read the 'Subclassing Notes' in the NSString doc... you have to implement a custom storage mechanism for your subclass. My guess is that you aren't doing this, or if you are, you are still seeing those private classes pop up when you call the NSCoding methods on super, because super will use the methods of the specific private class that the NSString refers to (which depends on its contents).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions