2009/5/13 Celery01 Lin <[email protected]>:
> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to