Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!aramis.rutgers.edu!remus.rutgers.edu!declan From: declan@remus.rutgers.edu (Declan McCullagh/LZ) Newsgroups: comp.sys.next Subject: Re: NeXT icon on Dock Summary: It's quite possible... Message-ID: Date: 7 Nov 90 17:13:38 GMT References: <5978@mace.cc.purdue.edu> <10723@milton.u.washington.edu> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 30 In article <10723@milton.u.washington.edu>, wiml@milton.u.washington.edu (William Lewis) writes: > Hmmm... Well, given the really interesting format of Mach-Object files, > you can actually dump .NIBs (and .SNDs, and .TIFFs, and .RTFs, and > .PSs ...) right out of an application. You can also replace existing > .NIBs (and stuff) wiuth your own files. Launch IB in the interim and you > have your resource editor. > Only problem is that the program that does this segment editing appears in > the man files but not in the binaries directories. Dunno if it was supposed > to be released or not but I've never seen an executeable. 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. (And if the > missing binary was just a fluke, it wouldn't even require any coding =8) ) Check out /bin/segedit under NeXTstep 2.0... Here's the description: Segedit extracts and or replaces the named sections from the input_file and creates an output_file (if replacing a sec- tion). The segment and section names are the same as speci- fied to ld(1) with the -segcreate option. The segment and section names of an object file can be examined with the -l option to otool(1). -------------------------------------------------------------------- Declan McCullagh / NeXT Campus Consultant \ declan@remus.rutgers.edu --------------------------------------------------------------------