Re: IB: subclassing NSAnimation problem
Re: IB: subclassing NSAnimation problem
- Subject: Re: IB: subclassing NSAnimation problem
- From: Fritz Anderson <email@hidden>
- Date: Wed, 24 May 2006 14:05:06 -0500
On 23 May 2006, at 4:48 PM, Karim Morsy wrote:
I have a controller that's a subclass of NSAnimation.
when I try to import the header to interface builder in order to
instantiate it there I get the following error message:
"Unknown superclass, Iinterface Builder cannot find the superclass
of one of the classes found in this header file."
does anyone know the reason for this and how this can be avoided ?
NSAnimation requires os x tiger. can it be that I'm missing to
adjust a setting in IB appropriately ?
Looking in the class listing in a NIB file in IB, I find that
NSAnimation does not appear among the classes Interface Builder knows
about. As NSAnimation conforms to NSCoding, it should theoretically
be possible to store one in a NIB, but there's no provision for it
now. <http://bugreport.apple.com/> if you want support to be added.
Adding NSAnimation to the NIB's class tree would not be useful, as
there'd be no way to initialize the animation.
If it were me, I'd allocate and initialize my animation in the
awakeFromNib handler for the owner of the NIB.
-- F
--
Fritz Anderson -- http://www.manoverboard.org/
Consulting Programmer -- http://resume.manoverboard.org/
Step into Xcode -- The ideal Flag Day gift! -- http://
six.manoverboard.org/
_______________________________________________
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