• 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: IB: subclassing NSAnimation problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB: subclassing NSAnimation problem


  • Subject: Re: IB: subclassing NSAnimation problem
  • From: Karim Morsy <email@hidden>
  • Date: Thu, 25 May 2006 03:05:05 +0200

>Weird. But wouldn't it know about it if you drag NSAnimation.h into the
>NIB, just like you'd do with your own custom object's interface?


yea... that's what I've done. when I drag the header file from the appkit framework to IB and then the header
for my subclass it works.


thanks,
Karim



On May 24, 2006, at 9:05 PM, Fritz Anderson wrote:

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
References: 
 >IB: subclassing NSAnimation problem (From: Karim Morsy <email@hidden>)
 >Re: IB: subclassing NSAnimation problem (From: Fritz Anderson <email@hidden>)

  • Prev by Date: NSData, chars, and torrent files
  • Next by Date: Re: NSData, chars, and torrent files
  • Previous by thread: RE: IB: subclassing NSAnimation problem
  • Next by thread: NSPredicate and NOT IN and array
  • Index(es):
    • Date
    • Thread