Article View: comp.sys.next.programmer
Article #444Re: Dynamically loaded object modules?
From: "For deposit only"
Date: Wed, 05 Aug 1992 01:02
Date: Wed, 05 Aug 1992 01:02
33 lines
1867 bytes
1867 bytes
In article <1992Aug2.212228.4166@cubetech.com> andrew@cubetech.com (Andrew Loewenstern) writes: > In article <1992Aug1.115640.8871@u.washington.edu> zeno@hardy.u.washington.edu (Sean T. Lamont) writes: > >I'm curious about how one would go about using dynamically loaded object > >modules. I know backspace does it with its views, but the source is sadly > >unavailable until it shows up in 3.0 examples. > > Wait for 3.0 and don't do what Sam Streeper did in BackSpace to do > loadable code once you do get it. Use NXBundles. If you can load a > nib, you can use NXBundles. > > NXBundles are like nibs, bit they can contain code, TIFFs, sounds, and > any number of nib files. They are also localizable. They are just as > easy to load as nibs and are easy to create as well. > You don't have to wait for 3.0. Just create an object file which contains a NIB section. e.g, ------ cc -g -o file.o -c file.m echo "linking " $1 "with its nib file" ld -o complexfile.o -r file.o -sectcreate __NIB file.nib file.nib ------- This will take a class "file" and its corresponding nib file "file.nib" and compile 'em into file "complexfile.o". To load the class and the nib section, just use objc_loadModules(). Look in Digital Librarian for more info. Once again, you only have to load the file "complexfile.o". Hasta Luego, Imran
Technical Details
Message-ID:
<1992Aug5.010218.9632@leland.Stanford.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!leland.Stanford.EDU!newsReferences:
<1992Aug2.212228.4166@cubetech.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!leland.Stanford.EDU!news From: qureshi@unixhub.slac.stanford.edu ( "For deposit only") Subject: Re: Dynamically loaded object modules? Message-ID: <1992Aug5.010218.9632@leland.Stanford.EDU> Sender: news@leland.Stanford.EDU (Mr News) Reply-To: cooldude@elaine43.stanford.edu Organization: DSO, Stanford University References: <1992Aug2.212228.4166@cubetech.com> Date: Wed, 5 Aug 92 01:02:18 GMT Lines: 33