IBPalette missing class information?

  • 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.

    Thanks.
  • On Sep 15, 2007, at 11:56 PM, 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

    Did you compile that class into your palette?

    -Shawn
  • 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:<rsharp...>
    Instant Interactive(tm)  http://www.instantinteractive.com
  • 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:<rsharp...>
    > Instant Interactive(tm)  http://www.instantinteractive.com
    >
  • 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.
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today