• 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
Re: [Q] Custom NSFormatter and IB's Cocoa Simulator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[Q] Custom NSFormatter and IB's Cocoa Simulator (From: JongAm Park <email@hidden>)

  • Prev by Date: Re: Utility/Floating window with titlebar on left side
  • Next by Date: Re: NSImage with alpha
  • Previous by thread: [Q] Custom NSFormatter and IB's Cocoa Simulator
  • Next by thread: Properties and bindings
  • Index(es):
    • Date
    • Thread