Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nib or xib file support? #1

Open
programmingkidx opened this issue Jun 30, 2022 · 3 comments
Open

Nib or xib file support? #1

programmingkidx opened this issue Jun 30, 2022 · 3 comments

Comments

@programmingkidx
Copy link

Thank you very much for starting this port of AppKit for the classic Mac OS. This is something the open source community should have done years ago.

I was wondering if nib and xib file support is planned?

@uliwitness
Copy link
Owner

Sadly, I haven't figured out how to implement NSClassFromString() for the Metrowerks compiler, so instantiating classes based on a class name in a XIB file is impossible without extra code that populates a string -> class lookup table. There's also no NIB/XIB editor for classic MacOS, and no built-in XML parser. So if I look more into UI serialization, I'd likely rather write code that takes DLOG/DITL resources that you can edit using ResEdit and uses those to create NSWindow and NSView instances from it.

@iMacker2020
Copy link

Using DLOG/DITL to create NSWindows is a very interesting idea 👍.

There is a project that implements OpenStep called GNUStep: https://gnustep.github.io
I wonder now if it could be ported to Mac OS 9. It does come with an Interface Builder-like program called GORM.

@uliwitness
Copy link
Owner

GORM would need an AppKit to run on top of on MacOS 9. Would probably still require the XML parser too. GNUstep itself assumes it's running on a Linux, so I doubt much of it would be left to port over. They also probably expect a much more modern Objective-C compiler than what CodeWarrior has, and a fully functioning ObjC runtime.

So I think this project is likely the closest you'll get, unless you want to port clang to MacOS 9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants