Re: Questions about the xib file downgrade from Leopard to Tiger
Re: Questions about the xib file downgrade from Leopard to Tiger
- Subject: Re: Questions about the xib file downgrade from Leopard to Tiger
- From: Michael Ash <email@hidden>
- Date: Wed, 13 May 2009 06:41:26 -0400
2009/5/13 Celery01 Lin <email@hidden>:
> Hi , List,
>
> I‘m doing some work of downgrading the existing Leopard GUI to Tiger GUI.
>
> We are using a lot of Bindings and NSCollectionView ,NSCollectionViewItem in
> the current xib.I want to reuse the current the xib in the Tiger version ,
> cause we use binding to control a lot of UI elements dependencies.
>
> So I change the current NSCollectionView's class Identify to my own class ,
> e.g. MYCollectionView. ,which I'm going to implement it with the same
> interface of NSCollectionView. However , when I change the Deployment Target
> into Mac OS X10.4.x in the XXX.xib Info panel and save the xib project . IB
> post the error said that NScollectionView is unsupported in the version
> prior to 10.5.
> Now I'm confused by the error message , I've already changed all the
> NSCollectionView and NSCollectionViewItem's class identity to my own class .
> Why the IB still post me this kind of message? Could anyone give me some
> hint of how to handling this problem? Thank you in advance.
>
>
> By the way , if this approach is not accessible , does that mean I have to
> recreate all the xib ?
All you did was take the existing NSCollectionView objects and tell IB
that they're an instance of some custom class? When you do that,
you're telling IB that they're an instance of a subclass of
NSCollectionView. The class identity field is used for creating
subclasses, not for creating entirely unrelated things. You'll have to
replace your NSCollectionView instances with NSView instances set to
the proper class, and do this for any other 10.5-only views as well.
Might I suggest that downgrading to 10.4 may not be a good idea? I'm
sure you have your reasons, but 10.6 is probably going to ship before
you do, and most developers follow a "current minus one" policy on
what OS they support. It sounds like converting all of your code is
going to be really painful, is it worth it?
Mike
_______________________________________________
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