• 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: IBPalette missing class information?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IBPalette missing class information?


  • Subject: Re: IBPalette missing class information?
  • From: Greg Best <email@hidden>
  • Date: Tue, 18 Sep 2007 00:33:17 -0700

Ah, think I found it... Selective commenting led me to one particular NSDictionary that seems to be causing the problem-- this is a dictionary where the objects are of type Class. Looks like Class, not surprisingly, doesn't play nice with the archive system (but also doesn't throw a "may not respond to" warning).

Now I need to figure out how to archive that bugger. I'll throw that up as a separate topic.

Thanks again for the responses.

On Sep 17, 2007, at 11:06 PM, Greg Best wrote:

Thanks for the responses.

The classes are compiled into a framework, the framework is installed in ~/Library/Framework and linked into the IBPalette project. I think...

I created the project using the Xcode IBPalette template, pulled all of my code from another stand alone project into the new one and set all of my headers to public roles. The framework of interest shows up in the "Products" group and has a checkmark next to it indicating inclusion in the Palette target.

Is there something I need to do beyond this?


On Sep 16, 2007, at 9:48 AM, Ricky Sharp wrote:


On Sep 16, 2007, at 1:56 AM, Greg Best wrote:

I'm trying to package a view into an IBPalette. It compiles fine, and shows up fine in IB, but when I drag it to a window it jumps back and gives this message to the console:

2007-09-15 23:52:48.781 Interface Builder[3522] *** Canceling drag because exception 'NSArchiverArchiveInconsistency' (reason '*** -[NSKeyedUnarchiver decodeObjectForKey:]: missing class information for object') was raised during a dragging session

Any idea what it means to be "missing class information for object"? There's not a lot of information in that message to help me know where to look.

In your custom view's NSCoder methods, what classes are your encoding/decoding? Any custom classes must also be part of the IB palette project when it's built.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com


_______________________________________________

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: 
 >IBPalette missing class information? (From: Greg Best <email@hidden>)
 >Re: IBPalette missing class information? (From: Ricky Sharp <email@hidden>)
 >Re: IBPalette missing class information? (From: Greg Best <email@hidden>)

  • Prev by Date: Re: What's the argument aTableView used for?
  • Next by Date: how to get objects of type Class to play with NSCoder?
  • Previous by thread: Re: IBPalette missing class information?
  • Next by thread: Mixing C++ and Obj-C (odd compile errors)
  • Index(es):
    • Date
    • Thread