Nib in a framework

Oldtimer
Posts: 832
Joined: 2002.09
Post: #1
I'm bringing my engine into a framework, but I'm having a bit of a design problem... You see, the MainMenu.nib file calls functions in the framework - for instance, the Toggle Fullscreen menu item calls [CyanCore toggleFullscreen].

Two problems here: 1) The app has a hard time finding the main nib, since that is expected to be in Contents/Resources - this is fixable. 2) The nib doesn't find the CyanCore object, and complains about that. It replaces it with NSObject and goes bonkers.

Is there a more sane way to handle this? The very design is to keep the platform-specific stuff in the framework, so I'd really like to avoid writing a wrapper in the "real/client" project... Any ideas? Smile
Quote this message in a reply
Post Reply