discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSViewController; loading views from nibs


From: Ivan Vučica
Subject: NSViewController; loading views from nibs
Date: Sun, 23 Jan 2011 16:27:27 +0100

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]