I'm always anxious when I have to actually deal with IB... Sorry to say it, but it's true. It just makes very little sense to me...

Anyway, I have a problem. I've got a class that's instantiated in IB, but I need to load it's state from a file. This file defines the class itself, so when I load the file, the instance changes, and my UI stuff gets borked because everything is pointing at the instance from IB, not the one loaded from the file... This probably isn't making much sense.... The thing is that the IB stuff is recent. Before I added any IB control, the class was instantiated in xCode, so it was reeeeally easy to make sure the instance loaded from the file *became* the instance I was working with in the app. In my IB-challenged state, I know of no simple way to do this when working with IB.

What I need to do, from what I can tell, is find some way to tell IB that the instance it has should "sync" somehow with the instance loaded from the file. Can I do that??? That is, can xCode tell IB to assign its instance to the one from xCode? This is a document based app, but the file I'm talking about is a sort of "support" file for the app - it's not part of the document, per se.

Any thoughts appreciated.

J.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to