[Q] Custom NSFormatter and IB's Cocoa Simulator
[Q] Custom NSFormatter and IB's Cocoa Simulator
- Subject: [Q] Custom NSFormatter and IB's Cocoa Simulator
- From: JongAm Park <email@hidden>
- Date: Mon, 22 Sep 2008 16:01:10 -0700
Hello.
I tried making my own custom NSFormatter by following the guide,
"Interface Builder Plug-In Programming Guide"
However, when I tried my NSFormatter subclass using the "Simulate
Interface" menu item of the Interface Builder, it rasied :
An uncaught exception was raised
*** - [NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of
class (JAStringFormatter)
*** Terminating app due to uncaught exception
'NSInvalidUncarchiveOperationException', reason:
'*** - [NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of
class (JAStringFormatter)'
Can anyone tell me how to solve this problem?
Also, I would like to ask if
"attributedStringForObjectValue:withDefaultAttributes:" is really
requried to be overriden.
The document says, "To subclass NSFormatter, you must, at the least,
override the three primitive methods:".
Thank you in advance.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden