Hi,

in Zcode, I've implemented editors as subclasses of NSViewController. Their
UI is loaded from nib by making use of initWithNibName:bundle: inherited
from NSViewController. This works great on Cocoa, but porting back to
GNUstep, I discovered NSViewController does not exist in Debian, that in
current GNUstep it seems strangely devoid of smart code in
initWithNibName:bundle:, and that I can't figure out what is the intended
way to load view from nib.

(Since in Debian the NSViewController does not exist, I took the (nearly)
latest SVN snapshot and imported the code directly into Zcode repository.=

In Gorm, in ZCEditorViewController, I linked the "view" property of the file
owner (the view controller) to the view I created. However, view property
remains nil even after initWithNibName:bundle:.

What is the intended way to use NSViewController on GNUstep? Is the
NSViewController even finished? If not, how could I go about implementing
the required nib-loading functionality? I think I saw NSBundle having a
loadNib function, but I couldn't figure out how it works.

Current code with broken editor loading functionality is in
https://bitbucket.org/ivucica/zcode/ (changeset c7457551e0e1).
-- 
Regards,

Ivan Vučica
_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to