• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Q] Custom NSFormatter and IB's Cocoa Simulator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Follow-Ups:
    • Re: [Q] Custom NSFormatter and IB's Cocoa Simulator
      • From: Jonathan Hess <email@hidden>
  • Prev by Date: Re: Utility/Floating window with titlebar on left side
  • Next by Date: Re: Utility/Floating window with titlebar on left side
  • Previous by thread: Re: Always allowing drags from WebView inside a global NSPanel
  • Next by thread: Re: [Q] Custom NSFormatter and IB's Cocoa Simulator
  • Index(es):
    • Date
    • Thread