Re: [iPhone] NSKeyedArchiver with NSValue Objects

2009-12-24 Thread Waqar Malik
Also since you are crossing the boundaries of the framework to UIKit you could also use the NSStringFromCGRect/CGPoint and CGRect/CGPointFromNSString and encoding strings. Again you will have an extras step to go back and forth. --Waqar On Dec 24, 2009, at 12:47 PM, Quincey Morris wrote: > On D

Re: [iPhone] NSKeyedArchiver with NSValue Objects

2009-12-24 Thread Quincey Morris
On Dec 24, 2009, at 09:59, Henry McGilton (Boulevardier) wrote: > I bashed into a problem with NSKeyedArchiver trying to encode > NSValue objects. > > I am using NSValue to wrap up CGPoint and CGSize structures, then > doing an encodeObject: forKey: to encode the NSValue. > > I get this

[iPhone] NSKeyedArchiver with NSValue Objects

2009-12-24 Thread Henry McGilton (Boulevardier)
I bashed into a problem with NSKeyedArchiver trying to encode NSValue objects. I am using NSValue to wrap up CGPoint and CGSize structures, then doing an encodeObject: forKey: to encode the NSValue. I get this message: [NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver canno