Re: IB throws exception with custom control
Re: IB throws exception with custom control
- Subject: Re: IB throws exception with custom control
- From: Andy Armstrong <email@hidden>
- Date: Wed, 5 Oct 2005 20:22:07 +0100
On 4 Oct 2005, at 16:46, Andy Armstrong wrote:
Hello,
I have a small problem with a custom control I'm developing. I've
wrapped it up in a palette which I can add to IB successfully and I
can't find anything I've omitted compared with the examples I've
looked at. However when I add the control to a window or otherwise
edit it IB throws an exception. Here's what I see in the console log:
2005-10-04 16:27:40.498 Interface Builder[7189] *** Assertion failure
in -[IBClassDescription initWithPropertyList:entityName:],
/SourceCache/InterfaceBuilder/InterfaceBuilder-439.0.80/IBFramework/
UndoSupport/IBClassDescription.m:19
2005-10-04 16:27:40.499 Interface Builder[7189] Exception: Invalid
parameter not satisfying: _plist != nil -[IBClassDescriptionSnapshot
initWithObject:inDocument:attributes:]
I guess it's looking for a plist somewhere but google isn't helping
me. I ran IB under GDB and had it break on the exception but the
stack backtrace didn't really shed any additional light (to me
anyway) on what IB's trying to do.
How dumb am I? (don't answer that). It turned out to be a file naming
problem - I have two ibclassdescription files - one for each control
class and I was describing each one in the other's file. And d'you
know how I noticed? I checked them in to CVS and then noticed that
the filename in the $Id$ line in the header didn't match the class
that was being described.
--
Andy Armstrong, hexten.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden