Re: [Q] Custom NSFormatter and IB's Cocoa Simulator
Re: [Q] Custom NSFormatter and IB's Cocoa Simulator
- Subject: Re: [Q] Custom NSFormatter and IB's Cocoa Simulator
- From: Jonathan Hess <email@hidden>
- Date: Mon, 22 Sep 2008 16:30:08 -0700
On Sep 22, 2008, at 4:01 PM, JongAm Park wrote:
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)'
Did you implement -[IBPlugin requiredFrameworks] to return your
framework?
Jon Hess
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
_______________________________________________
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