Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!apple!agate!shelby!SUMEX-AIM.STANFORD.EDU!lane From: lane@SUMEX-AIM.STANFORD.EDU (Christopher Lane) Newsgroups: comp.sys.next Subject: re: NeXT icon on Dock Message-ID: Date: 7 Nov 90 16:25:54 GMT References: <5978@mace.cc.purdue.edu> Sender: Christopher Lane Organization: Internet-USENET Gateway at Stanford University Lines: 34 In <5978@mace.cc.purdue.edu>, asd@mace.cc.purdue.edu writes: >On a related note, is there any program out there that can do >'resource editing' or in other words, 'nib file editing'? It would be >great to be able to do what the Mac does with resources, and edit the >nib part of a application, and tailor an application to ones needs, or >desires. Anybody working on one? You can use the 'fsectbyname' utility (available from your favorite NeXT archive) to extract and replace (within limits) segments in Mach object files. Since the nib file becomes a segment in the executable, you can extract it into a file and put it back into Interface Builder, change it and splice it back. I did this with the 'Preference' application to remove buttons that didn't apply at our site (eg. the 'password' button due to YP). You can also modify an application's icons and sound files in the same manner. The 'fsectbyname' utility was meant as a 'temporary' replacement for the documented but missing (CMU) 'segedit' utility. In <10723@milton.u.washington.edu>, wiml@milton.u.washington.edu writes: >I've written a quick hack (in three of thr four senses of the phrase, blech) >that dumps things; I use it to snoop through any applications that have >interesting soundfiles or pictures or nibs or just to satisfy my curiosity >=8) Couldn't be that hard to write something to replace or load things, >though it would take a little fiddling with offsets. I haven't looked at >it too hard. In any case, it wouldn't be too hard to write. From your description, this 'hack' is a subset of what 'fsectbyname' does. (Which surprises me since 'fsectbyname' has been on the cs.orst.edu NeXT archive since NeXT 0.8 days!). If you think it may have additional, useful features that 'fsectbyname' lacks, send me a copy and I'll splice them in. - Christopher -------