ftp.nice.ch/peanuts/GeneralData/Usenet/news/1995/Prog95-I

This is Prog95-I.gz in view mode; [Up]


From: charles@manta.cs.vt.edu (Charles M. Esterbrook) Newsgroups: comp.sys.next.programmer Subject: Re: Can't load nib Date: 2 Jan 1995 18:02:21 GMT Organization: Virginia Tech, Blacksburg, Virginia Message-ID: <3e9f3d$a1g@server.cs.vt.edu> References: <3e44ba$gg@rosie.next.com> In article <3e44ba$gg@rosie.next.com> Bryce_Jasmer@NeXT.COM (Bryce Jasmer) writes: [del] > other than the standard four (either an EOF palette, DBKit palette, or your [del] > I believe the new IB (first appearing in the EOF release) will give you a > better warning message. > > Bryce What is EOF? Are you referring to NS 3.3? -Chuck
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: Learning how to program in NEXTSTEP Date: Mon, 2 Jan 1995 21:41:24 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Sender: m.crawford@dcs.shef.ac.uk Distribution: world Message-ID: <950102214124.790AACUP.malc@white> References: <3e54si$3dj@stc06.CTD.ORNL.GOV> <3e59kj$lu6@crcnis3.unl.edu> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII > : 1. NeXTSTEP Programming--STEP ONE: Object-Oriented Applications, by > : Simson L. Garfinkel and Michael K. Mahoney, Springer-Verlag New York, > : 1992. > > : 2. "NeXTSTEP programming, concepts and applications", by Alex Duong > : Nghiem, Prentice Hall, 1993. > > I personally think they complement each other. #1 is more fun to go > through, but there are some chapters where the novice hears "just type > this is, don't worry about how it works now." That would be OK, but 50 > or more pages seems a long wait for a confused novice reader. Again, > each covers aspects the other misses, so I would get both, reading #, > first. It depends upon how much time the reader has to poke around to > learn what the book assumes you know. > I'll second eric here, but add that if you only want to get one, go for Alex's: it may be a bit dry, but IMHO has more useful information -- as I've said a couple of times here before, the appendix on byte-ordering considerations is especially helpful. If, on the other hand, you want other suggestions to help cover the background almost completely... OOP & The Objective C Language, NeXT Computer Inc. Addison Wesley Programming the Display PostScript System with NeXTstep, Adobe Systems Inc. Addison Wesley 1992 ISBN 0-201-58135-3 [this is particularly recommended if you're going to be doing anything involving any amount of serious drawing] Objective-C Object-Oriented Programming Techniques (Pinson & Wiener) Addison Wesley ISBN 0-201-50828-1 Object Oriented Programming: An Evolutionary Approach (Cox & Novobilski) Addison Wesley The Complete Guide to the NeXTSTEP Environment (Michael Shebanek) TELOS/Springer Verlag 1993 ISBN 0-387-97956-5 Projects in Scientific Computation (Richard E. Crandall) (Publisher?) ISBN 0-387-97808-9 (And if you really really want... Writing NeXT Programs Ann Weintz might be a bit hard to get hold of though, but interesting for historical reasons! I'm keeping hold of my copy for sentimental value! :-) ) Have fun, mmalc.
From: nicholr@heaphy.gb.swissbank.com (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: windowDidResignMain semantics. Followup-To: poster Date: 31 Dec 1994 13:11:29 GMT Organization: me organized? That's a joke! Distribution: world Message-ID: <NICHOLR.94Dec31131129@heaphy.gb.swissbank.com> Observe the following method... - windowDidResignMain:sender { TKControl *activeController = [TKControllerTracker activeController]; DPRINTF((stderr,"%s:%s activeController=%p\n",[[self class] name],sel_getName(_cmd),activeController)); /* * windowDidBecomeMain will automatically do a refresh if theres * at least one window around after we closed the last window so * only force an update of the inspector and chooser if no controller * exists. */ if (!activeController) { [self updateAttributeInspector]; [self updateLayoutChooser]; } if (delegate && [delegate respondsTo:_cmd]) { [delegate windowDidResignMain:sender]; } return self; } ------------------------------------------------------------------------------- Here I basically want to do something only if there are no other windows left. I was hoping I wouldn't have to check through the app's window list but it looks like I'm going to have to. Basically. the activeController method will look for [NXApp mainWindow] .. the assumption was that during this method the app's mainWindow would have changed already to the new one (if one was available). Unfortunately, this doesn't appear to have been the case. At least not whilst gdb is running anyway. So in order to know whether there were any other windows left it looks like I'm going to have to search through the window list. What I'm basically after is a way to perform some code after the window closed and NXApp's mainWindow has then been updated already to reflect the new main window. What do you do when you want windowDidClose:?
From: nicholr@heaphy.gb.swissbank.com (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <NICHOLR.94Dec31131029@heaphy.gb.swissbank.com> Control: cancel <NICHOLR.94Dec31131029@heaphy.gb.swissbank.com> Date: 31 Dec 1994 13:30:51 GMT Organization: me organized? That's a joke! Distribution: world Message-ID: <NICHOLR.94Dec31133051@heaphy.gb.swissbank.com>
From: jwishnie@gb.swissbank.com ( (Jeff Wishnie) Newsgroups: comp.sys.next.programmer Subject: Q: using otool/libtool Date: 2 Jan 1995 12:03:23 GMT Organization: Swiss Bank Corporation, High Timber St, London, UK Distribution: world Message-ID: <3e8q2b$qhq@gpo.gb.swissbank.com> I'm trying to dump method information from a library file using oTool. I can get the table of contents but when I try to dump ObjC, data, or text info from any of the modules I get nothing back. Any hints? Am I using the right tool? Thanks in advance, Jeff jwishnie@gb.swissbank.com
From: jcr@sv.legent.com(John Randolph) Newsgroups: comp.sys.next.programmer Subject: Re: Learning how to program in NEXTSTEP Date: 3 Jan 1995 06:53:56 GMT Organization: Legent Corporation Distribution: world Message-ID: <3easa4$rv5@booch.legent.com> References: <950102214124.790AACUP.malc@white> In article <950102214124.790AACUP.malc@white> mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> writes: > (And if you really really want... > Writing NeXT Programs > Ann Weintz > might be a bit hard to get hold of though, but interesting for historical > reasons! I'm keeping hold of my copy for sentimental value! :-) ) I couldn't let that go by... The Ann Weintz book is utter dreck, written by someone who clearly never understood the basic concepts of Objective-C. I hope I'll never have to re-train someone who followed weintz's examples. _____________________________________________________________ John C. Randolph (408) 730-3500 jcr@sv.legent.com Legent Corporation 710 LakeWay Drive, Sunnyvale, CA 94086 "The US constitution isn't perfect, but it's better than what
From: flight@djingis (Gregor Hoffleit) Newsgroups: comp.sys.next.programmer Subject: Re: .fax files Date: 2 Jan 1995 14:03:06 GMT Organization: University of Heidelberg, Germany Message-ID: <3e912q$k71@sun0.urz.uni-heidelberg.de> References: <3e4jdp$ck6@news.primenet.com> Paul Tognato-Haddad (paul@pth.com) wrote: : Howdy, : Does anybody know what the format of a .fax (readable by FaxReader) file : is? It seems to be a multipage .tiff file, but when I generate such a : tiff using tiffutil -cat, FaxReader won't read it. : On a similar note is there a simple way to convert a g3 file to a .fax : file? Right now I'm going through g3topbm, pnmtotiff, and tiffutil -cat, : which yields (very slowly) a multipage .tiff, but not a .fax.... Let's say you have a couple of 'plain' g3 files in a directory. 1.) For each file, add a header of three bytes. '000' for standard resolution (98 lpi) or '100' for detail resolution (196 lpi) ('0' is here 0x30 not 0x0). 2.) The pages should be named FAXNAME.001, FAXNAME.002, and so on. 3.) Create a zero-length file FAXNAME.fax (e.g. with 'touch FAXNAME.fax'). 4.) Issue '/usr/lib/NextPrinter/faxcleanup NR_OF_PAGES FAXNAME'. In front of NR_OF_PAGES, you could add '-d' for detail resolution or '-s' for standard resolution (I think '-d' is default). On a Intel box, I think you have to add '-M' for MSBF ordering (LSBF is default). You should end up with two files: FAXNAME.fax is a multi-page tiff document and FAXNAME.ctl is a FaxCtl file that's used be FaxReader to read date and time of the fax. Mail me if you have problems. Gregor -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: Learning how to program in NEXTSTEP Date: 3 Jan 1995 12:57:14 GMT Organization: University of Heidelberg, Germany Distribution: world Message-ID: <3ebhja$q1g@sun0.urz.uni-heidelberg.de> References: <3e54si$3dj@stc06.CTD.ORNL.GOV> In article <3e54si$3dj@stc06.CTD.ORNL.GOV> jblencoe@blencoe.chem.ornl.gov (James G. Blencoe) writes: > My son wants to learn how to program in NEXTSTEP. Listed below are two > books that have been mentioned in various posts to c.s.n.* dating back to > 1992. Are these two books still the best available? Is one better than > the other for a novice? Any advice that you are willing to provide would > be greatly appreciated. Garfinkel & Mahoney's book is the best NeXT book. It teaches not only how to program, but also how to think! -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
Newsgroups: comp.sys.next.programmer From: guy@globe1.ho.att.com (-G.LEVY) Subject: Re: Palettes Message-ID: <D1u3oJ.1qC@nntpa.cb.att.com> Sender: news@nntpa.cb.att.com (Netnews Administration) Organization: AT&T References: <3duvlk$srn@core.symnet.net> Date: Tue, 3 Jan 1995 14:45:55 GMT Read Using Custom Palette Objects in Other Applications. chapter 18 from development tools and techniques. "The problem is that although the application's nib file contains an archive Progress View object, the Progress View class hasn't been linked into the application. Thus, none of the Progress View's methods can be invoked."
From: m.crawford@dcs.shef.ac.uk (mmalcolm Crawford) Newsgroups: comp.sys.next.programmer Subject: Re: Req: Steve Jobs quote Date: 3 Jan 1995 09:33:22 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <950103153251.790AACUd.malc@white> References: <199501031445.PAA00531@fvkmapc02.tu-graz.ac.at> > I would like to know if you have some "better" quotes than > this is. Maybe a whole sentence or something like that ... > I think I have somewhere... Unfortunately I think I must have canned the original Steve Jobs "welcome to the NeXT World" piece of lipservice, but from some of early the advertising blurb: "Why does the world need a new computer? In the 1980s, personal computers accomplished thier mission: to radically improve individual productivity. But that's just not enough anymore. In the 1990s, competitive advantage will come from improving the productivity of etire groups, so they can stay ahead of a world that's changing faster than ever. The personal computer revolutionized the way we worked in the 80s. The next 15 pages may well change the way we work in the 90s." Ho hum...! :-) From UnixWorld, April 1993 "If we give people an alternative to Microsoft... it will have been a greater good." I think one of the promo videos had my favourite, something along the lines of: "At one time the goal was to get a computer on everybody's desk -- now the idea is to get *just one* computer on everybody's desk!" I'll see if I can dig out any more. Have fun, mmalc.
From: dabell@dabell-next.umd.edu (Dan T. Abell) Newsgroups: comp.sys.next.programmer Subject: EDIT.app and the expansion dictionary Date: 3 Jan 1995 18:08:43 GMT Organization: University of Maryland, College Park Message-ID: <3ec3rc$oj9@umd5.umd.edu> I use NS3.0 on black hardware and would like some information about the Edit application. I use Edit a great deal and would like some means of expanding abbreviations automatically. After hunting about with the Librarian, I found a description of the Expansion Dictionary in the NextDev pages under DevTools/04_Edit/_UsingTemplates.rtfd. In following the instructions I came upon two immediate snags. 1) The picture of the Expansion Dictionary panel in the documentation didn't match the one that came up in my version of Edit. 2) No matter what I tried, I couldn't get the Expansion Dictionary to do what I wanted it to do. Can any out there help me? Many thanks in advance, and my apologies if this is a dumb question. -Dan -- Dan T. Abell | A dog is just a dog until he's Department of Physics --- __o | standing right in front of you, University of Maryland ---- _`\<,_ | ... and then he's Mr. Dog. College Park, MD 20742 --- (*)/ (*) | ---Anon. NB: please send e-mail to dabell@quark.umd.edu (NeXTmail OK!)
From: henry@trilithon.com (Henry McGilton) Newsgroups: comp.sys.next.programmer Subject: Re: Req: Steve Jobs quote Date: Tue, 03 Jan 1995 10:17:35 -0700 Organization: Trilithon Software Message-ID: <henry-0301951017350001@trilithon.com> References: <199501031445.PAA00531@fvkmapc02.tu-graz.ac.at> <950103153251.790AACUd.malc@white> Actually, I'm looking for the precise wording of a quote attributed to Steve Jobs---it goes something like ``The best line of code you wrote is the line of code you didn't write''. I'd like to obtain the definitive version of this and a reference if possible. Many Thanks, ........ Henry
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer Subject: Re: Learning how to program in NEXTSTEP Date: 3 Jan 1995 18:27:31 GMT Organization: MCI Message-ID: <3ec4uj$daj@hermes.dna.mci.com> References: <3e54si$3dj@stc06.CTD.ORNL.GOV> <3e59kj$lu6@crcnis3.unl.edu> <950102214124.790AACUP.malc@white> Summary: An author's recommendations In article <950102214124.790AACUP.malc@white>, mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> wrote: >> : 1. NeXTSTEP Programming--STEP ONE: Object-Oriented Applications, by >> : Simson L. Garfinkel and Michael K. Mahoney, Springer-Verlag New York, >> : 1992. >> >> : 2. "NeXTSTEP programming, concepts and applications", by Alex Duong >> : Nghiem, Prentice Hall, 1993. >> >> I personally think they complement each other. #1 is more fun to go >> through, but there are some chapters where the novice hears "just type >> this is, don't worry about how it works now." That would be OK, but 50 >> or more pages seems a long wait for a confused novice reader. Again, >> each covers aspects the other misses, so I would get both, reading #, >> first. It depends upon how much time the reader has to poke around to >> learn what the book assumes you know. >> >I'll second eric here, but add that if you only want to get one, go for >Alex's: it may be a bit dry, but IMHO has more useful information -- as I've >said a couple of times here before, the appendix on byte-ordering >considerations is especially helpful. > >If, on the other hand, you want other suggestions to help cover the background >almost completely... > >OOP & The Objective C Language, NeXT Computer Inc. > Addison Wesley > >Programming the Display PostScript System with NeXTstep, Adobe Systems Inc. > Addison Wesley 1992 ISBN 0-201-58135-3 >[this is particularly recommended if you're going to be doing anything >involving any amount of serious drawing] > >Objective-C Object-Oriented Programming Techniques (Pinson & Wiener) > Addison Wesley ISBN 0-201-50828-1 > >Object Oriented Programming: An Evolutionary Approach (Cox & Novobilski) > Addison Wesley > >The Complete Guide to the NeXTSTEP Environment (Michael Shebanek) > TELOS/Springer Verlag 1993 ISBN 0-387-97956-5 > >Projects in Scientific Computation (Richard E. Crandall) > (Publisher?) ISBN 0-387-97808-9 > > >(And if you really really want... >Writing NeXT Programs > Ann Weintz >might be a bit hard to get hold of though, but interesting for historical >reasons! I'm keeping hold of my copy for sentimental value! :-) ) > >Have fun, > >mmalc. > Macolm: Well, being the author, I had to add my $.02.... :) Some other books I would recommend (for a broader background) include: 1. Object oriented analysis and design by Grady Booch (2nd edition) - not for the beginner, but it includes a wealth of information on OOD. Booch has the most complete notation on the market and the one that's in my book is a simplified version of Booch's object diagrams. 2. Object oriented software engineering: A use case driven approach by Ivar Jacobson - this book was not available when I wrote the book otherwise I would have also added it to my bibliogaphy. 3. Object oriented modeling and design by James Rumbaugh - the dryest book of the bunch (even drier than mine ;) but it includes several good chapters on how to evaluate models including analysis and design. It also provides insight on how products like EOF work (i.e, how are objects mapped on relational databases). Keep in mind that these books do not discuss Obj-C or NS at all. However, they do provide insight that would be difficult to accumulate on one's own. Incidentally, the book is being (has been) translated into Japanese by Prentice Hall Japan with help from NeXT Japan. Finally, I've been considering updating my book to include a host of new topics - I have my own ideas but I would like to hear what topics you readers would like to see covered. 1. bundles 2. palettes 3. separating the GUI from the model (MVC variant) Thanks, - Alex - alex@oolesson.com (NM OK) alexn@fdcsrvr.cs.mci.com (NM OK) 75040.3647@compuserve.com (ASCII only please) P.S The chapter on porting was generously provided by NeXT. PPS I (highly) recommend Mike's book--after all, as many point out, our books complement each other--but I cannot recommend Ann's book at all.
From: Randy_Tidd@next.com (Randy Tidd) Newsgroups: comp.sys.next.programmer Subject: Re: Distributed Objects and Foundation Classes Date: 3 Jan 1995 19:37:31 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3ec91r$qi@rosie.next.com> References: <3duoji$m3g@jetty.telerate.com> In article <3duoji$m3g@jetty.telerate.com> james@boris.hbsd-im.telerate.com (James T. Romano) writes: > Hi, I would like to know if there is a way in which I could > use the Foundation Kit classes with Distributed Objects???? > Is is possible or do I have to wait for 4.0??? to pass > Foundation Kit objects (NSSTring NSArray etc..) over the network etc... > Anybody wanna give me feedback on this???? Take a look at NeXTanswer #1721, "Encoding Foundation classes with Distributes Objects". The short answer is that any Foundation object can be sent by proxy over the wire. The NSString, NSData, and NSNumber classes implement the NXTransport protocol so they can be sent by value (i.e. by copy). You can implement a category on the other Foundation objects to implement the NXTransport protocol, this is detailed in the NeXTanswer (with sample code for NSArray and NSDictionary). Note that it is not always necessary to encode the Foundation object -- for example, instead of encoding an NSArray over the wire, you could encode the count first (an integer) and then encode each individual object, and when you decocde it, you can create a new NSArray with the proper count and add all of the objects to it. Let me know if you have any questions! Randy
Newsgroups: comp.sys.next.programmer From: dgoodman@is.rpslmc.edu (Dave Goodman) Subject: EOF <--> Oracle problems? Message-ID: <1994Dec29.143221.12289@rpslmc.edu> Keywords: EOF, NEXTSTEP, Oracle, SCO Sender: news@rpslmc.edu Organization: Rush-Presbyterian-St. Luke's Medical Center Date: Thu, 29 Dec 1994 14:32:21 GMT Hi All, I'm having a bit of trouble accessing our Oracle server from NEXTSTEP. Some info: Oracle v7.0.13 for SCO Unix NEXTSTEP Developer 3.2 EOF 1.0 EOModeler does not seem to connect to the server. Also, sql+ from the NS machines won't connect. Some questions that come to mind are: Could it be the Oracle client libs EOModeler is using? (version problem??) Are there any test applications our there that could help us narrow down the problem? If any of you have encountered similar problems, I'd appreciate your input. Thanks... -Dave ____________________________________________________ \|/ --O-- Single Source Systems /|\ INC David I. Goodman NEXTSTEP Software Engineer dgoodman@is.rpslmc.edu (NeXTMail gleefully accepted) Disclaimer: No statements made in this article should be construed to reflect the opinions of Rush-Presbyterian-St. Luke's Medical Center or Single Source Systems. All opinions are wholly my own, and I am solely responsible for my statements.
Newsgroups: comp.sys.next.programmer From: dgoodman@is.rpslmc.edu (Dave Goodman) Subject: Sound compression on NS/Intel? Message-ID: <1994Dec29.144030.12397@rpslmc.edu> Keywords: Sound, NEXTSTEP, Intel, iX86 Sender: news@rpslmc.edu Organization: Rush-Presbyterian-St. Luke's Medical Center Date: Thu, 29 Dec 1994 14:40:30 GMT I working on an application that will be producing some very lengthy sound files (dictations). I have researched the sound compression routines given to us by NeXT for operating on the SNDSoundStruct. I played around with various compression factors and was very pleased to discover that on the average I could get about 50% compression (I was only betting on about 66% compression). Well, it all worked great, on black hardware. I tested it on white and nothing seemed to work. I put in a support call to NeXT and found out a little later that I had discovered a new bug. It was given a reference number (62732) and added to the list of bugs. Great, where does that leave me? My questions are: Are there any of you out there who have dealt with this problem before? Are there any workarounds? Am I doomed to failure (i.e. writing my own compression algorithms)?? Thanks for any suggestions you might have... -Dave ____________________________________________________ \|/ --O-- Single Source Systems /|\ INC David I. Goodman NEXTSTEP Software Engineer dgoodman@is.rpslmc.edu (NeXTMail gleefully accepted) Disclaimer: No statements made in this article should be construed to reflect the opinions of Rush-Presbyterian-St. Luke's Medical Center or Single Source Systems. All opinions are wholly my own, and I am solely responsible for my statements.
Newsgroups: comp.sys.next.programmer From: dgoodman@is.rpslmc.edu (Dave Goodman) Subject: Re: EOF <--> Oracle problems? Message-ID: <1994Dec29.144235.12457@rpslmc.edu> Sender: news@rpslmc.edu Organization: Rush-Presbyterian-St. Luke's Medical Center References: <1994Dec29.143221.12289@rpslmc.edu> Date: Thu, 29 Dec 1994 14:42:35 GMT Hi Again, A followup question I have is what SQL*Net libraries does the Oracle Adaptor use? Thanks again... -Dave ____________________________________________________ \|/ --O-- Single Source Systems /|\ INC David I. Goodman NEXTSTEP Software Engineer dgoodman@is.rpslmc.edu (NeXTMail gleefully accepted) Disclaimer: No statements made in this article should be construed to reflect the opinions of Rush-Presbyterian-St. Luke's Medical Center or Single Source Systems. All opinions are wholly my own, and I am solely responsible for my statements.
From: martin@mamba.cs.unm.edu (Martin Mueller) Newsgroups: comp.sys.next.programmer Subject: Dumping Categories Date: 3 Jan 1995 21:18:55 GMT Organization: The University of New Mexico, Department of Computer Science Sender: news@mamba.cs.unm.edu Message-ID: <D1uLuo.2J5@mamba.cs.unm.edu> How does one get information about the categories in NeXTStep? objc_getClasses allows me to dump information about classes, but how do I get the categories? Thanks, Martin Mueller Department of Computer Science University of New Mexico Albuquerque, NM 87131
From: ivo@hasc.ca Newsgroups: comp.sys.next.programmer Subject: Re: Distributed Objects and Foundation Classes Date: 3 Jan 1995 21:33:32 GMT Organization: Hutchison Avenue Software Distribution: world Message-ID: <3ecfrc$3ul@giuliani.gun.com> References: <3ec91r$qi@rosie.next.com> In article <3ec91r$qi@rosie.next.com> Randy_Tidd@next.com (Randy Tidd) writes: > Note that it is not always necessary to encode the Foundation object -- > for example, instead of encoding an NSArray over the wire, you could > encode the count first (an integer) and then encode each individual > object, and when you decocde it, you can create a new NSArray with the > proper count and add all of the objects to it. Yes you could, but I think that's what objects are for. But thanks for taking the time to post... Maybe someone should do a diff on the NextAnswers index each week and post it to comp.sys.next.announce so we each don't have to do it. -- ivo@hasc.ca
Newsgroups: comp.sys.next.programmer From: pjoe@charon.muc.de (Peter Eybert) Subject: Re: EDIT.app and the expansion dictionary Message-ID: <1995Jan4.002319.3037@charon.muc.de> Sender: pjoe@charon.muc.de (Peter Joe Eybert) Organization: None References: <3ec3rc$oj9@umd5.umd.edu> Date: Wed, 4 Jan 1995 00:23:19 GMT Dan T. Abell writes > I use NS3.0 on black hardware and would like some information about the > Edit application. I use Edit a great deal and would like some means of > expanding abbreviations automatically. After hunting about with the > Librarian, I found a description of the Expansion Dictionary in the > NextDev pages under DevTools/04_Edit/_UsingTemplates.rtfd. In following > the instructions I came upon two immediate snags. 1) The picture of the > Expansion Dictionary panel in the documentation didn't match the one that > came up in my version of Edit. 2) No matter what I tried, I couldn't get > the Expansion Dictionary to do what I wanted it to do. > > Can any out there help me? Many thanks in advance, and my apologies if > this is a dumb question. I'm using 3.2 and can't remember if this worked in 3.0 or not. to 1): it's the same here. Must be from a 2.x version. to 2): Type the abbreviaten, then press escape. The Key Bindings in Preferences->Global must be set on. Cheers, Peter. -- ____________________________________________________________ Peter Eybert pjoe@charon.muc.de Appenzellerstr. 123 Tel: +49-89-7593734 81475 Muenchen (NeXTMail welcome) --
From: root@athis.gttw.com (Ron Ohmer) Newsgroups: comp.sys.next.programmer Subject: 3DKit Date: 4 Jan 1995 01:39:57 GMT Organization: Jax Gateway to the World Message-ID: <3ecu9d$dhf@news.gttw.com> Can someone provide me with the contents of the directory 3Dkit under developer.. Some how mine is not here. This is for NS3.1 Black.. Thanks in advance.. Ronald R. Ohmer
From: rhm4@po.CWRU.Edu (Rabbul H. Mirza) Newsgroups: comp.sys.next.programmer Subject: How??? Date: 4 Jan 1995 06:28:30 GMT Organization: Case Western Reserve University, Cleveland, Ohio (USA) Message-ID: <3edf6f$fj7@usenet.INS.CWRU.Edu> How do you become a registered NeXT developer ??? Thax in Advance!!! -- ^^^^^^^^ o | o | \___/
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Dumping Categories Date: 04 Jan 1995 09:21:49 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Jan4092149@steffi.dircon.co.uk> References: <D1uLuo.2J5@mamba.cs.unm.edu> To: martin@mamba.cs.unm.edu (Martin Mueller) In-reply-to: martin@mamba.cs.unm.edu's message of 3 Jan 1995 21:18:55 GMT <martin@mamba.cs.unm.edu> writes: >How does one get information about the categories in NeXTStep? >objc_getClasses allows me to dump information about classes, >but how do I get the categories? >Thanks, >Martin Mueller >Department of Computer Science >University of New Mexico >Albuquerque, NM 87131 To my knowledge you can't. The only thing letting you know that methods are in a category is the fact that those methods are in a separate linked list in the methodlist of a class. ie. to my knowledge categories don't have identity they just add methods to the methodlist of a class. Now that's when dealing with the runtime. EPS's class-dump will show you the categories of a shared library -- "Oh no, actually darling I don't have time for games." (PGP key: send email with Subject: request pgp key) (ASCII for text only messages)
From: dabell@dabell-next.umd.edu (Dan T. Abell) Newsgroups: comp.sys.next.programmer Subject: Re: EDIT.app and the expansion dictionary Date: 4 Jan 1995 14:02:55 GMT Organization: University of Maryland, College Park Message-ID: <3ee9qf$oh0@umd5.umd.edu> References: <1995Jan4.002319.3037@charon.muc.de> In article <1995Jan4.002319.3037@charon.muc.de> pjoe@charon.muc.de (Peter Eybert) writes: > SNIP < > The Key Bindings in Preferences->Global must be set on. Many thanks for the tip. Works like a charm now. -Dan
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: Questions about Bundles Date: 4 Jan 1995 18:22:07 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3eep0f$6q@rosie.next.com> References: <Dec31.062937.32232@acs.ucalgary.ca> R. Todd Thomas writes > Say that I am dynamically loading the code for a class in my application. > If I wanted to add a category or subclass of this class, is my only choice to > create another bundle with the subclass or category code and load > that bundle after the first one has loaded (perhaps making use of > the cool RZBundle class)? > > Thanks in advance for any info. > > > Todd Thomas > rtthomas@acs.ucalgary.ca [ASCII] > todd@avocado.supernet.ab.ca [NeXTMail, MIME] > You could "add" a category by using one that already exists on the Object class. That is, place your methods in a category on Object and every class will inherit them, including those loaded from bundles. Subclassing is a different matter - you can't create a subclass without the superclass already present in the run-time. For this, you'll need to load the subclass after loading the superclass bundle. -- Ralph Zazula NeXT, Inc. Ralph_Zazula@next.com (415) 780-2893
From: marcelor@acs.bu.edu (Marcelo Rodrigues) Newsgroups: comp.sys.next.programmer Subject: Looking for Assembly examples Date: Wed, 4 Jan 1995 18:02:15 Organization: Boston University Message-ID: <marcelor.36.00120A22@acs.bu.edu> Hello, I am looking for examples of programming in assembly on my NeXT. Specifically I'd like to see how to produce a ( preferably ) simple but *complete* executable in assembly and not a procedure that is called from C. I looked in the programming examples for the developer's package and on the Nebula CD but could not find one. Thanks, M.R.
From: filip@filtronix.eunet.be (Filip Lingier) Newsgroups: comp.sys.next.programmer Subject: Re: Learning how to program in NEXTSTEP Date: 4 Jan 1995 17:54:19 GMT Organization: Filtronix Inc. Distribution: world Message-ID: <3eencb$a5@filtronix.eunet.be> References: <950102214124.790AACUP.malc@white> In article <950102214124.790AACUP.malc@white> mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> writes: > 1. NeXTSTEP Programming--STEP ONE: Object-Oriented Applications, by > Simson L. Garfinkel and Michael K. Mahoney, Springer-Verlag New York, > 1992. Whatever happened to STEP TWO and STEP THREE? They were announced in STEP ONE but I haven't heard anything about then. Filip
From: filip@filtronix.eunet.be (Filip Lingier) Newsgroups: comp.sys.next.programmer Subject: Re: Sound compression on NS/Intel? Date: 4 Jan 1995 17:59:12 GMT Organization: Filtronix Inc. Distribution: world Message-ID: <3eenlg$a6@filtronix.eunet.be> References: <1994Dec29.144030.12397@rpslmc.edu> In article <1994Dec29.144030.12397@rpslmc.edu> dgoodman@is.rpslmc.edu (Dave Goodman) writes: > I working on an application that will be producing some very lengthy > sound files (dictations). I have researched the sound compression > routines > ... > Am I doomed to failure (i.e. writing my own compression algorithms)?? It might be a good idea to have a look at MPEG audio compression. For speech you should at least get a 11:1 compression ratio. On white HW you'll need a P5 for 11:1 but a 486DX2 should be able to give at least 6:1. For samples for MPEG Audio you can hav a look at www.iuma.com, it's their standard compression... Filip
Newsgroups: comp.sys.next.programmer From: gsoules@bandw.com Subject: Selecting NXBrowser entries programmatically Message-ID: <1995Jan4.195935.6170@bandw.com> Sender: george@bandw.com Organization: Black & White Software Date: Wed, 4 Jan 95 19:59:35 GMT Does anyone know how to select multiple NXBrowser entries in code? The setPath method lets you select just one and the documentation warns not to mess around directly with the browser's matrix or cells. I tried just that (before seeing the warning) and encountered some pretty strange behavior. NeXT accomplished this in the Workspace Manager as is witnessed by the fact that you can display your files in Listing view, select some and then switch to Browser view and see those files selected. But can normal people do this? George Soules gsoules@bandw.com Black & White Software, Inc.
Newsgroups: comp.sys.next.programmer,comp.sys.next.software From: moirl@cuug.ab.ca (Lindsay Moir B288-4624 H286-7377) Subject: Joint Smalltalk OOT SIG Meeting On Rumbaugh Jan 10/95 Message-ID: <D1v7Hq.K52@cuug.ab.ca> Organization: Calgary UNIX User's Group Distribution: ab Date: Wed, 4 Jan 1995 05:03:08 GMT The next meeting of the Smalltalk Users Group (STUG) will be in conjunction with the CIPS OOT SIG on January 10, 1995 at 4:00 PM at Synerlogic Inc. Suite 2020 355 4th Avenue SW Calgary, AB, Canada T2P 0J1 Our host for the meeting is John Chaychuk of Synerlogic. The agenda for the meeting on November 16, 1994 is as follows. Review Minutes 4:00 PM OMT Presentation By Merv Matson 4:30 PM Networking 5:15 PM Wrap-up 6:00 PM Mr. Matson's presentation will address Object Oriented Analysis and Design methodology (or process) with a focus on Rumbaugh's OMT - the Object Modeling Technique. OMT is one of a few OO development methodologies that is gaining enough support amongst developers to be recommended on the basis of a 'critical mass' argument. OMT is supported by an extensive literature, including a good reference text (Rumbaugh et al), CASE tools (eg from Cadre Technologies), a community of users, and knowledgeable consultants. Bio Of Merv Matson Mr. Matson has strengths in software development, software development methodology, software quality, and project management. Mr. Matson is currently working on the Software Engineering Management Certificate Program jointly ran by University of Calgary, ACTC Technologies, and Motorola. Smalltalk specifics: formal study at a summer course at Stanford University taught by Adele Goldberg in 1990; teaching object oriented programming with Smalltalk at the University of Calgary since September 1991; Mr. Matson has worked for Imperial Oil, Shell Canada, the Defense Research Board, and also founded the Computer Career Institute. If you want to attend this joint STUG/CIPS OOT meeting please email Lindsay Moir at moirl@cuug.ab.ca.
From: anderson@cs.rose-hulman.edu. (Claude W. Anderson) Newsgroups: comp.sys.next.programmer Subject: POSIX and NeXT programming Date: 4 Jan 1995 22:00:22 GMT Organization: Rose-Hulman Institute of Technology Distribution: world Message-ID: <3ef5pm$fdm@master.cs.rose-hulman.edu> I have written some NeXT apps, but none of them have really involved "systems programming"; In fact I haven't done much Unix-based systems programming at all. As I get into doing this, I would like to make my code POSIX-compliant. Looking at the NeXT header files, I see prototypes for POSIX stuff all over. But that's all I can find. None of the NeXT documentation on-line talks about how to _use_ it. I tried searching for POSIX using Digital Librarian and came up with zilch, except in the header files. From reading the header files, I deduced (hopefully correctly) that I should compile with the -D_POSIX_SOURCE option. When I do that, the compiler stops complaining, but the linker says it can't find _waitpid. Is there a library that I need to link in if I want the POSIX versions of functions? If so, where is it? If not, what do I have to do? Thanks for your help, Claude -- Claude Anderson anderson@cs.rose-hulman.edu Associate Professor, Computer Science NeXT mail is welcomed Rose-Hulman Inst. of Technology (812)877-8331 5500 Wabash Avenue Terre Haute, In 47803
Newsgroups: comp.sys.next.programmer From: (Raul Alvarez) Subject: Ingres an EOF Message-ID: <1995Jan4.215456.5278@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division Date: Wed, 4 Jan 1995 21:54:56 GMT Does anyone know if there is an EOF adaptor for Ingres?
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Learning how to program in NEXTSTEP Date: 4 Jan 1995 23:37:38 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3efbg2$cao@darkstar.UCSC.EDU> References: <3eencb$a5@filtronix.eunet.be> In article <3eencb$a5@filtronix.eunet.be> filip@filtronix.eunet.be (Filip Lingier) writes: > In article <950102214124.790AACUP.malc@white> mmalcolm Crawford > <m.crawford@dcs.shef.ac.uk> writes: > > 1. NeXTSTEP Programming--STEP ONE: Object-Oriented Applications, by > > Simson L. Garfinkel and Michael K. Mahoney, Springer-Verlag New York, > > 1992. > > Whatever happened to STEP TWO and STEP THREE? They were announced in STEP > ONE but I haven't heard anything about then. > In case Mike Mahoney doesn't respond, I *think* what happened was that Step 2 was originally planned to cover DBKit. However, NeXT advised Mike against writing a DBKit book because DBKit was already scheduled for replacement by EOF. But enough wasn't known about EOF at the time when Step 2 should have been written that it had to be postponed. Last I heard, Mike and one of his grad students were still planning on writing an EOF book. Simson Garfinkle has moved on to other projects. I believe he's written a couple of books since Step 1 including an O'Reilly book about PGP and encryption, but nothing more about NEXTSTEP. --- Art Isbell Cubic Solutions NeXT Registered Consultant NEXTSTEP software development/consulting NeXTmail: art@cubicsol.com Voice: +1 408 335 1154 USmail: 95018-9442 Fax: +1 408 335 2515
From: Randy_Tidd@next.com (Randy Tidd) Newsgroups: comp.sys.next.programmer Subject: Re: Distributed Objects and Foundation Classes Date: 4 Jan 1995 23:16:20 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3efa84$ib@rosie.next.com> References: <3ecfrc$3ul@giuliani.gun.com> In article <3ecfrc$3ul@giuliani.gun.com> ivo@hasc.ca writes: > In article <3ec91r$qi@rosie.next.com> Randy_Tidd@next.com (Randy Tidd) > writes: > > Note that it is not always necessary to encode the Foundation object > > Yes you could, but I think that's what objects are for. I should have mentioned, the NeXTanswer is only a stop-gap measure until 4.0 -- Distributed Objects will change significantly in 4.0, and the Foundation classes will work with the new system. The NA just tells you how to use the "old" DO mechanisms with the "new" Foundation classes until then. Anyway, I rather think it's a testament to the flexibilty and reusability of objects that the features of Distributed Objects can be so easily grafted onto the new Foundation classes with relatively little effort.
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Wed, 4 Jan 95 20:05:33 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501041905.AA03472@flexus> Subject: Re: Problem of cyclic references with FoundationKit (If you already saw this, sorry, but I got an error message from antigone.com's gateway.) Dimitri Plotnikov writes: > Why use reference counting at all? Unfortunately, > Objective-C like other C's does not allow the memory > management system to trace all the references at run-time. > If your structures are potentially cyclic - you need to > implement your own garbage collection procedure... :) You don't *need* to trace pointers for automated memory management: considering each memory word as a potential pointer is a conservative approximation. This is what MallocDebug probably does. Note that the documenters of that application don't seem to realise, up till 3.2 at least, that ``conservative'' is not a property of this algorithm per se, but only when applied for memory reclamation. And its programmers don't seem to have grasped the notion of isolated referential cycles either, because, as I just found out, MD seems to ignore them (rather alarming for an application that is supposed to help find leaks)!!! Anyway, it's not just memory management, it's object management (`-dealloc' methods need to be invoked), and it's for distributed objects (not just intra-task), so what established method would suit this situation? It would be nice, however, to have a framework that actually works. Now each programmer who has thought a little further than the documentation has to spend time to find ad-hoc solutions, and hope they will agree with others. And then I read about a flawed distributed implementation, and now this thing about how -autorelease is implemented... Happy new year, Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium Addressing limitations: no !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: tom@hukatronic.cz (Tomas Hurka) Newsgroups: comp.sys.next.programmer Subject: IXAttributeQuery question Date: 5 Jan 1995 03:07:20 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9501050825.AA00430@hurka> Hi All, I am posting this for a friend of mine. Please, send all replies to this newsgroup or to my e-mail address. ------------------------------------------------------------ I have problem with IXAttributeQuery object. The queries with search operators (whole, prefix and within) work good, but I am not able to use relational operators. I have got 'nil', when I use them. I you need more information. please let me know. ------------------------------------------------------------ Best regards, --- Tomas Hurka tom@hukatronic.cz NeXTMAIL OK
From: mgais@iicm.tu-graz.ac.at (Mansuet Gaisbauer) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.bugs,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.misc,comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.sysadmin Subject: [Wanted] Public domain X11R[45] Server for NextDimension ! Date: 05 Jan 1995 09:18:44 GMT Organization: IICM, Graz University of Technology, Austria Distribution: world Message-ID: <MGAIS.95Jan5101844@pluto.tu-graz.ac.at> Hi NeXT gurus out there! I got a NeXTCube with a NeXTDimension graphics board running NeXTStep 3.0. Now i am looking for a public domain X11R[45] server, to use the cube as an X-terminal. Does anyone know where to get one? Thanks in advance Mansuet -- --------------------------------------- | Dipl.Ing. Gaisbauer Mansuet Juergen | | IICM TU-Graz, Austria | | Schieszstattgasse 4a | | A-8020 Graz | |-------------------------------------| | E-mail: mgais@iicm.tu-graz.ac.at | | Phone: ++43/316/832551-31 | --------------------------------------- -- --------------------------------------- | Dipl.Ing. Gaisbauer Mansuet Juergen | | IICM TU-Graz, Austria | | Schieszstattgasse 4a | | A-8020 Graz | |-------------------------------------| | E-mail: mgais@iicm.tu-graz.ac.at | | Phone: ++43/316/832551-31 | ---------------------------------------
From: koen1830@w250zrz.zrz.tu-berlin.de (Andreas Koenig) Newsgroups: comp.sys.next.programmer Subject: Re: POSIX and NeXT programming Date: 5 Jan 1995 11:14:11 GMT Organization: mal franz, mal anna Distribution: world Message-ID: <3egka3$1du@brachio.zrz.TU-Berlin.DE> References: <3ef5pm$fdm@master.cs.rose-hulman.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Fcc: /u/k/Mailboxes/NNoutgoing.mbox/mbox Apparently-To: <koen1830@w203zrz.zrz.tu-berlin.de> In article <3ef5pm$fdm@master.cs.rose-hulman.edu>, Claude W. Anderson <anderson@cs.rose-hulman.edu> wrote: >I have written some NeXT apps, but none of them have really involved >"systems programming"; In fact I haven't done much Unix-based systems >programming at all. As I get into doing this, I would like to make my code >POSIX-compliant. > >Looking at the NeXT header files, I see prototypes for POSIX stuff all over. >But that's all I can find. None of the NeXT documentation on-line talks >about how to _use_ it. I tried searching for POSIX using Digital Librarian >and came up with zilch, except in the header files. > What? You don't consider the release notes as documentation? Shame on you. ;-) >From reading the header files, I deduced (hopefully correctly) that I should >compile with the -D_POSIX_SOURCE option. Nope! You *have* to use the -posix option, that's the only way to get (sort-of) posix compliance. But after you've done that, you'll have to guess what this sentence means (citing from the release notes NS 3.2): >> Note that POSIX kernel interfaces are not supported for >> NEXTSTEP applications. I'd like to repeat what I have stated before: putting POSIX into a niche, writing two sentences in the release notes, but claiming to be POSIX compliant in the marketing hype is eeeeeeeeeevil. --andreas, hoping that OpenStep will overcome NeXTstep
Newsgroups: comp.sys.next.programmer From: jocke@rat.se (Joakim Johansson) Subject: Re: Selecting NXBrowser entries programmatically Message-ID: <D1xHM4.A9E@rat.se> Sender: jocke@rat.se (Joakim Johansson) Organization: Research & Trade, AB. References: <1995Jan4.195935.6170@bandw.com> Date: Thu, 5 Jan 1995 10:35:45 GMT In article <1995Jan4.195935.6170@bandw.com> gsoules@bandw.com writes: > Does anyone know how to select multiple NXBrowser entries in code? The > setPath method lets you select just one and the documentation warns not to > mess around directly with the browser's matrix or cells. I tried just > that (before seeing the warning) and encountered some pretty strange > behavior. I've used a combination of both of these approaches when creating a FileViewer UI clone, and it seems to work as you would expect. You have to do the selection in two steps: 1) use setPath: to select one cell in the appropriate column 2) use matrixInColumn: to get the matrix for the column, and select the individual cells with something like: Matrix *m; [browser setPath:token]; m=[browser matrixInColumn:[self lastSelectedColumn:browser]]; // for all appropriate cells do: [[m cellAt :j :0] set]; [browser display]; (lastSelectedColumn: is a replacement for NeXT:s method, that seems broken) Too bad they've not fixed this in OpenStep (the methods seems to be the same according to the released specification anyway). > NeXT accomplished this in the Workspace Manager as is witnessed by the > fact that you can display your files in Listing view, select some and then > switch to Browser view and see those files selected. But can normal > people do this? Well, sort of anyway... ;-) This approach might break with some later release of NS | OS, but works for now. Good luck, Joakim -- Joakim Johansson | "The truth is the one thing that Software Developer @ Research & Trade | nobody will believe." jocke@rat.se <NeXTmail, MIME> | - George Bernard Shaw
From: neuss@igd.fhg.de (Christian Neuss ) Newsgroups: comp.sys.next.programmer Subject: Re: EOF <--> Oracle problems? Date: 5 Jan 95 12:13:58 GMT Organization: IGD Darmstadt Message-ID: <neuss.789308038@coricopat> References: <1994Dec29.143221.12289@rpslmc.edu> Keywords: EOF, NEXTSTEP, Oracle, SCO dgoodman@is.rpslmc.edu (Dave Goodman) writes: >I'm having a bit of trouble accessing our Oracle server from NEXTSTEP. >Some info: > Oracle v7.0.13 for SCO Unix > NEXTSTEP Developer 3.2 > EOF 1.0 >EOModeler does not seem to connect to the server. Also, sql+ from the NS >machines won't connect. Make sure the server id is correct.. it took me quite a while to fiugre out that our servers id was "oracle6" while I had punched in "oracle" in the server login window. Duh.. <:-) Good luck, Chris -- "I ride tandem with a random.." Christian Neuss # Fraunhofer Institute for Computer Graphics Wilhelminenstr.7 # 64283 Darmstadt # Germany e-mail: neuss@igd.fhg.de http://www.igd.fhg.de/~neuss/me.html
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: Problem of cyclic references Message-ID: <1995Jan5.154113.12817@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae Date: Thu, 5 Jan 1995 15:41:13 GMT In article <9501041905.AA03472@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: > Dimitri Plotnikov writes: > > Why use reference counting at all? Unfortunately, > > Objective-C like other C's does not allow the memory > > management system to trace all the references at run-time. > You don't *need* to trace pointers for automated memory management: > considering each memory word as a potential pointer is a conservative > approximation. There is another problem with this "conservative" time-consuming technique. It is based on the assumption that the references are stored as direct addresses of the referenced memory blocks. Consider though this implementation of mymalloc/myfree (I over-simplify the implementation to demonstrate the idea): char *mymalloc (int size) { return (char *)malloc (size) + 1000; } void myfree (char *ptr) { free (ptr - 1000); } :-) What I am trying to say is that the technique used by MallocDebug is just a guessing game. And games like this cannot be used for memory (or object) management. You cannot free a single memory cell just because you could not find a reference to it. - Dimitri Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?" nma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
From: jerry@tivoli.com (Jerry Frain) Newsgroups: comp.sys.next.programmer Subject: Trying to use mmap(2) on 3.2 Date: 5 Jan 95 17:33:18 GMT Organization: Tivoli Systems Inc., Austin, TX Message-ID: <jerry.789327198@tivoli.com> Greetings, I'm having problems getting mmap(2) to work on NEXTSTEP 3.2. I saw another posting in this group that said mmap(0, ...) doesn't work on NEXTSTEP, and to manually allocate some virtual memory using vm_allocate. Well, I've tried that. I've attached an example program that I'm trying to get to work. Each time I run it, I mmap(2) returns 0, and errno == 0. I don't get it. Any hints would be very much appreciated. Jerry ------------------------------ cut here -------------------------- #include <stdio.h> #include <sys/fcntl.h> #include <sys/mman.h> #include <sys/types.h> #include <mach/kern_return.h> #include <mach/mach.h> void *mmap(void *, size_t, int, int, int, off_t); main() { size_t len; int prot = (PROT_READ | PROT_WRITE); int flags = MAP_SHARED; int fd; off_t off = 0; char *pa; vm_address_t address; kern_return_t ret; if ((fd = open("./mmap.dat", O_CREAT | O_RDWR, 0666)) == -1) { perror("open"); exit(1); } len = getpagesize(); if ((ret = vm_allocate(task_self(), &address, (vm_size_t) len, TRUE)) != KERN_SUCCESS) { fprintf(stderr, "vm_allocate failed\n"); exit(1); } pa = mmap(address, len, prot, flags, fd, off); if (!pa) { perror("mmap"); close(fd); exit(1); } close(fd); exit(0); }
Newsgroups: comp.sys.next.programmer From: qtge@oce-rd2.oce.nl (Tinus Geertsma 2957) Subject: TIFF to Postscript compressed? Message-ID: <D1xwD8.F3w@oce.nl> Sender: news@oce.nl (The Daily News @ nntp01.oce.nl) Organization: Oce Nederland B.V. - Research & Development Date: Thu, 5 Jan 1995 15:58:19 GMT I am currently building an application wich uses very big TIFF files. These files are printed on a postscript HP-laserJet 4. But the postscript files generated bij NeXT-Step are HUGE. I know Postscript supports TIFF compression, so I want to put compressed TIFF's in the postscript printfile instead of normal TIFF's. Is there a way to do this? Is this an option? : - write the tiff to tiff compressed in memory - put your own postscript TIFF-compressed header in the postscriptfile - remove the header-information from the compressed tiff - put the raw compressed tiff-data in the postscript file Tanx in advance...... Tinus Geersma
From: griffith@crl.com (Dave Griffith) Newsgroups: comp.sys.next.programmer Subject: Looking for a report printing framework Date: 5 Jan 1995 10:39:03 -0800 Organization: Bonfire of the CRTs Message-ID: <3ehec7$sjp@crl.crl.com> As part of an attempt to port some legacy code to the NeXT, I've come to the realization that I need report printing capabilities that are just too painful to do in either RTF or postscript. Tables, multicolumn layout, automatic pagination, all the usual TROFF suspects. Does anyone know of any packages that will enable this sort of output to be done programmatically from within an application. I can't believe I'm the first programmer to need this. Thanks. -- --Dave Griffith, griffith@crl.com
Newsgroups: comp.sys.next.programmer From: tgugger@norden1.com (Tom Gugger) Subject: NEXTSTEP/CAREER POSITIONS Message-ID: <1995Jan5.190758.12855@norden1.com> Organization: Norden 1 Communications Date: Thu, 5 Jan 1995 19:07:58 GMT The EAGLE GROUP is currently representing a half dozen companies that specialize in the NEXTSTEP platform. These are career positions that offer relocation and outstanding benefits. Most, but not all positions are located in the greater Chicago area. PLATFORM----------------------NEXTSTEP LANGUAGE----------------------OBJECTIVE C DESIRED-----------------------DB KIT DESIRED-----------------------SYBASE A PLUS------------------------EOF A PLUS------------------------FINANCIAL APPLICATION EXPERIENCE TO BE CONSIDERED--FAX OR MAIL A HARD COPY RESUME. ... * ATP/qwk 1.42 * Where law ends, there tyranny begins. -- tgugger@norden1.com (419) 882-7339 [fax] Eagle Group (419) 882-8006 [voice] PO Box 8167 Sylvania, Ohio 43560
From: jcr@sv.legent.com(John Randolph) Newsgroups: comp.sys.next.programmer Subject: Re: Problem of cyclic references with FoundationKit Date: 5 Jan 1995 18:24:19 GMT Organization: Legent Corporation Distribution: world Message-ID: <3ehdgj$lkr@booch.legent.com> References: <9501041905.AA03472@flexus> In article <9501041905.AA03472@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: > (If you already saw this, sorry, but I got an error message from antigone.com's > gateway.) > > Dimitri Plotnikov writes: > > Why use reference counting at all? Unfortunately, > > Objective-C like other C's does not allow the memory > > management system to trace all the references at run-time. > > If your structures are potentially cyclic - you need to > > implement your own garbage collection procedure... :) > You don't *need* to trace pointers for automated memory management: considering > each memory word as a potential pointer is a conservative approximation. This > is what MallocDebug probably does. [munch] Actually, this is not what MallocDebug does. To use Malloc Debug, you link your app with libMallocDebug.a, which replaces the standard malloc() routines. These replacements take care of recording all of your calls that allocate memory. -- _____________________________________________________________ John C. Randolph (408) 730-3500 jcr@sv.legent.com Legent Corporation 710 LakeWay Drive, Sunnyvale, CA 94086 "The US constitution isn't perfect, but it's better than what we have now"
Newsgroups: comp.sys.next.programmer From: pjoe@charon.muc.de (Peter Eybert) Subject: Re: POSIX and NeXT programming Message-ID: <1995Jan5.165141.1677@charon.muc.de> Sender: pjoe@charon.muc.de (Peter Joe Eybert) Organization: None References: <3ef5pm$fdm@master.cs.rose-hulman.edu> Date: Thu, 5 Jan 1995 16:51:41 GMT Claude W. Anderson writes > I have written some NeXT apps, but none of them have really involved > "systems programming"; In fact I haven't done much Unix-based systems > programming at all. As I get into doing this, I would like to make my code > POSIX-compliant. > > Looking at the NeXT header files, I see prototypes for POSIX stuff all over. > But that's all I can find. None of the NeXT documentation on-line talks > about how to _use_ it. I tried searching for POSIX using Digital Librarian > and came up with zilch, except in the header files. > > From reading the header files, I deduced (hopefully correctly) that I should > compile with the -D_POSIX_SOURCE option. When I do that, the compiler stops > complaining, but the linker says it can't find _waitpid. > > Is there a library that I need to link in if I want the POSIX versions of > functions? If so, where is it? If not, what do I have to do? Use the -posix option instead of -D_POSIX_SOURCE and link with libposix.a, although I get 'Floating exception' sometimes and I don't know why. -- ____________________________________________________________ Peter Eybert pjoe@charon.muc.de Appenzellerstr. 123 Tel: +49-89-7593734 81475 Muenchen (NeXTMail welcome) --
Newsgroups: comp.sys.next.programmer From: wyatt@il.us.swissbank.com (Wyatt Sutherland) Subject: NXDataLink & NXDataLinkManager Message-ID: <1995Jan5.190759.17344@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division Date: Thu, 5 Jan 1995 19:07:59 GMT I'm trying to use these objects to hook two applications together and keep the data in sync between them. I want to drag a list of objects and have the destination link to the source. When I change the values in the source I want the values updated automatically in the other application running in a different process space. It looks like I can do this with the pasteboard. Has anyone successfully used the link objects? Do I necessarily need to use the Selection class? Does anyone have any information other then the examples in Draw? In advance thanks for your reply. Wyatt -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= = Wyatt Sutherland 312.554.6135 - Swiss Bank Corporation = 141 W. Jackson Blvd - Chicago, IL 60604 = - wyatt@il.us.swissbank.com = NeXTMail accepted. - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= = DISCLAIMER: This post is my opinion and does not - represent the opinion of Swiss Bank Corp. or = O'Conner and Associates -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- NewsGrazer, a NeXTstep(tm) news reader, posting -- M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.WT*7&UA M<F=L,3(P"EQM87)G<C$R,`I[7&-O;&]R=&)L.UQR960P7&=R965N,%QB;'5E M,#M]"EQP87)D7'1X,3$U,EQT>#(S,#1<='@S-#4V7'1X-#8P.%QT>#4W-C!< M='@V.3$R7'1X.#`V-%QT>#DR,39<='@Q,#,V.%QT>#$Q-3(P7&8P7&(P7&DP M7'5L;F]N95QF<S(T7&9C,%QC9C`@7`I<"DDG;2!T<GEI;F<@=&\@=7-E('1H M97-E(&]B:F5C=',@=&\@:&]O:R!T=V\@87!P;&EC871I;VYS('1O9V5T:&5R M(&%N9"!K965P('1H92!D871A(&EN('-Y;F,@8F5T=V5E;B!T:&5M+B`@22!W M86YT('1O(&1R86<@82!L:7-T(&]F(&]B:F5C=',@86YD(&AA=F4@=&AE(&1E M<W1I;F%T:6]N(&QI;FL@=&\@=&AE('-O=7)C92X@(%=H96X@22!C:&%N9V4@ M=&AE('9A;'5E<R!I;B!T:&4@<V]U<F-E($D@=V%N="!T:&4@=F%L=65S('5P M9&%T960@875T;VUA=&EC86QL>2!I;B!T:&4@;W1H97(@87!P;&EC871I;VX@ M<G5N;FEN9R!I;B!A(&1I9F9E<F5N="!P<F]C97-S('-P86-E+B`@270@;&]O M:W,@;&EK92!)(&-A;B!D;R!T:&ES('=I=&@@=&AE('!A<W1E8F]A<F0N("!( M87,@86YY;VYE('-U8V-E<W-F=6QL>2!U<V5D('1H92!L:6YK(&]B:F5C=',_ M("!$;R!)(&YE8V5S<V%R:6QY(&YE960@=&\@=7-E('1H92!396QE8W1I;VX@ M8VQA<W,_("!$;V5S(&%N>6]N92!H879E(&%N>2!I;F9O<FUA=&EO;B!O=&AE M<B!T:&5N('1H92!E>&%M<&QE<R!I;B!$<F%W/R`@26X@861V86YC92!T:&%N M:W,@9F]R('EO=7(@<F5P;'DN7`I<"E=Y871T7`I<"@I<<&%R9%QT>#!<='@Q M,3(P7'1X,C(T,%QT>#,S-C!<='@T-#@P7'1X-38P,%QT>#8W,C!<='@W.#0P M7'1X.#DV,%QT>#$P,#@P7'1X,3$R,#!<='@Q,C,R,%QT>#$S-#0P7'1X,30U M-C!<='@Q-38X,%QT>#$V.#`P7'1X,3<Y,C!<='@Q.3`T,%QT>#(P,38P7'1X M,C$R.#!<9F,Q7&-F,2`M/2T]+3TM/2T]+3TM/2T]+3TM/2T]+3TM/2T]+3TM M/2T]+3TM/2T]+3TM/2T]+3TM/2T]+3TM/2T]7`H]("!7>6%T="!3=71H97)L M86YD"0DS,3(N-34T+C8Q,S5<"BT@(%-W:7-S($)A;FL@0V]R<&]R871I;VY< M"CT@(#$T,2!7+B!*86-K<V]N($)L=F1<"BT@($-H:6-A9V\L($E,("`V,#8P M-%P*/5P*+2`@=WEA='1`:6PN=7,N<W=I<W-B86YK+F-O;5P*/2`@3F585$UA M:6P@86-C97!T960N7`HM7`HM/2T]+3TM/2T]+3TM/2T]+3TM/2T]+3TM/2T] M+3TM/2T]+3TM/2T]+3TM/2T]+3TM/2T]+3TM/2T]7`H]($1)4T-,04E-15(Z M("!4:&ES('!O<W0@:7,@;7D@;W!I;FEO;B!A;F0@9&]E<R!N;W0@7`HM(')E M<')E<V5N="!T:&4@;W!I;FEO;B!O9B!3=VES<R!"86YK($-O<G`N(&]R7`H] M($\G0V]N;F5R(&%N9"!!<W-O8VEA=&5S7`HM/2T]+3TM/2T]+3TM/2T]+3TM M/2T]+3TM/2T]+3TM/2T]+3TM/2T]+3TM/2T]+3TM/2T]+3TM/2T]7`H*7'!A M<F1<='@Q,34R7'1X,C,P-%QT>#,T-39<='@T-C`X7'1X-3<V,%QT>#8Y,3)< J='@X,#8T7'1X.3(Q-EQT>#$P,S8X7'1X,3$U,C!<9F,P7&-F,"`@"GT* `
From: wooten@arcturus.scicntr.ortn.edu (John Wooten) Newsgroups: comp.sys.next.programmer Subject: CustomCells in ScrollView Date: 5 Jan 1995 20:52:14 GMT Organization: Oak Ridge National Lab, Oak Ridge, TN Distribution: world Message-ID: <3ehm5u$40g@stc06.CTD.ORNL.GOV> I need to be able to display a list inside a ScrollView, with each item in the list having a check box and a color selection box associated with the item. Rather than doing a lot of brute force things, I thought I'd see if someone could give me a hint on how to build a CustomCell that would allow me to set and get the title of the cell, set the status of the checkbox (and read it) as well as set and read the color of the color well. I need to have this shown for each item in the scrollview, i.e. --- --- | x | | | Item 1 --- --- --- --- | | | | Item 2 --- --- --- --- | x | | | Item 3 --- --- I need also to be able to tell which Item was clicked on if the text itself was clicked on. It should be highlighted if clicked on. I found the example in ScrollDoodScroll, but haven't been able to make an object that would then behave in this fashion. I seemed to have to redo a lot of things each time I wanted a new item in the list. It seems to me that I should be able to have an Class named CustomCkCell, then for each name in the list, I should be able to do something like: count = [myList count]; while(count--) { newCell = [[CustomCkCell alloc] initWithName:[[myList objectAt:count] theName]]; /* Now add this cell to the matrix inside the scrollview */ } theName is a method that returns the string with the name that is to go into the scroll view text portion. Any help or examples that show this would be appreciated. John Wooten
Newsgroups: comp.sys.next.programmer From: mis07d!mikel (Mike Lokan) Subject: EOF and Oracle7 Message-ID: <D1y7ss.1HI@ets.com> Sender: mikel@ets.com (Mike Lokan) Organization: ETS, Inc. Date: Thu, 5 Jan 1995 20:05:15 GMT I would like to hear from other NeXT users of EOF and Oracle7. Specifically, I'm presently trying to access stored procedures. Please email me at the address below. Thanks in advance. Regards, Mike Lokan mikel@ets.com
From: yoda@cis.uni-muenchen.de (Marc Guenther) Newsgroups: comp.sys.next.programmer Subject: Re: Selecting NXBrowser entries programmatically Date: 6 Jan 1995 00:28:05 GMT Organization: Institut fuer Informatik der Universitaet Muenchen Message-ID: <3ei2ql$rjb@arcadia.informatik.uni-muenchen.de> References: <1995Jan4.195935.6170@bandw.com> In article <1995Jan4.195935.6170@bandw.com> gsoules@bandw.com writes: > Does anyone know how to select multiple NXBrowser entries in code? The > setPath method lets you select just one and the documentation warns not to > mess around directly with the browser's matrix or cells. I tried just > that (before seeing the warning) and encountered some pretty strange > behavior. As you probably found out, the selectCell: method deselects any other selected cells. But there is a method selectRangeFrom:To:.. or something like that, that you can call multiple times. It doesnt deselect other cells. Of course this is not in the documentation, and the new foundation NSBrowser still has the same insane behaviour. (Why is there no deselectCell: call, and why does selectCell deselect cells in the first place, even when in LIST_MODE and multiple selection allowed ????) Took me several hours till I got a working browser that behaves like the one in Workspace. Reuseable casses in NextStep ?? Nonsense !!!! P.S.: As an alternative, try out MiscSelectionMatrix in MiscKit !! Nice ! -- Marc Guenther ------------------------------------------------------------------------- Centrum fuer Informations | Wagmuellerstr. 23 | Phone: +49 89 211 0670 und Sprachverarbeitung | 80538 M"unchen | Fax: +49 89 211 0674 University of Munich | Germany | yoda@cis.uni-muenchen.de -------------------------------------------------------------------------
From: SDAVENPO@VAXC.STEVENS-TECH.EDU (Scott Davenport) Newsgroups: comp.sys.next.programmer Subject: Beginner's question - TextField Date: 6 Jan 1995 03:06:43 GMT Organization: Stevens Institute of Technology Message-ID: <3eic43$37k@apocalypse.dmi.stevens-tech.edu> How can I retrieve the text in a TextField? I'm trying my hand at NS programming and want to write a simple number converter (i.e. meters to inches, etc). So I want to be able to read the contents of one TextField, calculate a result, and put the result in another TextField. I can do the latter part with [textfield setStringValue: ""] but how can I read a string value in (or float value for that matter)? Thanks for any help. Scott Davenport sdavenpo@vaxc.stevens-tech.edu
Newsgroups: comp.sys.next.programmer From: ed_chubin@vanguard.com (Ed Chubin) Subject: Re: Can't load nib Message-ID: <1995Jan6.024752.21464@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3e36bi$45r@core.symnet.net> Date: Fri, 6 Jan 1995 02:47:52 GMT In article <3e36bi$45r@core.symnet.net> dekorte@symnet.net (Steve Dekorte) writes: > > I'm getting an IB can't load .nib error on more than one of > my nib files when I try to use them. > Does anyone know what could cause this? > The permisions on the files are ok. > Thanks for any help, > SD Did you really me IB can't load them, or your program couldn't load them. Take Bryce_Jasmer@NeXT.COM (Bryce Jasmer) idea if the Interface Builder can't load them. If your program can't load them, then you may have changed the name of one of the .nib's. I did this once, and it turned out that I renamed my main NIB, and the <proj>_main.m still was looking for the old one. Good Luck ed -- Edward H. Chubin Ed_Chubin@Vanguard.com (NEXTMAIL compliant) Senior Software Engineer, Vanguard Software Corporation The meaning of life: #define YOUR_STUFF_HERE { money++, fun++, friends++, memory-- } for ( day=0; ; day++ ) YOUR_STUFF_HERE /* !cores */ #include <VSC/disclaimer.h>
Newsgroups: comp.sys.next.programmer From: rtthomas@acs.ucalgary.ca (R. Todd Thomas) Subject: Omniweb and term Message-ID: <Jan6.042801.24244@acs.ucalgary.ca> Date: Fri, 6 Jan 1995 04:28:01 GMT Organization: The University of Calgary, Alberta I know that this was posted just a few weeks ago, but I misplaced it... How do you get Omniweb to work over term? Thanks for any information Todd Thomas todd@avocado.supernet.ab.ca [NeXTMail, MIME] rtthomas@acs.ucalgary.ca [ASCII]
Newsgroups: comp.sys.next.programmer From: magnan@maths1.MATHCN.UMontreal.CA (Magnan Francois) Subject: Re: Beginner's question - TextField In-Reply-To: SDAVENPO@VAXC.STEVENS-TECH.EDU's message of 6 Jan 1995 03:06:43 GMT Message-ID: <MAGNAN.95Jan6015507@maths1.MATHCN.UMontreal.CA> Sender: news@cc.umontreal.ca (Administration de Cnews) Organization: Universite de Montreal References: <3eic43$37k@apocalypse.dmi.stevens-tech.edu> Date: Fri, 6 Jan 1995 06:55:07 GMT >>>>> "Scott" == Scott Davenport <SDAVENPO@VAXC.STEVENS-TECH.EDU> writes: Scott> How can I retrieve the text in a TextField? I'm trying my Scott> hand at NS programming and want to write a simple number Scott> converter (i.e. meters to inches, etc). So I want to be Scott> able to read the contents of one TextField, calculate a Scott> result, and put the result in another TextField. I can do Scott> the latter part with [textfield setStringValue: ""] but how Scott> can I read a string value in (or float value for that Scott> matter)? Scott> Thanks for any help. Scott> Scott Davenport sdavenpo@vaxc.stevens-tech.edu [textfield floatValue] returns the float value entered in the field. You should search for TextField in Digital librarian to know everything about this class. You can learn everything by yourself by looking at the documentation. By the way, I don't know what version you are using but the program that you are trying to build is done as a example in Development Tools -> 16_CalculatorApp -> CalculatorApp.rtfd with digital librarian. Or open the file /NextLibrary/Documentation/NextDev/DevTools/16_CalculatorApp/CalculatorApp.rtfd in edit. I assume that you have NeXTStep3.2 if not I cannot assure you that you have this file. Hope this helps, Francois Magnan -- **************************************************** ** Francois Magnan : magnan@mathcn.umontreal.ca ** ** Dept. Mathematiques, Universite de Montreal ** ****************************************************
Newsgroups: comp.sys.next.programmer From: ericc@asteroid.lysis.ch (Eric Chaubert) Subject: Re: EOF <--> Oracle problems? Message-ID: <D1z4n2.B3y@eunet.ch> Sender: usenet@eunet.ch Organization: EUnet AG, Switzerland References: <neuss.789308038@coricopat> Date: Fri, 6 Jan 1995 07:54:37 GMT In article <neuss.789308038@coricopat> neuss@igd.fhg.de (Christian Neuss ) writes: > dgoodman@is.rpslmc.edu (Dave Goodman) writes: > >I'm having a bit of trouble accessing our Oracle server from NEXTSTEP. > >Some info: > > Oracle v7.0.13 for SCO Unix > > NEXTSTEP Developer 3.2 > > EOF 1.0 > >EOModeler does not seem to connect to the server. Also, sql+ from the NS > >machines won't connect. > Make sure you've added the service orasrv on the port 1525 with the protocol TCP in your netinfo root domain. That tells EOF on wich port to communicate wit your oracle 7 server. We're actually using exactly the same configuration as yours and that works perfectly. Good luck! -- Eric Chaubert / Lysis SA Cotes de Montbenon 8 Radio Software Development 1003 Lausanne / Switzerland Phone: (+ 41 21) 312-91-91 E-Mail: ericc@lysis.ch
Newsgroups: comp.sys.next.programmer,comp.sys.next.hardware From: david@prim.demon.co.uk Subject: Fuji 2264ESA Termination Woes Message-ID: <1995Jan1.140836.577@prim.demon.co.uk> Organization: Primitive Software Ltd. Date: Sun, 1 Jan 1995 14:08:36 GMT Sorry to raise this topic again but I've checked back through recent answers and don't seem to find what I want. I want to use the above disk as an internal drive inside a NeXTStation. I sometimes connect a tape streamer to the external SCSI buss. However I don't seem to find a termination combination which lets me boot without either: 1) a terminating resistor 2) the tape streamer (which is terminated). I noticed that the disk has been delivered without the DIL resistor pack in place, anyone know if this is the source of my woes? I basically want to end up with the situation I had with my old Quantum. David p.s. if I need the DIL resistor pack where can I get one?
Newsgroups: comp.sys.next.programmer From: ekraft@netcom.com (Erik Kraft) Subject: Re: Beginner's question - TextField Message-ID: <ekraftD1z2Iu.D3I@netcom.com> References: <3eic43$37k@apocalypse.dmi.stevens-tech.edu> Date: Fri, 6 Jan 1995 07:08:53 GMT In article <3eic43$37k@apocalypse.dmi.stevens-tech.edu> SDAVENPO@VAXC.STEVENS-TECH.EDU (Scott Davenport) writes: >How can I retrieve the text in a TextField? > You should look at the docs for Control (the superclass of TextField) This is mentioned in the docs for TextField. The methods you are looking for are: - setFloatValue:(float) aFloatValue; - (float) floatValue; - setDoubleValue:(double) aDoubleValue; - (double) doubleValue; - setIntValue:(int) aIntValue; - (int) intValue - setStringValue:(const char *) aString - (const char *) stringValue >Thanks for any help. > You're welcome. -- erik kraft NeXT programmer / 3do programmer ekraft@netcom.com
Newsgroups: comp.lang.c++,comp.lang.objective-c,comp.lang.eiffel,comp.lang.smalltalk,comp.windows.ms.programmer.misc,comp.sys.next.programmer From: mat@mole-end.matawan.nj.us Subject: Re: seeking scientific studies comparing OO languages (Summary) Message-ID: <1995Jan5.102903.26687@mole-end.matawan.nj.us> Summary: Since when have they been done? Or taken seriously? Organization: : References: <3arc3k$h8@esmerelda.whitelight.com> <johnson.788936415@hal.cs.uiuc.edu> Date: Thu, 5 Jan 1995 10:29:03 GMT In article <johnson.788936415@hal.cs.uiuc.edu>, johnson@hal.cs.uiuc.edu (Ralph Johnson) writes: > jaime@whitelight.com (Jaime Guerrero) writes: > >On Nov 21, 1994 I wrote: > >> I seek any references to scientific studies comparing the merits of > >> various object-oriented languages when developing large applications. > >Here are the studies I found or to which I was referred: > But none of them are *scientific* studies. They are anecdotal, or > based on some asthetics or theory. They might come to correct > conclusions, but they are not *scientific*. ... This is not strange for > software, since scientific studies are very expensive and so rarely done. > But let's not cloud the issue by pretending that these were scientific. Remember that lots of `scientific' studies have been done of production lines and similar processes. Few have been done of the _engineering_ process by which the product is designed. But for software, it's _all_ engineering. There have been some studies on the effects of light, air, and humane treatment of creative employees. They are uniformly ignored by managers who buy into such crock as open-plan offices and modular desks that are too shallow to open a listing. Why should people do scientific studies when nobody seems to care about them anyway? -- (This man's opinions are his own.) From mole-end Mark Terribile mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ (Training and consulting in C, C++, UNIX, etc.)
Newsgroups: comp.sys.next.programmer From: david@ffcsas.demon.co.uk Subject: Re: Fuji 2264ESA Termination Woes Message-ID: <D1zAJz.5K0@demon.co.uk> Sender: news@demon.co.uk (Usenet Administration) Organization: Demon Internet References: <1995Jan1.140836.577@prim.demon.co.uk> Date: Fri, 6 Jan 1995 10:02:23 GMT >In article <1995Jan1.140836.577@prim.demon.co.uk> >david@prim.demon.co.uk writes: >Sorry to raise this topic again but I've checked back through recent >answers and don't seem to find what I want. >I want to use the above disk as an internal drive inside a >NeXTStation. I sometimes connect a tape streamer to the external >SCSI buss. However I don't seem to find a termination combination >which lets me boot without either: > > 1) a terminating resistor > > 2) the tape streamer (which is terminated). > >I noticed that the disk has been delivered without the DIL resistor >pack in place, anyone know if this is the source of my woes? I >basically want to end up with the situation I had with my old >Quantum. >p.s. if I need the DIL resistor pack where can I get one? Hi, Yes your problem is that the internal drive terminates one end of the bus. The external only needs terminating if you plug an external device in. You can order the resistor pack from us or any Fuji distributor. -- Regards David Knight OneStep Solutions plc 351 London Road Phone: (+44) 01702 551010 Hadleigh Fax: (+44) 01702 551515 Essex. SS7 2BT Email: david@ffcsas.demon.co.uk
Newsgroups: comp.sys.next.programmer From: "benjamin bernhard" <bbernhar@cs.indiana.edu> Subject: Re: Problem of cyclic references Message-ID: <1995Jan6.094810.4446@news.cs.indiana.edu> Organization: Computer Science, Indiana University References: <9501041905.AA03472@flexus> <1995Jan5.153126.12525@almserv.uucp> Date: Fri, 6 Jan 1995 09:48:08 -0500 In article <1995Jan5.153126.12525@almserv.uucp>, Dimitri Plotnikov <e3udzp@fnma.com> wrote: [...] > >char *mymalloc (int size) >{ > return (char *)malloc (size) + 1000; >} > >void myfree (char *ptr) >{ > free (ptr - 1000); >} > >:-) > >What I am trying to say is that the technique used by MallocDebug is just >a guessing game. And games like this cannot be used for memory (or >object) management. You cannot free a single memory cell just because you >could not find a reference to it. He he. Yup. This is one of the fundamental limitations of C I alluded to in a previous series of postings. This problem (I called it the exposed pointer problem) unfornately cannot be fixed without fundamentally changing the language. -- __________________________________________________________________________ Ben Bernhard "Nothing that results from human progress 812/339-5304 (fax) is achieved with unanimous consent." bbernhar@cs.indiana.edu ---Christopher Columbus
From: ernst@cs.tu-berlin.de (Ernst Kloecker) Newsgroups: comp.sys.next.programmer,comp.sys.next.hardware Subject: Re: Fuji 2264ESA Termination Woes Date: 6 Jan 1995 18:02:49 GMT Organization: Technical University of Berlin, Germany Message-ID: <3ek0k9$534@news.cs.tu-berlin.de> References: <1995Jan1.140836.577@prim.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit david@prim.demon.co.uk writes: >I want to use the above disk as an internal drive inside a NeXTStation. I >sometimes connect a tape streamer to the external SCSI buss. However I don't >seem to find a termination combination which lets me boot without either: > 1) a terminating resistor > 2) the tape streamer (which is terminated). >I noticed that the disk has been delivered without the DIL resistor pack in >place, anyone know if this is the source of my woes? I basically want to end >up with the situation I had with my old Quantum. Get the resistor pack and terminate your internal disk. Jumper the disk to termpower supplied by TRMPWR pin. Now you can run your machine with or without the external streamer connected. Without the tape connected the SCSI bus isn't actually terminated on both sides, but that does not matter due to the short length of the internal cabling. All NeXT machines were delivered that way and they used to work, didn't they ? -- ----------------------------------------------------------------------------- Ernst Kloecker phone: ++49-30-6181635 e-mail: ernst@cs.tu-berlin.de -----------------------------------------------------------------------------
From: pcu@umich.edu Newsgroups: comp.sys.next.programmer Subject: Re: NXDataLink & NXDataLinkManager Date: 6 Jan 1995 18:35:43 GMT Organization: University of Michigan Distribution: world Message-ID: <3ek2hv$stj@lastactionhero.rs.itd.umich.edu> References: <1995Jan5.190759.17344@il.us.swissbank.com> In article <1995Jan5.190759.17344@il.us.swissbank.com> wyatt@il.us.swissbank.com (Wyatt Sutherland) writes: I'm trying to use these objects to hook two applications together and keep the data in sync between them. I want to drag a list of objects and have the destination link to the source. When I change the values in the source I want the values updated automatically in the other application running in Distributed Objects is easier to implement to do this sort of thing. IMO of course. :) -- Peter Urka <pcu@umich.edu> Dept. of Chemistry, Univ. of Michigan Anything to me is sweeter, Than to see Shock-headed Peter. - H. Hoffmann -- NewsGrazer, a NeXTstep(tm) news reader, posting -- M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.WT*7&UA M<F=L,3(P"EQM87)G<C$R,`I[7&-O;&]R=&)L.UQR960P7&=R965N,%QB;'5E M,#M]"EQP87)D7'1X,3$U,EQT>#(S,#1<='@S-#4V7'1X-#8P.%QT>#4W-C!< M='@V.3$R7'1X.#`V-%QT>#DR,39<='@Q,#,V.%QT>#$Q-3(P7&8P7&(P7&DP M7'5L;F]N95QF<S(T7&9C,%QC9C`@7`I<"DEN(&%R=&EC;&4@/#$Y.35*86XU M+C$Y,#<U.2XQ-S,T-$!I;"YU<RYS=VES<V)A;FLN8V]M/B!W>6%T=$!I;"YU M<RYS=VES<V)A;FLN8V]M("A7>6%T="!3=71H97)L86YD*2!W<FET97,Z7`H* M7'!A<F1<='@P7'1X,3$R,%QT>#(R-#!<='@S,S8P7'1X-#0X,%QT>#4V,#!< M='@V-S(P7'1X-S@T,%QT>#@Y-C!<='@Q,#`X,%QT>#$Q,C`P7'1X,3(S,C!< M='@Q,S0T,%QT>#$T-38P7'1X,34V.#!<='@Q-C@P,%QT>#$W.3(P7'1X,3DP M-#!<='@R,#$V,%QT>#(Q,C@P7&9C,5QC9C$@7`H*7'!A<F1<='@Q,30P7'1X M,C,P,%QT>#,T-#!<='@T-C`P7'1X-3<V,%QT>#8Y,#!<='@X,#8P7'1X.3(P M,%QT>#$P,S8P7'1X,3$U,C!<9F,P7&-F,"!<"EP*22=M('1R>6EN9R!T;R!U M<V4@=&AE<V4@;V)J96-T<R!T;R!H;V]K('1W;R!A<'!L:6-A=&EO;G,@=&]G M971H97(@86YD(&ME97`@=&AE(&1A=&$@:6X@<WEN8R!B971W965N('1H96TN M("!)('=A;G0@=&\@9')A9R!A(&QI<W0@;V8@;V)J96-T<R!A;F0@:&%V92!T M:&4@9&5S=&EN871I;VX@;&EN:R!T;R!T:&4@<V]U<F-E+B`@5VAE;B!)(&-H M86YG92!T:&4@=F%L=65S(&EN('1H92!S;W5R8V4@22!W86YT('1H92!V86QU M97,@=7!D871E9"!A=71O;6%T:6-A;&QY(&EN('1H92!O=&AE<B!A<'!L:6-A M=&EO;B!R=6YN:6YG(&EN(%P*7`I$:7-T<FEB=71E9"!/8FIE8W1S(&ES(&5A M<VEE<B!T;R!I;7!L96UE;G0@=&\@9&\@=&AI<R!S;W)T(&]F('1H:6YG+B!) M34\@;V8@8V]U<G-E+B`Z*2!<"EP*+2U<"@I<<&%R9%QT>#$Q-3)<='@R,S`T M7'1X,S0U-EQT>#0V,#A<='@U-S8P7'1X-CDQ,EQT>#@P-C1<='@Y,C$V7'1X M,3`S-CA<='@Q,34R,%QF8S!<8V8P(%!E=&5R(%5R:V$@/'!C=4!U;6EC:"YE M9'4^7`I$97!T+B!O9B!#:&5M:7-T<GDL(%5N:78N(&]F($UI8VAI9V%N7`I! M;GET:&EN9R!T;R!M92!I<R!S=V5E=&5R+%P*5&AA;B!T;R!S964@4VAO8VLM @:&5A9&5D(%!E=&5R+B`M($@N($AO9F9M86YN7`H*?0IT `
Newsgroups: comp.sys.next.programmer From: Ralph_Jung@Radical.Com Subject: Re: Fuji 2264ESA Termination Woes Message-ID: <1995Jan6.162522.6181@radical2.radical.com> Sender: news@radical2.radical.com Organization: Radical System Solutions, Inc. References: <1995Jan1.140836.577@prim.demon.co.uk> Date: Fri, 6 Jan 1995 16:25:22 GMT david@prim.demon.co.uk writes > > I want to use the above disk as an internal drive inside a NeXTStation. I > sometimes connect a tape streamer to the external SCSI buss. However I don't > seem to find a termination combination which lets me boot without either: > > 1) a terminating resistor > > 2) the tape streamer (which is terminated). > > I noticed that the disk has been delivered without the DIL resistor pack in > place, anyone know if this is the source of my woes? I basically want to end > up with the situation I had with my old Quantum. > When the original Maxtor internal drive died in my Cube, I noticed that it was terminated. I replaced it with a Fujitsu M2266S. (terminated) Externally, I have an Exabyte 8200 tape drive (not terminated) followed by a PLI floppy drive. (terminated) I would definitely recommend terminating the internal drive. -- Ralph Jung ( Ralph_Jung@Radical.Com ) Radical System Solutions, Inc. NeXTmail/MIME accepted System/Network/Database Design, Development, Consulting rad~i~cal \'rad-i-kel\ adj. - marked by a considerable departure from the usual or traditional: EXTREME
Newsgroups: comp.sys.next.programmer From: cpm@fnbc.com (Paul Merriman) Subject: DBTableview in a modal window Message-ID: <1995Jan6.171011.24834@fnbc.com> Keywords: modal dbtableview Sender: news@fnbc.com Organization: First National Bank Of Chicago, Chicago IL, USA Date: Fri, 6 Jan 95 17:10:11 GMT Hi, I'm trying to use DBtable view in a modal window which is all going fine apart from one niggling problem. It seems that I can only select items in the view by *dragging* the mouse - not by clicking. I have looked at the nib setting for the dbtableview and have those set correctly (and indeed the tableview works fine in a non-modal window), so I think the problem is being caused by the window modality. Does a modal window not pass on mousedown events or something? Any clues what I can do to debug this? Please reply by email directly as I don't often get a chance to check the list. Regards, Paul. --- Paul Merriman Trading Systems Specialist cpm@fnbc.com (US) Technology and Development cpm@fnbc.co.uk (UK) First National Bank of Chicago First Chicago House, Tel: 071 438 4404 90 Long Acre, Fax: 071 306 9011 LONDON, WC2E 9RB. MIME and NeXTMail welcome.
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: seeking scientific studies comparing OO languages (Summary) Message-ID: <1995Jan6.200742.1392@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <1995Jan5.102903.26687@mole-end.matawan.nj.us> Date: Fri, 6 Jan 1995 20:07:42 GMT I received a few messages with questions like: > Can you give me your explanation of a simple cycle in which this > reference counting scheme breaks down? There are two major mechanisms for automatic deallocating of unnecessary memory cells (objects, structures,...): reference counting and garbage collection. Following is an example demonstrating reference counting fault and a brief description of garbage collection. We are talking about OpenStep, but this can apply to any system using reference counting. This is an example: @interface MyObject { id next; } - (void) setNext: obj; @end @implementation MyObject - (void) setNext: obj { [next release]; next = obj; [next retain]; } - free { [next release]; return [super free]; } @end void someProc () { id first = [[MyObject alloc] autorelease]; id second = [[MyObject alloc] autorelease]; [first setNext: second]; // first will retain second [second setNext: first]; // second will retain first } Let's see what happens. 1. We create two objects and immediately say: "We do not need these objects in the future, so if nobody else claims that the objects should stay, the autorelease procedure can free them when the current event is processed." 2. We establish cyclic references: first object says "I need the second object". The second one says: "I need the first one". 3. When the event processing is over, the application looks through the autorelease pool and finds two our objects there. They claim they need each other (that is their retain counts are not equal to zero), so the app does not free them. But there are no other references to either object!! After the first attempt to free the objects, their addresses will be removed from autorelease pool and the objects will be lost completely, but the memory will remain allocated. So we cannot use them and we cannot free them. :( In complicated object systems you rarely can guarantee that there are no cyclic references, and this makes reference counting potentially sloppy. Another scheme we mentioned was "garbage collection". Unfortunately, it cannot be thoroughly implemented in C. It requires that the memory management system can find *all* references in the application: on stack, within global and local variables, variables, and within data structures. The procedure comprises three steps: 1. Every memory cell has a flag "required". The first step is to reset this flag for all memory cells. 2. Then follows a recursive marking of the achievable memory cells. The algorithm starts from stack and variables, sets the "required" flag in the objects they reference to, then goes to those objects and marks the objects they reference to, etc. 3. Finally, the algorithm frees all the objects that still have the "required" flag reset. Most computer languages such as Lisp, SmallTalk, Algol 68 employ garbage collection. The most popular languages like C are too flexible for garbage collection though. - Dimitri
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: Problem of cyclic references with FoundationKit Message-ID: <1995Jan6.201530.1962@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae Date: Fri, 6 Jan 1995 20:15:30 GMT I received a few messages with questions like: > Can you give me your explanation of a simple cycle in which this > reference counting scheme breaks down? There are two major mechanisms for automatic deallocating of unnecessary memory cells (objects, structures,...): reference counting and garbage collection. Following is an example demonstrating reference counting fault and a brief description of garbage collection. We are talking about OpenStep, but this can apply to any system using reference counting. This is an example: @interface MyObject { id next; } - (void) setNext: obj; @end @implementation MyObject - (void) setNext: obj { [next release]; next = obj; [next retain]; } - free { [next release]; return [super free]; } @end void someProc () { id first = [[MyObject alloc] autorelease]; id second = [[MyObject alloc] autorelease]; [first setNext: second]; // first will retain second [second setNext: first]; // second will retain first } Let's see what happens. 1. We create two objects and immediately say: "We do not need these objects in the future, so if nobody else claims that the objects should stay, the autorelease procedure can free them when the current event is processed." 2. We establish cyclic references: first object says "I need the second object". The second one says: "I need the first one". 3. When the event processing is over, the application looks through the autorelease pool and finds two our objects there. They claim they need each other (that is their retain counts are not equal to zero), so the app does not free them. But there are no other references to either object!! After the first attempt to free the objects, their addresses will be removed from autorelease pool and the objects will be lost completely, but the memory will remain allocated. So we cannot use them and we cannot free them. :( In complicated object systems you rarely can guarantee that there are no cyclic references, and this makes reference counting potentially sloppy. Another scheme we mentioned was "garbage collection". Unfortunately, it cannot be thoroughly implemented in C. It requires that the memory management system can find *all* references in the application: on stack, within global and local variables, variables, and within data structures. The procedure comprises three steps: 1. Every memory cell has a flag "required". The first step is to reset this flag for all memory cells. 2. Then follows a recursive marking of the achievable memory cells. The algorithm starts from stack and variables, sets the "required" flag in the objects they reference to, then goes to those objects and marks the objects they reference to, etc. 3. Finally, the algorithm frees all the objects that still have the "required" flag reset. Most computer languages such as Lisp, SmallTalk, Algol 68 employ garbage collection. The most popular languages like C are too flexible for garbage collection though. - Dimitri Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: seeking scientific studies comparing OO languages (Summary) Message-ID: <1995Jan6.201749.2106@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <1995Jan6.200742.1392@almserv.uucp> Date: Fri, 6 Jan 1995 20:17:49 GMT In article <1995Jan6.200742.1392@almserv.uucp> e3udzp@peterpan (Dimitri Plotnikov) writes: > I received a few messages with questions like: [...] I am sorry, I mistyped the subject of that message. Should be "Problem of cyclic references" :) I don't know if one can withdraw one's own messages posted by mistake. - Dimitri Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Problem of cyclic references with FoundationKit Date: 7 Jan 1995 03:45:56 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3el2pk$p7o@darkstar.UCSC.EDU> References: <1995Jan6.201530.1962@almserv.uucp> In article <1995Jan6.201530.1962@almserv.uucp> e3udzp@peterpan (Dimitri Plotnikov) writes: > 1. We create two objects and immediately say: "We do not need these > objects in the future, so if nobody else claims that the objects should > stay, the autorelease procedure can free them when the current event is > processed." > > 2. We establish cyclic references: first object says "I need the second > object". The second one says: "I need the first one". > > 3. When the event processing is over, the application looks through the > autorelease pool and finds two our objects there. They claim they need > each other (that is their retain counts are not equal to zero), so the app > does not free them. But there are no other references to either object!! > After the first attempt to free the objects, their addresses will be > removed from autorelease pool and the objects will be lost completely, but > the memory will remain allocated. So we cannot use them and we cannot free > them. :( > Is it not possible to deal with cyclic references by merely keeping track of nodes that have already been visited? Doesn't this same problem need to be addressed in garbage collecting schemes? But in the case of Foundation's reference counting, we have a relativly small fixed set of nodes to examine instead of the entire process memory space as is the case with garbage collecting. Seems like a solution exists. And this seems like an obvious problem that would need to be addressed. NeXT seems to have put considerable thought and effort into this reference counting scheme. Are we certain that this problem was indeed overlooked? --- Art Isbell Cubic Solutions NeXT Registered Consultant NEXTSTEP software development/consulting NeXTmail: art@cubicsol.com Voice: +1 408 335 1154 USmail: 95018-9442 Fax: +1 408 335 2515
From: mcgredo@crl.com (Donald R. McGregor) Newsgroups: comp.sys.next.programmer Subject: Re: Problem of cyclic references with FoundationKit Date: 6 Jan 1995 23:48:39 -0800 Organization: YoyoDyne Propulsion Systems Message-ID: <3elh0n$g0r@crl4.crl.com> References: <1995Jan6.201530.1962@almserv.uucp> <3el2pk$p7o@darkstar.UCSC.EDU> In article <3el2pk$p7o@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: [re cyclic references] :> Seems like a solution exists. And this seems like an obvious problem :>that would need to be addressed. NeXT seems to have put considerable :>thought and effort into this reference counting scheme. Are we certain :>that this problem was indeed overlooked? NeXT didn't claim it was a perfect solution, just one that did most of what was desired within the limitations of the language. I recall one of the NeXTies at the expo who said cyclic references were actually fairly rare in their code. YMMV. -- Don McGregor | "He was a bachelor and therefore a kind of amateur mcgredo@crl.com| in life..."
From: tom@hukatronic.cz (Tomas Hurka) Newsgroups: comp.sys.next.programmer Subject: 8-bit save revision control system Date: 7 Jan 1995 05:34:08 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9501071128.AA00370@hurka> Hi All, I am looking for revision control system similar to RCS available in normal NeXTSTEP distribution, which can handle 8-bit source files and RTF files together with NIB files. I need it for managing my first bigger NeXTSTEP project, which will have Czech texts and documentation. Does GNU project have replacement for RCS? Thank you in advance for your suggestions. Best regards, --- Tomas Hurka tom@hukatronic.cz NeXTMAIL OK
From: stabl@informatik.uni-muenchen.de (Robert Stabl) Newsgroups: comp.sys.next.programmer Subject: Re: 8-bit save revision control system Date: 7 Jan 1995 13:12:54 GMT Organization: Institut fuer Informatik der Ludwig-Maximilians-Universitaet Muenchen Message-ID: <3em40m$16d@antigone.ppp.informatik.uni-muenchen.de> References: <9501071128.AA00370@hurka> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In article <9501071128.AA00370@hurka> tom@hukatronic.cz (Tomas Hurka) writes: > I am looking for revision control system similar to RCS available in > normal NeXTSTEP distribution, which can handle 8-bit source files and RTF > files together with NIB files. I need it for managing my first bigger > NeXTSTEP project, which will have Czech texts and documentation. > > Does GNU project have replacement for RCS? Yes. Try looking for rcs-5.6.0.1 and cvs-1.3 (eg. on ftp.informatik.tu-muenchen.de:/pub/comp/gnu). We are using CVS within our NEXTSTEP projects. To handle nib folders you should also install CVSPalette (to be found at ftp.informatik.uni-muenchen.de:/comp/platforms/next/Developer /resources/palettes/CVSPalette.s.tar.gz). Robert. -- Robert Stabl email: stabl@informatik.uni-muenchen.de Computer Science Institute http://www.pst.informatik.uni-muenchen.de/~stabl/ University of Munich Leopoldstr. 11B Tel: +(49) 89 2180 6316 D-80802 Muenchen FAX: +(49) 89 2180 6310 Germany
From: filip@filtronix.eunet.be (Filip Lingier) Newsgroups: comp.sys.next.programmer Subject: Re: Learning how to program in NEXTSTEP Date: 7 Jan 1995 14:39:37 GMT Organization: Filtronix Inc. Distribution: world Message-ID: <3em939$9r@filtronix.eunet.be> References: <3efbg2$cao@darkstar.UCSC.EDU> In article <3efbg2$cao@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: >> Whatever happened to STEP TWO and STEP THREE? They were announced in >> STEP ONE but I haven't heard anything about then. > In case Mike Mahoney doesn't respond, I *think* what happened was that > Step 2 was originally planned to cover DBKit. However, NeXT advised > Mike against writing a DBKit book because DBKit was already scheduled > for replacement by EOF. But enough wasn't known about EOF at the time > when Step 2 should have been written that it had to be postponed. > Last I heard, Mike and one of his grad students were still planning on > writing an EOF book. Too bad. I like STEP ONE and was looking forward to the other two parts. But why didn't they make STEP THREE which would be about the 3DKit, STEP TWO? I hope the 3DKit won't disappear in 4.0. Filip -- -------------------------------------------------------------------------- FILTRONIX A programmer's think-tank - info@filtronix.eunet.be (NeXTmail OK!) --------------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Sat, 7 Jan 95 14:27:39 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501071327.AA00558@flexus> Subject: Re: Problem of cyclic references with FoundationKit John Randolph writes: > Actually, this is not what MallocDebug does. To use > Malloc Debug, you link your app with libMallocDebug.a, > which replaces the standard malloc() routines. Yes, certainly, but I meant specifically what it does for finding leaks. Apparently, it takes the set of malloc region start addresses, subtracts the set of all memory word contents, and reports the difference as the set of leaks. I won't speculate what it does with registers and stack. To Dimitri Plotnikov: Yes, it is essential that a pointer to the beginning of a memory region be stored (well, the algorithm *could* be extended to count as potential pointers all values that point anywhere within such a memory region, with a performance penalty). But why do otherwise? It's a simple act of courtesy towards your friend, the memory manager. If you want to make your task misbehave or even crash, you have plenty of other means at your disposal. :-) Note that this algorithm won't find all leaks: that's why it's only an approximation, conservative with respect to memory reclamation. If your purpose is finding leaks, a conservative test would find at least all leaks. It's like an aids test: first you do a cheap test that won't miss any contaminated person but may generate some false positive results, then you can test further. :-) It is of course very useful to identify some of those possible leaks as certified leaks from the point of view of a conservative memory management system (MD only gives these and those whose pointer doesn't point to the beginning), and to maybe use some heuristics to grade the other candidates. It is of course all right to use this algorithm as a (non-conservative) approximation to finding leaks (*far* better than no tool at all). But the problem is that it is *too* non-conservative, because of a flawed implementation: MD will find no isolated reference cycles whatsoever, not even when the reference is from inside the memory region itself. (It also won't detect leaks of less than 17-20 bytes, apparently.) If used for memory management, it would be about as bad as the unassisted reference counting in the Foundation Kit. Well, just so you'd know. If you think it's important to you, verify it (if you want the specific test code I used, ask me) and give a yell to BugNeXT, referring to KBNS.32.2.021 and this message. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium Addressing limitations: no !, % or .uucp, I think ``It just works.'' --- Steve Jobs
Newsgroups: comp.sys.next.programmer From: wave@media.mit.edu (Michael B. Johnson) Subject: Re: Learning how to program in NEXTSTEP Message-ID: <1995Jan7.203350.25767@news.media.mit.edu> Sender: news@news.media.mit.edu (USENET News System) Organization: MIT Media Laboratory References: <3efbg2$cao@darkstar.UCSC.EDU> <3em939$9r@filtronix.eunet.be> Date: Sat, 7 Jan 1995 20:33:50 GMT In article <3em939$9r@filtronix.eunet.be> filip@filtronix.eunet.be writes: >>In article <3efbg2$cao@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) >>writes: >> >> Whatever happened to STEP TWO and STEP THREE? They were announced in >> >> STEP ONE but I haven't heard anything about then. >> > In case Mike Mahoney doesn't respond, I *think* what happened was that >> > Step 2 was originally planned to cover DBKit. However, NeXT advised >> > Mike against writing a DBKit book because DBKit was already scheduled >> > for replacement by EOF. But enough wasn't known about EOF at the time >> > when Step 2 should have been written that it had to be postponed. >> > Last I heard, Mike and one of his grad students were still planning on >> > writing an EOF book. >> >>Too bad. I like STEP ONE and was looking forward to the other two parts. >>But why didn't they make STEP THREE which would be about the 3DKit, STEP >>TWO? I hope the 3DKit won't disappear in 4.0. >> The best way to make sure the 3DKit doesn't disappear is to do some cool stuff with it! Go grab my WavesWorld stuff (shameless plug); the 2.0 stuff is still available at ftp://media.mit/edu/pub/WavesWorld/2.0, and 2.1 is just around the corner (with lots of bugs fixed and autogenerated shadows and environment maps, more examples and more documentation!). seriously, I've been doing completely random things (medical viz, electric field simuation, stereo lithography, behavior based animation, etc.) with the 3DKit using my WW3DKit atop it, and I've been completely amazed at how much cooler and more useful it is than any software on the SGI. Unfortunately, it seems few places other than the Media Lab have realized this... Or at least if they have, I haven't heard of it. BTW, solidThinking from Guido and the rest of the fine folks at Gestel is a stunning, stunning piece of work. The NEXTSTEP community finally has a pro quality modeler available to it that rivals much of what is available on other platforms. Take advantage of it. And solidThinking and the WW3DKit in WavesWorld make a killer combo (examples will be in release 2.1 of WavesWorld). Anyway, back to my thesis. << just taking a break, as my proposal got signed yesterday. 3 more months to defense...>> -- --> Michael B. Johnson -- wave@media.mit.edu --> MIT Media Lab -- Computer Graphics & Animation Group --> 20 Ames St. E15-023G -- (617) 666-4119 (day office) --> Cambridge, MA 02139 -- (617) 253-0663 (night office)
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: Problem of cyclic references with FoundationKit Message-ID: <D21y30.4AC@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems, Inc. References: <3elh0n$g0r@crl4.crl.com> Date: Sat, 7 Jan 1995 20:25:48 GMT Donald R. McGregor writes > I recall one of the NeXTies at the expo who said cyclic references > were actually fairly rare in their code. except, of course, those rare apps that contain windows and views. -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
From: jmack@skye.phys.ualberta.ca Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Multicast support anyone? NeXT? Date: 8 Jan 1995 06:42:22 GMT Organization: Computer and Network Services, U of Alberta, Edmonton, Canada Distribution: world Message-ID: <3eo1ge$10qj@quartz.ucs.ualberta.ca> Keywords: RFC-1075, DVMRP, MBONE Does anyone have any comments on pursuing NeXT to include true MULTICAST support per RFC-1075 DVMRP in future releases? (part of my 1995 wish list) Since the Mach kernel is not modifiable in the typical BSD way by ordinary mortals (as we can do with Ultrix or SunOS), NeXT themselves would have to build true MULTICASTING in from the start. (Please!) Then I could get mrouted and MBONE utils working to use several video/audio conferencing tools (wb,vat,iv, etc), which I see as the next leap in internet connectivity (and as well a great way to avoid long distance telco charges, and even air-fares for people who otherwise would have to travel to conferences, meetings, talks, etc). There is some indication that multicasts can be accepted in the kernel: (a hack similar to setting ipforwarding up - original skeleton code thanks to Eric P Scott): # ./setmulticast on # ./setmulticast _en_accept_multicast is on but that doesn't do much, since none of the socket opts for doing the real stuff exist in the kernel, or in the includes: # ./mrouted -d 4 debug level 4 mrouted version 2.2 setsockopt IP_MULTICAST_TTL 1: Invalid argument (arg! not even to the point of trying DVMRP ...) What I would like to see are defs in <netinet/in.h> similar to: #define IPPROTO_IGMP 2 /* group mgmt protocol */ #define INADDR_ALLHOSTS_GROUP (u_long)0xe0000001 /* 224.0.0.1 */ #define IP_MULTICAST_IF 2 /* in_addr; set/get IP multicast interface */ #define IP_MULTICAST_TTL 3 /* u_char; set/get IP multicast timetolive */ #define IP_MULTICAST_LOOP 4 /* u_char; set/get IP multicast loopback */ #define IP_ADD_MEMBERSHIP 5 /* ip_mreq; add an IP group membership */ #define IP_DROP_MEMBERSHIP 6 /* ip_mreq; drop an IP group membership */ #define IP_DEFAULT_MULTICAST_TTL 1 /* normally limit m'casts to 1 hop */ #define IP_DEFAULT_MULTICAST_LOOP 1 /* normally hear sends if a member */ and especially a #define IFF_MULTICAST for en0 to allow something like what's available on our SGI: jever 6% ifconfig ec0 ec0: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,FILTMULTI,MULTICAST> inet 129.128.7.114 netmask 0xffffff00 broadcast 129.128.7.255 How about it NeXT? -- James S. MacKinnon Office: P-139 Avahd-Bhatia Physics Lab Computing/Networking Phone : (403) 492-8226 Department of Physics email : jmack@phys.ualberta.ca University of Alberta uucp : uofaphys!jmack iskye!jmack Edmonton, Canada T6G 2N5 bitnet: jmack@triumfcl jsm1@ualtamts
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: Selecting NXBrowser entries programmatically Date: 8 Jan 1995 13:41:50 GMT Organization: University of Heidelberg, Germany Message-ID: <3eoq2u$q0p@sun0.urz.uni-heidelberg.de> References: <1995Jan4.195935.6170@bandw.com> In article <1995Jan4.195935.6170@bandw.com> gsoules@bandw.com writes: > Does anyone know how to select multiple NXBrowser entries in code? The > setPath method lets you select just one and the documentation warns not to > mess around directly with the browser's matrix or cells. I tried just > that (before seeing the warning) and encountered some pretty strange > behavior. > > NeXT accomplished this in the Workspace Manager as is witnessed by the > fact that you can display your files in Listing view, select some and then > switch to Browser view and see those files selected. But can normal > people do this? > Yes and no ;-) Ones I had a strange success, but it depends on your luck :-( The chance to be lucky increases if you use the MiscSelectionMatrix (it's still in the Misc's Temp folder). Till the next MiscKit release, I hope to finish the MiscBrowser class, and then you can do easily what you want. In OpenStep this ugliness is still there :-( -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
From: filip@filtronix.eunet.be (Filip Lingier) Newsgroups: comp.sys.next.programmer Subject: Re: Learning how to program in NEXTSTEP Date: 8 Jan 1995 19:35:33 GMT Organization: Filtronix Inc. Distribution: world Message-ID: <3epeq5$81@filtronix.eunet.be> References: <1995Jan7.203350.25767@news.media.mit.edu> In article <1995Jan7.203350.25767@news.media.mit.edu> wave@media.mit.edu > The best way to make sure the 3DKit doesn't disappear is to do some > coo stuff with it! Go grab my WavesWorld stuff (shameless plug); the > 2.0 stuff is still available at ftp://media.mit/edu/pub/WavesWorld/2.0 > , and 2.1 is just around the corner (with lots of bugs fixed and > autogenerated shadows and environment maps, more examples and more > documentation!). I got you WavesWorld just last week so I guess I'll have to transfer another couple of MB when 2.1 comes out:-) I have had the time to play with it yet... > BTW, solidThinking from Guido and the rest of the fine folks at Gestel > is a stunning, stunning piece of work. The NEXTSTEP community finally > has a pro quality modeler available to it that rivals much of what is > available on other platforms. Take advantage of it. And > solidThinking and the WW3DKit in WavesWorld make a killer combo > (examples will be in release 2.1 of WavesWorld). I suppose SolidThinking is a commercial app. Is there a demo-version available somewhere? > Anyway, back to my thesis. > << just taking a break, as my proposal got signed yesterday. 3 more > months to defense...>> Good luck with it. Filip -- ------------------------------------------------------------------------- FILTRONIX A programmer's think-tank - info@filtronix.eunet.be (NeXTmail OK!) -------------------------------------------------------------------------
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Selecting NXBrowser entries programmatically Date: 05 Jan 1995 20:49:18 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Jan5204918@steffi.dircon.co.uk> References: <1995Jan4.195935.6170@bandw.com> <D1xHM4.A9E@rat.se> To: jocke@rat.se In-reply-to: jocke@rat.se's message of Thu, 5 Jan 1995 10:35:45 GMT <jocke@rat.se> writes: >In article <1995Jan4.195935.6170@bandw.com> gsoules@bandw.com writes: >>Does anyone know how to select multiple NXBrowser entries in code? The >>setPath method lets you select just one and the documentation warns not to >>mess around directly with the browser's matrix or cells. I tried just >>that (before seeing the warning) and encountered some pretty strange >>behavior. >I've used a combination of both of these approaches when creating a >FileViewer UI clone, and it seems to work as you would expect. You have to >do the selection in two steps: >1) use setPath: to select one cell in the appropriate column >2) use matrixInColumn: to get the matrix for the column, and > select the individual cells with something like: > Matrix *m; > [browser setPath:token]; > m=[browser matrixInColumn:[self lastSelectedColumn:browser]]; > // for all appropriate cells do: > [[m cellAt :j :0] set]; When you have done this what does the matrix report as it's select cell/s? I use the following to good effect. [browserMatrix selectCellAt:selectedCellIndex :0]; [browserMatrix scrollCellToVisible:selectedCellIndex :0]; This is done _after_ I load the browser. Selecting cells whilst loading proved fruitless. > [browser display]; >(lastSelectedColumn: is a replacement for NeXT:s method, that seems broken) >Too bad they've not fixed this in OpenStep (the methods seems to be the same >according to the released specification anyway). >>NeXT accomplished this in the Workspace Manager as is witnessed by the >>fact that you can display your files in Listing view, select some and then >>switch to Browser view and see those files selected. But can normal >>people do this? >Well, sort of anyway... ;-) >This approach might break with some later release of NS | OS, but works for >now. So will just about anything since you always find yourself doing this kind of thing eventually. >Good luck, >Joakim >-- >Joakim Johansson | "The truth is the one thing that >Software Developer @ Research & Trade | nobody will believe." >jocke@rat.se <NeXTmail, MIME> | - George Bernard Shaw -- "Oh no, actually darling I don't have time for games." (PGP key: send email with Subject: request pgp key) (ASCII for text only messages)
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Sun, 8 Jan 95 17:24:54 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501081624.AA00706@flexus> Subject: Re: Problem of cyclic references with FoundationKit Art Isbell writes: > Seems like a solution exists. And this seems like What solution? > an obvious problem that would need to be addressed. Yup. > NeXT seems to have put considerable thought and effort > into this reference counting scheme. Are we certain that Would you think so? Apparently not enough thought. If even I saw the problem right away... > this problem was indeed overlooked? Is there any other explanation? Donald McGregor writes: > NeXT didn't claim it was a perfect solution, just one > that did most of what was desired within the limitations > of the language. I recall one of the NeXTies at the expo > who said cyclic references were actually fairly rare in > their code. YMMV. Floating point errors with the Pentium are fairly rare. :-) The FoundationKit, as any reference counting scheme, needs a backup, or a clearly articulated policy about ownership and who needs to free what. See ftp://cs.utexas.edu/pub/garbage/gcsurvey.ps, 2.1 Reference Counting, The Problem with Cycles. (p. 6) [Rest omitted for the benefit of those not interested. Otherwise, and if you've thought a bit about the subject as well, send me mail.] Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium Addressing limitations: no !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Problem of cyclic references with FoundationKit Date: 8 Jan 1995 21:30:23 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3eplhf$bac@darkstar.UCSC.EDU> References: <9501081624.AA00706@flexus> In article <9501081624.AA00706@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: > Art Isbell writes: > > Seems like a solution exists. And this seems like > What solution? > Is this a problem that humans can't detect? I don't think so. If I can detect a cycle, then an algorithm exists that could be used, right? > > NeXT seems to have put considerable thought and effort > > into this reference counting scheme. Are we certain that > Would you think so? Apparently not enough thought. If even I saw the problem > right away... > Did you notice the problem in an application where objects involved in cyclic references weren't freed or were you merely aware of the potential problems with reference counting and cycles? > > this problem was indeed overlooked? > Is there any other explanation? > Well, on page 85 of the new _Working With Interface Builder_ manual, NeXT warns that programmers must deal with cycles themselves when using the current Application class with NSObject subclasses, so *someone* at NeXT was at least aware of the problem. I have no idea whether the problem was dealt with in EOApplication or whether it will be dealt with in OpenStep's Application. > The FoundationKit, as any reference counting scheme, needs a backup, or a > clearly articulated policy about ownership and who needs to free what. > > See ftp://cs.utexas.edu/pub/garbage/gcsurvey.ps, 2.1 Reference Counting, The > Problem with Cycles. (p. 6) > Are you saying that the reference-counting approach, NeXT's or anyone's, is fatally-flawed and will always lead to memory leaks when cycles are involved? Or is there a reasonable solution that NeXT hasn't implemented that we might be able to implement as a workaround for the problem? --- Art Isbell Cubic Solutions NeXT Registered Consultant NEXTSTEP software development/consulting NeXTmail: art@cubicsol.com Voice: +1 408 335 1154 USmail: 95018-9442 Fax: +1 408 335 2515
From: sldq1@cc.usu.edu Newsgroups: comp.sys.next.programmer Subject: Need info on .keyboard files (I want to make a new one) Message-ID: <1995Jan8.140957.36984@cc.usu.edu> Date: 8 Jan 95 14:09:57 MDT Organization: Utah State University Does anyone know where I can find information about the format and requirements for the NEXTSTEP .keyboard files? These files appear to define the various keyboard key layouts. I would like to create a new keyboard type that I can use for the new Microsoft Natural keyboard, so that I can re-map some of it's special keys to NEXTSTEP functions. Of course, if something like this is already available I would like to hear about it. :-) Thanks, John Zollinger sldq1@cc.usu.edu (Non nextmail) ati06!obsidian!johnz@attati.attmail.com (NextMail welcome)
From: oliver@vivaldi.telepac.pt (Unter Ecker Oliver) Newsgroups: comp.sys.next.programmer Subject: HELP: I can do right, can you do left (mouse click) Date: 8 Jan 1995 16:48:35 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9501082346.AA15734@vivaldi.telepac.pt> Hi! I am trying to generate an ordinary mouse click. So far, I succeeded doing a right click, but can't figure out how to do a left click. The following Yap code snappet will show you what works, and what doesn't. It will shortly pop up the Yap menu over the Yap PS Output window (the right click), but won't select it if it wasn't already (response to a left click). /x 560 def /y 416 def /window x y Above 0 findwindow pop exch pop exch pop def %/window currentwindow def /context currentactiveapp def x y setmouse Rmousedown x y realtime 0 window 0 1 255 context posteventbycontext pop Rmouseup x y realtime 0 window 0 1 255 context posteventbycontext pop Lmousedown x y realtime 0 window 0 1 255 context posteventbycontext pop Lmouseup x y realtime 0 window 0 1 255 context posteventbycontext pop Note, this works even if the menu (right) button isn't enabled in Preferences. I get the same results in C using the appropriate PS ops, or DPS client library's DPSPostEvent. Looking for the difference one may argue the right click doesn't need the correct window to work, so this might simply be wrong. I checked this, however, the window is ok. Anyhow, it's unconvenient to provide correct context and window if all you want is doing a mouse click no matter where on what window in what app. There're undocumented defines in <bsd/dev/event.h>
From: atownley@freddie.informix.com (Andrew S. Townley) Newsgroups: comp.sys.next.programmer Subject: NXCreateZone() and malloc() revisited Date: 6 Jan 1995 16:33:01 GMT Organization: Informix Software, Inc. Menlo Park, CA 94025 Distribution: WORLD Message-ID: <3ejrbt$68r@infmx.informix.com> Keywords: NXCreateZone(), malloc(), thanks A while back I posted a problem detailing my attempts to build a rexx interpreter under NEXTSTEP. I had tried several things and never figured out what was causing this particular problem. I have encountered several other problems when dealing with malloc(), but I have yet to determine what those are related to, but I'm working on it. Anyway, today I got some e-mail from Mr. Peter Eybert who noticed where I didn't that not all of the files in this POSIX application were being compiled with the -D_POSIX_SOURCE or -posix compiler flag. The files in question were yacc generated source which, through an omission in the Makefile didn't get compiled with the same flags as the rest of the source. Once I made the changes to the makefile, life was a lot better and I now have a rexx interpreter which works as well as it is supposed to. Just wanted to let anyone who remembered the thread know what happened and to thank Mr. Eybert. regards, ast BTW, does anyone know of an Informix online DBKit adaptor available from anywhere? This question in no way reflects anything having to do with Informix Software. -- Andrew S. Townley _ _ ___\ 4121 W. 83rd Street, Suite 265 | \|_] | \/SYSTEMS Prairie Village, KS 66208 |_/| \ | /\International atownley@informix.com (NeXTmail welcome) \
From: buddha@samsara.circus.com (Adam Deishu Beeman) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Re: Multicast support anyone? NeXT? Date: 8 Jan 1995 15:40:41 -0800 Organization: The Marshmallow Peanut Circus Message-ID: <3ept5p$6gh@samsara.circus.com> References: <3eo1ge$10qj@quartz.ucs.ualberta.ca> Keywords: RFC-1075, DVMRP, MBONE In article <3eo1ge$10qj@quartz.ucs.ualberta.ca>, <jmack@skye.phys.ualberta.ca> wrote: >Does anyone have any comments on pursuing NeXT to include >true MULTICAST support per RFC-1075 DVMRP in future releases? >(part of my 1995 wish list) I don't know how it's implemented, but there is now support for IP multicast in 3.3.... I guess we'll see what we get in terms of header files when 3.3 dev comes out. Have you tried this on a 3.3 system yet? >James S. MacKinnon Office: P-139 Avahd-Bhatia Physics Lab >Computing/Networking Phone : (403) 492-8226 >Department of Physics email : jmack@phys.ualberta.ca >University of Alberta uucp : uofaphys!jmack iskye!jmack >Edmonton, Canada T6G 2N5 bitnet: jmack@triumfcl jsm1@ualtamts Hope I've been helpful... -Adam -- //#*=--=*#*=--=*#*=--=*#*=--=*#*=--=*#*=--=*#*=--=*#*=--=*#*=--=*#*=--=*#// // Adam Beeman \\ I wish I could speak for my employer // // Home = buddha@circus.com \\ Work = Adam@NeXT.COM (Contractor) // // http://www.circus.com/~buddha/ \\ #import <usenet/disclaimer.h> //
From: Hal.Varian@umich.edu Newsgroups: comp.sys.next.programmer Subject: Re: Need info on .keyboard files (I want to make a new one) Date: 9 Jan 1995 00:56:05 GMT Organization: University of Michigan - College of Literature, Science, and TheArts Distribution: world Message-ID: <3eq1j5$kne@controversy.math.lsa.umich.edu> References: <1995Jan8.140957.36984@cc.usu.edu> In article <1995Jan8.140957.36984@cc.usu.edu> sldq1@cc.usu.edu writes: > Does anyone know where I can find information about the format and requirements > for the NEXTSTEP .keyboard files? These files appear to define the various > keyboard key layouts. I would like to create a new keyboard type that I can > use for the new Microsoft Natural keyboard, so that I can re-map some of it's > special keys to NEXTSTEP functions. > > Of course, if something like this is already available I would like to hear > about it. :-) > It's already available: look at NextDeveloper/Demos/Keyboard.app. --- Hal.Varian@umich.edu Hal Varian voice: 313-764-2364 Dept of Economics fax: 313-764-2364 Univ of Michigan Ann Arbor, MI 48109-1220
From: sldq1@cc.usu.edu Newsgroups: comp.sys.next.programmer Subject: Re: Need info on .keyboard files (I want to make a new one) Message-ID: <1995Jan8.192842.37006@cc.usu.edu> Date: 8 Jan 95 19:28:42 MDT References: <1995Jan8.140957.36984@cc.usu.edu> <3eq1j5$kne@controversy.math.lsa.umich.edu> Distribution: world Organization: Utah State University In article <3eq1j5$kne@controversy.math.lsa.umich.edu>, Hal.Varian@umich.edu writes: > In article <1995Jan8.140957.36984@cc.usu.edu> sldq1@cc.usu.edu writes: >> Does anyone know where I can find information about the format and > requirements >> for the NEXTSTEP .keyboard files? These files appear to define the > various >> keyboard key layouts. I would like to create a new keyboard type that I > can >> use for the new Microsoft Natural keyboard, so that I can re-map some of > it's >> special keys to NEXTSTEP functions. >> >> Of course, if something like this is already available I would like to > hear >> about it. :-) >> > > It's already available: look at NextDeveloper/Demos/Keyboard.app. Well, no, not exactly. I know about Keyboard.app. That will allow you to create keymappings for existing .keyboard files (the file describes the actual layout of all of the keys.) So, unless that functionality is in Keyboard.app somehow and I can't find it, I need to know how to create a .keyboard file, not a .keymap file. Still looking, John Zollinger
From: bill@otherwise.com Newsgroups: comp.sys.next.programmer Subject: Re: HELP: I can do right, can you do left (mouse click) Date: Mon, 9 Jan 1995 03:34:45 GMT Organization: Real/Time Communications - Bob Gustwick and Associates Message-ID: <950108213445.527AADPE.bill@other> References: <9501082346.AA15734@vivaldi.telepac.pt> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII >Date: 8 Jan 1995 16:48:35 -0600 >From: oliver@vivaldi.telepac.pt (Unter Ecker Oliver)>Subject: HELP: I can do right, can you do left (mouse click) > >Hi! > >I am trying to generate an ordinary mouse click. >So far, I succeeded doing a right click, but can't figure out how to do >a left click. >The following Yap code snappet will show you what works, and what doesn't. >It will shortly pop up the Yap menu over the Yap PS Output window (the right >click), but won't select it if it wasn't already (response to a left click). > >/x 560 def >/y 416 def >/window x y Above 0 findwindow pop exch pop exch pop def >%/window currentwindow def >/context currentactiveapp def >x y setmouse >Rmousedown x y realtime 0 window 0 1 255 context posteventbycontext pop >Rmouseup x y realtime 0 window 0 1 255 context posteventbycontext pop >Lmousedown x y realtime 0 window 0 1 255 context posteventbycontext pop >Lmouseup x y realtime 0 window 0 1 255 context posteventbycontext pop > >Note, this works even if the menu (right) button isn't enabled in Preferences. > >I get the same results in C using the appropriate PS ops, or DPS client >library's DPSPostEvent. >Looking for the difference one may argue the right click doesn't need the >correct window to work, so this might simply be wrong. >I checked this, however, the window is ok. >Anyhow, it's unconvenient to provide correct context and window if all you >want is doing a mouse click no matter where on what window in what app. >There're undocumented defines in <bsd/dev/event.h> > > You can do better using the postevent operator. Here is a wrap I use: defineps postTheEvent(int type; int x; int y; int time; int flags; int window; int subtype; int m1; int m2) type x y time flags window subtype m1 m2 Bytype postevent endps m1 and m2 are the equivalent of the "misc" field of the "compound" struct in the NXEventData data type. Leave time 0 and the windowserver will fill it in for you. Also leave window 0 and the server will determine the appropriate window for the event. You can do all sorts of magic with this. This is the way NXJournaling posts events when playing back. Good luck. --- Bill Tschumy Otherwise bill@otherwise.com (NeXTmail and MIME accepted)
Newsgroups: comp.sys.next.programmer From: adelo@cimsi.cim.ch (Alberto DE-LORENZI) Subject: CNC & CAM with NEXTSTEP Message-ID: <D24x6K.LAx@eunet.ch> Sender: usenet@eunet.ch Organization: EUnet AG, Switzerland Date: Mon, 9 Jan 1995 10:59:06 GMT We are a research center based in Switzerland (CIMSI, CIM della Svizzera Italiana) and we are starting a new project under NEXTSTEP. Our goals are the following: - new flexible GUI for CNC machine; - an API to communicate with different CNC; - new simple programming concepts (CAM) for 2D, teaching and ev. 3D; We want to know: - there are other projects on this domain (CNC and CAM)? - there are CAM programs running under NEXTSTEP? Thanks in advance. Alberto De-Lorenzi ******************************************************* CIM della Svizzera Italiana Centro Galleria via Cantonale 6928 Manno Switzerland Tel +41 91 508106 Fax +41 91 508105 email: adelo@cimsi.cim.ch (NeXTMail welcome) *******************************************************
Newsgroups: comp.sys.next.programmer,comp.sys.next.bugs From: dave@prim.demon.co.uk (Dave Griffiths) Subject: WYSINWYG with postscript rectangles Message-ID: <1995Jan9.122151.1646@prim.demon.co.uk> Organization: Primitive Software Ltd. Date: Mon, 9 Jan 1995 12:21:51 GMT Is there a bug in the rendering of printed rectangles? I'm using rectstroke to draw rectangles with a line width of 1 pixel. They look fine under Preview, but when printed the left and top sides appear to be one pixel wide, while the right and bottom sides are twice as thick. I've tried it with setstrokeadjust both true and false. Interestingly, with setstrokeadjust false, the rectangles appear the same under Preview as they do when printed. This makes me think that maybe setstrokeadjust isn't working for printing. I'm using a NeXT laser printer. So am I doing something wrong, or is there a bug in setstrokeadjust for printers? Thanks, Dave
Newsgroups: comp.sys.next.programmer From: jocke@rat.se (Joakim Johansson) Subject: Re: Selecting NXBrowser entries programmatically Message-ID: <D250n9.C2F@rat.se> Sender: jocke@rat.se (Joakim Johansson) Organization: Research & Trade, AB. References: <ROBERT.95Jan5204918@steffi.dircon.co.uk> Date: Mon, 9 Jan 1995 12:16:09 GMT In article <ROBERT.95Jan5204918@steffi.dircon.co.uk> robert@steffi.dircon.co.uk (Robert Nicholson) writes: > <jocke@rat.se> writes: > [snip] >>I've used a combination of both of these approaches when creating a >>FileViewer UI clone, and it seems to work as you would expect. You have to >>do the selection in two steps: >>1) use setPath: to select one cell in the appropriate column >>2) use matrixInColumn: to get the matrix for the column, and >> select the individual cells with something like: >> Matrix *m; >> [browser setPath:token]; >> m=[browser matrixInColumn:[self lastSelectedColumn:browser]]; >> // for all appropriate cells do: >> [[m cellAt :j :0] set]; >When you have done this what does the matrix report as it's select >cell/s? When I've selected the cells with the approach above, [[browser matrixInColumn:col] getSelectedCells:selectedcells]; returns the correct cells as selected.. >I use the following to good effect. >[browserMatrix selectCellAt:selectedCellIndex :0]; >[browserMatrix scrollCellToVisible:selectedCellIndex :0]; >This is done _after_ I load the browser. Selecting cells whilst loading >proved fruitless. Did you do a setPath: before selecting cells with selectCellAt: ? -- Joakim Johansson | "The truth is the one thing that Software Developer @ Research & Trade | nobody will believe." jocke@rat.se <NeXTmail, MIME> | - George Bernard Shaw
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: 8-bit save revision control system Message-ID: <1995Jan9.144352.16185@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <9501071128.AA00370@hurka> Date: Mon, 9 Jan 1995 14:43:52 GMT In article <9501071128.AA00370@hurka> tom@hukatronic.cz (Tomas Hurka) writes: > Hi All, > I am looking for revision control system similar to RCS available in > normal NeXTSTEP distribution, which can handle 8-bit source files and RTF > files together with NIB files. I need it for managing my first bigger > NeXTSTEP project, which will have Czech texts and documentation. > > Does GNU project have replacement for RCS? > > Thank you in advance for your suggestions. > > Best regards, > --- > Tomas Hurka > tom@hukatronic.cz NeXTMAIL OK We use DevMan, a VNP Software program. We are very satisfied so far. It has a neat user interface as well as command line interface. Personally, I enjoy it. It is done the way good programs in /NextDeveloper/Demos are done. But the program's not free, unfortunately. - Dimiti Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: Problem of cyclic references with FoundationKit Message-ID: <1995Jan9.141906.15408@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <3eplhf$bac@darkstar.UCSC.EDU> Date: Mon, 9 Jan 1995 14:19:06 GMT In article <3eplhf$bac@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: > In article <9501081624.AA00706@flexus> Raf Schietekat > <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: > > Art Isbell writes: > > > Seems like a solution exists. And this seems like > > What solution? > > > Is this a problem that humans can't detect? I don't think so. If I > can detect a cycle, then an algorithm exists that could be used, right? > If you can detect a false note in a famous tune, does it mean an algorithm exists that could do the same. Sure, but how complicated would that algorithm be? Well there is a solution: 1. Keep the debugging information at run-time. It contains information about all the data structures, where the references are and what they reference to. 2. Enforce some restrictions to programming style. In one word the rule would be "No tricks with references". For example, we would prohibit programming like this: int conv (const char *str) { return (int) str; } In general, no reference conversions would be allowed. We would also have to prohibit unions with references of different types, as well as use of "void *". (Does it still sound like C programming?) 3. Use garbage collection, or reference counting backed up with garbage collection. The garbage collection procedure would rely on the assumption that only reference variables contain references and they contain references to objects of the declared type. We could make the *only* exception for variables declared as id in Objective C. Dimitri Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <paul@Praktos.be> From: Paul Janssens <paul@Praktos.be> Message-ID: <9501091103.AA00396@hercules.Praktos.be> Date: Mon, 9 Jan 95 12:00:57 +0100 Subject: rld over the wire? Cc: paul@hercules.Praktos.be For synchronisation reasons I'd like to dynamically load code over the wire, so client apps won't have to be recompiled if the implementations of the classes they share with the server are changed, but the server simply distributes the most recent bundle (or equivalent thereof) together, or rather before the encoded objects. (There's Client-Server for you!) Is this possible? Has anyone ever remotely :-) attempted this? Thanks in advance, Paul, still without mail signature, and able to take NextMail.
From: atownley@freddie.informix.com (Andrew S. Townley) Newsgroups: comp.sys.next.programmer Subject: Re: POSIX... & why no functional replacement for ar? Date: 9 Jan 1995 16:32:49 GMT Organization: Informix Software, Inc. Menlo Park, CA 94025 Distribution: world Message-ID: <3erofh$7h4@infmx.informix.com> References: <3egka3$1du@brachio.zrz.TU-Berlin.DE> Andreas Koenig writes > > In article <3ef5pm$fdm@master.cs.rose-hulman.edu>, > Claude W. Anderson <anderson@cs.rose-hulman.edu> wrote: > Nope! You *have* to use the -posix option, that's the only way to > get (sort-of) posix compliance. But after you've done that, you'll > have to guess what this sentence means (citing from the release > notes NS 3.2): > > >> Note that POSIX kernel interfaces are not supported for > >> NEXTSTEP applications. > I have discovered what this means in trying to work on regina and add support for dynamic library loading. What this means is that the library for importing Mach-O object files is only included in libsys_s.a. When you compile a poisix app, you link in libposix.a instead of libsys_s.a and the rld*() functions are conspicuously absent from libposix.a. If you want to do anything like this, you've got to 'roll your own' versions of these. I've added this to my list of things to do, but it was annoying to discover. > > --andreas, hoping that OpenStep will overcome NeXTstep Also, I was wondering why there is no replacement in functionality to ar under NEXTSTEP v3.2. If NeXT wants to do away with std tools like ar and ranlib, that's fine and their perogative I suppose, but I think that if a substitution is made, it should not detract from the functionality of the orignial program. Why isn't there anyway to extract an object file from a library with libtool? This seems to be a bad design decision on the part of NeXT, but then I'm not the ones making the decisions. regards, ast -- Andrew S. Townley _ _ ___\ 4121 W. 83rd Street, Suite 265 | \|_] | \/SYSTEMS Prairie Village, KS 66208 |_/| \ | /\International atownley@informix.com (NeXTmail welcome) \
Newsgroups: comp.sys.next.programmer From: tgugger@norden1.com (Tom Gugger) Subject: NEXTSTEP/CAREER POSITIONS Message-ID: <1995Jan9.170054.19066@norden1.com> Organization: Norden 1 Communications Date: Mon, 9 Jan 1995 17:00:54 GMT The EAGLE GROUP is currently representing seven companies that specialize in the NEXTSTEP platform. These are major companies with outstanding benefits, offering relocation assistance. All positions require real commercial NEXTSTEP experience. Most, but not all positions are located in the greater Chicago area. PLATFORM-------------------NEXTSTEP LANGUAGE-------------------OBJECTIVE C DESIRED--------------------DB KIT DESIRED--------------------SYBASE A PLUS---------------------EOF A PLUS---------------------FINANCIAL APPLICATION EXPERIENCE TO BE CONSIDERED------FAX OR MAIL A HARD COPY RESUME. ... * ATP/qwk 1.42 * That was then, this is now. -- tgugger@norden1.com (419) 882-7339 [fax] Eagle Group (419) 882-8006 [voice] PO Box 8167 Sylvania, Ohio 43560
From: Misha Neverov <misha@raptor.sccs.swarthmore.edu> Newsgroups: comp.sys.next.programmer Subject: [theMenu display]? Date: Mon, 9 Jan 1995 12:50:49 -0500 (EST) Organization: Swarthmore College, Swarthmore, PA, USA Message-ID: <Pine.ULT.3.90.950108162701.26614B-100000@raptor.sccs.swarthmore.edu> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I can't get a menu to show up on the screen when I want it to. In the static part of my program I load a bundle which creates an instance of a new menu. When I try to pop up the new menu [NXApp setMainMenu: theMenu]; [theMenu moveTopLeftTo: 0.0: 300.0]; [theMenu display]; it doesn't show up until I do one of two things: 1. Hit and release the right mouse button (the one that brings up a menu under the cursor) 2. Switch to another program and than switch back. There must be a way to make the menu show instantly, but what is it? I also tried: [NXApp runModalFor: theMenu]; This works instanly, except for one glitch: the menu appears right in the middle of the screen (as if it is NXAlertPanel), which is not acceptable in my program. Any help/input would be appreciated. Cheers, Misha ------------------------------------------ Misha Neverov '97 E-mail: misha@raptor.swarthmore.edu NeXT-mail: misha@madhatter.swarthmore.edu
From: atownley@freddie.informix.com (Andrew S. Townley) Newsgroups: comp.sys.next.programmer,comp.sys.next.advocacy Subject: Shipping broken libg++ -- why? Date: 9 Jan 1995 16:57:40 GMT Organization: Informix Software, Inc. Menlo Park, CA 94025 Distribution: WORLD Message-ID: <3erpu4$ags@infmx.informix.com> Keywords: gcc, cc++, C++, libg++ In working with a development project which I had originally written using gcc-2.5* and libg++-* on the NeXT under 3.2 Developer, I discovered a couple of disturbing things. The first of which is mentioned in the release notes for 3.2. As an aside, please forgive me for not noticing this before, but upgraded my cube from 3.1 -> 3.3 and then installed 3.2 developer because I couldn't take the machine down long enough (IMO) to install 3.2 at the time it arrived. Anyway, back to business. When NeXT decided to ship libg++ with the developer package, I thought this was a good thing. I began to wonder when I read the line which said that NeXT-C++ didn't support templates. Regardless that I consider this to be sort of out-of date for a compiler shipping with any modern OS not to support templates a bit weird, I said OK and went on. Over the weekend, I began work to back-port an application and library I had originally started writing with gcc-2.3, moved to gcc-2.5* and targeted this for (ugh!) MS-DOS. I did this because I dislike DOS intensely, but I had no choice. Anyway, I wanted to bring the app back 'home' to NEXTSTEP and implement it as a native, IB-based app. Since it was written in C++, I knew I needed to use the native cc++ to get my C++ code to talk to the interface written in Objective-C. So, I bought the code back, fixed the makefile, and typed make for the library, at which point all hell broke loose. The version of libg++ shipped with 3.2 uses templates to implement various parts of the 'standard' bits--specifically iomanip.h. My library's debugging routines used iomanip to format the information, so the compiler puked on the template syntax of iomanip.h. I am truly interested in any intelligent reason why NeXT would ship something like this. To me, to say "We've included libg++" means that you can at least compile a simple program using pretty basic C++ things like iomanip without having the compiler blow chunks. The second issue (geez, this is getting a lot longer than I thought... maybe I should cross-post this to advocacy) concerns something I briefly mentioned in an earlier post regarding the venerable ar program. After I #ifdef'd out all of the iostream functionality, my objects built and I was feeling like maybe things weren't so bad after all. When my makefile issued the ar command to produce my library, ar complained that my object files weren't in Mach-O format. This confused me greatly, but remembering something that I had run into with my work trying to port regina-0.07a to NEXTSTEP, I used libtool. Libtool created the library without a burp, but I didn't remember reading anything in the release notes which said: "AR will only work with vanilla C object files." Information like this would've been useful. I really enjoy NEXTSTEP in everyday use, have a NeXT machine at home running 3.3, a PC running 3.3 and am using a NeXT machine at work to write this mail. I have had my confidence in my personal opinion of the 'greatness' of NEXTSTEP shaken just a little by a full weekend of NEXTSTEP development work. I also find the practice of replacing a tool and not replacing the full functionality as well a little disheartening. I really would not like to wake up one day and discover I was wrong and the only thing my experience with NEXTSTEP has been good for was to provide me a terminal to run Plan 9. Let's hope that as NeXT continues to work on the software, they don't forget one of the original advantages of the software--Mach and the UNIX support. Hopefully, as NeXT makes improvements to NEXTSTEP, the improvements aren't limited to the interface and object-layer. NEXTSTEP's UNIX support is WAY behind the current releases of both commercial and free competetors. BSD4.4 is shipping, SYS5R4 has been shipping in some form for quite a while, so I don't think it would be too much to ask that NeXT at least make an attempt to embrace the newer versions of things on the UNIX side. regards and sorry this turned out to be so long, ast -- Andrew S. Townley _ _ ___\ 4121 W. 83rd Street, Suite 265 | \|_] | \/SYSTEMS Prairie Village, KS 66208 |_/| \ | /\International atownley@informix.com (NeXTmail welcome) \
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Problem of cyclic references with FoundationKit Date: 9 Jan 1995 18:43:19 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3es047$oa5@darkstar.UCSC.EDU> References: <1995Jan9.141906.15408@almserv.uucp> In article <1995Jan9.141906.15408@almserv.uucp> e3udzp@peterpan (Dimitri Plotnikov) writes: > In article <3eplhf$bac@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) > writes: > > Is this a problem that humans can't detect? I don't think so. If I > > can detect a cycle, then an algorithm exists that could be used, right? > > > If you can detect a false note in a famous tune, does it mean an algorithm > exists that could do the same. Sure, but how complicated would that > algorithm be? > This is what we pay NeXT to do when we buy NEXTSTEP. Computers are much better than humans at executing complicated algorithms. Of course, humans have to program a *correct* algorithm :-) > Well there is a solution: > 1. Keep the debugging information at run-time. It contains information > about all the data structures, where the references are and what they > reference to. > I'm not sure that this requires maintaining debugging info at run-time. According to Bertrand Serlet, chief Foundation Kit honcho (I never get his position correct - sorry :-), NS, (probably NSAutoreleasePool) maintains some sort of table of object references. And NSAutoreleasePool maintains a reference to all objects in the pool, so unlike some reference-counting implementations, references to objects that are involved only in cyclic references with other objects aren't necessarily lost. How about some stupid algorithm that says that any object that hasn't received a release, retain, or autorelease message since the last event must be involved in a cyclic reference if it's still in the autorelease pool, so release it? Sure, objects like this would hang around for an extra event cycle, but that's not too bad. I just came up with this as I'm typing, so it's probably totally bogus :-) > 2. Enforce some restrictions to programming style. In one word the rule > would be "No tricks with references". For example, we would prohibit > programming like this: > > int conv (const char *str) > { > return (int) str; > } > > In general, no reference conversions would be allowed. We would also have > to prohibit unions with references of different types, as well as use of > "void *". (Does it still sound like C programming?) > We're talking only about the reference counting of objects, not other types of allocated data. C strings won't be so common in Foundation Kit programming. > 3. Use garbage collection, or reference counting backed up with garbage > collection. The garbage collection procedure would rely on the assumption > that only reference variables contain references and they contain > references to objects of the declared type. We could make the *only* > exception for variables declared as id in Objective C. > Reference counting backed up with some sort of garbage collection seems like the way to go. The garbage collection would be much simpler than general garbage collection because the entire memory space wouldn't need to be searched; only the addresses of objects in the autorelease pool. I'd better get out of this before I make a total fool of myself :-) --- Art Isbell Cubic Solutions NeXT Registered Consultant NEXTSTEP software development/consulting NeXTmail: art@cubicsol.com Voice: +1 408 335 1154 USmail: 95018-9442 Fax: +1 408 335 2515
From: tom@hukatronic.cz (Tomas Hurka) Newsgroups: comp.sys.next.programmer Subject: Re: 8-bit save revision control system Date: 9 Jan 1995 13:35:02 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9501091824.AA01690@hurka> Hi All, I would like to thank to all those that replied to my query about the revision control system. --- Tomas Hurka tom@hukatronic.cz NeXTMAIL OK
From: bill@otherwise.com Newsgroups: comp.sys.next.programmer Subject: Re: [theMenu display]? Date: Mon, 9 Jan 1995 19:59:03 GMT Organization: Otherwise Message-ID: <950109135903.1849AADPK.bill@other> References: <Pine.ULT.3.90.950108162701.26614B-100000@raptor.sccs.swarthmore.edu> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII Try doing a [theMenu orderFront:nil] after the display. Nothing you have done has actually brought it onto the screen. --- Bill Tschumy Otherwise bill@otherwise.com (NeXTmail and MIME accepted) >Date: Mon, 9 Jan 1995 12:50:49 -0500 (EST) >From: Misha Neverov >Subject: [theMenu display]? > >I can't get a menu to show up on the screen when I want it to. In the >static part of my program I load a bundle which creates an instance >of a new menu. When I try to pop up the new menu > [NXApp setMainMenu: theMenu]; > [theMenu moveTopLeftTo: 0.0: 300.0]; > [theMenu display]; >it doesn't show up until I do one of two things: >1. Hit and release the right mouse button (the one that brings up a menu >under the cursor) >2. Switch to another program and than switch back. >There must be a way to make the menu show instantly, but what is it? >I also tried: > [NXApp runModalFor: theMenu]; >This works instanly, except for one glitch: the menu appears right in the >middle of the screen (as if it is NXAlertPanel), which is not acceptable >in my program. >Any help/input would be appreciated. >Cheers, >Misha > ------------------------------------------ >Misha Neverov '97 >E-mail: misha@raptor.swarthmore.edu >NeXT-mail: misha@madhatter.swarthmore.edu > >
From: nicholr@heaphy.gb.swissbank.com (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Can't load nib Date: 05 Jan 1995 11:40:29 GMT Organization: me organized? That's a joke! Message-ID: <NICHOLR.95Jan5114029@heaphy.gb.swissbank.com> References: <3e36bi$45r@core.symnet.net> <3e44ba$gg@rosie.next.com> To: Bryce_Jasmer@NeXT.COM (Bryce Jasmer) In-reply-to: Bryce_Jasmer@NeXT.COM's message of 31 Dec 1994 17:28:10 GMT <Bryce_Jasmer@NeXT.COM> writes: >In article <3e36bi$45r@core.symnet.net> dekorte@symnet.net (Steve Dekorte) >writes: >>I'm getting an IB can't load .nib error on more than one of >>my nib files when I try to use them. >Are you using objects in that nib file that are coming from some palette >other than the standard four (either an EOF palette, DBKit palette, or your >own custom palette)? If so, you will want to make sure that you have loaded >the palette before you try to open your nib file. >I believe the new IB (first appearing in the EOF release) will give you a >better warning message. >Bryce To give a better description as to why things are loading properly. Try opening the data.nib file in IB. ie. nibname.nib/data.nib
Newsgroups: comp.sys.next.programmer,comp.sys.next.bugs From: byer@mv.us.adobe.com (Scott Byer) Subject: Re: WYSINWYG with postscript rectangles In-Reply-To: dave@prim.demon.co.uk's message of Mon, 9 Jan 1995 12:21:51 GMT Message-ID: <BYER.95Jan9110839@ductwork.mv.us.adobe.com> Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Incorporated, Mountain View, CA References: <1995Jan9.122151.1646@prim.demon.co.uk> Date: Mon, 9 Jan 1995 19:08:39 GMT Dave Griffiths writes: Dave> Is there a bug in the rendering of printed rectangles? I'm using Dave> rectstroke to draw rectangles with a line width of 1 pixel. They look Dave> fine under Preview, but when printed the left and top sides appear to Dave> be one pixel wide, while the right and bottom sides are twice as Dave> thick. I've tried it with setstrokeadjust both true and Dave> false. Interestingly, with setstrokeadjust false, the rectangles Dave> appear the same under Preview as they do when printed. This makes me Dave> think that maybe setstrokeadjust isn't working for printing. I'm using Dave> a NeXT laser printer. Dave> So am I doing something wrong, or is there a bug in setstrokeadjust Dave> for printers? Are you printing through the NeXT print package? Check to make sure they aren't forcing setstrokeadjust to false somewhere. Are you forcing setestrokeadjust to true immediately before you draw the rectangle? Check the postscript to make sure that the printing package isn't emulating rectstroke with something that might cause the problem. I don't have a NeXT printer to try, but all the other Level 2 printers around me don't have a problem with setstrokeadjust. (Without stroke adjust on, the results for thin lines will vary due to the overscanning rasterization rules.) -- Scott Byer NeXTMail: byer@mv.us.adobe.com Adobe Systems Incorporated These are *my* opinions, and 1585 Charleston Road, P.O. Box 7900 do not necessarily reflect Mountain View, CA 94039-7900 the opinions of my employer. === ===
From: bcullign@panix.com (Brendan Culligan) Newsgroups: comp.sys.next.programmer Subject: DPSAddFd & selecting for writes Date: 9 Jan 1995 20:36:45 -0500 Organization: PANIX Public Access Internet and Unix, NYC Message-ID: <3esobd$a8j@panix.com> Is there any way to register with the AppKit to receive notification when a file descriptor is ready for writing? I am using non-blocking writes and want to awaken when the output buffer on a FD has drained. DPSAddFD presumably just selects on reads not writes so does not provide the functionality that I want. Any ideas? Cheers, -- Brendan Culligan Voice: (212) 858-5610 NationsBanc Capital Markets, Inc. Fax: (212) 858-5741 7 Hanover Square E-mail: brendanc@crt.com 15th Floor (NeXT-Mail OK) New York, NY 10004
From: pascal@wsc.com () Newsgroups: comp.sys.next.programmer Subject: Re: Can't load nib Date: 10 Jan 1995 01:43:49 GMT Organization: WSC Investment Services, Inc. Message-ID: <3esool$cir@cerberus.wsc.com> References: <1995Jan6.024752.21464@il.us.swissbank.com> Keywords: InterfaceBuilder, nib > I'm getting an IB can't load .nib error on more than one of > my nib files when I try to use them. > Does anyone know what could cause this? It is possible that your nib file contains at least one object that comes from a palette which is not currently loaded in Interface Builder, in which case IB is unable to unarchive the objects contained in the nid file. I personnaly use the following little trick when I want to lock unauthorized people to open up my nib files: I simply add in the nib file an object, for example a transparent button, that has been placed in a Palette by itself. I know that nobody else than me has access to this palette, so if other people try to open up the nib file, IB won't be able to unarchive this object, because it has no idea of what is is. So my advice to you is: Load all palettes that your nib file is susceptible to contain, such as the DBKit palette, the EOF palette, etc. Then quit IB, launch it again, and try to open up your nib file. Finally, a last word of advice: If you have a homemade palette that supports versioning, make sure that the palette can unarchive all the versions of itself. I hope this helps! - Pascal Pascal Forget, Analyst Wall Street Concepts Investment Services (212) 797-1887 pascal@wsc.com
From: Misha Neverov <misha@raptor.sccs.swarthmore.edu> Newsgroups: comp.sys.next.programmer Subject: NeXT Summer Jobs? Date: Mon, 9 Jan 1995 22:03:30 -0500 (EST) Organization: Swarthmore College, Swarthmore, PA, USA Message-ID: <Pine.ULT.3.90.950109220021.14544A-100000@raptor.sccs.swarthmore.edu> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi everybody! :) I am looking for a NeXT-related summer job. I am still young (18) and haven't decided on what area of electrical/computer/software engineering I want to focus; I am interested in anything relating to computers and electrical engineering. I hope to find a job that would expand my knowledge of NeXTStep and Ojective C and/or give me a different set of skills. _All_ comments and advice on where to look/apply for jobs will be _very_ appriciated. *****************ABOUT MYSELF************************** I am currently a sophomore at Swarthmore College, majoring in Electrical Engineering. Last summer I developed a NeXTStep application for research in computer-human interface and became proficient in Objective C programming. My ability to learn and adapt to new situations gives me confidence to face and complete the most demanding tasks. *****************RESUME************************** Misha Neverov Phone: (610) 690-5285 Email: misha@sccs.swarthmore.edu Current address: 500 College Avenue Swarthmore, PA 19081 Permanent address: Krasnaia Gvardiia, Apt. 5 Odessa, Ukraine 270100 *Education Swarthmore College, Swarthmore, PA. Candidate for Bachelor of Science in Electrical Engineering in June 1997. South Saint Paul High School, So. St. Paul, MN. Graduated with honors and 4.0 GPA. (1992) Odessa High School #9, Odessa, Ukraine. Graduated with "Silver Medal Award." (1982-1992) *Experience Consultant, Computer Center, Swarthmore College, Swarthmore, PA. Assist students with use of software, resolve common hardware and software problems in college computing facilities and in dorms. (Fall 1994 - present). Computer Programmer, Engineering Department, Swarthmore College, PA. Created NeXT-based software for research experiments in computer-human interface. Coordinated the assembly of the NeXT application from modules produced by colleagues through ongoing communication with co-workers. (Summer 1994) Teacher of Russian, Concordia Language Villages, Detroit Lakes, MN. Created curriculum, organized and taught a class of 10-15 year-olds. Coordinated sports activities, including soccer and volleyball. (Summer 1993) Intern, Mutual Fund Services Department, Norwest Corporation, Minneapolis, MN. Performed general office work, including data entry and word processing. Gained knowledge of mutual funds and securities market. (May 1993) *Skills Personal skills: Good organization, communication, and leadership skills. Computer skills: Proficient in C, objective-C, Pascal, and Basic. Learning C++ and (Z80) Assembly. Know UNIX, MS-DOS, and Apple-Macintosh operating systems. Learning UNIX system administration. Extensive experience with word processors, data-bases, spreadsheets, including WordPerfect, Microsoft Works, Excel and others. Language skills: Fluent in Russian and Ukrainian languages. *Interests Acting, Karate, Weightlifting, Running, Soccer, Volleyball. References are available upon request.
Newsgroups: comp.sys.next.programmer From: tomi@shinto.nbg.sub.org (Thomas Engel) Subject: EOmodels reparsing in IB ??? Message-ID: <D26Lqn.6I@shinto.nbg.sub.org> Keywords: EOF1.0, IB, Changing Sender: tomi@shinto.nbg.sub.org (Thomas Engel) Organization: STEPeople's home. (A NUGI member) Date: Tue, 10 Jan 1995 08:47:10 GMT Hi all! Well playing around with the FlatFileSource example I came across some problems that I can't tell how to solve: 1. What is the "forgery" one has to do to prevent a new eomoedel (notthe example) form loading the oracle adapter...I don't want any adaptor. 2. Once I have dragged a model into IB it will be "cached" inside the NIB. So making changes inside the eomodel (adding entries etc.) won't show up inside the NIB. No matter how often I try it ?? Any help out there...I don't want to get frustrate on my first day of EOFing. Aloha Tomi -- _________________________________________________________ (tomi@shinto.nbg.sub.org) Thomas Engel Neptunstr. 9 NeXTMail welcome D - 90522 Oberasbach Germany
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <paul@Praktos.be> From: Paul Janssens <paul@Praktos.be> Message-ID: <9501101332.AA00398@hercules.Praktos.be> Date: Tue, 10 Jan 95 14:29:54 +0100 Subject: cycles again... So I have an object a with an instance variable b, also an object, and, oddly enough, this object b has the object a as instance variable. Now I can't bother myself with such boring and trivial tasks like, for instance, memory deallocation. So I tell the deallocator: a needs b, so don't free b before a has been freed. contrarywise, b needs a, so don't free a before b. And now the deallocator won't free either of them. How bizarre! Q: Is there something wrong with my deallocator, or with my perception of reality? Paul (getting on his flak-suit)
From: trefalt@swissbank.com (Chris Trefalt) Newsgroups: comp.sys.next.programmer Subject: My wish for 95: alt-delete deletes caracter right of the cursor Date: 10 Jan 1995 13:36:25 GMT Organization: Swiss Bank Corporation, Swiss Bank Center, Zurich Airport Message-ID: <3eu2gp$5u8@op1d56ifs.il.us.swissbank.com> Hi all, I'd like to find a utility that would add to the functionnality of the delete key so that I could delete to the right of the cursor instead of to to the left. Wordperect does this with alt-delete and I've grown used to it. Is there a way to do this as a general thing that works with all applications whenever I log on under my account? I don't program on the Next, but I imagine the following. When the keyboard gets the alternate-delete key combination, it goes to the special program that forces back two keys to the keyboard input queue in the place where the alternate-delete key combination was pressed: a {go forward one caracter} and a {delete}. Is there such a utility already? Is this something that could be programmed to run without a window? started from the shell? Would someone program it for me? ;) Chris chris_trefalt@swissbank.com There are no opinions in this post...
From: scottie@MCS.COM (Eric Scott) Newsgroups: comp.sys.next.programmer Subject: Re: POSIX and NeXT programming Date: 10 Jan 1995 12:45:44 -0600 Organization: MCSNet Subscriber Account, Chicago's First Public-Access Internet! Distribution: world Message-ID: <3eukko$7b6@Mars.mcs.com> References: <3ef5pm$fdm@master.cs.rose-hulman.edu> <3egka3$1du@brachio.zrz.TU-Berlin.DE> In article <3ef5pm$fdm@master.cs.rose-hulman.edu>, Claude W. Anderson <anderson@cs.rose-hulman.edu> wrote: >I have written some NeXT apps, but none of them have really involved >"systems programming"; In fact I haven't done much Unix-based systems >programming at all. As I get into doing this, I would like to make my code >POSIX-compliant. > >Looking at the NeXT header files, I see prototypes for POSIX stuff all over. >But that's all I can find. None of the NeXT documentation on-line talks >about how to _use_ it. I tried searching for POSIX using Digital Librarian >and came up with zilch, except in the header files. > > >From reading the header files, I deduced (hopefully correctly) that I should >compile with the -D_POSIX_SOURCE option. If you use POSIX at all on the NeXT, there's a nasty bug you should know about. There is a fundamental bug in the way IO buffering is handled on the NeXT when using POSIX. Essentially, if you append to a file with a posix application, null bytes will be written to the file instead of the correct data. To reproduce the bug, just create a posix hello-world program and append it's output to an existing file. The file's size will be right, but it's contents will be null bytes. This has been a bug since 3.1 on all platforms. It isn't fixed in 3.2 and (I'm told) isn't fixed in 3.3 either. -- Eric D. Scott
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Tue, 10 Jan 95 18:06:48 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501101706.AA01121@flexus> Subject: Re: Problem of cyclic references with FoundationKit Art Isbell writes: > Is this a problem that humans can't detect? I don't > think so. If I can detect a cycle, then an algorithm > exists that could be used, right? I don't think it will be trivial to select and implement an efficient one. > Did you notice the problem in an application where objects > involved in cyclic references weren't freed or were you > merely aware of the potential problems with reference > counting and cycles? I have not used the FoundationKit yet. > Well, on page 85 of the new _Working With Interface > Builder_ manual, NeXT warns that programmers must deal > with cycles themselves when using the current Application > class with NSObject subclasses, so *someone* at NeXT was > at least aware of the problem. I have no idea whether Ah, that's an interesting distinction. But remember that any automated backup has to be a full-fledged object management system all by itself, so I don't think it is likely that the problem is indeed solved. Anyway, obviously someone is bound to see this sooner or later. But why isn't this mentioned where retain/(auto)release is explained? I'm curious to learn what NeXT has to say about this. Hello? > the problem was dealt with in EOApplication or whether > it will be dealt with in OpenStep's Application. Well, why don't you try it? Put a diagnostic message in -dealloc, create an isolated reference cycle, and wait for that message (don't hold your breath). > Are you saying that the reference-counting approach, > NeXT's or anyone's, is fatally-flawed and will always > lead to memory leaks when cycles are involved? Or is Yes, it's not an ``effective'' memory management system (in my reference, last word before the section I specified) without backup in the form of constraints or another system. > there a reasonable solution that NeXT hasn't implemented > that we might be able to implement as a workaround for > the problem? A solution that works behind the scenes to let you use retain/(auto)release as naively as described in the docs, and is efficient as well? That's a tall order! A more visible workaround? Maybe Ken Anderson would describe his approach in somewhat more detail... I think one will have to forget NeXT's rosy promise, and bring the concept of ownership back into the picture. Nothing bad about it, anyway, because it is used in archiving as well. And it is essential if immediate deallocation is required, e.g., to close a FILE. If your ownership scheme has no bugs in it (yes, requires using the ol' brain), it will be acyclic, and reference counting will be effective. -retain is then a claim of (possibly shared) ownership. Then some ad-hoc care that no stale non-ownership reference is ever used... It would be useful to generalise NXInvalidationNotification to every NSObject subclass, but this may be expensive unless you (are NeXT and) can redefine the (assumed) retain count instance variable. Also, why not replace -retain with -retainFor:newCoOwner, and similarly releaseFor:aCoOwner, which could be used in a debugging phase to have an explicit reference graph to trace, but might very well just do reference counting in a production version, unless if it's the basis of an effective object management system? Just a few ideas, still needing quite some work (especially to operate, and efficiently so, in a distributed system)... I hope NeXT will outclass them yet. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium Addressing limitations: no !, % or .uucp, I think ``It just works.'' --- Steve Jobs
From: ACI_INC@news.delphi.com (ACI_INC@DELPHI.COM) Newsgroups: comp.sys.next.programmer Subject: Re: cycles again... Date: 10 Jan 1995 15:05:32 -0500 Organization: Delphi Internet Services Corporation Message-ID: <3eupac$kl5@news2.delphi.com> References: <9501101332.AA00398@hercules.Praktos.be> Paul Janssens <paul@Praktos.be> writes: >Q: Is there something wrong with my deallocator, or with my >perception of reality? Nop, but probably with your design! With more than 5 years of OOP I never ran into such a problem. Karlheinz >Paul (getting on his flak-suit)
Newsgroups: comp.sys.next.programmer From: tomi@shinto.nbg.sub.org (Thomas Engel) Subject: Re: Problem of cyclic references with FoundationKit Message-ID: <D27tBJ.GK@shinto.nbg.sub.org> Sender: tomi@shinto.nbg.sub.org (Thomas Engel) Organization: STEPeople's home. (A NUGI member) References: <3es047$oa5@darkstar.UCSC.EDU> Date: Wed, 11 Jan 1995 00:28:30 GMT In article <3es047$oa5@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: > I'm not sure that this requires maintaining debugging info at > run-time. According to Bertrand Serlet, chief Foundation Kit honcho (I > never get his position correct - sorry :-), NS, (probably > NSAutoreleasePool) maintains some sort of table of object references. And > NSAutoreleasePool maintains a reference to all objects in the pool, so > unlike some reference-counting implementations, references to objects that > are involved only in cyclic references with other objects aren't > necessarily lost. > How about some stupid algorithm that says that any object that hasn't > received a release, retain, or autorelease message since the last event > must be involved in a cyclic reference if it's still in the autorelease > pool, so release it? Sure, objects like this would hang around for an > extra event cycle, but that's not too bad. I just came up with this as > I'm typing, so it's probably totally bogus :-) >.. Hmm. Well lets think of the AutoreleasePool as a simple List. That List only know about object that add themself to it. Object add themself to the list when they receive an autorelease messaga _AND_ their counter has turned to ref.zero This won't ever happen in cyclic-references. Otherwise we would have to think of the autoreleasepoolas a list of _all_ our objects. I don't think this would be a good one. There is no other way in removing cyclic references then to check the object dependency graph for lost islands. But without all those refernces the autorelease pool is not able to do that ! I haven't programmed with the foundationKit...but from the API I can imagine it working any different. Autoreleaseing stuff _IS_ a good way to handle the nasty PDO bugs where other clients did free you objects. Most of the peopel ended up with writing their own refernce counting. I'd love to hear you telling me I'm wrong. Aloha Tomi -- _________________________________________________________ (tomi@shinto.nbg.sub.org) Thomas Engel Neptunstr. 9 NeXTMail welcome D - 90522 Oberasbach Germany
From: chuston@dudley.com (Chris Huston) Newsgroups: comp.sys.next.programmer Subject: Lex/Yacc/AppKit Date: 10 Jan 1995 23:13:56 GMT Organization: Colorado Supernet Distribution: usa Message-ID: <3ev4bk$4in@news-2.csn.net> Has anyone gotten these to work together? I wrote a lexer/parser pair and tested them outside of any ObjC/Appkit references - now I'm trying to get the parser to manipulate ObjC objects - some of them are views. First I got 5 pages of warnings/error from the preproccessor about redefined macros et al - changing the #import's from <appkit/appkit.h> to more specific classes seems to have remideed that - Now I've got undefined symbol woes: ld: Undefined symbols: _yylval objc_class_name_AView objc_class_name_BView Any sage advice? Thanks! - Chris
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: Problem of cyclic references with FoundationKit Date: 11 Jan 1995 01:45:05 GMT Organization: School of Computer Science, McGill Univ. Distribution: world Message-ID: <SAMURAI.95Jan10204505@marge.cs.mcgill.ca> References: <9501081624.AA00706@flexus> <3eplhf$bac@darkstar.UCSC.EDU> In-reply-to: art@cubicsol.com's message of 8 Jan 1995 21:30:23 GMT > Is this a problem that humans can't detect? I don't think so. If I > can detect a cycle, then an algorithm exists that could be used, right? I can ride a bicycle, so... must mean my computer can too ;-). - darcy (Ugh. Forgot, you have to upgrade the BIOS if you want it to do that.) -- (prog (senseFood (prog (prog (senseFood move eat) eat (senseFood move eat)) rotRight eat) (prog move (prog (prog eat (senseFood move rotRight) eat) loop) rotRight)) (prog (senseFood (senseFood (prog (prog (senseFood move move) eat (senseFood move eat)) rotRight eat) (senseFood (prog (prog (senseFood move
From: tiggr@cobra.es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Problem of cyclic references with FoundationKit Date: 11 Jan 1995 10:56:19 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Jan11115619@cobra.es.ele.tue.nl> In-reply-to: tomi@shinto.nbg.sub.org's message of Wed, 11 Jan 1995 00:28:30 GMT From recent articles in comp.sys.next.programmer, it appears that a lot of people do not really grasp what the actual functionality of an autorelease pool is. An autorelease pool conceptually is nothing more than a special kind of array. It is special in that it hasn't retained the objects it contains. One can add an object to the current autorelease pool by telling the object to `-autorelease'. The top level of a program, which usually is an NSRunLoop running in the default mode, has the following kind of code in it: for (;;) // loop forever { NSAutoreleasePool p = [[NSAutoreleasePool alloc] init]; // wait for an event and dispatch it. ... [p release]; } At the moment the autorelease pool is released, it will release all objects it contains. So, telling an object to autorelease is a way to release the object at some time in the near future (in the above example, the near future is, for instance, when the current pdo-invoked method returns). This concept is useful in several cases, for instance: temporary objects, like strings, which are easily created invoking one of the object-creating class methods, which all return autoreleased objects. There is no need to think about these temporaries or to remember to release them. All you need to do is a retain if you want the object to stick around. in methods which invoke another method M with an object A as an argument, where after the invocation of M nothing much more is done other than releasing A, but M can raise an exception and you still want A to be released but you do not want to go through the trouble of catching and reraising the exception. Maybe this explanation clarifies things a little. --Tiggr -- --Tiggr
Newsgroups: comp.sys.next.programmer From: vrotney@netcom.com (William Paul Vrotney) Subject: Open application from Terminal to foreground Message-ID: <vrotneyD28Iux.8oy@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 11 Jan 1995 09:40:09 GMT When I type open <application> from a Terminal application window the <application> opens behind the Terminal application window. What's the trick to get <application>'s window to open in the foreground? I'm running NS 3.2 NeXTstation. Does the man page for "open" lie? It says DESCRIPTION The open command opens a file (or a directory), just as if you had double-clicked the file's icon. -- William P. Vrotney - vrotney@netcom.com
From: vchi@visgen.com (Vrijmoed Chi) Newsgroups: comp.sys.next.programmer Subject: test Date: 11 Jan 1995 14:47:06 GMT Organization: The Eye Research Institute of Canada Message-ID: <3f0r1a$1nd@sator.eric.on.ca> test
From: tiggr@cobra.es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Problem of cyclic references with FoundationKit Date: 11 Jan 1995 10:38:59 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Jan11113859@cobra.es.ele.tue.nl> References: <9501101706.AA01121@flexus> In-reply-to: Raf Schietekat's message of Tue, 10 Jan 95 18:06:48 +0100 In article <9501101706.AA01121@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: I think one will have to forget NeXT's rosy promise, and bring the concept of ownership back into the picture. Given refcounting as in foundation kit, ownership is a way to think about your objects (and it does not need help from NeXT). What does ownership mean? It means that the owner can tell the object being owned that its life cycle has ended and that it should cleanup. The object goes about releasing all its instance variables and sits around waiting for the final release which will cause its deallocation. Because the object releases all things it has retained, it is guaranteed that the object will not end up being part of an unreferenced cycle. The only thing needed for this paradigm is that the owner does a `-cleanup' before the `-release'. (There are a few other quircks, which I won't mention here.) Put differently: ownership introduces a meta level of deallocation, where the meta level deallocation must have been performed before the non-meta level. The meta level deallocation removes the object's functionality (how much can you do when you've got nothing to remember?) and the non-meta level removes the object's storage. --Tiggr -- --Tiggr
Newsgroups: comp.sys.next.programmer From: dbhinz@znih.rmnug.org (David Hinz) Subject: Closing and freeing NIB file? Message-ID: <1995Jan10.180912.2061@nugget.rmNUG.ORG> Sender: dbhinz@nugget.rmNUG.ORG Organization: Rocky Mountain NeXT Users' Group Date: Tue, 10 Jan 1995 18:09:12 GMT What is the best way to implement loading and unloading of a Info.nib file each time it is selected from the menu. There are many examples of loading a nib files, but I want my Info.nib file to be unloaded when it is closed. I have tried to use the windowWillClose: delegate and [NXApp delayedFree:xxx] method but the infoPanel id variable never gets set back to nil. I have also tried setting the "Free when Closed" option in Interface Builder. Any suggestions on how to do this? Thanks, dave. -- {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} { } { David Hinz } { Hz Computing Technologies } { dbhinz@znih.rmnug.org } { } {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} -- {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} { } { David Hinz } { Hz Computing Technologies }
Newsgroups: comp.sys.next.programmer From: "benjamin bernhard" <bbernhar@cs.indiana.edu> Subject: .eomodel ->code Message-ID: <1995Jan11.164434.24965@news.cs.indiana.edu> Organization: Computer Science, Indiana University Date: Wed, 11 Jan 1995 16:44:29 -0500 Hi all, Has anybody written a code generator that will read .eomodel files and spit out code that will create an equivelent model? If anybody has such a tool, I'd sure like to use it. Thanks, Ben -- __________________________________________________________________________ Ben Bernhard "Nothing that results from human progress 812/339-5304 (fax) is achieved with unanimous consent." bbernhar@cs.indiana.edu ---Christopher Columbus
From: bbs.america@loa.com (BBS AMERICA) Newsgroups: comp.sys.next.programmer Subject: Run a BBS? Want full Internet for $24.95/mo? Message-ID: <8A1646B.0612000069.uuout@loa.com> Date: Wed, 11 Jan 95 18:51:00 -0400 Distribution: world Organization: Log On America, Inc. Hello there! Right about now you're probably wondering just what it is you've gone and downloaded. Well, first off, I'll be honest with you... if you're not a SysOp, it's more than likely just something to upload to various BBSes for the credit. But, if you're a SysOp then you have heard all the rage about the Internet that's come up recently. I'll bet you even considered looking into getting full access Internet for your own system! Well, more than likely you eventually realized that full access Internet was way too expensive for your BBS to support.... Until now. Log On America is now offering full access internet for any BBS in the nation for the amazingly low price of $24.95 per month. That's right, this is no joke... All you need is a BBS and at least 2 modems... It's simple, you merely set up the transport door (included as CST54.ZIP) to run from your BBS software. Once you contact us, we will give you the LOCAL phone number that you will need and set up your account. Here's how it works. Your users call your BBS as normal, when they run the Cyberspace Transporter door, it will have your user wait while it dials Log On America. Your user will then get full access to Telnet, FTP, Finger, Whois, World Wide Web. Using the Telnet client, your users can access IRC, MUDs, schools, libraries, and more! With FTP, millions of files from all over the world become available! Easy-to-use hypertext interfaces make surfing the Internet simple with Gopher and the World Wide Web! You can find out information about both people and systems with the Finger and Whois clients! For as much time as you care to allow them... Then, when the user types EXIT, the software will drop carrier and return control to your BBS -- without the user EVER SEEING Log On America. It's that easy! For more information or to sign up, you can contact us by any of the following: Phone: (401)453-6100 M-F 9a-5p EST Fax: (401)459-6222 BBS: (401)459-6200 E-Mail: david.paolo@loa.com Mail: Log On America, Inc. 3 Regency Plaza Providence, RI 02903 ATTN: Internet BBS -------------------------------------------------------------------------- This article was an automated post. Any posting in unrelated newsgroups is an error, please disregard this article if it is off-topic.
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Thu, 12 Jan 95 05:18:13 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501120418.AA00318@flexus> Subject: Re: cycles again... Paul, John and Peter wanted to cross an ravine. John had a wonderful idea: he would cling to Peter, and Peter to him. As neither of them would fall before the other, both would remain at the same height, and thus cross the ravine (using some initial velocity and the principle of inertion). But on the way down John wondered what had been wrong with his perception of reality... Anyway, your reference semantic is wrong, and does no better than reference counting. If A has a reference to B, this only means that B should not be freed while there is a chance that A will *use* that reference, and that's not as long as A's sheer *existence*. A's liveness (required for using that reference to B) can be testen by traversing the reference graph from a root set (global variables and such) until nothing else can be colored. Everything that remains is dead and may (should) be deallocated. Being referred to by another object is a prerequisite to continue to exist, but is not sufficient: reference counting is a conservative approximation of liveness, but not effective in identifying all garbage. Please rejoin the main thread Re: Problem of cyclic references with FoundationKit for solutions. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium Addressing limitations: no !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Thu, 12 Jan 95 05:41:35 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501120441.AA00382@flexus> Subject: Re: Problem of cyclic references with FoundationKit Art Isbell writes: > I'm not sure that this requires maintaining debugging > info at run-time. According to Bertrand Serlet, chief > Foundation Kit honcho (I never get his position correct > - sorry :-), NS, (probably NSAutoreleasePool) maintains > some sort of table of object references. And > NSAutoreleasePool maintains a reference to all objects > in the pool, so unlike some reference-counting > implementations, references to objects that are involved > only in cyclic references with other objects aren't > necessarily lost. Isolated cycles can be created without involving autorelease at all... Your algorithm will not even be invoked. > Reference counting backed up with some sort of garbage > collection seems like the way to go. The garbage > collection would be much simpler than general garbage > collection because the entire memory space wouldn't need > to be searched; only the addresses of objects in the > autorelease pool. See comment above. Of course, NSObjects can perfectly well be registered with the management system at -alloc time instead. But how would it be ``simpler''? About the mysterious thing with autorelease possibly just decreasing the reference count: could somebody please explain the validity (or not) of this approach, and the exact algorithm used (NeXT...)? Before that I can't comment on Thomas Engel's suggestions. (Note that I'm following this newsgroup from daily digests, which creates some synchronisation difficulties...) Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium Addressing limitations: no !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3f1lod$gr@seymour.sfu.ca> Control: cancel <3f1lod$gr@seymour.sfu.ca> Date: 11 Jan 1995 22:50:00 GMT Organization: none Distribution: world Message-ID: <3f1nao$1se@seymour.sfu.ca> References: <3f1lod$gr@seymour.sfu.ca> Originator: ken@darwin.mbb.sfu.ca <3f1lod$gr@seymour.sfu.ca> was cancelled from within rn.
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: NXPerformService() Date: 11 Jan 1995 23:50:16 GMT Organization: School of Computer Science, McGill Univ. Distribution: world Message-ID: <SAMURAI.95Jan11185017@marge.cs.mcgill.ca> I'm having some trouble with programatic services. I need to put up a string of data, and have it up there as an Ascii type (suitable for whomever wants plain test, as in Jargon or Webster) and a filename type, for whomever wants that. So, I can't seem to communicate with Webster. Is this wrong? id pb = [Pasteboard new]; const char * const types[] = {NXAsciiPboardType}; [pb declareTypes:types num:1 owner:nil]; [pb writeType:NXAsciiPboardType data:"hello" length:strlen("hello")+1]; NXPerformService("Define in Webster",pb); The same code works for loading a document into NeXTmail (you use the NXFilenamePboardType). I need to place both types up at the same time. Thanks to anyone who can help me out. - darcy -- (prog (senseFood (prog (prog (senseFood move eat) eat (senseFood move eat)) rotRight eat) (prog move (prog (prog eat (senseFood move rotRight) eat) loop) rotRight)) (prog (senseFood (senseFood (prog (prog (senseFood move move) eat (senseFood move eat)) rotRight eat) (senseFood (prog (prog (senseFood move
From: grio@next.com (Dan Grillo) Newsgroups: comp.sys.next.programmer,comp.sys.next.misc Subject: Re: NeXTanswers Diff....please.. was: Distributed Objects and Foundation Classes Date: 12 Jan 1995 07:23:41 GMT Organization: Technical Support, NeXT Computer, Inc. Message-ID: <3f2ldt$1mt@rosie.next.com> References: <3ecfrc$3ul@giuliani.gun.com> <D27tIq.HE@shinto.nbg.sub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Versions: makemail 2.5d In article <D27tIq.HE@shinto.nbg.sub.org>, Thomas Engel <tomi@shinto.nbg.sub.org> wrote: >In article <3ecfrc$3ul@giuliani.gun.com> ivo@hasc.ca writes: >>... >> But thanks for taking the time to post... Maybe someone should do a diff >> on the NextAnswers index each week and post it to comp.sys.next.announce >> so we each don't have to do it. > >This really is a good idea. Maybe someone who always has the NeXTanswers >at hand could do that... NeXT guys ? Scott ? Any cs.orst.admin ? Check out the NeXTanswers Index by Date. Shows the last changed date for all nextanswers. Sends email containing "index by date" to nextanswers@next.com --Dan -- Dan Grillo dan_grillo@next.com (415) 780-2963 now in building 1
From: bbs.america@loa.com (BBS AMERICA) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <8A1646B.0612000069.uuout@loa.com> Control: cancel <8A1646B.0612000069.uuout@loa.com> Date: Wed, 11 Jan 95 18:51:00 -0400 Organization: Computer Science Dept, University of Tennessee, Knoxville Message-ID: <cancel.8A1646B.0612000069.uuout@loa.com> SPAM Cancelled by MAPS 1.1
Newsgroups: comp.sys.next.programmer From: robs@sco.com (the rob collective) Subject: Tcl for NEXTSTEP Organization: The Santa Cruz Operation, Inc. Date: Thu, 12 Jan 1995 01:11:00 GMT Message-ID: <1995Jan12.011100.4506@sco.com> Sender: news@sco.com (News admin) A while back I grabbed the Tcl-for-NEXTSTEP on ftp.cs.orst.edu and installed it on my machine. In the README the auther says to send email for the actual changes made to the source. I've tried mailing bbum@friday.com (the address given) several times with no success. Has anybody been able to reach the kind soul who did this work? ========================================================================= *Rob Saul, System Test |"When a dog barks it is the man who * *uunet!sco!robs | loves wide gashes leeping in through * *robs@sco.com | the window." - Anais Nin *
Newsgroups: comp.sys.next.programmer,comp.sys.next.bugs From: dave@prim.demon.co.uk (Dave Griffiths) Subject: Re: WYSINWYG with postscript rectangles Message-ID: <1995Jan11.090135.384@prim.demon.co.uk> Organization: Primitive Software Ltd. References: <1995Jan9.122151.1646@prim.demon.co.uk> <BYER.95Jan9110839@ductwork.mv.us.adobe.com> Date: Wed, 11 Jan 1995 09:01:35 GMT In article <BYER.95Jan9110839@ductwork.mv.us.adobe.com> byer@mv.us.adobe.com (Scott Byer) writes: > >Are you printing through the NeXT print package? Check to make sure they >aren't forcing setstrokeadjust to false somewhere. Are you forcing >setestrokeadjust to true immediately before you draw the rectangle? Check >the postscript to make sure that the printing package isn't emulating >rectstroke with something that might cause the problem. I edited the postscript by hand to remove the NeXT definitions at the start (there was some stuff in there that looked like an emulation of rectstroke) and I inserted a setstrokeadjust to true just before the rectangle is drawn. This had no effect. >I don't have a NeXT printer to try, but all the other Level 2 printers >around me don't have a problem with setstrokeadjust. (Without stroke adjust >on, the results for thin lines will vary due to the overscanning >rasterization rules.) I get exactly the same effect with a Compaq printer too. Robert Nicholson tells me that according to the Purple book, the default for Level 2 printers is setstrokeadjust false and it gives an algorithm for emulating stroke adjustment manually. The fact that setstrokeadjust is turned off by default suggests that it has no effect. Doing it by hand would be a bit of a pain because I'd have to create categories for things like TextFieldCell. Interestingly, when TextFieldCell draws its one pixel border it does it with filled rectangles rather than rectstroke. I wonder why. The result when printed is lines that are consistent in width but a lot wider than an equivalent one-pixel wide line drawn with lineto. On the screen though everything looks right (one pixel width). Dave
Newsgroups: comp.sys.next.programmer From: diederic@icgned.nl (Diederic Vlamings) Subject: TIP: Making Obj-C source-code readable for everyone - using hyperlinks Message-ID: <D2B59w.HLz@icgned.nl> Keywords: sourcecode, hyperlinks, tip Sender: news@icgned.nl Organization: IC Group Date: Thu, 12 Jan 1995 19:39:32 GMT .................................................................... Does anyone out there has some experience in writing "elegant" code (at least for the layout) using RTF format for [.hm] files? The compiler is not complaining. HYPERLINK : Saving source-code in RTF format without using the rtf-suffix makes it possible to use our familiar hyperlink diamond buttons (like in Help), to skip from one implementation to another and sending a message to a marker to highlight a method. This is a comfortable illustration of your messaging-mechanism and COLOR : A supplemental tip to increase the readability of code is using the Contract option in Edit.app (structure menu) and drag and drop a color from the ColorPanel (red for .h and blue for .m files). More tips to comfort NEXTSTEP developers are very welcome! IC Group bv Diederic Vlamings ===================================================================== Address : P.O. Box 4254, 3006 AG Rotterdam Rivium Quadrant 81, 2909 LC Capelle a/d IJssel Country : THE NETHERLANDS Phone : +31 (0)10-447 1500 Fax : +31 (0)10-447 0099 E-mail : dvlamings@icgned.nl ---------------------------------------------------------------------
From: lss@katrine.cs.stir.ac.uk (Dr L S Smith (Staff)) Newsgroups: comp.sys.next.programmer Subject: Problem with sound delegation Date: 12 Jan 1995 11:28:59 GMT Organization: University of Stirling Message-ID: <3f33pr$rpn@lorne.stir.ac.uk> I am trying to use delegation with sound to detect the end of the playing of a sound etc: I'd like to make the Application (called StimuliGen) the delegate I am using setDelegate to set the sound objects delegate to the Application (using setDelegate: self), then I put the didPlay: sender, willPlay:sender methods inside an @implementation StimuliGen(SoundDelegate). But no didPlay or willPlay messages ever arrive...even though, in the debugger, the Sound class responds to a delegate message with a number that is the same as the Application's... It's probably something quite simple that I am missing...Any ideas gratefully received. -- Dr Leslie S. Smith Dept of Computing and Mathematics, Univ of Stirling Stirling FK9 4LA Scotland lss@cs.stir.ac.uk (NeXTmail welcome) Tel (44) 1786 467435 Fax (44) 1786 464551
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <paul@Praktos.be> From: Paul Janssens <paul@Praktos.be> Message-ID: <9501111548.AA00458@hercules.Praktos.be> Date: Wed, 11 Jan 95 16:46:05 +0100 Subject: Re: Problem of cyclic references with FoundationKit So you guys got a cycle in your NSArrays or NSDictionaries. Nice, but what happens when you do a po in gdb, or ask for a -description? :^) Paul (mailsig under construction)
From: pete@ohm.york.ac.uk (pete french) Newsgroups: comp.sys.next.programmer Subject: C++ linking woes Message-ID: <789923779.19@cs.york.ac.uk> Date: 12 Jan 1995 15:16:19 GMT I am running 3.2 on white hardware and trying to compile and run some C++ code. Not that I'm any good at C++, but it happens to be necessary. My problem is that the code generates an undefined symbol ".constructors_used" which is not found during linking. It's the only thing not found, everything else works fine. Examining the assempled produced this comes from an almost trivial file, which produces a ".reference .constructors_used" in it's .s output. Idiots solution is to delete this line, which now links fine but crashes when I run it :-) Any ideas ? What am I missing ? -pete french.
Newsgroups: comp.sys.next.programmer From: ploeger@aplki.toppoint.de (Andreas Ploeger) Subject: Warning: nib file, action messages and bundles Message-ID: <1995Jan12.150508.7383@aplki.toppoint.de> Sender: ploeger@aplki.toppoint.de (Andreas Ploeger) Organization: Andreas Ploeger Date: Thu, 12 Jan 95 15:05:08 GMT Hi, I just had the following painful experience: 1. In IB a MenuCell was set to send 'showComment:' to the first responder. 2. When the nib file was loaded that MenuCell lost it's action value - it was NULL. It turned out that 'showComment:' is a method implemented in a different bundle that wasn't yet loaded. Solution: Just include '@selector(showComment:)' somewhere in the code that is loaded before the nib file is. Now the selector is compiled into the code that loads the nib and everything works fine. Greetings, A. Ploeger -- Andreas Ploeger E-Mail: ploeger@tpki.toppoint.de Kiel University Phone: (49) 431 597 1757 Clinic for Pediatric Cardiology FAX: (49) 431 597 1828 Schwanenweg 20, 24105 Kiel, Germany *** NeXT Mail welcome ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Thu, 12 Jan 95 19:35:54 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501121835.AA06130@flexus> Subject: Re: Open application from Terminal to foreground And how lucky we are that open does *not* put the window in front. No application should ever take control away from the user (there is some exception/bug, but I can't remember it right now). When a file is opened from a File Viewer, it is the Workspace Manager which deactivates *itself*, so that the application that will open the file sees that it should activate itself *because there is no current active application*, and only for that reason. (I think.) Perfect. Sublime. (Have to give some counterweight to my unceasing criticism.) If you really absolutely want to have that window appear in front, make a command with a *different* name (openinfront or somesuch), which first deactivates Terminal using Speaker/Listener or so. But why not accept the situation as it is? Your window is only a mouse click away. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium Addressing limitations: no !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Thu, 12 Jan 95 19:59:27 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501121859.AA06205@flexus> Subject: Re: Problem of cyclic references with FoundationKit Pieter Schoenmakers writes: > The only thing needed for this paradigm is that the owner > does a `-cleanup' before the `-release'. No need for that. Just release all the owned stuff in dealloc. Why would you like a ``meta'' level? Paul Janssens writes: > So you guys got a cycle in your NSArrays or > NSDictionaries. I have not seen this mentioned. Maybe you just like to say so-this-and-that if you really mean suppose-this-and-that? > Nice, but what happens when you do a po in gdb, or ask > for a -description? Well, that's another place (other than archiving) where ownership pops up: if you define -description, you could recursively send this message to any interesting *owned* object. In the case of collection classes like NSArray and NSDictionary it appears to me that they should have an instance variable that says whether they own their references. When will we get a word from anyone at NeXT? Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium Addressing limitations: no !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Thu, 12 Jan 95 20:16:43 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501121916.AA08780@flexus> Subject: Re: Closing and freeing NIB file? The following, copy-pasted from Otool.app, may be a solution: -showInfoPanel:senderIgnored{ // there is a windowWillClose: method to set infoWindow=nil at close time if(nil==infoWindow){ [NXApp loadNibSection:"Info.nib" owner:self]; // the NIB should set the connection infoWindow [infoWindow setFreeWhenClosed:YES]; // so the NIB designer doesn't have to be concerned with this } [infoWindow makeKeyAndOrderFront:self]; return self; } -windowWillClose:sender{ SELECT IF(sender==infoWindow) infoWindow=nil; return self; // go ahead and close IFDEFAULT SHOULDNTHAPPEN return self; ENDSELECT } Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium Addressing limitations: no !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: monckton@skyler.arc.ab.ca (simon monckton) Newsgroups: comp.sys.next.programmer Subject: Shared Memory in NextStep? Date: 13 Jan 1995 00:10:51 GMT Organization: Alberta Research Council Message-ID: <3f4geb$kch@mercury.arc.ab.ca> Hello All! I am writing a multiprocess app in C++ (yes, I know I must be crazy to use C++...but this might have to be a portable app:( ). I have happily been using UNIX sockets and now find that a faster comm mechanism may be necessary for some ipc links...hence my interest in Shared Memory. I have searched high and low for shared memory functions in NextStep and I have had no success...somebody out there please tell me I just can't see the obvious!! Are there any shared memory libraries for NextStep?? Thanks in advance Simon M.
From: vchi@visgen.com (Vrijmoed Chi) Newsgroups: comp.sys.next.programmer Subject: Text Selection Notification Date: 12 Jan 1995 21:20:07 GMT Organization: The Eye Research Institute of Canada Message-ID: <3f46e7$4j0@sator.eric.on.ca> Hi, I'm writing a panel similar to the spell checker. I'm wondering if I can get a notification that a selection is made in the document (Text doesn't have a delegate method for this). I know I can use the autoupdate mechanism to get the selection after every event but I prefer not to do polling (I found that NXSpellChecker did implement windowDidUpdate: but it doesn't refresh the selection after every event). Any idea? Thanks much in advance!
From: charles@manta.cs.vt.edu (Charles M. Esterbrook) Newsgroups: comp.sys.next.programmer Subject: Release Date of NeXT Developer 3.3 Date: 12 Jan 1995 18:44:15 GMT Organization: Virginia Tech, Blacksburg, Virginia Message-ID: <3f3t9v$58n@server.cs.vt.edu> Keywords: next developer 3.3 release Does anyone know when NeXT Developer will be released for Intel/Motorola? I've heard it's in beta. -Chuck
Newsgroups: comp.sys.next.programmer From: tgugger@norden1.com (Tom Gugger) Subject: NEXTSTEP/CAREER POSITIONS Message-ID: <1995Jan12.192157.22933@norden1.com> Organization: Norden 1 Communications Date: Thu, 12 Jan 1995 19:21:57 GMT The EAGLE GROUP is currently representing seven companies that specialize in the NEXTSTEP platform. These are career positions with outstanding benefits and company assistance for relocation. All positions do require commercial experience. Most, but not all positions are in the greater Chicago area. PLATFORM--------------------NEXTSTEP LANGUAGE--------------------OBJECTIVE C DESIRED---------------------DB KIT DESIRED---------------------SYBASE A PLUS----------------------EOF A PLUS----------------------FINANCIAL APPLICATION EXPERIENCE TO BE CONSIDERED--------FAX RESUME OR MAIL A HARD COPY RESUME ... * ATP/qwk 1.42 * How dieth the wise man? As the fool. -- tgugger@norden1.com (419) 882-7339 [fax] Eagle Group (419) 882-8006 [voice] PO Box 8167 Sylvania, Ohio 43560
Newsgroups: comp.sys.next.programmer From: yannick@silicium.fdn.fr (Yannick Cadin) Subject: Re: TIP: Making Obj-C source-code readable for everyone - using hyperlinks Message-ID: <1995Jan13.010649.3001@silicium.fdn.fr> Sender: yannick@silicium.fdn.fr (Yannick Cadin) Organization: MICRO REPONSE - MONTIGNY, FRANCE. References: <D2B59w.HLz@icgned.nl> Date: Fri, 13 Jan 1995 01:06:49 GMT In article <D2B59w.HLz@icgned.nl> diederic@icgned.nl (Diederic Vlamings) writes: > .................................................................... > Does anyone out there has some experience in writing "elegant" code (at > least for the layout) using RTF format for [.hm] files? The compiler is > not complaining. > > HYPERLINK : Saving source-code in RTF format without using the > rtf-suffix makes it possible to use our familiar hyperlink diamond buttons > (like in Help), to skip from one implementation to another and sending a > message to a marker to highlight a method. This is a comfortable > illustration of your messaging-mechanism and > > COLOR : A supplemental tip to increase the readability of code > is using the Contract option in Edit.app (structure menu) and drag and > drop a color from the ColorPanel (red for .h and blue for .m files). > Everything above is right and works well under Edit... But, a little thing, try to parse a header file, in rich text format, under IB. I think, you can't retrieve your outlets. Certainly because IB does not recognize RTF codes in header files, and because there is one of these codes, "\", before the "{" preceding declaration of instance variables. (I hope someone at NeXT read this message and add this feature to the parse function in IB. It seems 3.3 dev does not fix this problem) Yannick Cadin, a constant beginner ________________________________________________________ MICRO REPONSE 3, rue Jacques Daguerre - 95370 MONTIGNY - FRANCE Tel : 33 (1) 34.50.89.39 - Fax : 33 (1) 34.50.09.08 ________________________________________________________
From: pyra5000@halcyon.com (Pyramid) Newsgroups: comp.sys.next.programmer Subject: US-WA-Seattle,NEXTSTEP Developer Contract Employment (Agency) Followup-To: comp.sys.next.programmer Date: Thu, 12 Jan 1995 12:35:25 -0800 Organization: Northwest Nexus Inc. Message-ID: <3f42vp$jet@news.halcyon.com> Message-ID: <pyra5000-120195123525@blv-pm2-ip18.halcyon.com> Organization: Pyramid Technical Services, Inc. Posted 1/12/95 US-WA-Seattle,NEXTSTEP Developer Contract Employment (Agency) Pyramid Technical Services is a Bellevue, WA based agency that provides software engineering, networking and telephony technology professionals to major companies in the greater Seattle area. We do both contract and permanent placement; all fees are employer paid. We are not successful placing entry level applicants so please apply only if you have at least 2 years experience. Respond via Internet (ASCII), US mail, fax or phone to: Pyramid Technical Services, Inc. 40 Lake Bellevue Drive, Suite 100 Bellevue, WA 98005 Phone: (206) 454-7515 Fax: (206) 451-9438 pyra5000@halcyon.com CURRENT OPENING -- CONTRACTS * NextStep DEVELOPERS. A major client of ours on Seattle's Eastside has a number of 6-12 month contract positions for experienced NeXTStep developers. At least 1 year of specific NeXT experience is necessary. There are openings for both senior and somewhat more junior applicants. The application is a large, sophisticated, nationally-distributed client/server application. The client needs UI specialists, back-end specialists (Sybase, or other SQL RDBMS), and real time specialists EOF is highly desirable. Contact Bob Kelly.
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: TIP: Making Obj-C source-code readable for everyone - using hyperlinks Date: 12 Jan 1995 21:32:09 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Jan12213209@steffi.dircon.co.uk> References: <D2B59w.HLz@icgned.nl> To: diederic@icgned.nl (Diederic Vlamings) In-reply-to: diederic@icgned.nl's message of Thu, 12 Jan 1995 19:39:32 GMT <diederic@icgned.nl> writes: >.................................................................... >Does anyone out there has some experience in writing "elegant" code (at >least for the layout) using RTF format for [.hm] files? The compiler is >not complaining. Yes but I use Emacs which doesn't make me use RTF to get the same benefit. >HYPERLINK : Saving source-code in RTF format without using the >rtf-suffix makes it possible to use our familiar hyperlink diamond buttons >(like in Help), to skip from one implementation to another and sending a >message to a marker to highlight a method. This is a comfortable >illustration of your messaging-mechanism and >COLOR : A supplemental tip to increase the readability of code >is using the Contract option in Edit.app (structure menu) and drag and >drop a color from the ColorPanel (red for .h and blue for .m files). I use Emacs to color language sensitive tokens. >More tips to comfort NEXTSTEP developers are very welcome! -- "Oh no, actually darling I don't have time for games." (PGP key: send email with Subject: request pgp key) (ASCII for text only messages)
Newsgroups: comp.sys.next.programmer From: vrotney@netcom.com (William Paul Vrotney) Subject: Re: Open application from Terminal to foreground In-Reply-To: Raf Schietekat's message of Thu, 12 Jan 95 19:35:54 +0100 Message-ID: <vrotneyD2C93J.HzE@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <9501121835.AA06130@flexus> Date: Fri, 13 Jan 1995 09:59:43 GMT In article <9501121835.AA06130@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: > > And how lucky we are that open does *not* put the window in front. No > application should ever take control away from the user (there is some > exception/bug, but I can't remember it right now). > > When a file is opened from a File Viewer, it is the Workspace Manager which > deactivates *itself*, so that the application that will open the file sees that > it should activate itself *because there is no current active application*, and > only for that reason. (I think.) > > Perfect. Sublime. (Have to give some counterweight to my unceasing criticism.) > Let me explain what I am doing. I have written an Emacs function to execute a NeXTSTEP application or examine a rich file. And I use "open" to make this happen. This is very handy because in some circumstances an intelligent search from Emacs automatically puts up the right application for me. Now in this case, what this replaces is the user manually going to a dock or file manager and searching for the correct application and then clicking on it, but in much the same way the user expects the application to appear on top. -- William P. Vrotney - vrotney@netcom.com
From: erikkay@next.com (Erik Kay) Newsgroups: comp.sys.next.programmer Subject: Re: Can one _move_ a dragged file to Workspace. Date: 13 Jan 1995 02:34:34 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3f4orq$14l@rosie.next.com> References: <SHESS.95Jan12155041@icicle.winternet.com> In article <SHESS.95Jan12155041@icicle.winternet.com> shess@icicle.winternet.com (Scott Hess) writes: ] ] I've implemented a drag using View's -dragImage* method (so that ] I can specify a dragging source). Things seem to work fine, except ] that I cannot cause a drag to end in a move operation to Workspace. ] I can drag the file over a directory in Workspace, and hold down ] Control to cause a symlink (which does _not_ work with -dragFile*), ] or Alternate to cause a copy. But holding down Command (for "move") ] just results in a solid arrow cursor and dropping the file animates ] it back to the originator. Unfortunately, Workspace expicitly prohibits this behavior. In all honesty, I don't know the reasoning behind this, but as far as I know, it always has done this. Erik
From: btschumy@bga.com (Bill Tschumy) Newsgroups: comp.sys.next.programmer Subject: Re: Release Date of NeXT Developer 3.3 Date: 12 Jan 1995 20:47:22 -0600 Organization: Otherwise Message-ID: <3f4pjq$235@ivy.bga.com> References: <3f3t9v$58n@server.cs.vt.edu> Keywords: next developer 3.3 release In article <3f3t9v$58n@server.cs.vt.edu>, Charles M. Esterbrook <charles@manta.cs.vt.edu> wrote: > >Does anyone know when NeXT Developer will be released for >Intel/Motorola? I've heard it's in beta. > >-Chuck It is in Beta. Expect to see it released around mid-year. Bill Tschumy | Posting news to thousands of machines Otherwise | throughout the entire civilized world. bill@otherwise.com | Costing the net hundreds if not thousands (NeXTmail and MIME accepted) | of dollars to send everywhere.
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Problem of cyclic references with FoundationKit Date: 13 Jan 1995 11:27:29 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Jan13122729@cobra.es.ele.tue.nl> References: <9501121859.AA06205@flexus> In-reply-to: Raf Schietekat's message of Thu, 12 Jan 95 19:59:27 +0100 In article <9501121859.AA06205@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: Pieter Schoenmakers writes: > The only thing needed for this paradigm is that the owner > does a `-cleanup' before the `-release'. No need for that. Just release all the owned stuff in dealloc. Why would you like a ``meta'' level? Apparantly, you didn't quite understand what I meant. You can use the meta level to avoid the problem of cyclic referencing. Your suggestion of only releasing ivars in dealloc *is* the problem of cyclic referencing. When will we get a word from anyone at NeXT? Why? Addressing limitations: no !, % or .uucp, I think Fix your sendmail.cf, for instance by applying `ftp://ftp.win.tue.nl/pub/mail/sendmail.cf.gen/domain1.63.sh.Z'. --Tiggr
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: More frustrations with EOF.... Date: 13 Jan 1995 00:33:19 GMT Organization: MCI Communications Distribution: world Message-ID: <3f4hof$kt@hermes.dna.mci.com> Well, I'm stumped. EOF was working fine (well, as fine as you could expect :-) and then I upgraded from 3.2 to 3.3 PR2. Now when I try to recompile my EOF stuff I get the following in PB: myapp_main.m:5: header file 'EOApplication.h' not found Any thoughts? The file really is way down there in /usr/include/eointerface/EOApplication.h I find problems like this especially frustrating sine I've gotten used to being coddled away from gross UNIXisms by NEXT's super-duper programming environment. -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
Newsgroups: comp.sys.next.programmer From: King_Richard@pcp.ca (Richard King) Subject: Re: Closing and freeing NIB file? Message-ID: <1995Jan13.053749.11100@pcp.ca> Sender: news@pcp.ca Organization: PanCanadian Petroleum Ltd. References: <1995Jan10.180912.2061@nugget.rmNUG.ORG> Date: Fri, 13 Jan 95 05:37:49 GMT In article <1995Jan10.180912.2061@nugget.rmNUG.ORG> dbhinz@znih.rmnug.org (David Hinz) writes: > > What is the best way to implement loading and unloading of a Info.nib file each > time it is selected from the menu. My test application used the "free on close" option in IB and worked fine. Maybe the connections aren't set up right. In the main nib... (1) some controller object (to load the info nib) needs an unconnected outlet for the info panel (2) the "Info..." menu button is connected to this controller to the action method described below In the controller... (1) there's an action method for the "Info" menu button to invoke, which loads the info nib with itself as the owner, filling in the info panel outlet (2) there's a windowWillClose: method to capture the info panel close, during which the info panel outlet is set to nil and self is returned. In the info nib (1) File's Owner is the controller class (2) the info panel outlet of File's Owner is set to the actual panel (3) the panel's delegate outlet is connected to File's Owner, so that it will receive windowWillClose: messages when the user closes the panel If you want my test app, let me know in a day or so... Richard
Newsgroups: comp.sys.next.programmer From: King_Richard@pcp.ca (Richard King) Subject: Re: Lex/Yacc/AppKit (solution) Message-ID: <1995Jan13.041537.10451@pcp.ca> Sender: news@pcp.ca Organization: PanCanadian Petroleum Ltd. References: <3ev4bk$4in@news-2.csn.net> Distribution: usa Date: Fri, 13 Jan 95 04:15:37 GMT In article <3ev4bk$4in@news-2.csn.net> chuston@dudley.com (Chris Huston) writes: > I wrote a lexer/parser pair and tested them outside of any ObjC/Appkit > references - now I'm trying to get the parser to manipulate ObjC objects. You want to operate on live Objective-C objects, or you want to do something like parse ivar descriptions or method argument descriptions? If the first one, on your next post change the subject to "Objective-C interpreter" and see if you get some response from people about already working solutions. TCL is one, I hear. > First I got 5 pages of warnings/error from the preproccessor about > redefined macros et al - changing the #import's from <appkit/appkit.h> to > more specific classes seems to have remideed that - Now I've got undefined > symbol woes: > ld: Undefined symbols: > _yylval > objc_class_name_AView > objc_class_name_BView It looks like you have 2 problems: - yylval is not defined in any of the linker input files - custom classes "AView" and "BView" are not being linked in y.tab.c normally defines yylval something like: YYSTYPE yylval, yyval; YYSTYPE is a union of all the different types of data your lexer returns or your parser creates. (See %union directive in a Lex/Yacc book.) Either yacc is not correctly generating the y.tab.c file (not very likely), or the y.tab.o file is not being linked in (very likely). In Project Builder, I put the lex.yy.c and y.tab.c files into the "Other Sources" suitcase (but maybe the makefiles can now deal with *.lex and *.yacc). If you've compiled them elsewhere you will need to modify the Makefile.preamble to include them in your linking. Either of these actions will generate another error whose solution is discussed below. You or someone you know and trust ;-) must have created the code for classes AView and BView. It looks like you are referencing them in a main program, but are not including the source files for those classes in your project. Or, you haven't created it yet and need to. > Any sage advice? When everything compiles correctly, you should probably get another undefined error. This will be because you aren't linking in the lex/yacc libraries libl.a and liby.a. So, in your ProjectBuilder window, double-click on libraries and select liby.a. But wait, there's more... You can't do this with libl.a because that will generate ANOTHER error -- a duplicate symbol for function main(). In conventional c, only symbols that are needed are linked in, so a default main() was included in libl.a to make it easy to throw together a quick lexer to see if it worked. If you had a main() already, it wasn't linked in. Otherwise it was. Objective-C (well, NeXT's compiler in -ObjC mode) requires everything to be linked in from every library that's included in a build, because it isn't always known in advance what classes will be needed in an application. So, the standard libl.a will contribute main(), but you already have a main() in your project, in the <AppName>_main.c file. So these clash and you get a link error. Get around this by copying libl.a to your project directory, then executing the following 2 lines in a Terminal shell in the Project directory: ar d libl.a main.o ranlib libl.a This removes the default main and prepares it for linking with your project. Finally, edit your project's Makefile.preamble to include libl.a on the OTHER_OFILES line, like the following line: OTHER_OFILES = libl.a After this, things should be rosy! I hope this is accurate for your situation; I referred to my remotely-Objective-C shell app for info. Richard
From: brown@bibliotech.com (Robert E. Brown) Newsgroups: comp.sys.next.programmer Subject: Intel FP registers Date: 13 Jan 1995 03:18:24 GMT Organization: Bibliotech, Inc. Distribution: world Message-ID: <BROWN.95Jan12221824@grettir.bibliotech.com> I am trying to track down a very strange bug in a NextStep program that's runnng on an Intel computer. The application is compiled with GCC and uses several libraries for which I have no source code. It dies in the middle of one of the libraries -- somewhere below NextStep's makeKeyAndOrderFront method improper Postscript is being generated. The bug seems to be related to floating point registers, and I've observed that the Intel 486 floating point stack overflows inside one of the code libraries I'm using. I don't know enough about how floating point is handled on Intel hardware to know whether an overflowing FP stack is something to be concerned about. It looks like functions that return a FP result leave the result on the FP stack, so if their caller does not expect any result, values can accumulate on the FP stack. I would guess that callers never leave temporary values on the stack around function calls and that FP stack overflow is benign. Does anyone have more information about how GCC handles FP registers on Intel hardware? bob
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Warning: nib file, action messages and bundles Date: 13 Jan 1995 16:49:00 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3f6ats$hu8@darkstar.UCSC.EDU> References: <1995Jan12.150508.7383@aplki.toppoint.de> In article <1995Jan12.150508.7383@aplki.toppoint.de> ploeger@aplki.toppoint.de (Andreas Ploeger) writes: > I just had the following painful experience: > > 1. In IB a MenuCell was set to send 'showComment:' to the first responder. > 2. When the nib file was loaded that MenuCell lost it's action value - it was > NULL. > > It turned out that 'showComment:' is a method implemented in a different > bundle that wasn't yet loaded. > > Solution: > Just include '@selector(showComment:)' somewhere in the code that is loaded > before the nib file is. Now the selector is compiled into the code that loads > the nib and everything works fine. > Or take advantage of the runtime function sel_registerName("showComment:"). --- Art Isbell Cubic Solutions NeXT Registered Consultant NEXTSTEP software development/consulting NeXTmail: art@cubicsol.com Voice: +1 408 335 1154 USmail: 95018-9442 Fax: +1 408 335 2515
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: TIP: Making Obj-C source-code readable for everyone - using hyperlinks Date: 13 Jan 1995 16:41:59 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3f6agn$hs7@darkstar.UCSC.EDU> References: <1995Jan13.010649.3001@silicium.fdn.fr> In article <1995Jan13.010649.3001@silicium.fdn.fr> yannick@silicium.fdn.fr (Yannick Cadin) writes: > I think, you can't retrieve your outlets. Certainly because IB does not > recognize RTF codes in header files, and because there is one of these > codes, "\", before the "{" preceding declaration of instance variables. > (I hope someone at NeXT read this message and add this feature to the > parse function in IB. It seems 3.3 dev does not fix this problem) > If the updated Edit app (as previewed at the last Expo) is included in 3.3 Developer, it will implement much of what some people want to do using RTF source while using plain text. This seems preferable to adding all the RTF directives and extra preprocessing required to deal with RTF source. --- Art Isbell Cubic Solutions NeXT Registered Consultant NEXTSTEP software development/consulting NeXTmail: art@cubicsol.com Voice: +1 408 335 1154 USmail: 95018-9442 Fax: +1 408 335 2515
From: THOMS005@mc.duke.edu (Carol J. Thomson) Newsgroups: comp.sys.next.programmer Subject: TIFF location? Date: Fri, 13 Jan 1995 13:27:33 UNDEFINED Organization: Duke University Medical Center Message-ID: <THOMS005.58.00C8B844@mc.duke.edu> Can someone point me to the TIFF file for the Change Password "lock and key" image in Preferences? I really need the image and I've looked everywhere I can think of to no avail. Thanks in advance, Carol thoms005@mc.duke.edu
Newsgroups: comp.sys.next.programmer From: skyway@netcom.com (Skyway) Subject: JOB: NeXTSTEP Application Developers Message-ID: <skywayD2Cvsw.4KI@netcom.com> Organization: Skyway Freight Systems, Inc. Date: Fri, 13 Jan 1995 18:10:08 GMT Skyway Freight Systems, Inc., a wholly owned subsidiary of Union Pacific, is a leading logistics company creating innovative partnerships with our customers through a full array of inventory services, EDI capabilities and customized business solutions. In order to continue performing at higher standards than most, Skyway's NeXTSTEP Development Team insures the continuous high quality systems available to internal and external customers. Skyway presently has openings for NeXTSTEP Application Developers. We require 3-5 years of programming experience using C, C++, Objective-C, NeXTSTEP, analysis and design experience. Experience in OOA, OOD, and/or OOP highly desirable. Candidates must demonstrate the ability to work in joint development efforts with end users. We offer an excellent salary and comprehensive benefits including medical, dental and vision insurance. Please send your resume to: Skyway Freight Systems, Inc. Attn: Employment Department P.O. Box 1810 Santa Cruz, CA. 96061-1810 or FAX to: (408) 724-9549 or e-mail (ascii) to carol@skyway.com
From: shess@icicle.winternet.com (Scott Hess) Newsgroups: comp.sys.next.programmer Subject: Can one _move_ a dragged file to Workspace. Date: 12 Jan 1995 21:50:41 GMT Organization: Is a sign of weakness Distribution: world Message-ID: <SHESS.95Jan12155041@icicle.winternet.com> I've implemented a drag using View's -dragImage* method (so that I can specify a dragging source). Things seem to work fine, except that I cannot cause a drag to end in a move operation to Workspace. I can drag the file over a directory in Workspace, and hold down Control to cause a symlink (which does _not_ work with -dragFile*), or Alternate to cause a copy. But holding down Command (for "move") just results in a solid arrow cursor and dropping the file animates it back to the originator. I'm currently returning NX_DragOperationAll in the source's -draggingSourceOperationMaskForLocal: method, so it should work. Unless, of course, there is some undocumented magic somewhere that I need to invoke. Has anyone managed to provide a drag which allows file moves? Thanks, -- scott hess <shess@winternet.com> (WWW to "http://www.winternet.com/~shess/") Home: 12901 Upton Avenue South, #326 Burnsville, MN 55337 (612) 895-1208 Office: 101 W. Burnsville Pkwy, Suite 108E, Burnsville, MN 55337 890-1332 <?If you haven't the time to design, where will you find the time to debug?>
From: ckminer@longs.lance.colostate.edu Newsgroups: comp.sys.next.programmer Subject: EOF CustomDatabaseValue/CustomValue Date: 13 Jan 1995 19:40:57 GMT Organization: Rocky Mountain Internet Inc. Distribution: world Message-ID: <3f6l09$hqe@potogold.rmii.com> netfolk, anyone know of an example use of these catagories in creating custom values for use with an EO? Chris
From: ckminer@longs.lance.colostate.edu Newsgroups: comp.sys.next.programmer Subject: EOF EOnull print representation Date: 13 Jan 1995 19:43:30 GMT Organization: Rocky Mountain Internet Inc. Distribution: world Message-ID: <3f6l52$hqm@potogold.rmii.com> My DB engine supports NULL field vlaues. However, they are displayed in the interface as '<null>'. I took a stab at fixing this with: > @implementation EONull (EONullPrintFix) > - display > { > return @""; > } > @end > > Does anyone know the 'correct' way to adjust this formatting issue? Chris
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Lex/Yacc/AppKit (solution) Date: 13 Jan 1995 16:30:49 GMT Organization: University of California, Santa Cruz Distribution: usa Message-ID: <3f69rp$hop@darkstar.UCSC.EDU> References: <1995Jan13.041537.10451@pcp.ca> In article <1995Jan13.041537.10451@pcp.ca> King_Richard@pcp.ca (Richard King) writes: > Either yacc is not correctly generating the y.tab.c file (not very > likely), or the y.tab.o file is not being linked in (very likely). In > Project Builder, I put the lex.yy.c and y.tab.c files into the "Other > Sources" suitcase (but maybe the makefiles can now deal with *.lex and > *.yacc). If you've compiled them elsewhere you will need to modify the > Makefile.preamble to include them in your linking. Either of these actions > will generate another error whose solution is discussed below. > As of NS 3.2, NeXT's Makefiles don't handle lex and yacc source correctly within ProjectBuilder. The fix is pretty easy, though, if anyone is interested. With the fix in place, there's no need to explicitly refer to lex and yacc intermediate files. Just put lex and yacc source files (e.g., lexer.lm and parser.ym) in the Other Sources suitcase. Note that if you have Objective-C code in your lex and yacc source, you should give the source files "lm" and "ym" file extensions rather than just "l" and "y" for source files containing just C code. > When everything compiles correctly, you should probably get another > undefined error. This will be because you aren't linking in the lex/yacc > libraries libl.a and liby.a. So, in your ProjectBuilder window, > double-click on libraries and select liby.a. But wait, there's more... > > You can't do this with libl.a because that will generate ANOTHER error -- > a duplicate symbol for function main(). In conventional c, only symbols > that are needed are linked in, so a default main() was included in libl.a > to make it easy to throw together a quick lexer to see if it worked. If > you had a main() already, it wasn't linked in. Otherwise it was. > > Objective-C (well, NeXT's compiler in -ObjC mode) requires everything to > be linked in from every library that's included in a build, because it > isn't always known in advance what classes will be needed in an > application. So, the standard libl.a will contribute main(), but you > already have a main() in your project, in the <AppName>_main.c file. So > these clash and you get a link error. > > Get around this by copying libl.a to your project directory, then > executing the following 2 lines in a Terminal shell in the Project > directory: > > ar d libl.a main.o > ranlib libl.a > > This removes the default main and prepares it for linking with your > project. Finally, edit your project's Makefile.preamble to include libl.a > on the OTHER_OFILES line, like the following line: > OTHER_OFILES = libl.a > Whoa!! There's no need to go to all this trouble. Don't try to link the lex and yacc libraries. They're not needed in this context. Use them only when you're debugging your lex and yacc source before adding actions to the rules. --- Art Isbell Cubic Solutions NeXT Registered Consultant NEXTSTEP software development/consulting NeXTmail: art@cubicsol.com Voice: +1 408 335 1154 USmail: 95018-9442 Fax: +1 408 335 2515
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: TIFF location? Message-ID: <1995Jan13.231028.12103@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <THOMS005.58.00C8B844@mc.duke.edu> Date: Fri, 13 Jan 1995 23:10:28 GMT In article <THOMS005.58.00C8B844@mc.duke.edu> THOMS005@mc.duke.edu (Carol J. Thomson) writes: > Can someone point me to the TIFF file for the Change Password "lock and > key" image in Preferences? I really need the image and I've looked > everywhere I can think of to no avail. > > Thanks in advance, > Carol > > thoms005@mc.duke.edu This is where it is hiding: /NextApps/Preferences.app/Password.preferences/Password.tiff - Dimitri Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
Newsgroups: comp.sys.next.programmer From: yannick@silicium.fdn.fr (Yannick Cadin) Subject: Re: TIP: Making Obj-C source-code readable for everyone - using hyperlinks Message-ID: <1995Jan13.234553.989@silicium.fdn.fr> Sender: yannick@silicium.fdn.fr (Yannick Cadin) Organization: MICRO REPONSE - MONTIGNY, FRANCE. References: <3f6agn$hs7@darkstar.UCSC.EDU> Date: Fri, 13 Jan 1995 23:45:53 GMT In article <3f6agn$hs7@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: > In article <1995Jan13.010649.3001@silicium.fdn.fr> yannick@silicium.fdn.fr > (Yannick Cadin) writes: > > I think, you can't retrieve your outlets. Certainly because IB does not > > recognize RTF codes in header files, and because there is one of these > > codes, "\", before the "{" preceding declaration of instance variables. > > (I hope someone at NeXT read this message and add this feature to the > > parse function in IB. It seems 3.3 dev does not fix this problem) > > > If the updated Edit app (as previewed at the last Expo) is included in > 3.3 Developer, it will implement much of what some people want to do using > RTF source while using plain text. This seems preferable to adding all > the RTF directives and extra preprocessing required to deal with RTF > source. > --- > Art Isbell Cubic Solutions > NeXT Registered Consultant NEXTSTEP software development/consulting > NeXTmail: art@cubicsol.com Voice: +1 408 335 1154 > USmail: 95018-9442 Fax: +1 408 335 2515 So, I work with the 3.3 developer beta on Sparc and HPPA since few days. It seems there is absolutely no change in Edit.app, nor in IB to accept RTF files, and no new source file editor. May be in the final release (I hope but I don't believe it will the case) Yannick Cadin -- MICRO REPONSE 3, rue Jacques Daguerre - 95370 MONTIGNY - FRANCE Tel : 33 (1) 34.50.89.39 - Fax : 33 (1) 34.50.09.08
From: xela@acm.org (Matt Bezark) Newsgroups: comp.sys.next.programmer Subject: no more processes with vfork() Date: 13 Jan 1995 22:03:53 GMT Organization: MCSNet Services Message-ID: <3f6tca$bn2@News1.mcs.com> Hello, I know about the 100 process per user limit, but expected that calling the following code segment within a program more than 100 times to be ok. I expected the vfork/execl combination to complete and release the process. After about 80 calls, the vfork returns a failure. Is it the 100 process limit I'm reaching? Does anyone know a way to do something similar without the the process limit? We need the returned pid, so the system() command by itself isn't enough. int pid = 0; if ((pid = vfork()) == 0) { if ((pid = execl("/bin/sh", "sh", "-c", command, 0)) == -1) { fprintf(stderr, "unable to launch: \"%s\"", command); } _exit(0); } return pid; Thanks, Matt Bezark xela@acm.org
From: longsg01@slowhand.nmb.com (Gary Longsine) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Re: Multicast support anyone? NeXT? Date: 14 Jan 1995 05:58:42 GMT Organization: Norwest Mortgage Inc. Distribution: world Message-ID: <3f7p6i$r71@slowhand.nmb.com> References: <3eo1ge$10qj@quartz.ucs.ualberta.ca> Keywords: RFC-1075, DVMRP, MBONE In article <3eo1ge$10qj@quartz.ucs.ualberta.ca>, jmack@skye.phys.ualberta.ca writes: |> Does anyone have any comments on pursuing NeXT to include |> true MULTICAST support per RFC-1075 DVMRP in future releases? |> (part of my 1995 wish list) As I understand it, IP Multicast, as a part of BSD 4.4, is now included in NeXTSTEP Release 3.3. I am not, however, familiar with it's programming interface.
From: chuston@dudley.com (Chris Huston) Newsgroups: comp.sys.next.programmer Subject: Re: Lex/Yacc/AppKit Date: 13 Jan 1995 17:43:24 GMT Organization: Colorado Supernet Distribution: usa Message-ID: <3f6e3s$819@news-2.csn.net> References: <3ev4bk$4in@news-2.csn.net> Thanks to Paul Janssens <paul@praktos.be> for pointing me to the /NextDeveloper/Examples/Appkit/Graph example... Answered my questions beautifully. Also thanks to Greg Anderson, Art Isbell and Eric Marshall for their timely replies. - Chris
From: chuston@dudley.com (Chris Huston) Newsgroups: comp.sys.next.programmer Subject: Re: Lex/Yacc/AppKit Date: 13 Jan 1995 17:43:51 GMT Organization: Colorado Supernet Distribution: usa Message-ID: <3f6e4n$81a@news-2.csn.net> References: <3ev4bk$4in@news-2.csn.net> Thanks to Paul Janssens <paul@praktos.be> for pointing me to the /NextDeveloper/Examples/Appkit/Graph example... Answered my questions beautifully. Also thanks to Greg Anderson, Art Isbell and Eric Marshall for their timely replies. - Chris
From: chuston@dudley.com (Chris Huston) Newsgroups: comp.sys.next.programmer Subject: Re: Lex/Yacc/AppKit Date: 13 Jan 1995 17:44:32 GMT Organization: Colorado Supernet Distribution: usa Message-ID: <3f6e60$81b@news-2.csn.net> References: <3ev4bk$4in@news-2.csn.net> Thanks to Paul Janssens <paul@praktos.be> for pointing me to the /NextDeveloper/Examples/Appkit/Graph example... Answered my questions beautifully. Also thanks to Greg Anderson, Art Isbell and Eric Marshall for their timely replies. - Chris
Newsgroups: comp.sys.next.programmer From: King_Richard@pcp.ca (Richard King) Subject: Re: Lex/Yacc/AppKit (correction) Message-ID: <1995Jan13.174613.14119@pcp.ca> Sender: news@pcp.ca Organization: PanCanadian Petroleum Ltd. References: <1995Jan13.041537.10451@pcp.ca> Distribution: usa Date: Fri, 13 Jan 95 17:46:13 GMT In article <1995Jan13.041537.10451@pcp.ca> King_Richard@pcp.ca (Richard King) writes: > > Objective-C (well, NeXT's compiler in -ObjC mode) requires everything to > be linked in from every library that's included in a build, because it > isn't always known in advance what classes will be needed in an > application. So, the standard libl.a will contribute main(), but you > already have a main() in your project, in the <AppName>_main.c file. So > these clash and you get a link error. > On that point, got the following mail from michal@gortel.phys.ualberta.ca (Michal Jaegermann). I stand corrected, and thanks to Michal. Nope. This has nothing to do with Objective-C and a compiler, but everything with NeXT shared libraries and a linker. If things are in a shared library, there is no way to pry them out, since you will have references in a library table. NeXT will likely tell you that they did that for security reasons. Sometimes it is a big pain in a butt. Michal
From: chuston@dudley.com (Chris Huston) Newsgroups: comp.sys.next.programmer Subject: Re: Lex/Yacc/AppKit Date: 13 Jan 1995 17:45:55 GMT Organization: Colorado Supernet Distribution: usa Message-ID: <3f6e8j$837@news-2.csn.net> References: <3ev4bk$4in@news-2.csn.net> Thanks to Paul Janssens <paul@praktos.be> for pointing me to the /NextDeveloper/Examples/Appkit/Graph example... Answered my questions beautifully. Also thanks to Greg Anderson, Art Isbell and Eric Marshall for their timely replies. - Chris
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: Shared Memory in NextStep? Message-ID: <1995Jan13.205226.8097@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <3f4geb$kch@mercury.arc.ab.ca> Date: Fri, 13 Jan 1995 20:52:26 GMT In article <3f4geb$kch@mercury.arc.ab.ca> monckton@skyler.arc.ab.ca (simon monckton) writes: > I have searched high and low for shared memory functions in NextStep and > I have had no success...somebody out there please tell me I just can't > see the obvious!! Are there any shared memory libraries for NextStep?? > > Thanks in advance > Simon M. I found this in "/NextLibrary/Documentation/NextDev/OperatingSystem/Part1_Mach/04_MachFunc tions/MachFunctions.rtf": #import <mach/mach.h> kern_return_t vm_inherit(vm_task_t target_task, vm_address_t address, vm_size_t size, vm_inherit_t new_inheritance) ARGUMENTS [] DESCRIPTION The function vm_inherit() specifies how a region of a task's address space is to be passed to child tasks at the time of task creation. Inheritance is an attribute of virtual pages; thus the addresses and size of memory to be set will be rounded to refer to whole pages. Setting vm_inherit() to VM_INHERIT_SHARE and forking a child task is the only way two Mach tasks can share physical memory. However, all the threads of a given task share all the same memory. - Dimitri Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
From: tom_gall@vnet.ibm.com (Tom Gall) Newsgroups: comp.sys.next.programmer Subject: Re: More frustrations with EOF.... Date: 15 Jan 1995 00:45:49 GMT Organization: IBM Rochester MN Sender: tgall@wintermute.rchland.ibm.com (Tom Gall) Distribution: world Message-ID: <3f9r7t$1mmt@locutus.rchland.ibm.com> References: <3f4hof$kt@hermes.dna.mci.com> In article <3f4hof$kt@hermes.dna.mci.com>, celam@homebrew.cs.mci.com (Cliff Elam) writes: |> Well, I'm stumped. EOF was working fine (well, as fine as you could expect |> :-) and then I upgraded from 3.2 to 3.3 PR2. Now when I try to recompile my |> EOF stuff I get the following in PB: |> myapp_main.m:5: header file 'EOApplication.h' not found |> |> Any thoughts? The file really is way down there in |> /usr/include/eointerface/EOApplication.h |> |> I find problems like this especially frustrating sine I've gotten used to |> being coddled away from gross UNIXisms by NEXT's super-duper programming |> environment. Hi Cliff, It's a real simple thing to fix! Open your myapp_main.m file. Find the point where you see #import <EOApplication.h> Change it to: #import <eointerface/EOApplication.h> I'm on 3.3 with EOF 1.0. It's a minor NeXT fart in my book and you end up having to fix this every time you have an EOF application....but o well could be worse! |> Cliff Elam -- Hakuna Matata! Tom #include <std-disclaimer.h> |o| Tom Gall "Where's the ka-boom? There was supposed to be |o| |o| IBM Rochester an earth shattering ka-boom!" -Marvin Martian |o| |o| work: tom_gall@vnet.ibm.com (No NeXTMail) home: TGall@eworld.com |o|
From: pepper@dashi.us.dell.com (Ronald Pepper) Newsgroups: comp.sys.next.programmer Subject: NEEDED: GCC Package for Intel NeXT3.3 Date: Sun, 15 Jan 95 03:56:02 GMT Organization: Dell Computer Corporation Distribution: world Message-ID: <3faa04$77t@uudell.us.dell.com> Hello, Subject says it all. Please post and if you can, mail it please-Next mail accepted. Thanks in advance. ***===--- Ronald Pepper - NeXT Mail: pepper@socratb.us.dell.com ---===*** 'My name is Inigo Montoya' Product Support 'You killed my father, prepare to die!' Advanced Systems All opinions expressed are mine alone. Dell Computer Corporation
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: More frustrations with EOF.... Date: 15 Jan 1995 13:34:24 GMT Organization: University of Heidelberg, Germany Distribution: world Message-ID: <3fb890$mki@sun0.urz.uni-heidelberg.de> References: <3f4hof$kt@hermes.dna.mci.com> In article <3f4hof$kt@hermes.dna.mci.com> celam@homebrew.cs.mci.com (Cliff Elam) writes: > Well, I'm stumped. EOF was working fine (well, as fine as you could expect > :-) and then I upgraded from 3.2 to 3.3 PR2. Now when I try to recompile my > EOF stuff I get the following in PB: > myapp_main.m:5: header file 'EOApplication.h' not found > > Any thoughts? The file really is way down there in > /usr/include/eointerface/EOApplication.h Sounds familiar to me :-( Right now I'm struggling with MiscKit -- the same problem. It seems that the boys from NeXT changed the makefiles (but I still cannot find where and how -- ok, the shared library change is obvious). I started to write the Misc Makefile using the new (and this time with no bugs ;-) PB, and then everything is OK, but I really have no idea what's going on %%^&%*#&^ I love computers and new releases ;-) -- georg --
Newsgroups: comp.sys.next.programmer,comp.sys.next.software From: c92kl@comlab.ox.ac.uk (Kenneth Lomax) Subject: MIDI Interface for the Next. Help please!!!!! Message-ID: <1995Jan15.131652.505@client40.comlab.ox.ac.uk> Originator: c92kl@client40.comlab Sender: c92kl@comlab.ox.ac.uk (Kenneth Lomax) Organization: Oxford University Computing Laboratory, UK Date: Sun, 15 Jan 1995 13:16:52 GMT Hi. Could anyone please tell me where I can find a MIDI interface for the Next? (Preferably in the UK) Please reply to my e-mail. Thank you very much. Ken Lomax
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Sat, 14 Jan 95 17:27:24 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501141627.AA03569@flexus> Subject: Re: Problem of cyclic references with FoundationKit >>>>> Pieter Schoenmakers writes: In article <9501121859.AA06205@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: Pieter Schoenmakers writes: > The only thing needed for this paradigm is that the owner > does a `-cleanup' before the `-release'. No need for that. Just release all the owned stuff in dealloc. Why would you like a ``meta'' level? Apparantly, you didn't quite understand what I meant. You can use the meta level to avoid the problem of cyclic referencing. Your suggestion of only releasing ivars in dealloc *is* the problem of cyclic referencing. When will we get a word from anyone at NeXT? Why? <<<<< I don't see how -cleanup will work with shared ownership: NXImage, NSString, and others (you don't want to sabotage what another object may still need). Do tell... Ownership as I mean it does not mean a license to kill, but a license to keep alive, through a -retain. This ownership graph is acyclic, and reference counting will be effective. Examples: a View owns its subviews list but not its superview or its window, a delegate is not owned, a collection class may (View's subview list) or may not own what it refers to as recorded in an instance variable. I'd like to hear from NeXT what they have to say about this, how -autorelease works (in detail), and what they are planning to do about the problems mentioned... Are they thinking about this at all? Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium Addressing limitations: no !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: murphy@wsc.com (Paul Murphy) Newsgroups: comp.sys.next.programmer Subject: Re: TIP: Making Obj-C source-code readable for everyone - using hyperlinks Date: 15 Jan 1995 21:47:13 GMT Organization: WSC Investment Services, Inc. Distribution: world Message-ID: <MURPHY.95Jan15164713@eos.wsc.com> References: <1995Jan13.010649.3001@silicium.fdn.fr> <3f6agn$hs7@darkstar.UCSC.EDU> In-reply-to: art@cubicsol.com's message of 13 Jan 1995 16:41:59 GMT Art Isbell writes: > If the updated Edit app (as previewed at the last Expo) is included in > 3.3 Developer, it will implement much of what some people want to do using > RTF source while using plain text. This seems preferable to adding all > the RTF directives and extra preprocessing required to deal with RTF > source. Amen. Not to mention the fact that lots of standard Unix development tools (editors, version control systems, call graph generators, etc.) are pretty much useless when dealing with RTF source. I'm happy to hear that NeXT is fixing Edit instead of breaking IB. Go NeXT. - Paul murphy@wsc.com
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: EOF/NXTableView display problem Date: 16 Jan 1995 02:49:51 GMT Organization: MCI Communications Distribution: world Message-ID: <3fcmsf$920@hermes.dna.mci.com> [That noise late last night? Me hitting my head on the corner of my desk: I had an EOFDepressionAssociation!] Ok, I'm trying to programmatically hook two NXTableView columns to two EOControllers. I'm using the PEOPLE database and my little applet has one NXTableView (one column) for the Department name, and another NXTableView (two columns) for the last and first names in the department. All the IB connections you'd expect are there. The amazing thing is that I get the right number of non-text-displaying cells in the Department NXTableView (master) and visible cells in the (detail) first and last name NXTableView columns. In other words, if I click in the first non-text-displaying cell in the Department NXTableView I get the employees in that column, if I click in the second non-text-displaying cell in the Department NXTableView I get the employees for that department in my detail NXTableView. (Hope that's clear: it's been a long day.) Here's my appDidInit method: - appDidInit: sender { Class assocClass; EOColumnAssociation *myAssociation; // first do the master: NXTableView DepartmentName column assocClass = [departmentNameColumn associationClass]; myAssociation = [[assocClass alloc] initWithController:myMasterEOController key:@"DEPARTMENT" destination:departmentNameColumn]; [myAssociation setTableView: departmentTableView]; [myMasterEOController addAssociation:myAssociation]; // now do the detail columns.... // first the first name column assocClass = [firstNameColumn associationClass]; myAssociation = [[assocClass alloc] initWithController:myDetailEOController key:@"FIRST_NAME" destination:firstNameColumn]; [myAssociation setTableView: employeeTableView]; [myDetailEOController addAssociation:myAssociation]; // then the last name column assocClass = [lastNameColumn associationClass]; myAssociation = [[assocClass alloc] initWithController:myDetailEOController key:@"LAST_NAME" destination:lastNameColumn]; [myAssociation setTableView: employeeTableView]; [myDetailEOController addAssociation:myAssociation]; [myMasterEOController fetch]; return self; } Any ideas? -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
Newsgroups: comp.unix.programmer,comp.sys.next.programmer From: hocker@ritz.mordor.com (Matthew Hocker) Subject: Good documentation on sockets? Sender: news@news2.new-york.net (Network News) Organization: Misconfigured client newsreader Date: Mon, 16 Jan 1995 05:01:10 GMT Message-ID: <D2HF9z.1rq@news2.new-york.net> I'm trying to teach myself how to use sockets on my NeXTstation (NeXT 3.3/3.2 developer) and I haven't had much luck with the man pages. Is there better documentation available anywhere on the Internet? Or, can anyone recommend a good book on the subject? Thanks Matt -- ====== Matthew Hocker, B.Eng [W]-cooled Volkswagen fanatic **** Canadian NeXT hocker@mordor.com GTI, Scirocco 16V, Jetta 16V * \/ * +American mail This posting is recyclable! ...Amiga forever... *\/\/* ========== Welcome "Believer in all things well designed & engineered" **** spam'n'ehs
From: mark@xexos.com (Mark Chamberlain) Newsgroups: comp.sys.next.programmer Subject: Re: Good documentation on sockets? Date: 16 Jan 1995 05:27:41 GMT Organization: Xexos Ltd, London Message-ID: <3fd04d$5s1@xexos.xexos.com> References: <D2HF9z.1rq@news2.new-york.net> In article <D2HF9z.1rq@news2.new-york.net> hocker@ritz.mordor.com (Matthew Hocker) writes: > > I'm trying to teach myself how to use sockets on my NeXTstation (NeXT 3.3/3.2 > developer) and I haven't had much luck with the man pages. Is there better > documentation available anywhere on the Internet? Or, can anyone recommend a > good book on the subject? > "Unix Network Programming" by W. Richard Stevens, pub Prentice Hall - definitive guide to programming sockets and TCP/IP - shows both BSD and SysV versions of doing things If you want to become a networking geek then other good TCP/IP books are "TCP/IP Illustrated, Volume 1" also by Stevens, pub Addison Wesley. "Internetworking with TCP/IP Volumes 1, 2 and 3" by Douglas Comer + W. Richard Stevens, pub Prentice Hall. In fact, anything authored by "Comer" or "Stevens" is worth buying pretty immediately. -- Mark Chamberlain +44 171 237 4535 Xexos Ltd fax +44 171 231 0844 London mark@xexos.com
From: Faizel Dakri Newsgroups: comp.sys.next.programmer Subject: Re: Good documentation on sockets? Date: 16 Jan 1995 06:09:16 GMT Organization: The University of Texas at Austin, Austin, Texas Message-ID: <3fd2ic$iao@geraldo.cc.utexas.edu> References: <3fd04d$5s1@xexos.xexos.com> In article <3fd04d$5s1@xexos.xexos.com> mark@xexos.com (Mark Chamberlain) writes: [munch] > "Unix Network Programming" by W. Richard Stevens, pub Prentice Hall > - definitive guide to programming sockets and TCP/IP - shows both BSD and SysV > versions of doing things [munch] I'd have to agree on that one--this was the book I used when I first wanted to learn how to use sockets. There's a lot of good information in this book, and best of all, there's tons of example code to get you going quickly. -- Faizel Dakri faizel@mail.utexas.edu NeXTmail *friendly*
From: mcgredo@crl.com (Donald R. McGregor) Newsgroups: comp.sys.next.programmer Subject: Re: Good documentation on sockets? Date: 15 Jan 1995 22:42:25 -0800 Organization: YoyoDyne Propulsion Systems Message-ID: <3fd4gh$q6d@crl12.crl.com> References: <3fd04d$5s1@xexos.xexos.com> <3fd2ic$iao@geraldo.cc.utexas.edu> In article <3fd2ic$iao@geraldo.cc.utexas.edu> faizel@mail.utexas.edu (Faizel M. Dakri) writes: :>> "Unix Network Programming" by W. Richard Stevens, pub Prentice Hall :>> - definitive guide to programming sockets and TCP/IP - shows both BSD and :>SysV :>> versions of doing things :>[munch] :> :>I'd have to agree on that onethis was the book I used when I first wanted to :>learn how to use sockets.There's a lot of good information in this book, and :>best of all, there's tons of example code to get you going quickly. The code in the book is available via ftp. Archie says onion.rain.com /rain/text/stevens-book-code.tar shark.cse.fau.edu /pub/src/stevens.netprog.tar -- Don McGregor |"Speak out, sir, and do not Maister or Campbell me--my foot mcgredo@crl.com| is on my native heath, and my name is MacGregor!" -W. Scott
From: gherlein@crl.com (Greg Herlein) Newsgroups: comp.unix.programmer,comp.sys.next.programmer Subject: Re: Good documentation on sockets? Followup-To: comp.unix.programmer,comp.sys.next.programmer Date: 15 Jan 1995 23:10:11 -0800 Organization: CRL Dialup Internet Access (415) 705-6060 [Login: guest] Message-ID: <3fd64j$eu8@crl7.crl.com> References: <D2HF9z.1rq@news2.new-york.net> Matthew Hocker (hocker@ritz.mordor.com) wrote: : I'm trying to teach myself how to use sockets on my NeXTstation (NeXT 3.3/3.2 : developer) and I haven't had much luck with the man pages. Is there better : documentation available anywhere on the Internet? Or, can anyone recommend a : good book on the subject? I think I am at the same spot - trying to learn how to program with sockets - I am reading " UNIX Network Programming" by Richard Stevens. It came to me recomended, and seems pretty thourough...lots of good explanation and source code examples. Good luck! -- Greg Herlein Vallejo, CA gherlein@crl.com
From: Bernhard Scholz <scholz@TU> Newsgroups: comp.sys.next.advocacy,comp.sys.next.misc,comp.sys.next.programmer,comp.sys.next.sysadmin,de.com.sys.next,comp.sys.next.software,comp.sys.next.hardware Subject: NeXT FAQ Date: Mon, 16 Jan 1995 14:13:33 +0100 Organization: Technische Universitaet Muenchen, Germany Distribution: world Message-ID: <Pine.HPP.3.91.950116140134.26082A-100000@hphalle2d.informatik.tu-muenchen.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII No, this isn't a new NeXT FAQ! BUT: I'm currently recompiling the old FAQs and inserting new stuff to compile a new FAQ. I am pretty sure that I can't maintain such a big work very long, so I need _YOU!_ The current status of the FAQ: ready to post, waiting for registration of news.answer. Includes only old stuff but rewritten in texinfo so there are .dvi .ps and .html files available. I need YOU for helping me with: - sending me submissions you want to be included in a FAQ. (I just can't read all the articles in all newsgroups...) - collection news and writing articles about NeXT hardware specific topics (comp.sys.next.hardware newsgroup) - collecting news and writing articles about NeXT/UNIX specific topics (comp.sys.next.sysadmin newsgroup) - collecting news and writing articles about NeXT software specific topics (comp.sys.next.software newsgroup) - re-reading my prepared articles (I'm German and do _lots_ of mistakes when writing in English) Hopefully at least two people are willing to help me, because I'm only a student and just don't have the time to hang around with FAQ work, also I'll do me best. Greetings, Boerny. _____________________________________________________________________________ Bernhard Scholz (IRC: (Boerny) #amiga, #next) Opinions are my own! scholz@informatik.tu-muenchen.de (prefered) Computers can do everthing scholz@gsocmail.rm.op.dlr.de (emergency) better than human --- http://www.leo.org/~scholz/scholz.html especially doing mistakes.
Newsgroups: comp.sys.next.programmer From: hocker@ritz.mordor.com (Matthew Hocker) Subject: Re: Good documentation on sockets? References: <3fd4gh$q6d@crl12.crl.com> Sender: news@news2.new-york.net (Network News) Organization: Misconfigured client newsreader Date: Mon, 16 Jan 1995 14:40:50 GMT Message-ID: <D2I643.HnA@news2.new-york.net> In article <3fd4gh$q6d@crl12.crl.com> mcgredo@crl.com (Donald R. McGregor) writes: > In article <3fd2ic$iao@geraldo.cc.utexas.edu> faizel@mail.utexas.edu (Faizel M. Dakri) writes: > :>> "Unix Network Programming" by W. Richard Stevens, pub Prentice Hall > :>> - definitive guide to programming sockets and TCP/IP - shows both BSD and > :>SysV > :>> versions of doing things > :>[munch] > :> > :>I'd have to agree on that onethis was the book I used when I first wanted to > :>learn how to use sockets.There's a lot of good information in this book, and > :>best of all, there's tons of example code to get you going quickly. > > The code in the book is available via ftp. Archie says > > onion.rain.com /rain/text/stevens-book-code.tar > shark.cse.fau.edu /pub/src/stevens.netprog.tar > > -- > Don McGregor |"Speak out, sir, and do not Maister or Campbell me--my foot > mcgredo@crl.com| is on my native heath, and my name is MacGregor!" -W. Scott Thanks to everyone for all the tips! It looks like "Unix Network Programming" is now on my "books to buy" list. I tried to download the source, but onion.rain.com doesn't exist and the file isn't there on shark.cse.fau.edu. Is the source anywhere else? Mstt -- ====== Matthew Hocker, B.Eng [W]-cooled Volkswagen fanatic **** Canadian NeXT hocker@mordor.com GTI, Scirocco 16V, Jetta 16V * \/ * +American mail This posting is recyclable! ...Amiga forever... *\/\/* ========== Welcome "Believer in all things well designed & engineered" **** spam'n'ehs
From: Bernhard Scholz <scholz@informatik.tu-muenchen.de> Newsgroups: comp.sys.next.advocacy,comp.sys.next.programmer,comp.sys.next.sysadmin,comp.sys.next.hardware,comp.sys.next.software,comp.sys.next.misc,de.comp.sys.next Subject: Errata: NeXT FAQ Date: Mon, 16 Jan 1995 17:22:09 +0100 Organization: Technische Universitaet Muenchen, Germany Distribution: world Message-ID: <Pine.HPP.3.91.950116170435.8628K-100000@hphalle10d.informatik.tu-muenchen.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 1) EXCUSE ME: I misconfigured PINE wrong, therefore the FROM: line contains garbage. To contact me, write to scholz@informatik.tu-muenchen.de Anyway I fixed the bug and everything should work fine now. 2) People who want to help, should include a subject line like: FAQ: helping on <(de.)comp.sys.next.*> I would like to have people watching one newsgroup carefully for FAQ related topics. Currently I'm watching _all_ newsgroups on the fly :-) 3) People who want to send submissions to the FAQ should include a subject line like: FAQ: submission 4) I'm planing an e-mail service. People who like to get the FAQ by e-mail should e-mail me with the following subject line: FAQ: subscribe I'm not sure wether I can convince my system administrator so maybe this service might get canned :( 5) The FAQ is going to be posted _monthly_. A biweekly change log is under construction. The first FAQ will be posted as fast as news.answers has registrated the NeXT FAQ. Therefore the first time a FAQ will be posted regularly might become the 01.03.1995. I'll hope to post a pre-release in February. Sorry for the trouble and thanks to the people who helped/are going to help me, Boerny. _____________________________________________________________________________ Bernhard Scholz (IRC: (Boerny) #amiga, #next) Opinions are my own! scholz@informatik.tu-muenchen.de (prefered) Computers can do everthing scholz@gsocmail.rm.op.dlr.de (emergency) better than human --- http://www.leo.org/~scholz/scholz.html especially doing mistakes.
From: m.crawford@dcs.shef.ac.uk (mmalcolm Crawford) Newsgroups: comp.sys.next.programmer Subject: Re: Problem with sound delegation Date: 16 Jan 1995 09:29:10 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <950116152551.243AACUV.malc@white> References: <3f33pr$rpn@lorne.stir.ac.uk> >I am trying to use delegation with sound to detect the end of the playing >of a sound etc: I'd like to make the Application (called StimuliGen) the >delegate > I don't think I've ever got this to work either -- if you're waiting for the Sound to finish before freeing it, you could use something like: soundStruct = [sound soundStruct]; SNDStartPlaying(soundStruct, 4, 4, 0, SND_NULL_FUN, SND_NULL_FUN); SNDWait(4); I'm not sure why you'd want the Application to be the delegate, though...? I presume you've subclassed NXApp...? Have fun, mmalc.
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: My wish for 95: alt-delete deletes caracter right of the cursor Date: Mon, 16 Jan 1995 15:28:28 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950116152828.243AACUW.malc@white> References: <3eu2gp$5u8@op1d56ifs.il.us.swissbank.com> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII >I'd like to find a utility that would add to the functionnality of the >delete key so that I could delete to the right of the cursor instead of to >to the left. > Many applications use the Emacs Control-d combination to do just this; examples include PasteUp, WriteUp, FrameMaker, Edit, Eloquent and I think Mail... many more too I'm sure. Have fun, mmalc.
From: balfanz@zorro.informatik.hu-berlin.de (Dirk Balfanz) Newsgroups: comp.sys.next.programmer Subject: Distributed Objects Question Date: 16 Jan 1995 15:33:30 GMT Organization: Humboldt University Berlin, Department of Computer Science Distribution: world Message-ID: <3fe3ka$pad@hahn.informatik.hu-berlin.de> Hi there, how can I have a server object contact back an object passed to the server by means of a proxy? Consider the following code being run: *first: myServer = [MyServer new]; theConnection = [NXConnection registerRoot: myServer withName: "MyServer"]; *then (on the client's side): theServer = [NXConnection connectToName: "MyServer" onHost: "thathost"]; [theServer sayHelloFrom: self]; *which results on the server's side in: ( -sayHelloFrom:sender { ) client = sender; // just store the Proxy's id. ( return; } ) *when I then later try to call back the client (*after*) its sayHelloFrom: method returned: ( -replyToClient { ) [client niceToMeetYou]; ( return; } ) it won't work. (The server just hangs.) What do I have to do on the client's side to receive callbacks after my method which contacted the server returned? I guess I have to establish an NXConnection to solicit the incoming messages to my client object. But how? I didn't find anything in the docs. They just say: "[server useAnId: self]; // send an arbitrary local object Methods in the client can be invoked by the server before the client's invocation of the useAnId: method returns. " It must be possible to contact back the client afterwards. Anyone knows how to do that? Dirk. P.S. I'm not exactly sure whether I was able to express my problem ;-(, but hopefully someone can make sense of it.
From: samschap@merle.acns.nwu.edu (Sam Schapmann) Newsgroups: comp.sys.next.programmer Subject: Re: More frustrations with EOF.... Date: 16 Jan 1995 16:05:22 GMT Organization: Halaby Corporation Message-ID: <3fe5g2$bk6@news.acns.nwu.edu> References: <3f4hof$kt@hermes.dna.mci.com> <3f9r7t$1mmt@locutus.rchland.ibm.com> In article <3f9r7t$1mmt@locutus.rchland.ibm.com>, Tom Gall <tom_gall@vnet.ibm.com> wrote: >Hi Cliff, > > It's a real simple thing to fix! > > Open your myapp_main.m file. > > Find the point where you see #import <EOApplication.h> > > Change it to: #import <eointerface/EOApplication.h> > Also, after modifying your _main file don't forget to go to the PB "At- tributes" page and uncheck the "Generate Main File on Save" box. Otherwise, each time you update your project the changes you made to the _main file will be overwritten. -Sam
From: rft@raven.cg.tuwien.ac.at (Robert F Tobler) Newsgroups: comp.sys.next.programmer Subject: Re: My wish for 95: alt-delete deletes caracter right of the cursor Date: 16 Jan 1995 16:53:03 GMT Organization: Vienna University of Technology, Austria Message-ID: <3fe89f$4os@news.tuwien.ac.at> References: <3eu2gp$5u8@op1d56ifs.il.us.swissbank.com> In article <3eu2gp$5u8@op1d56ifs.il.us.swissbank.com> trefalt@swissbank.com (Chris Trefalt) writes: > Hi all, > > I'd like to find a utility that would add to the functionnality of the > delete key so that I could delete to the right of the cursor instead of to > to the left. Wordperect does this with alt-delete and I've grown used to Since it's in the wishes for '95 category, I'd like to add mine: Shift-CursorLeft, Shift-CursorRight, Shift-CursorUp, and Shift-CursorDown extend the current selection. (like in MS Word ...). But this would be harder to implement using a special "Keyboard-daemon" like program. So I think it should be suggested to NeXT for adding it to the functionality of the Text-object. This should not pose to many problems, since these key-combinations do not have any special meaning yet, i.e. they do normal cursor positioning like their unshifted equivalents. Robert F. Tobler Institute of Computer Graphics Technical University of Vienna
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Re: More frustrations with EOF.... Date: 16 Jan 1995 17:40:10 GMT Organization: MCI Communications Distribution: world Message-ID: <3feb1q$2v4@hermes.dna.mci.com> References: <3fe5g2$bk6@news.acns.nwu.edu> In article <3fe5g2$bk6@news.acns.nwu.edu> samschap@merle.acns.nwu.edu (Sam Schapmann) writes: > In article <3f9r7t$1mmt@locutus.rchland.ibm.com>, > Tom Gall <tom_gall@vnet.ibm.com> wrote: > > > Open your myapp_main.m file. > > > > Find the point where you see #import <EOApplication.h> > > > > Change it to: #import <eointerface/EOApplication.h> > > Also, after modifying your _main file don't forget to go to the PB "At- > tributes" page and uncheck the "Generate Main File on Save" box. , > Otherwise each time you update your project the changes you made to the > _main file will be overwritten. > Yah, I eventually hacked that one out. However, why should I have to do that? I'm trying to teach some new programmers NS *and* EOF (I must have sinned in a past life :-) and I hate explaining/excusing this sort of thing. -=C -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
From: hahn@neurocog.lrdc.pitt.edu (Mark Hahn) Newsgroups: comp.unix.programmer,comp.sys.next.programmer Subject: Re: Good documentation on sockets? Date: 16 Jan 1995 18:08:16 GMT Organization: Learning Research and Development Center at U. of Pittsburgh Message-ID: <3fecmg$2lb@usenet.srv.cis.pitt.edu> References: <D2HF9z.1rq@news2.new-york.net> <3fd64j$eu8@crl7.crl.com> > I think I am at the same spot - trying to learn how to program with > sockets - I am reading " UNIX Network Programming" by Richard Stevens. > It came to me recomended, and seems pretty thourough...lots of good > explanation and source code examples. it's an excellent book, and priced accordingly. I learned on the cheap by reading the BSD IPC tutorial, which seems quite clear and contains examples. it's available many places, including: neurocog.lrdc.pitt.edu:/pub/ipc-tutorial.* regards, mark hahn. -- operator may differ from spokesperson. hahn@neurocog.lrdc.pitt.edu
Newsgroups: comp.sys.next.programmer From: tgugger@norden1.com (Tom Gugger) Subject: NEXTSTEP/CAREER POSITION Message-ID: <1995Jan16.190636.26107@norden1.com> Organization: Norden 1 Communications Date: Mon, 16 Jan 1995 19:06:36 GMT The EAGLE GROUP is currently representing six major companies that specialize in the NEXTSTEP platform. These companies are offering full benefits and relocation assistance. All positions require commercial NEXTSTEP experience. PLATFORM---------------------NEXTSTEP LANGUAGE---------------------OBJECTIVE C DESIRED----------------------DB KIT DESIRED----------------------SYBASE A PLUS-----------------------EOF A PLUS-----------------------FINANCIAL APPLICATION EXPERIENCE TO BE CONSIDERED--------FAX RESUME OR MAIL A HARD COPY. ... * ATP/qwk 1.42 * The fish in the sea are as good as the fish removed. -- tgugger@norden1.com (419) 882-7339 [fax] Eagle Group (419) 882-8006 [voice] PO Box 8167 Sylvania, Ohio 43560
Newsgroups: comp.sys.next.programmer From: jbright@stimpy (Jason Bright) Subject: Re: My wish for 95: alt-delete deletes caracter right of the cursor Message-ID: <D2IIvz.Jrr@cunews.carleton.ca> Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University References: <3eu2gp$5u8@op1d56ifs.il.us.swissbank.com> <3fe89f$4os@news.tuwien.ac.at> Date: Mon, 16 Jan 1995 19:16:46 GMT Robert F Tobler (rft@raven.cg.tuwien.ac.at) wrote: : Since it's in the wishes for '95 category, I'd like to add mine: I've got one.... How bout text drag and drop a la Solaris (probably the ONLY nice thing I have to say about its interface). Select a bunch of text with the mouse. Mouse down in the middle of the selection and drag.... get the little text icon and drag the text out. OmniWeb lets you do this with images....very nice feature (good job Omni gang). I guess I _could_ subclass Text to do this, but I'm lazy..... later j jbright@stimpy.carleton.ca
From: mark@susie.gets.ge.com (Mark Ritchie) Newsgroups: comp.sys.next.programmer Subject: Re: EOF/NXTableView display problem Date: 16 Jan 1995 19:48:07 GMT Organization: General Electric Company Distribution: world Message-ID: <3feihn$rrm@alva.ge.com> References: <3fcmsf$920@hermes.dna.mci.com> Cliff Elam writes > Ok, I'm trying to programmatically hook two NXTableView columns to two > EOControllers. > > [munch] > // first do the master: NXTableView DepartmentName column > assocClass = [departmentNameColumn associationClass]; > myAssociation = [[assocClass alloc] > initWithController:myMasterEOController > key:@"DEPARTMENT" ^^^^^^^^^^ > destination:departmentNameColumn]; > [munch] > Any ideas? Hi Cliff, I think that you want the key to be 'DEPARTMENT_NAME'... (Damn computers... do what you type instead of what you want :-) Mark -- Mark Ritchie - Object Oriented Developer GE Capital Technology Services Mississauga, Ontario, Canada mark@susie.gets.ge.com [NeXTmail]
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: EOF multiple declaration problem Date: 16 Jan 1995 19:58:21 GMT Organization: MCI Communications Distribution: world Message-ID: <3fej4t$3q8@hermes.dna.mci.com> If ya'll havn't noticed yet - I am getting a little frustrated with the various problems EOF is having fitting into Next's development environment. I mean, if I wanted to fight silly include file problems, I could go program under Windoze. Of course, then my sedative bill would go up! I have the following included in my controller.h file: #import <appkit/appkit.h> #import <eoaccess/eoaccess.h> #import <eointerface/eointerface.h> I've got the following error message: MyController.m:99: warning: multiple declarations for method `name' /NextDeveloper/Headers/objc/Object.h:47: warning: using `-(const char *)name' /NextDeveloper/Headers/eoaccess/EOModel.h:62: warning: also found `-(NSString *)name' /NextDeveloper/Headers/eoaccess/EORelationship.h:48: warning: also found `-(NSString *)name' /NextDeveloper/Headers/eoaccess/EOEntity.h:60: warning: also found `-(NSString *)name' /NextDeveloper/Headers/eoaccess/EOAttribute.h:66: warning: also found `-(NSString *)name' /NextDeveloper/Headers/eoaccess/EOAdaptor.h:79: warning: also found `-(NSString *)name' Any thoughts? -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: What's all this casting crap? Date: 16 Jan 1995 20:02:06 GMT Organization: MCI Communications Distribution: world Message-ID: <3fejbu$3s2@hermes.dna.mci.com> Have I missed something, or am I seeing a bunch of pointer casting in Next's objective-c class libraries? I'm EOFing and all of a sudden I'm seeing all this example code with: NSString *aString aString = (NSString *) [myObject name]; I'm sorry, but NSString is an object (or looks like one), so why cast? If I wanted to cast stuff I'd code in C++! One of the things I liked best about obj-c was that I could treat lots of stuff like generic objects (kudos to Next for more protocols and clusters) and drop into C when I needed. So, what's up with the casting? -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
From: sbeck@math.lsu.edu (Stephen David Beck) Newsgroups: comp.sys.next.programmer Subject: NXHelp problem in 3.3 Date: 16 Jan 1995 20:55:16 GMT Organization: Louisiana State University InterNetNews Site Message-ID: <3femfk$2d7f@te6000.otc.lsu.edu> I have been developing an application in 3.2 on black hardware which makes use of the NS Help panels. The help panel works fine on both white and black in 3.2. But when someone tried it on 3.3 Intel, a system error responded that libIndexing must be linked. I've never heard of that, but has anyone else? -- Stephen David Beck Electro-Acoustic Music Studios School of Music Louisiana State University Baton Rouge, LA 70803
From: btschumy@bga.com (Bill Tschumy) Newsgroups: comp.sys.next.programmer Subject: Re: NXHelp problem in 3.3 Date: 16 Jan 1995 15:49:47 -0600 Organization: Otherwise Message-ID: <3feplr$4n8@lia.bga.com> References: <3femfk$2d7f@te6000.otc.lsu.edu> In article <3femfk$2d7f@te6000.otc.lsu.edu>, Stephen David Beck <sbeck@math.lsu.edu> wrote: >I have been developing an application in 3.2 on black hardware which makes >use of the NS Help panels. The help panel works fine on both white and >black in 3.2. But when someone tried it on 3.3 Intel, a system error >responded that libIndexing must be linked. > >I've never heard of that, but has anyone else? > >-- >Stephen David Beck >Electro-Acoustic Music Studios >School of Music >Louisiana State University >Baton Rouge, LA 70803 I'm surprised that the app works under 3.2 without libIndexing being included. Normally ProjectBuilder adds libIndexing to the list of libraries when you choose the Add Help Directory command. Indexing is needed by NXHelpPanel to decode the Help.store file. Bill Tschumy | Posting news to thousands of machines Otherwise | throughout the entire civilized world. bill@otherwise.com | Costing the net hundreds if not thousands (NeXTmail and MIME accepted) | of dollars to send everywhere.
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Re: More frustrations with EOF.... Date: 16 Jan 1995 23:24:03 GMT Organization: MCI Communications Distribution: world Message-ID: <3fev6j$56i@hermes.dna.mci.com> References: <3fenh2$1jh7@locutus.rchland.ibm.com> In article <3fenh2$1jh7@locutus.rchland.ibm.com> tom_gall@vnet.ibm.com (Tom Gall) writes: > [eof not included correctly when you start PB/IB initially > > A better way to go is to patch your makefile via -I so gcc checks out the > eof directories for includes. > > A much better solution in my mind.... > > Clear as mud? > Huh? How? What? This should probably be in the FAQ's - I'm not the only one with this question, I'm sure! -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
From: bjanzen@rmii.com (Barry Janzen) Newsgroups: comp.sys.next.programmer Subject: Draw.app inside IB? FOUND IT! Date: 16 Jan 1995 23:45:48 GMT Organization: Rocky Mountain Internet Inc Message-ID: <3ff0fc$1i1@potogold.rmii.com> Newsgroups: comp.sys.next.advocacy,comp.sys.next.programmer,comp.sys.next.software Subject: Draw.app inside of IB? FOUND IT! Summary: Followup-To: Distribution: Organization: Rocky Mountain Internet Inc Keywords: Cc: Thanks to all who responded to my request for something like Draw.app inside of Interface Builder. Three of them looked pretty much the same - UHOOP (University of Houston EE Dept), IBLines by Don McGregor, and RDRGadgets Palette. But what REALLY caught my eye (if you see the icon you'll get the pun) is HyperSense (on ftp.cs.orst.edu under pub/next/hypersense ). It's HyperCard on steroids, and while it may work somewhat differently than a typical NEXTSTEP Project, I'll take that in exchange for the dynamic drawing PLUS some level of compatibility to Mac/Windows/X11/OS2 HyperCard products. I'm curious as to other developer's responses to HyperSense - to me it sure beats the pants off of most of the other things (palettes, demos, etc..) I've seen on NEXTSTEP. I'll summarize the responses. Barry Janzen bjanzen@lexmark.com (work - NeXTMail ok) bjanzen@rmii.com (home)
Newsgroups: comp.sys.next.programmer From: sowa@netcom.com (Erik Sowa) Subject: Re: What's all this casting crap? In-Reply-To: celam@homebrew.cs.mci.com's message of 16 Jan 1995 20:02:06 GMT Message-ID: <SOWA.95Jan16140936@netcom8.netcom.com> Sender: sowa@netcom.com (Erik Sowa) Organization: Wahoo 5 References: <3fejbu$3s2@hermes.dna.mci.com> Date: Mon, 16 Jan 1995 22:09:35 GMT >>>>> "Cliff" == Cliff Elam <celam@homebrew.cs.mci.com> writes: Cliff> So, what's up with the casting? Good question. The only thing I've been able to guess is that it kills the 'multiple declaration' warnings you mentioned in your previous post. -- Erik Sowa (sowa@netcom.com) -- Erik Sowa (sowa@netcom.com)
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: EOF multiple declaration problem Message-ID: <1995Jan16.225014.15898@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3fej4t$3q8@hermes.dna.mci.com> Date: Mon, 16 Jan 1995 22:50:14 GMT Cliff Elam writes > If ya'll havn't noticed yet - I am getting a little frustrated with the > various problems EOF is having fitting into Next's development environment. > I mean, if I wanted to fight silly include file problems, I could go program > under Windoze. Of course, then my sedative bill would go up! > > I have the following included in my controller.h file: > #import <appkit/appkit.h> > #import <eoaccess/eoaccess.h> > #import <eointerface/eointerface.h> > > I've got the following error message: > MyController.m:99: warning: multiple declarations for method `name' > /NextDeveloper/Headers/objc/Object.h:47: warning: using `-(const char *)name' > /NextDeveloper/Headers/eoaccess/EOModel.h:62: warning: also found `-(NSString > *)name' > /NextDeveloper/Headers/eoaccess/EORelationship.h:48: warning: also found > `-(NSString *)name' > /NextDeveloper/Headers/eoaccess/EOEntity.h:60: warning: also found > `-(NSString *)name' > /NextDeveloper/Headers/eoaccess/EOAttribute.h:66: warning: also found > `-(NSString *)name' > /NextDeveloper/Headers/eoaccess/EOAdaptor.h:79: warning: also found > `-(NSString *)name' > > Any thoughts? > The problem actually doesn't have anything to do with the header file resolution or EOF. It is because you are sending the -name message to an object that has been typed as an id. The problem is that there are several prototypes of the -name method (returns different types) and because your object is typed as an id, the compiler doesn't know which prototype to use. The solution is to statically type your object variable or to temporarily type cast it in your -name message send: instead of: id myObject; do this: EOModel *myObject; // or whatever your class is or instead of: [myObject name]; do this: [(EOModel *)myObject name]; That way, the compiler will know which version of the name method to use. In general, I find it's best to statically type your variables whenever possible. If you know the class, use it instead of id. The only exception to this is in taking parameters in, or returning from a method. In those cases, it is usually beneficial to take and return ids in those cases. Good luck... -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Newsgroups: comp.sys.next.programmer From: pelletk@il.us.swissbank.com (Ken Pelletier) Subject: Re: What's all this casting crap? Message-ID: <1995Jan16.231004.16053@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3fejbu$3s2@hermes.dna.mci.com> Date: Mon, 16 Jan 1995 23:10:04 GMT Cliff Elam writes > Have I missed something, or am I seeing a bunch of pointer casting in Next's > objective-c class libraries? > > I'm EOFing and all of a sudden I'm seeing all this example code with: > > NSString *aString > aString = (NSString *) [myObject name]; > > I'm sorry, but NSString is an object (or looks like one), so why cast? If I > wanted to cast stuff I'd code in C++! > > One of the things I liked best about obj-c was that I could treat lots of > stuff like generic objects (kudos to Next for more protocols and clusters) > and drop into C when I needed. > > So, what's up with the casting? > Cliff, The problem is that there are conflicting declarations of the -name method, some returning NSString object instances and others returning (const char *). You've got to tell the compiler which one you want to use by either statically typing the receiver (myObject, in your example), or casting the return type of the message expression (as in your example). Ken -- NiKA Software | ken@nika.com Registered NEXTSTEP Consultant | pelletk@swissbank.com NiKA Software | 1207 W. Newport Ave. | Chicago, IL 60657 |
From: Greg.Titus@mccaw.com (Greg Titus) Newsgroups: comp.sys.next.programmer Subject: Re: EOF multiple declaration problem Date: 16 Jan 1995 23:03:11 GMT Organization: McCaw Cellular Communications, Inc. Distribution: world Message-ID: <3fetvf$e88@ftp-p.mccaw.com> References: <3fej4t$3q8@hermes.dna.mci.com> In article <3fej4t$3q8@hermes.dna.mci.com> celam@homebrew.cs.mci.com (Cliff Elam) writes: > If ya'll havn't noticed yet - I am getting a little frustrated with the > various problems EOF is having fitting into Next's development > environment. I mean, if I wanted to fight silly include file problems, I > could go program under Windoze. Of course, then my sedative bill would > go up! > [munch] > I've got the following error message: > MyController.m:99: warning: multiple declarations for method `name' > [munch] > Any thoughts? > Yup. There's nothing wrong with this, and it certainly isn't a problem with NeXT's include files. Looks to me like you have something declared as an id, and the compiler is rightly telling you that it can't be sure what the return value of the -name method is going to be because you haven't typed your variable. i.e. your code looks like: { id anEntity; ... [anEntity name]; ... } when it should be: { EOEntity *entity; ... [anEntity name]; ... } if you really need whatever it is to be untyped, you can cast it before the call: [(EOModel *)untypedVariable name] > -- > Cliff Elam > celam@radiomail.net (text only) <<-- always works > celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office > Airedales and polar bears! Because Foundation and EOF have different base classes than the Appkit you run into this sort of thing more often than you did previously, but statically typing most of your variables is a good habit to have no matter what. Hope this helps.... -Greg --------------------- Greg Titus Omni Development Inc. toon@omnigroup.com
From: Greg.Titus@mccaw.com (Greg Titus) Newsgroups: comp.sys.next.programmer Subject: Re: My wish for 95: alt-delete deletes caracter right of the cursor Date: 16 Jan 1995 23:07:52 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3feu88$ecr@ftp-p.mccaw.com> References: <D2IIvz.Jrr@cunews.carleton.ca> In article <D2IIvz.Jrr@cunews.carleton.ca> jbright@stimpy (Jason Bright) writes: > Robert F Tobler (rft@raven.cg.tuwien.ac.at) wrote: > I've got one.... > How bout text drag and drop a la Solaris (probably the ONLY > nice thing I have to say about its interface). Select a bunch of text > with the mouse. Mouse down in the middle of the selection and drag.... > get the little text icon and drag the text out. OmniWeb lets you do > this with images....very nice feature (good job Omni gang). If anyone does decide to do this, _please_ make it a preference or something so that it can be turned off. WordPerfect for NeXTSTEP has (had) this feature, and there is nothing more annoying than dragging some random chunk of text across the screen when you really meant to just make a new selection. > later > j > jbright@stimpy.carleton.ca -Greg --------------------- Greg Titus Omni Development Inc. toon@omnigroup.com
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Re: What's all this casting crap? Date: 17 Jan 1995 00:19:02 GMT Organization: MCI Communications Distribution: world Message-ID: <3ff2dm$5gb@hermes.dna.mci.com> References: <SOWA.95Jan16140936@netcom8.netcom.com> In article <SOWA.95Jan16140936@netcom8.netcom.com> sowa@netcom.com (Erik Sowa) writes: > >>>>> "Cliff" == Cliff Elam <celam@homebrew.cs.mci.com> writes: > > Cliff> So, what's up with the casting? > > Good question. The only thing I've been able to guess is that it kills > the 'multiple declaration' warnings you mentioned in your previous post. Oh, great, now we have to know what objects are coming back from our method calls so a compiler doesn't give us warnings? This is progress? -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
From: tom_gall@vnet.ibm.com (Tom Gall) Newsgroups: comp.sys.next.programmer Subject: Re: More frustrations with EOF.... Date: 16 Jan 1995 21:13:06 GMT Organization: IBM Rochester MN Sender: tgall@wintermute.rchland.ibm.com (Tom Gall) Distribution: world Message-ID: <3fenh2$1jh7@locutus.rchland.ibm.com> References: <3fe5g2$bk6@news.acns.nwu.edu> <3feb1q$2v4@hermes.dna.mci.com> In article <3feb1q$2v4@hermes.dna.mci.com>, celam@homebrew.cs.mci.com (Cliff Elam) writes: |> In article <3fe5g2$bk6@news.acns.nwu.edu> samschap@merle.acns.nwu.edu (Sam |> Schapmann) writes: |> > In article <3f9r7t$1mmt@locutus.rchland.ibm.com>, |> > Tom Gall <tom_gall@vnet.ibm.com> wrote: |> > |> > > Open your myapp_main.m file. |> > > |> > > Find the point where you see #import <EOApplication.h> |> > > |> > > Change it to: #import <eointerface/EOApplication.h> |> > |> > Also, after modifying your _main file don't forget to go to the PB "At- |> > tributes" page and uncheck the "Generate Main File on Save" box. , |> > Otherwise each time you update your project the changes you made to the |> > _main file will be overwritten. |> > |> |> Yah, I eventually hacked that one out. However, why should I have to do |> that? I'm trying to teach some new programmers NS *and* EOF (I must have |> sinned in a past life :-) and I hate explaining/excusing this sort of thing. Naw, you didn't sin. Actually what I suggested (As someone pointed out to me in Email) is pretty (my own words) dumb. A better way to go is to patch your makefile via -I so gcc checks out the eof directories for includes. A much better solution in my mind.... Clear as mud? |> -=C |> -- |> Cliff Elam -- Hakuna Matata! Tom #include <std-disclaimer.h> |o| Tom Gall "Where's the ka-boom? There was supposed to be |o| |o| IBM Rochester an earth shattering ka-boom!" -Marvin Martian |o| |o| work: tom_gall@vnet.ibm.com (No NeXTMail) home: TGall@eworld.com |o|
Newsgroups: comp.sys.next.programmer From: markus@isolde.stgt.sub.org (Markus Stoll) Subject: Problem with SIGIO Content-Type: text/plain; charset=US-ASCII Message-ID: <1995Jan16.221431.7274@isolde.stgt.sub.org> Content-Transfer-Encoding: 7bit Organization: GbR Stoll & Stoeffler, Stuttgart, Germany Mime-Version: 1.0 Date: Mon, 16 Jan 1995 22:14:31 GMT I want to open a pty and install sigvec that is to be called on the SIGIO signal. fd_master = open("/dev/ptyq0", O_RDWR); fcntl(fd_master, F_SETFL, FASYNC)); fcntl(fd_master, F_SETOWN, getpid())); printf("Owner: %d\n", fcntl(fd_master, F_GETOWN)); sigvec(SIGIO, &sigvec_s, 0); The signal handler will never be called by IO activity (but can be call with a "kill -23"). Why? Did I miss anything? I should mention that the F_GETOWN returns the NEGATIVE pid! Why that? The man page tells that negative values apply to process groups. But I did supply the positive pid to the F_SETOWN. Thankful for any help, Markus
From: m94dwa@albireo.tdb.uu.se (David Wallin) Newsgroups: comp.sys.next.programmer Subject: compiling gs 3.12 Date: 17 Jan 1995 01:11:10 GMT Organization: Dept. of Scientific Computing, Uppsala University, Sweden Message-ID: <3ff5fe$r35@columba.udac.uu.se> I tried to compile ghostscript v3.12 but I seem to have run into difficulties. I made the changes suggested in 'make.doc' except for the <diherent.h> part. And I get these error messages: cc -g -O -D_NEXT_SOURCE -Wall -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -c gp_unifs.c gp_unifs.c:84: undefined type, found `DIR' gp_unifs.c:90: undefined type, found `DIR' gp_unifs.c:307: undefined type, found `DIR' I also gets these warnings frequently: In file included from string_.h:39, from ziodev2.c:21: /NextDeveloper/Headers/ansi/string.h:128: warning: function declaration isn't a prototype /NextDeveloper/Headers/ansi/string.h:129: warning: function declaration isn't a prototype /NextDeveloper/Headers/ansi/string.h:130: warning: function declaration isn't a prototype btw: I have the jpeg source file. what to do? //David Wallin
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Static Variables (was Re: EOF multiple declaration problem Date: 17 Jan 1995 01:19:37 GMT Organization: MCI Communications Distribution: world Message-ID: <3ff5v9$5v4@hermes.dna.mci.com> References: <3fetvf$e88@ftp-p.mccaw.com> Okay, my original posting was a public grumble of frustration having to do with conflicting returns from the same method due to different base classes in our new Foundation/Object/EOF world. I got various responses boiling down to: 1> Statically type your variables or 2> Cast the returns from your method. Okay, I actually knew both those things, but I don't want to type my variables and I don't want to cast. As far as I'm concerned, objects is objects (sounds a bit like PETA, don't it? :-) and NEXT has yet to explain to me why, all of a sudden, we've gone back in time to casting of all the damn things! And since when has static typing been good? I thought one of the big points in obj-c was run-time binding. I dunno or care what class the an object is in as long as it responds to -anIncrediblyLongSelector. I dunno, I was comfortable with EOT traps. Next thing you know, we'll be worrying about "pass by value" and "pass by reference" again. Sigh..... -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Master/Peer question Date: 17 Jan 1995 01:23:17 GMT Organization: MCI Communications Distribution: world Message-ID: <3ff665$60n@hermes.dna.mci.com> I've been trying to get the master/peer example in Chapter 12 of the EOF documentation to work. I've got my IB stuff done and tried the example (and numerous variations thereon) - has anyone gotten this to work? When I look at my qualifier in gdb I see: (gdb) print-object mySalaryQualifier { contents = ( { columnName = SALARY; externalType = float; name = SALARY; valueClassName = NSNumber; valueType = d; }, " > ", 5000 ); entity = EMPLOYEE; } (gdb) Everything looks kosher until I get to this line: [myEODatabaseDataSource setAuxiliaryQualifier: mySalaryQualifier]; At that point I get a Unknown error code 100003 in NXReportError error message. Any thoughts? -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
Newsgroups: comp.sys.next.programmer From: wave@media.mit.edu (Michael B. Johnson) Subject: Re: What's all this casting crap? Message-ID: <1995Jan17.020343.29934@news.media.mit.edu> Sender: news@news.media.mit.edu (USENET News System) Organization: MIT Media Laboratory References: <3fejbu$3s2@hermes.dna.mci.com> <SOWA.95Jan16140936@netcom8.netcom.com> Date: Tue, 17 Jan 1995 02:03:43 GMT In article <SOWA.95Jan16140936@netcom8.netcom.com> sowa@netcom.com (Erik Sowa) writes: >>>>>>> "Cliff" == Cliff Elam <celam@homebrew.cs.mci.com> writes: >> >>Cliff> So, what's up with the casting? >> >>Good question. The only thing I've been able to guess is that it kills >>the 'multiple declaration' warnings you mentioned in your previous post. >> <stepping up to soapbox...> Well, that's a *good* thing. I have lots of casts in WavesWorld, and many of them are not to a specific class, but rather to a protocol. A cast is a hint to the compiler telling it you know what you're doing. You might have a check before you drop into some code to see if the object conforms to a given protocol or is of a particular kind, and then later on, though, the compiler will still flag you with a warning that a bunch of different classes can respond to that method. A cast gets rid of that warning. This is a good thing (i.e. getting rid of warnings). Too many people release code that has lots and lots of warnings; I'm never sure if those are pointing out problems in the code or what. Especially when the system is large, it's important (IMHO) to stomp out all warnings. Then when they do crop up in development, you actually take note of them. Practice what you preach soapbox: my internal release of WavesWorld 2.1 is a bit over 2.5MB of source code; the whole thing compiles quad fat with nary a single warning. This is a great sanity check for builds; if I get a warning, I've got a problem. <ok, ok, I'm going...> -- --> Michael B. Johnson -- wave@media.mit.edu --> MIT Media Lab -- Computer Graphics & Animation Group --> 20 Ames St. E15-023G -- (617) 666-4119 (day office) --> Cambridge, MA 02139 -- (617) 253-0663 (night office)
Newsgroups: comp.sys.next.programmer From: netcom.com!kira!davidjohn (David John Burrowes) Subject: Memory streams and the Text class Message-ID: <1995Jan16.144659.1416@kira.net.netcom.com> Sender: davidjohn@kira.net.netcom.com Organization: No organization at this time. Date: Mon, 16 Jan 1995 14:46:59 GMT Perhaps this should be obvious, in which case I'm a fool (so I'd appreciate it if you'd help me cease to be one), 'cause I'm stumped. I want to stick the contents of an NXStream structure into an instance of the Text class with readText:. I can do this without problems if I got my stream from the NXMapFile() function call. The trouble comes if I use the NXOpenMemory() function to get my stream. I'd like to be able to allocate a stream, stick some stuff into it, then stick that stream into the Text instance. I figured the mode passed to NXOpenMemory might be my problem, but: NX_WRITEONLY: the Text instance raises an exception (reasonable) NX_READONLY: I can't put anything in the stream (reasonable =). NX_READWRITE (This is not explicitly documented, but only implied in the CommonFunctions document) I don't get any exceptions, but no text displays in the Text instance either... Can this be done? David-john Burrowes For what it's worth, this is a code snippet in case I'm doing something blatantly stupid. textInstance is hooked, via IB, to the text instance in a scrollview (as dragged off the palette window) { NXStream* theStream; /* * Open a stream, add some text, read into text instance */ theStream = NXOpenMemory(NULL, 0, NX_READWRITE); NXWrite(theStream, "Test",4); /* I tried NXFlush(theStream); here, to no effect. */ NX_DURING [textInstance readText: theStream]; NX_HANDLER [textInstance setText: "Error raised during readText:."]; NX_ENDHANDLER NXCloseMemory(theStream, NX_TRUNCATEBUFFER); return self; } No text appears, either from the raised error or from the readText: (the setText: works OK, and like I said I can do the readTextL if the stream is a file)
Date: Mon, 16 Jan 1995 09:05:09 +0100 Newsgroups: comp.sys.next.programmer From: Joachim Kainz <jkainz@segi.ulg.ac.be> Subject: select-problem Message-ID: <Pine.A32.3.91.950116085224.33336C-100000@aix1.segi.ulg.ac.be> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII When I use select to detect if there is some modem-input pending at /dev/cub the call returns 0 even though that a subsequent read returns data. Any hints? ------------------ example.c ------------------------- #include <sys/types.h> #include <assert.h> #include <libc.h> int main (int nArg, char* apArg []) { fd_set fdset; struct timeval maxWaitTime; char buffer[32]; int mfd, count; assert ((mfd = open ("/dev/cub", O_RDWR)) >= 0); write (mfd, "AT\r", 3); maxWaitTime.tv_sec = 0; maxWaitTime.tv_usec = 500000; /* wait half a second */ FD_ZERO (&fdset); FD_SET (mfd, &fdset); /* * The problem: * */ if (select (1, &fdset, NULL, NULL, &maxWaitTime) < 1) fprintf (stderr, "select signals not ready!\n"); count = read (mfd, buffer, sizeof buffer-1); /* read should hang */ if (count > 0) { buffer [count] = '\0'; fprintf (stderr, "received:\n%s", buffer); } close (mfd); return 0; } ----------------- end of example.c -------------------- Joachim ---- Email: jkainz@aix1.segi.ulg.ac.be Tel: ++32-41-669496 Fax: ++32-41-669498
Newsgroups: comp.sys.next.programmer From: kim@sugarbowl.pdh.com (Kim Ortiz) Subject: Software Design Engeneer Opening, San Jose Message-ID: <D2IJDM.LEz@pdh.com> Sender: news@pdh.com (USENET News Account) Organization: PDH, Inc. Date: Mon, 16 Jan 1995 19:27:22 GMT Company: PDH, Inc. Position: NeXTStep Software Design Engineer Hiring: January 1995 Location: San Jose, California (near the San Jose Airport) Qualifications: Junior Design Engineer: preferrably 1 year NeXTStep development experience Required: **** US CITIZENSHIP **** BS in Computer Science or related field Willingness to travel within USA Desired: Familiarity with EOF, DBKit, AccessKit, Sybase 10, Oracle 7 Experience in the following: Independent design and development Database design and development GUI design and development Object Oriented Methodology, OOD and OOP UNIX NeXTStep Objective-C, C++, SmallTalk Duties: Software design engineers participate in all stages of the product life-cycle: proposal, design, implementation, testing, and documentation. Environment: PDH, Inc. is a small software development company specializing in systems solutions using NeXT computers. You will develop custom mission critical applications for customers. Current projects include: system engineering for a 3000+ workstation enterprise environment, a document management system, a specialized work-flow and information tracking system, an electronic signature system, and a program to access relational data bases for tracking information. This is an excellent opportunity to be immediately challenged, where the quality of the company is matched by the quality of the staff. PDH provides excellent vacation, health, 401K and disability benefits. The work attire is casual, hours are flexible, and sponsored refreshments. PDH, Inc. is an Equal Opportunity Employer. Contact: Personnel Department Vox: (408) 428-9596 Fax: (408) 428-9599 E-mail: personnel@pdh.com (NeXT Mail welcome)
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Good documentation on sockets? Date: 17 Jan 1995 10:06:36 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Jan17100637@steffi.dircon.co.uk> References: <3fd04d$5s1@xexos.xexos.com> <3fd2ic$iao@geraldo.cc.utexas.edu> To: faizel@mail.utexas.edu (Faizel M. Dakri) In-reply-to: Faizel Dakri's message of 16 Jan 1995 06:09:16 GMT <Dakri> writes: >In article <3fd04d$5s1@xexos.xexos.com> mark@xexos.com (Mark Chamberlain) >writes: >[munch] >>"Unix Network Programming" by W. Richard Stevens, pub Prentice Hall >>- definitive guide to programming sockets and TCP/IP - shows both BSD and >SysV >>versions of doing things >[munch] >I'd have to agree on that one--this was the book I used when I first wanted to >learn how to use sockets. There's a lot of good information in this book, and >best of all, there's tons of example code to get you going quickly. >-- >Faizel Dakri >faizel@mail.utexas.edu >NeXTmail *friendly* The BSD documentation is an excellent introduction.. Here's what I have my TCP directory... drwx------ 2 robert wheel 512 Jan 14 17:54 . drwxr-xr-x 21 robert wheel 3072 Jan 11 20:41 .. -rw-r--r-- 1 robert wheel 60155 Jun 17 1994 advanced-ipc-tutorial.ps.gz -rw-r--r-- 1 robert wheel 31764 Jun 17 1994 ipc-primer.ps.gz -rw-r--r-- 1 robert wheel 29557 Jun 17 1994 serial.ps.gz -rw-r--r-- 1 robert wheel 5666 Jun 17 1994 socket-primer.shar.gz -rw-r--r-- 1 robert wheel 69205 Jan 14 17:54 tcp-ip-admin.ps.gz -rw-r--r-- 1 robert wheel 37505 Jun 17 1994 tcp-ip-intro.ps.gz -- "Oh no, actually darling I don't have time for games." (PGP key: send email with Subject: request pgp key) (ASCII for text only messages)
From: mcgredo@crl.com (Donald R. McGregor) Newsgroups: comp.sys.next.programmer Subject: Re: Good documentation on sockets? Date: 16 Jan 1995 23:06:21 -0800 Organization: YoyoDyne Propulsion Systems Message-ID: <3ffq9d$l7v@crl3.crl.com> References: <3fd4gh$q6d@crl12.crl.com> <D2I643.HnA@news2.new-york.net> In article <D2I643.HnA@news2.new-york.net> hocker@ritz.mordor.com (Matthew Hocker) writes: :>> The code in the book is available via ftp. Archie says :>> [bogus sites deleted] :>is the source anywhere else? Looking at ftp.germany.eu.net shows -rw-r--r-- 1 other other 492 Nov 8 17:21 Index -rw-r--r-- 1 other other 3849 Nov 8 17:07 stevens.advprog.errata.gz -rw-r--r-- 1 other other 98463 Jan 8 1993 stevens.advprog.tar.gz -rw-r--r-- 1 other other 5399 Nov 8 17:07 stevens.netprog.errata.gz -rw-r--r-- 1 other other 119293 Jan 8 1993 stevens.netprog.tar.gz -rw-r--r-- 1 other other 2505 Nov 8 17:05 stevens.tcpipiv1.errata.gz -rw-r--r-- 1 other other 33644 Nov 8 17:06 stevens.tcpipiv1.tar.gz the tcpipv1 code (tcpip illustrated) is OK; I downloaded that and checked. -- Don McGregor |"Speak out, sir, and do not Maister or Campbell me--my foot mcgredo@crl.com| is on my native heath, and my name is MacGregor!" -W. Scott
From: Bernhard Scholz <scholz@informatik.tu-muenchen.de> Newsgroups: comp.sys.next.advocacy,comp.sys.next.programmer,comp.sys.next.sysadmin,comp.sys.next.hardware,comp.sys.next.software,comp.sys.next.misc,de.comp.sys.next Subject: Errata 2: NeXT FAQ Date: Tue, 17 Jan 1995 13:02:37 +0100 Organization: Technische Universitaet Muenchen, Germany Distribution: world Message-ID: <Pine.HPP.3.91.950117125800.27534C-100000@hphalle9g.informatik.tu-muenchen.de> References: <Pine.HPP.3.91.950116170435.8628K-100000@hphalle10d.informatik.tu-muenchen.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <Pine.HPP.3.91.950116170435.8628K-100000@hphalle10d.informatik.tu-muenchen.de> I've got a posting/reply by Nathan who was/is the original author of the NeXT FAQ. I thought he stopped working, but he didn't! (see Re: NeXT FAQ) Because of his posting I've stopped my work. I suggest all the people who already replied to me to send their submissions to Nathan. I'll forward all articles I got already to Nathan. Sorry for the inconvinience, Boerny. _____________________________________________________________________________ Bernhard Scholz (IRC: (Boerny) #amiga, #next) Opinions are my own! scholz@informatik.tu-muenchen.de (prefered) Computers can do everthing scholz@gsocmail.rm.op.dlr.de (emergency) better than human --- http://www.leo.org/~scholz/scholz.html especially doing mistakes.
From: hoff@pluto.darmstadt.gmd.de (Holger Hoffstaette) Newsgroups: comp.sys.next.programmer Subject: Anybody using MiniSQL & EOF ? Date: 17 Jan 1995 14:44:47 GMT Organization: German Research Center for Information Technology Message-ID: <3fgl4v$82q@sonne.darmstadt.gmd.de> Summary: EOF & NS newbie looking for mSQL users Keywords: EOF mSQL Hi everyone! I'd like to hear from people who use mSQL with Mark Onyschuk's EOF adaptor. In particular, I'm looking for modified versions of either NeXT's or SHL's EOF examples, which are all made for Sybase or Oracle. If anybody is doing something along these lines, please be so kind to mail me, so that we can pull out our hairs cooperatively. =:) Holger -- Holger Hoffstätte // [eMail sendTo: @"hoff@darmstadt.gmd.de" NeXTMail: YES];
Newsgroups: comp.sys.next.programmer From: stefan@megatel.de (Stefan Runge) Subject: NXImage and resolution entries Message-ID: <1995Jan17.144035.3115@megatel.de> Sender: news@megatel.de Organization: megatel GmbH, Bremen, Germany Date: Tue, 17 Jan 95 14:40:35 GMT Hi, When reading and displaying TIFF Bitmaps with resolution entries via an NXImage the resolution entries are interpreted and the image is scaled appropiate. This is fine, but I wan't do override this entries to display the image 1:1. Are there any methods to change this entries or to tell the NXImage not to interpret them? Thanks a lot, stefan. -- Stefan Runge megatel GmbH, Wienerstr. 3, D-28359 Bremen, Germany NeXT & MIME Mail: stefan@megatel.de ---
Newsgroups: comp.sys.next.programmer From: pelletk@il.us.swissbank.com (Ken Pelletier) Subject: Re: Static Variables (was Re: EOF multiple declaration problem Message-ID: <1995Jan17.145821.24189@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3ff5v9$5v4@hermes.dna.mci.com> Date: Tue, 17 Jan 1995 14:58:21 GMT Cliff Elam writes > Okay, my original posting was a public grumble of frustration having to do > with conflicting returns from the same method due to different base classes > in our new Foundation/Object/EOF world. > > I got various responses boiling down to: > 1> Statically type your variables > or > 2> Cast the returns from your method. > > Okay, I actually knew both those things, but I don't want to type my > variables and I don't want to cast. As far as I'm concerned, objects is > objects (sounds a bit like PETA, don't it? :-) and NEXT has yet to explain to > me why, all of a sudden, we've gone back in time to casting of all the damn > things! Well, yes, objects *is* objects, but only one of the types returned by the -name method is an object; NSString is an object, (const char *)'s not. If you had multiple declarations of -name, each returning objects of different types, then you could use id without warnings. (this isn't an argument against typing your variables) - Ken Pelletier -- NiKA Software | ken@nika.com Registered NEXTSTEP Consultant | pelletk@swissbank.com NiKA Software | 1207 W. Newport Ave. | Chicago, IL 60657 |
Newsgroups: comp.sys.next.programmer From: (slugg jello) Subject: [super perform...] -- Is this a bug in AppKit? Message-ID: <1995Jan17.083119.21071@mouthers.nwnexus.wa.com> Sender: slugg@mouthers.nwnexus.wa.com Organization: Mouthing Flowers Date: Tue, 17 Jan 1995 08:31:19 GMT I wonder if I've found a bug in the AppKit? If I do the following: [super perform :@selector(play) with:nil afterDelay:100 cancelPrevious :TRUE]; the play method gets sent to self rather than to super. My intention is for the play method to be sent to super. That self in fact receives the call seems to me to be a bug. What do ya'll think? Is there a work-around or correct way to accomplish this? I'm running NeXTSTEP 3.3, Developer 3.2 on Moto. -- Doug Kent Mouthing Flowers, Inc. slugg@mouthers.wa.com
From: pcu@umich.edu Newsgroups: comp.sys.next.programmer Subject: Re: What's all this casting crap? Date: 17 Jan 1995 16:01:49 GMT Organization: University of Michigan Distribution: world Message-ID: <3fgpld$bbv@lastactionhero.rs.itd.umich.edu> References: <3ff2dm$5gb@hermes.dna.mci.com> In article <3ff2dm$5gb@hermes.dna.mci.com> celam@homebrew.cs.mci.com (Cliff Elam) writes: > Oh, great, now we have to know what objects are coming back from our method > calls so a compiler doesn't give us warnings? This is progress? Actually, the obvious solution is to turn off the compiler warnings. I wouldn't care for your bug count afterwards, but you'll get rid of those nasty warning messages. :) -- Peter Urka <pcu@umich.edu> Dept. of Chemistry, Univ. of Michigan Anything to me is sweeter, Than to see Shock-headed Peter. - H. Hoffmann
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: NXHelp problem in 3.3 Date: 17 Jan 1995 16:34:57 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3fgrjh$m5n@darkstar.UCSC.EDU> References: <3femfk$2d7f@te6000.otc.lsu.edu> In article <3femfk$2d7f@te6000.otc.lsu.edu> sbeck@math.lsu.edu (Stephen David Beck) writes: > I have been developing an application in 3.2 on black hardware which makes > use of the NS Help panels. The help panel works fine on both white and > black in 3.2. But when someone tried it on 3.3 Intel, a system error > responded that libIndexing must be linked. > > I've never heard of that, but has anyone else? > libIndexing_s must be linked into apps that use Help, I believe. Does "Indexing_s" appear in PB's Libraries list? If so, I suspect you may have stumbled across a 3.3 black bug noted on page 18 of the 3.3 Release Notes (you did read the printed 3.3 Release Notes, didn't you ?-). It states that compresshelp for 3.3 black produces Help.store files that can't be read under NS for Intel. The suggested workarounds were to use NS for Intel or NS 3.2 black to build Help.store files. Just after 3.3 was released and I noticed this release note, I asked this forum whether another workaround, replacing the 3.3 black compresshelp with the 3.2 version, was valid. I received no responses :-( So I'd like to ask you to try this workaround and report back. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Re: What's all this casting crap? Date: 17 Jan 1995 16:20:57 GMT Organization: MCI Communications Distribution: world Message-ID: <3fgqp9$c3f@hermes.dna.mci.com> References: <1995Jan17.020343.29934@news.media.mit.edu> In article <1995Jan17.020343.29934@news.media.mit.edu> wave@media.mit.edu (Michael B. Johnson) writes: > In article <SOWA.95Jan16140936@netcom8.netcom.com> sowa@netcom.com (Erik Sowa) writes: > Well, that's a *good* thing. I have lots of casts in WavesWorld, and > many of them are not to a specific class, but rather to a protocol. I got no problem with that - I think that protocol's are a GOOD THING. I just don't want to have to cast to them. For god's sake, how the hell will you cast to a protocol from a distributed object? (When we stop having to code directly to distributed objects, but that's another topic entirely!) How do you do that for a run-time class? > A cast is a hint to the compiler telling it you know what you're doing. Or a way to tell the compiler to shut up 'cause I know a pointer is char and not 'really' void. > This is a good thing (i.e. getting rid of warnings). I agree, but not using a compiler: compilers aren't really in the syntax checking business. I prefer a good lint. -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Re: What's all this casting crap? Date: 17 Jan 1995 16:35:05 GMT Organization: MCI Communications Distribution: world Message-ID: <3fgrjp$cab@hermes.dna.mci.com> References: <3fgpld$bbv@lastactionhero.rs.itd.umich.edu> In article <3fgpld$bbv@lastactionhero.rs.itd.umich.edu> pcu@umich.edu writes: > In article <3ff2dm$5gb@hermes.dna.mci.com> celam@homebrew.cs.mci.com (Cliff > Elam) writes: > > Oh, great, now we have to know what objects are coming back from our > > method calls so a compiler doesn't give us warnings? This is progress? > > Actually, the obvious solution is to turn off the compiler warnings. > I wouldn't care for your bug count afterwards, but you'll get rid of those > nasty warning messages. :) No, actually the solution is to get *good* warning messages. Just like too many castings can obscure a problem (I remember one especially painful episode in a mixed memory model (DOS/Windoze) where a near pointer got cast far....) too many silly warnings can obscure an important one. -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Static Variables (was Re: EOF multiple declaration problem Date: 17 Jan 1995 17:02:44 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3fgt7k$met@darkstar.UCSC.EDU> References: <3ff5v9$5v4@hermes.dna.mci.com> In article <3ff5v9$5v4@hermes.dna.mci.com> celam@homebrew.cs.mci.com (Cliff Elam) writes: > Okay, my original posting was a public grumble of frustration having to do > with conflicting returns from the same method due to different base classes > in our new Foundation/Object/EOF world. > > I got various responses boiling down to: > 1> Statically type your variables > or > 2> Cast the returns from your method. > > Okay, I actually knew both those things, but I don't want to type my > variables and I don't want to cast. As far as I'm concerned, objects is > objects (sounds a bit like PETA, don't it? :-) and NEXT has yet to explain to > me why, all of a sudden, we've gone back in time to casting of all the damn > things! > Uh, this has been true since NS was first released in 1988, so I wouldn't characterize the occasional need to cast as an "all of a sudden" change. NeXT has managed to declare most methods in its supplied classes unambiguously. However, some ambiguous method declarations slipped by and have been part of NS since early on (I believe using both Sound Kit and App Kit will produce the same warnings you're seeing). > And since when has static typing been good? I thought one of the big points > in obj-c was run-time binding. I dunno or care what class the an object is > in as long as it responds to -anIncrediblyLongSelector. > Static typing != static binding. Static typing has always been a good thing because it tells the compiler what type of object to expect, so the compiler may be able to produce better optimized code. You do want your app to run at top speed, don't you ?-) Static typing also produces warnings that might reveal programming bugs. If you know that a variable can only be assigned to an instance of a certain class or class hierarchy, yet you've inadvertently assigned it to an instance not withing the acceptable class hierarchy, your friendly compiler will warn you - but only if you've used static typing. With id's, anything goes. Sometimes, but in my experience, rarely, it is correct to allow a variable to be assigned to an instance of literally any class. Static-typed variables are still bound at run-time just like id's. So you don't lose dynamic binding by typing staticly. Static typing should be your friend. It has been mine for over 4 years. Part of your frustration is probably due to NEXTSTEP's first major API change. NS 3.3 and EOF are caught in the transition from the old API to the new one. So until the transition has been completed (NS 4.0), you need to chill out a little or this stuff is going to drive you crazy :-) --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer Subject: does isEqual: in NSArray work? Date: 17 Jan 1995 17:12:18 GMT Organization: MCI Message-ID: <3fgtpi$co5@hermes.dna.mci.com> Hello there: Does isEqual: in NSArray work in EOF 1.0 (release)? The following is a code fragment from the DOServerClient class (in /NextDeveloper/Examples/EnterpriseObjects/DistributedObjects/DistributedObjects_sybase). - (void)removeClient:anObject { int index; index = [clientArray indexOfObjectIdenticalTo: anObject]; if (index != NSNotFound){ [clientArray removeObjectAtIndex:index]; [clientDataSources removeObjectAtIndex:index]; } } I double checked the contents of clientArray with the po (print description) command in gdb - anObject is indeed in clientArray. However, indexOfObjectIdenticalTo:anObject always return with an erroneous number (I believe it's 2^10 + 1). Likewise, when I send a containsObject, the return value is false. I believe both methods fail b/c isEqual: is broken. Has anybody else encountered this bug? I know about the isEqual: patch that's included for NSNumber but I haven't seen anything on this bug (if it is indeed one). Please e-mail me and I'll summarize if there's interest. Thanks, - Alex -
From: filip@filtronix.eunet.be (Filip Lingier) Newsgroups: comp.sys.next.programmer Subject: Re: compiling gs 3.12 Date: 17 Jan 1995 11:02:33 GMT Organization: Filtronix Inc. Distribution: world Message-ID: <3fg849$8u@filtronix.eunet.be> References: <3ff5fe$r35@columba.udac.uu.se> In article <3ff5fe$r35@columba.udac.uu.se> m94dwa@albireo.tdb.uu.se (David Wallin) writes: > cc -g -O -D_NEXT_SOURCE -Wall -Wpointer-arith -Wstrict-prototypes > -Wwrite-strings -c gp_unifs.c > gp_unifs.c:84: undefined type, found `DIR' > gp_unifs.c:90: undefined type, found `DIR' > gp_unifs.c:307: undefined type, found `DIR' If you add -D_POSIX_SOURCE, this error will disappear. > In file included from string_.h:39, from ziodev2.c:21: > /NextDeveloper/Headers/ansi/string.h:128: > warning: function declaration isn't a prototype > /NextDeveloper/Headers/ansi/string.h:129: > warning: function declaration isn't a prototype > /NextDeveloper/Headers/ansi/string.h:130: > warning: function declaration isn't a prototype I don't know about those warnings because I when out while it was compiling. It's working fine as it is ... Filip -- ------------------------------------------------------------------------- FILTRONIX A programmer's think-tank - info@filtronix.eunet.be (NeXTmail OK!) -------------------------------------------------------------------------
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer Subject: does isEqual: in NSArray work? Date: 17 Jan 1995 17:22:20 GMT Organization: MCI Message-ID: <3fgucc$ct5@hermes.dna.mci.com> (NOTE: Our newserver burped so I apologize if this goes out twice) Hello there: Does isEqual: in NSArray work in EOF 1.0 (release)? The following is a code fragment from the DOServerClient class (in /NextDeveloper/Examples/EnterpriseObjects/DistributedObjects/DistributedObjects_sybase). - (void)removeClient:anObject { int index; index = [clientArray indexOfObjectIdenticalTo: anObject]; if (index != NSNotFound){ [clientArray removeObjectAtIndex:index]; [clientDataSources removeObjectAtIndex:index]; } } I double checked the contents of clientArray with the po (print description) command in gdb - anObject is indeed in clientArray. However, indexOfObjectIdenticalTo:anObject always return with an erroneous number (I believe it's 2^10 + 1). Likewise, when I send a containsObject, the return value is false. I believe both methods fail b/c isEqual: is broken. Has anybody else encountered this bug? I know about the isEqual: patch that's included for NSNumber (reference # 47194) but I haven't seen anything on this bug (if it is indeed one). Thanks, - Alex -
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: What's all this casting crap? Date: 17 Jan 1995 19:17:22 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3fh542$ov8@darkstar.UCSC.EDU> References: <3fgqp9$c3f@hermes.dna.mci.com> In article <3fgqp9$c3f@hermes.dna.mci.com> celam@homebrew.cs.mci.com (Cliff Elam) writes: > I agree, but not using a compiler: compilers aren't really in the syntax > checking business. I prefer a good lint. > Pardon me?? Compilers check syntax as part of doing their job, so why shouldn't they not only compile but warn programmers of syntax problems if they want to see this info. Using lint means running a double pass through code, once with lint and then again with the compiler. Back in the bad ole days when C compilers didn't help programmers as much and lint was a necessity, many programmers didn't make the effort to run lint as often as they should have so unintended syntax problems were happily consumed by the compiler with nary a peep but with resulting bugs. If you don't like the GNU compiler's warnings, pass cc the -w flag: -w Inhibit all warning messages. (just don't bother applying for any jobs I might offer :-) A nice feature of NeXT's compiler is that the programmer can configure it to behave in all sorts of ways. I've never used a more flexible compiler. The more warnings it shows me, the better chance I have to produce better code. Like Michael Johnson, I aim to produce code that produces *NO* warnings so I throw on just about all the available warning flags (-Wall is specified by default in NS's Makefiles): OTHER_CFLAGS = -pipe -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: Rudy Jacoby <rudy.jacoby@crpht.lu> Newsgroups: comp.sys.next.programmer Subject: Hash Table & NXTransport problem Date: 17 Jan 1995 15:32:34 GMT Organization: Centre de Recherche Public Henri Tudor Distribution: world Message-ID: <3fgnui$hi@caladan.restena.lu> Hi, I 'm looking for a solution for my application. I would like to pass as argument a hash table between two applications via a network connection. First, is it possible and if it is, do I have to write different encoding and decoding methods for each hash table whose key description and value description are different ???? Is there any possibility to write these methods whatever the key description and the value description ??? Thanks in advance for any info. jacoby rudy rudy.jacoby@crpht.lu
Newsgroups: comp.sys.next.programmer From: Howland_Royce@pcp.ca (Royce Howland) Subject: Re: What's all this casting crap? Message-ID: <1995Jan17.180608.9530@pcp.ca> Sender: news@pcp.ca Organization: PanCanadian Petroleum Ltd. References: <1995Jan16.231004.16053@il.us.swissbank.com> Date: Tue, 17 Jan 95 18:06:08 GMT In article <1995Jan16.231004.16053@il.us.swissbank.com> pelletk@il.us.swissbank.com (Ken Pelletier) writes: > Cliff Elam writes > > Have I missed something, or am I seeing a bunch of pointer casting in Next's > > objective-c class libraries? > > > > I'm EOFing and all of a sudden I'm seeing all this example code with: > > > > NSString *aString > > aString = (NSString *) [myObject name]; > > > > I'm sorry, but NSString is an object (or looks like one), so why cast? > > The problem is that there are conflicting declarations of the -name method, > some returning NSString object instances and others returning (const char *). > > You've got to tell the compiler which one you want to use by either statically > typing the receiver (myObject, in your example), or casting the return type of > the message expression (as in your example). Just to clarify the above response slightly, the cast is required only to eliminate compile-time warnings that result from two or more methods with different return types. If you don't do the casting, everything will still work fine at run time, when the run-time system has uniquely identified what class "myObject" belongs to. But at compile-time, that information is not always available, and so the compiler issues a warning if two or more conflicting method definitions in #imported headers could match a given message invocation. -- Royce Howland, Object Systems Group howlandr@cadvision.com Howland_Royce@pcp.ca (PanCanadian Petroleum) I speak, but not for OSG or PCP.
From: vamparys@litnext1.epfl.ch (Franck Vamparys) Newsgroups: comp.sys.next.programmer Subject: Re: compiling gs 3.12 Date: 17 Jan 1995 09:48:39 GMT Organization: Ecole Polytechnique Federale de Lausanne Message-ID: <3fg3pn$mfg@disunms.epfl.ch> References: <3ff5fe$r35@columba.udac.uu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In article <3ff5fe$r35@columba.udac.uu.se> m94dwa@albireo.tdb.uu.se (David Wallin) writes: > I tried to compile ghostscript v3.12 but I seem to have run into > difficulties. I made the changes suggested in 'make.doc' except for the > <diherent.h> part. And I get these error messages: > > cc -g -O -D_NEXT_SOURCE -Wall -Wpointer-arith -Wstrict-prototypes > -Wwrite-strings -c gp_unifs.c > gp_unifs.c:84: undefined type, found `DIR' > gp_unifs.c:90: undefined type, found `DIR' > gp_unifs.c:307: undefined type, found `DIR' > > I also gets these warnings frequently: > > In file included from string_.h:39, from ziodev2.c:21: > /NextDeveloper/Headers/ansi/string.h:128: > warning: function declaration isn't a prototype > /NextDeveloper/Headers/ansi/string.h:129: > warning: function declaration isn't a prototype > /NextDeveloper/Headers/ansi/string.h:130: > warning: function declaration isn't a prototype > > btw: I have the jpeg source file. > > what to do? > > //David Wallin First don't worry about these warnings. To compile gs3.12 I have made the following modifications: 1) time_.h litnext1[gs3.12]$ diff time_.h.orig time_.h 42a43,46 > #if defined(_NEXT_SOURCE) > # include <ansi/time.h> > #endif > 2) dirent_.h litnext1[gs3.12]$ diff dirent_.h.orig dirent_.h 46a47,52 > > > #if defined(_NEXT_SOURCE) > # include <sys/dir.h> > # include <sys/dirent.h> > #endif 3) gs_std_e.ps (optional -- NeXT characters set) litnext1[gs3.12]$ diff gs_std_e.ps.orig gs_std_e.ps 17a18,22 > % > % MODIFIED FOR THE NeXT ENCODING > % vamparys oct. 1994 > % > 45,48c50,53 < /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef < /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef < /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef < /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef --- > /.notdef /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /Ccedilla > /Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis > /Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /Ugrave > /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /mu /multiply /divide 50,51c55,56 < /.notdef /exclamdown /cent /sterling < /fraction /yen /florin /section --- > /copyright /exclamdown /cent /sterling > /fraction /yen /florin /section 53,55c58,60 < /guilsinglleft /guilsinglright /fi /fl < /.notdef /endash /dagger /daggerdbl < /periodcentered /.notdef /paragraph /bullet --- > /guilsinglleft /guilsinglright /fi /fl > /registered /endash /dagger /daggerdbl > /periodcentered /brokenbar /paragraph /bullet 57c62 < /ellipsis /perthousand /.notdef /questiondown --- > /ellipsis /perthousand /logicalnot /questiondown 59,62c64,68 < /.notdef /grave /acute /circumflex /tilde /macron /breve /dotaccent < /dieresis /.notdef /ring /cedilla /.notdef /hungarumlaut /ogonek /caron < /emdash /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef < /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef --- > /onesuperior /grave /acute /circumflex /tilde /macron /breve /dotaccent > /dieresis /twosuperior /ring /cedilla /threesuperior /hungarumlaut > /ogonek /caron /emdash /plusminus /onequarter /onehalf /threequarters > /agrave /aacute /acircumflex /atilde /adieresis /aring /ccedilla /egrave > /eacute /ecircumflex /edieresis 64,67c70,73 < /.notdef /AE /.notdef /ordfeminine /.notdef /.notdef /.notdef /.notdef < /Lslash /Oslash /OE /ordmasculine /.notdef /.notdef /.notdef /.notdef < /.notdef /ae /.notdef /.notdef /.notdef /dotlessi /.notdef /.notdef < /lslash /oslash /oe /germandbls /.notdef /.notdef /.notdef /.notdef --- > /igrave /AE /iacute /ordfeminine /icircumflex /idieresis /eth /ntilde > /Lslash /Oslash /OE /ordmasculine /ograve /oacute /ocircumflex /otilde > /odieresis /ae /ugrave /uacute /ucircumflex /dotlessi /udieresis /yacute > /lslash /oslash /oe /germandbls /thorn /ydieresis /.notdef /.notdef 4) gdevcdj.c (optional -- only with ghostHPDJ) --------------------------------+------------------------------------ EPFL-DI-LIT | Franck VAMPARYS Swiss Institute of Technology | E-mail : vamparys@litnext1.epfl.ch IN Ecublens | Work : +41 21 693-6796 (NS ok) CH-1015 Lausanne (Switzerland) | Fax : +41 21 693-4701 --------------------------------+------------------------------------
From: vamparys@litnext1.epfl.ch (Franck Vamparys) Newsgroups: comp.sys.next.programmer Subject: Ethernet 802.3 frames with multicast address Date: 17 Jan 1995 10:11:16 GMT Organization: Ecole Polytechnique Federale de Lausanne Message-ID: <3fg544$n2v@disunms.epfl.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To install a portable OSI stack, we need to have a direct access at an Ethernet interface to send/receive Ethernet 802.3 compatible frames with multicast address. How to do that on NEXTSTEP 3.3 (Intel platform with SMC16 card) ? --------------------------------+------------------------------------ EPFL-DI-LIT | Franck VAMPARYS Swiss Institute of Technology | E-mail : vamparys@litnext1.epfl.ch IN Ecublens | Work : +41 21 693-6796 (NS ok) CH-1015 Lausanne (Switzerland) | Fax : +41 21 693-4701 --------------------------------+------------------------------------
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Re: What's all this casting crap? Date: 17 Jan 1995 21:07:26 GMT Organization: MCI Communications Distribution: world Message-ID: <3fhbie$fcj@hermes.dna.mci.com> References: <3fh542$ov8@darkstar.UCSC.EDU> In article <3fh542$ov8@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: > Back in > the bad ole days when C compilers didn't help programmers as much and lint > was a necessity Compilers may well be better at 'linting' code than they were when I was doing mega-C coding (embedded s/w, xlib (ouch!) widget construction, etc...) and that's well and fine. However, the primary job of a c-compiler (unless that's changed too!) is to produce the target code (libraries, object files, whatever). Along the way syntax gets checked.... It's sort of like why my uncle has a tractor, a pick-up truck, and an ATV on his farm: different tools for different tasks. Lots of overlap, but differing levels of effeciency. A note: I remember the bad old-days when the Lattice (now SAS, I believe), Microsloth, gcc, and Zortech compilers produced different crashing code. PC-Lint pointed out that I was passing a particular variable from one place to another and would lose precision under certain circumstances. (Most compilers of that day let you slide if your casts are syntactically correct - they don't check the big picture.) I dunno, chief, I'll take a good lint package any time.... -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
From: jhalchin@alleg.edu Newsgroups: comp.sys.next.programmer Subject: Re: EOF EOnull print representation Date: 17 Jan 95 16:35:42 Organization: Allegheny College Message-ID: <jhalchin.95Jan17163542@reis6> References: <3f6l52$hqm@potogold.rmii.com> Mime-Version: 1.0 Content-Type: text/plain > My DB engine supports NULL field vlaues. However, they are displayed > in the interface as '<null>'. I took a stab at fixing this with: > > @implementation EONull (EONullPrintFix) > > - display > > { > > return @""; > > } > > @end > > > > You had the right idea, but the wrong method. Try this: @implementation EONull ( EmptyDescription ) - (NSString *)description { return [NSString stringWithCString:""]; } @end Judy Halchin Allegheny College jhalchin@alleg.edu
From: "Sean M. Willson" <premise@umich.edu> Newsgroups: comp.sys.next.programmer Subject: Re: TIP: Making Obj-C source-code readable for everyone - using hyperlinks Date: 18 Jan 1995 01:18:04 GMT Organization: University of Michigan Engineering, Ann Arbor Message-ID: <3fhq8c$16k@srvr1.engin.umich.edu> References: <1995Jan13.010649.3001@silicium.fdn.fr> <3f6agn$hs7@darkstar.UCSC.EDU> <MURPHY.95Jan15164713@eos.wsc.com> murphy@wsc.com (Paul Murphy) wrote: > > Art Isbell writes: > > If the updated Edit app (as previewed at the last Expo) is included in > > 3.3 Developer, it will implement much of what some people want to do using > > RTF source while using plain text. This seems preferable to adding all > > the RTF directives and extra preprocessing required to deal with RTF > > source. > > Amen. Not to mention the fact that lots of standard Unix development > tools (editors, version control systems, call graph generators, etc.) > are pretty much useless when dealing with RTF source. I'm happy to hear > that NeXT is fixing Edit instead of breaking IB. Go NeXT. > > - Paul > murphy@wsc.com Did I miss something or can somone please tell me about the new Edit.app due out with Dev 3.3? Thanks in advance! Sean Willson ______________________________________________________________ / Sean Michael Willson | "Don't believe in /______ / premise@umich.edu | miracles rely on them."/ / / http://www.engin.umich.edu/~premise/ WWW Page / / / University of Michigan College of Engineering / / / NeXT Programmer in training! / / / NeXTMail: premise@jupiter.eecs.umich.edu / / /_____________________________________________________________/ / (________/
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: File locking in NEXTSTEP apps Date: 17 Jan 1995 21:28:07 GMT Organization: none Distribution: world Message-ID: <3fhcp7$nfc@seymour.sfu.ca> Hi. I am not having any luck getting file locking to work with NEXTSTEP. I am running NS/I 3.3 with 3.2 developer. The lockf function call returns "Invalid Argument" when called. I have found by experimentation that adding -posix to my compile flags makes lockf work as expected, but this breaks my Objective C code. I get a link error Undefined symbol _objc_msgSend. In short, how do I get file locking to work with ObjC? Why does the -posix flag affect the lockf call (a non-posix BSD call)? I have also experimented with ioctl locking but get the same Invalid Argument without -posix. Conversely, how do I get ObjC code to compile with -posix? Any help is very appreciated. - Ken
Newsgroups: comp.sys.next.programmer From: "benjamin bernhard" <bbernhar@cs.indiana.edu> Subject: best c++ for nextstep Message-ID: <1995Jan17.183816.11559@news.cs.indiana.edu> Organization: Computer Science, Indiana University Date: Tue, 17 Jan 1995 18:38:13 -0500 Hello, I'm looking for the best, most complete, c++ implementation available for my black next machine. For this project, I will not be using Objective-C, so the compiler need not interoperate with any of next's tools. What limits do the best options have? Thanks, Ben -- __________________________________________________________________________ Ben Bernhard "Nothing that results from human progress 812/339-5304 (fax) is achieved with unanimous consent." bbernhar@cs.indiana.edu ---Christopher Columbus
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn) Newsgroups: comp.sys.next.misc,comp.sys.next.programmer Subject: Re: CD Player (and source to CDPlayer.app) -> mCD Date: 17 Jan 1995 17:39:08 GMT Organization: Rensselaer Polytechnic Institute, Troy NY, USA Distribution: world Message-ID: <3fgvbs$lbe@usenet.rpi.edu> References: <3fetcn$3ue@nobugs.bmt.gun.com> treed@bmt.gun.com (Timothy Reed) writes: > Both CDPlayer.app and play3401 will successfully play audio cds > off an external CD-ROM on black and white hardware, with a Sony > single speed and Toshiba 3401B player respectively. Although > source for the command line utility play3401 is available on the > Internet, incredibly NeXT chose not to include source for their > CDPlayer.app with the developer disk. No one has stepped up to > the task of putting together an audio cd app with a NEXTSTEP > interface either. Well, I'm sure I'm going to regret saying this, but the above isn't quite true. It's just that no one has both admitted to it and made the source code publically available. If, however, one were to ftp to eclipse.its.rpi.edu, and look in directory /NeXT/sources for files that start with the prefix "mCD", one would find a plausible start at the source code for just such an application. It isn't as far along as I'd like it to be before announcing it, however I've had little chance to really work on it for a few months now. The stuff that works seems to work pretty well, but there are subroutines in it which have not been tested much. Ie, "Proceed at your own risk". It is important to pick up the README file that's at the FTP site, as it includes a few useful tips that I haven't put into the applications help-files yet. It includes a lame database of album and song titles. By "lame" I mean "it's compiled into the program". While that is pretty lame alright, it does already have the information for a few hundred CD's. I am separately working on a real database module, but as I say, I haven't had much time to work on the program. Anyone is welcome to the source code. It works fine enough for me on both m68k and Intel platforms. It's vaguely possible it might work on HP's. It is more probable that it will crash dramatically on HP's. It works with NeXT CD-ROM drive's, Apple's CD-300, and the Toshiba CD-ROM drive. It may work with others, it won't work with an Apple CD-150. I haven't used the NeXT CDPlayer.app for a few months now, but your mileage and success rate may vary. I have sent this out to various net-people over the past few months, and none of them have threatened to kill me. A few have even been very happy to get it, as this does not have some of the limitations that the CDPlayer.app does (in particular, the nonsense with what SCSI ID's you have to have all your devices set at). Of course, it may have other limitations. Such is life. The program runs as root, doing various privileged things. It is not guarranteed to be bug-free, and if you do run into a bug the consequences could very well be nasty. However, if those who fancy themselves as budding programmers want to use this as the start of their own projects, that is fine with me. I do not assume any liability for any code in the program. You're getting the code for free, and as a result you damn well better do your own debugging of it before shipping out any products that depend on that code. Hmm. I guess that's enough disclaimers. I still imagine I'm going to regret this, as I really did want to have it much more polished off before making a more general announcement about it. What's here is not what I meant to have for a final product, it's really just a "testing" application that got out-of-hand. It looks a bit slicker on the outside than it is on the inside. I do want to keep the name "mCD" for whatever program I'm working on though, so if you want to write your own player than please name it something else. ftp://eclipse.its.rpi.edu/NeXT/sources/mCD.ReadMe ftp://eclipse.its.rpi.edu/NeXT/sources/mCD-94-1114.tar.gz (note that the dated filename may change whenever the mood strikes me to release a newer version, so it might be better to really do an anonymous FTP and look to see what's there) > Wouldn't it be cool if NeXT released the source to CDPlayer so > we could make it work with a few different drives? Other platforms have CD-players, with the source code released. I haven't looked at them, but if someone else was interested then that might be a good place to start. I do keep meaning to call up Sony or Pioneer to get the technical info on the Apple CD-150, but that's about as far afield as I've thought about going. -- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu ITS Systems Programmer (handles NeXT-type mail) Rensselaer Polytechnic Institute; Troy NY USA
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Re: best c++ for nextstep Date: 18 Jan 1995 01:24:18 GMT Organization: MCI Communications Distribution: world Message-ID: <3fhqk2$hke@hermes.dna.mci.com> References: <1995Jan17.183816.11559@news.cs.indiana.edu> In article <1995Jan17.183816.11559@news.cs.indiana.edu> "benjamin bernhard" <bbernhar@cs.indiana.edu> writes: > > Hello, > > I'm looking for the best, most complete, c++ implementation available > for my black next machine. Well, best C++ always sounds like best car wreck to me: walking away alive is success enough :-) Anyway, the gcc compiler that comes with your NEXT is a good C++ compiler. There are lots of C++ libraries (including X stuff) available from the big ftp sites. > What limits do the best options have? It's a fat floating curve-ball folks, and Ruth has his feet set! Ahem. What exactly do you mean by limitations? Dev tools? Gui support? -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
Newsgroups: comp.sys.next.programmer From: glen@prosoft.com (Glen Biagioni) Subject: Re: [super perform...] -- Is this a bug in AppKit? Message-ID: <D2KtD2.9B1@prosoft.wimsey.com> Sender: glen@prosoft.wimsey.com (Glen Biagioni) Organization: ProSoft Solutions, Inc. References: <1995Jan17.083119.21071@mouthers.nwnexus.wa.com> Date: Wed, 18 Jan 1995 00:58:13 GMT slugg jello writes > I wonder if I've found a bug in the AppKit? If I do the following: > > [super perform :@selector(play) > with:nil > afterDelay:100 > cancelPrevious :TRUE]; > > the play method gets sent to self rather than to super. My intention is for > the play method to be sent to super. That self in fact receives the call seems > to me to be a bug. What do ya'll think? Is there a work-around or correct way > to accomplish this? > > I'm running NeXTSTEP 3.3, Developer 3.2 on Moto. > -- > Doug Kent > Mouthing Flowers, Inc. > slugg@mouthers.wa.com Not a bug. super isn't an object so it can't be sent a message. What you are saying here is to invoke self's superclass method perform:with:afterDelay:cancelPrevious: If you own the class, you can write a class method, superPlay that invokes [super play]. Then do [self perform :@selector(superPlay) with:nil afterDelay:100 cancelPrevious :TRUE]; Any better suggestions out there? -- Glen Biagioni <glen@prosoft.com> (NeXTmail accepted) Vancouver BC Canada
Newsgroups: comp.sys.next.programmer From: pelletk@il.us.swissbank.com (Ken Pelletier) Subject: Re: What's all this casting crap? Message-ID: <1995Jan17.201412.26809@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <1995Jan17.180608.9530@pcp.ca> Date: Tue, 17 Jan 1995 20:14:12 GMT > Just to clarify the above response slightly, the cast is required only to > eliminate compile-time warnings that result from two or more methods with > different return types. If you don't do the casting, everything will > still work fine at run time, when the run-time system has uniquely > identified what class "myObject" belongs to. But at compile-time, that > information is not always available, and so the compiler issues a warning > if two or more conflicting method definitions in #imported headers could > match a given message invocation. > Quite right. It's also worth pointing out that this situation is a side effect of the transition from NS->OS. With OS, methods that returned (const char *), for example, will return NSStrings, and this compile-time ambiguity will creep in when your're on both sides of the fence; using a combination of old and new api. Ken Pelletier -- NiKA Software | ken@nika.com Registered NEXTSTEP Consultant | pelletk@swissbank.com NiKA Software | 1207 W. Newport Ave. | Chicago, IL 60657 |
From: mcglk@cpac.washington.edu (Ken McGlothlen) Newsgroups: comp.lang.perl,comp.sys.next.programmer Subject: Nonblocking single-key input problem. Date: 17 Jan 95 18:03:12 Organization: Dubious. Distribution: usa Message-ID: <MCGLK.95Jan17180312@yang.cpac.washington.edu> The enclosed short script is supposed to produce something like the following: 00 0 01 0 02 1 err:0: 'T' 03 0 04 0 05 1 err:0: 'h' 06 1 err:0: 'i' 07 1 err:0: 's' 08 1 err:0: ' ' 09 1 err:0: 's' 10 1 err:0: 'h' 11 1 err:0: 'o' 12 1 err:0: 'u' 13 1 err:0: 'l' 14 1 err:0: 'd' 15 1 err:0: ' ' 16 0 17 1 err:0: 'w' 18 1 err:0: 'o' 19 1 err:0: 'r' 20 1 err:0: 'k' 21 0 22 1 err:0: '!' 23 0 24 0 25 0 26 0 27 0 28 0 29 0 The first number is the count (roughly equal to seconds) of tests to see if characters are pending. The second number is the result of the select() call (which should respond with 1 if a character is pending, 0 if not, and -1 if an error condition). The "err:0" bit is errno, which was set by select(). Unfortunately, what it *does* produce is 00 -1 err:9: ' and then waits for me to press a key (I press "T"), whereupon it responds with "T'" and does it again. I press "h", and it responds properly with "h'", and then goes 02 0 03 0 04 0 and so on until "29 0", and doesn't recognize any other keys I press. An errno of 9 is EBADF (bad file descriptor), but I don't know what's wrong with it, or why it fixes itself later, sort of. Can anyone explain this? (It's running under NeXTSTEP/FIP 3.2, Perl 4.036.) #!/usr/local/bin/perl sub keyready { local( $rin, $nfd ); vec( $rin, fileno( STDIN ), 1 ) = 1; $nfd = select( $rin, undef, undef, 0 ); } sub rawkeys { system( "stty raw -echo" ); } sub bufkeys { system( "stty -raw echo" ); } &rawkeys(); for( $i = 0; $i < 30; ++$i ) { $ready = &keyready(); if( $ready ) { print( STDERR sprintf( "%02d %d err:%d", $i, $ready, $! ), ": '" ); $key = getc( STDIN ); print( STDERR $key, "'\n\r" ); } else { print( STDERR sprintf( "%02d ", $i ), $ready, "\n\r" ); } sleep( 1 ); } &bufkeys(); Thanks. ---Ken McGlothlen mcglk@cpac.washington.edu mcglk@cpac.bitnet
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Printing a DBTableView Followup-To: comp.sys.next.programmer Date: 17 Jan 1995 23:47:31 GMT Organization: me organized? That's a joke! Distribution: world Message-ID: <ROBERT.95Jan17234731@steffi.dircon.co.uk> CC: next-prog@omnigroup.com I'm using a heavily modified version of Eric Seymours TableViewPrinter to handle my TableView printing needs. I was just curious to know what other people are using. In particular, is anybody using TableViewPrinter in a production environment? Also, I'm curious to know whether the drawSelf approach is likely to be any more hungry than using NeXT's appkit printing machinery. -- "Oh no, actually darling I don't have time for games." (PGP key: send email with Subject: request pgp key) (ASCII for text only messages)
Newsgroups: comp.sys.next.programmer From: ajones@math.toronto.edu (Albin L. Jones) Subject: Re: [super perform...] -- Is this a bug in AppKit? Message-ID: <1995Jan18.025621.10708@math.toronto.edu> Organization: Department of Mathematics, University of Toronto References: <1995Jan17.083119.21071@mouthers.nwnexus.wa.com> Date: Wed, 18 Jan 95 02:56:21 GMT Somebody (slugg@mouthers.nwnexus.wa.com) wrote: > I wonder if I've found a bug in the AppKit? If I do the following: > > [super perform :@selector(play) > with:nil > afterDelay:100 > cancelPrevious :TRUE]; > > the play method gets sent to self rather than to super. My intention > is for the play method to be sent to super. That self in fact receives > the call seems to me to be a bug. What do ya'll think? Is there a > work-around or correct way to accomplish this? > > I'm running NeXTSTEP 3.3, Developer 3.2 on Moto. If I have understood what you have said correctly, I believe it not to be a bug. The "perform:with:afterDelay:cancelPrevious:" method from the instance's superclass is being used to send the selector "play" to the instance. At least, this is what the line(s) you have written above indicate. (Moreover, I believe that accomplishing what you desire here is a little more tricky than one might at first believe. At least, it's more tricky than I first thought when I read your article... :( ) Unless, of course, you mean that you have overridden "perform:..." on your subclass, and it is this new "perform:..." method which is being used to pass on the "play" selector...Then it *would* be a bug. :) Best regards, Albin -- Doug Kent Mouthing Flowers, Inc. slugg@mouthers.wa.com -- Department of Mathematics ajones@oxy.edu University of Toronto ajones@math.toronto.edu Toronto, Ontario Canada M5S 1A1 Albin L. Jones
Newsgroups: comp.sys.next.programmer From: Greg_Anderson@afs.com (Gregory H. Anderson) Subject: Snarfing iconheader information at runtime Message-ID: <1995Jan17.223724.2882@afs.com> Sender: greg@afs.com Organization: Anderson Financial Systems Inc. Date: Tue, 17 Jan 1995 22:37:24 GMT Is there a clean, NO HACK, way to determine at runtime what extensions are declared in an app's iconheader? Obviously Workspace knows how to do it, because the ContentsInspector shows you the list of supported file types. Acceptable solutions would include: A WorkspaceRequest method that has eluded me. An Application method that has eluded me. Advice that an external table (possibly a copy of the iconheader in the project directory) is required. Unacceptable solutions include hoarking segments and poking into MachO headers. I know how to do those, but such solutions are not "future- compatible." I am looking for an official way to get this information, hopefully through the tables that Workspace maintains. Thanks! -- Gregory H. Anderson | "Internet: a giant international network Stud Hombre Cybermuffin | of intelligent, informed computer Anderson Financial Systems | enthusiasts, by which I mean 'people greg@afs.com (NeXTmail OK) | without lives.'" -- Dave Barry, 2/6/94
From: robert@iamexwi.unibe.ch (Philippe Robert) Newsgroups: comp.sys.next.programmer Subject: Fast Drawingroutines for NS???? Date: 18 Jan 1995 10:22:17 GMT Organization: Dept. of Computer Science, University of Berne, Switzerland Distribution: world Message-ID: <3fiq4p$sv@aragorn.unibe.ch> References: <1995Jan17.183816.11559@news.cs.indiana.edu> Hi there, for a 3D-project of mine, I have to use very fast drawing and filling routines! What is the best way to do this? thx a lot Philippe
Newsgroups: comp.unix.programmer,comp.sys.next.programmer From: rbo@MrRusty.swindon.gpsemi.com (Ralph Bolton) Subject: Re: Good documentation on sockets? Message-ID: <D2LoLF.7At@lincoln.gpsemi.com> Sender: rbo@MrRusty (Ralph Bolton (Coofer Cat)) Organization: GPS References: <D2HF9z.1rq@news2.new-york.net> <3fd64j$eu8@crl7.crl.com> Date: Wed, 18 Jan 1995 12:12:50 GMT In article <3fd64j$eu8@crl7.crl.com>, gherlein@crl.com (Greg Herlein) writes: |> Matthew Hocker (hocker@ritz.mordor.com) wrote: |> |> : I'm trying to teach myself how to use sockets on my NeXTstation (NeXT 3.3/3.2 |> : developer) and I haven't had much luck with the man pages. man pages seem to be good if you know what you're doing! (?) |> sockets - I am reading " UNIX Network Programming" by Richard Stevens. |> It came to me recomended, and seems pretty thourough...lots of good |> explanation and source code examples. I had a look at that, I found it a bit too heavy for my liking (both in size and wallet, and content!). There's some really simple code for a simple TCP/IP server and client in "TCP/IP - running a successful network" (which is a white hardback, sorry no pub. or author to hand). It explains what is going on, and you might find that an easy start. If you want some messy uncommented code, I can rummage about and find it for you. I program under Linux though. Dunno if that's a problem. Mail me? ...Ralph Bolton
Newsgroups: comp.sys.next.programmer From: brouwer@minnie.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: Re: [super perform...] -- Is this a bug in AppKit? Message-ID: <D2Lp8q.8qK@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany References: <1995Jan17.083119.21071@mouthers.nwnexus.wa.com> Date: Wed, 18 Jan 1995 12:26:49 GMT In <1995Jan17.083119.21071@mouthers.nwnexus.wa.com> (slugg jello) writes: >I wonder if I've found a bug in the AppKit? If I do the following: > [super perform :@selector(play) > with:nil > afterDelay:100 > cancelPrevious :TRUE]; >the play method gets sent to self rather than to super. My intention is for >the play method to be sent to super. Oh boy! First, super is not an object but an indication for the run time system to look for a superclass's implementation of the -perform:with:after.. method instead of self's class. Second, play: is just a parameter in the above context, not a method call. The -perform: method is sent to super, not the play: method. Third, inside the -perform:with:.. method there is no way to determine whether the method was send to super or to self, so what you want is principally impossible. I can't imagine why you need this behaviour anyway, but since you are not using the parameter of the play method, you might use it as an indicator for a call to super within the play: method. >That self in fact receives the call seems to me to be a bug. What do ya'll >think? Is there a work-around or correct way to accomplish this? Defintely no bug. I can't concrete tips since I don't know why you need a delayed call to super. Bye, Klaus Brouwer
From: rgc@jujube.cs.umd.edu (Ross Garrett Cutler) Newsgroups: comp.sys.next.programmer Subject: Re: My wish for 95: alt-delete deletes caracter right of the cursor Date: 18 Jan 1995 13:04:26 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Message-ID: <3fj3kq$hn6@mimsy.cs.umd.edu> References: <3eu2gp$5u8@op1d56ifs.il.us.swissbank.com> Chris Trefalt (trefalt@swissbank.com) wrote: : Hi all, : I'd like to find a utility that would add to the functionnality of the : delete key so that I could delete to the right of the cursor instead of to : to the left. Wordperect does this with alt-delete and I've grown used to : it. Is there a way to do this as a general thing that works with all : applications whenever I log on under my account? : I don't program on the Next, but I imagine the following. : When the keyboard gets the alternate-delete key combination, it goes to : the special program that forces back two keys to the keyboard input queue : in the place where the alternate-delete key combination was pressed: a {go : forward one caracter} and a {delete}. : Is there such a utility already? : Is this something that could be programmed to run without a window? : started from the shell? : Would someone program it for me? ;) Actually, NS 3.3 provides the functionally to easily do this with their enhanced Keyboard.app. Basically, you make a sequence (like a macro) of "right arrow backspace" and assign it to whatever key you want. I do this for the delete key. Note that backspace can be entered by shift-backspace in the sequence editor. -- Ross Cutler University of Maryland, College Park Internet: rgc@cs.umd.edu
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: f2c - 4xFAT version on EMBL ftp site Date: 18 Jan 1995 16:00:17 GMT Organization: University of Heidelberg, Germany Message-ID: <3fjduh$413@sun0.urz.uni-heidelberg.de> Hi f2c lovers! (are there any, or only haters around ;-) f2c (binary + source) for HP, SPARC, Intel and Motorola submitted to: ftp://ftp.nmr.embl-heidelberg.de/pub/next/non-gui/gnu/f2c.sb.NIHS.gnutar.gz I had no chance to test in on white box (intel). BTW, speaking about colors: NeXT == black Gecko (HP) == green Intel == white SUN == ??? (yellow, like the sun?) any suggestions? -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (MIME/NeXT-mail)
From: balfanz@zorro.informatik.hu-berlin.de (Dirk Balfanz) Newsgroups: comp.sys.next.programmer Subject: Re: Distributed Objects - Thanks! Date: 18 Jan 1995 16:49:11 GMT Organization: Humboldt University Berlin, Department of Computer Science Distribution: world Message-ID: <3fjgq7$g9a@hahn.informatik.hu-berlin.de> References: <3fe3ka$pad@hahn.informatik.hu-berlin.de> Thanks to all that responded to my plea and, in fact, made my day 'cause it really works now! Sometimes it's downright overwhelming how helpful and patient people are to the less experienced of us. If anybody is interested, I'll post a summary of what I learned. Dirk (who loves this group).
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: select-problem Message-ID: <1995Jan18.154719.9450@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <Pine.A32.3.91.950116085224.33336C-100000@aix1.segi.ulg.ac.be> Date: Wed, 18 Jan 1995 15:47:19 GMT In article <Pine.A32.3.91.950116085224.33336C-100000@aix1.segi.ulg.ac.be> Joachim Kainz <jkainz@segi.ulg.ac.be> writes: > > assert ((mfd = open ("/dev/cub", O_RDWR)) >= 0); > > write (mfd, "AT\r", 3); > > FD_ZERO (&fdset); > FD_SET (mfd, &fdset); > > /* > * The problem: > * > */ > > if (select (1, &fdset, NULL, NULL, &maxWaitTime) < 1) > fprintf (stderr, "select signals not ready!\n"); > count = read (mfd, buffer, sizeof buffer-1); /* read should hang */ This is a quote from man-pages: "The first nfds [nfds is the first argument of select] descriptors are checked in each set; i.e. the descriptors from 0 through nfds-1 in the descriptor sets are examined." Mfd is not necessarily equal to 0. But if it is not, your select call will simply ignore the channel (it examines onle the first bit in fdset). - Dimitri Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: [super perform...] -- Is this a bug in AppKit? Date: 18 Jan 1995 16:20:55 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3fjf57$t9@darkstar.UCSC.EDU> References: <D2KtD2.9B1@prosoft.wimsey.com> In article <D2KtD2.9B1@prosoft.wimsey.com> glen@prosoft.com (Glen Biagioni) writes: > super isn't an object so it can't be sent a message. What you are saying > here > is to invoke self's superclass method > perform:with:afterDelay:cancelPrevious: > > If you own the class, you can write a class method, superPlay that > invokes [super play]. > > Then do > [self perform :@selector(superPlay) > with:nil > afterDelay:100 > cancelPrevious :TRUE]; > > Any better suggestions out there? > Good suggestion, but one needn't own the class. Simply add the superPlay method to a category. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
Newsgroups: comp.sys.next.programmer From: roshandel@fokus.gmd.de (Mehrdad Roshandel) Subject: HELP! How can I make a splitView vertical Message-ID: <1995Jan18.181224.16249@fokus.gmd.de> Sender: news@fokus.gmd.de (News system) Organization: GMD-Fokus Date: Wed, 18 Jan 1995 18:12:24 GMT Is there a mothode to do that or I have to program it by myself? thanks for any echo -- ================================================================= Mehrdad Roshandel, GMD Fokus Hardenbergplatz 2 10623 Berlin Phone: +49 30 254 99 230 Germany FAX: +49 30 254 99 116 E-mail (X.400 preferred): roshandel@fokus.berlin.gmd.d400.de smtp: mrd@fokus.gmd.de (NeXT-mail wellcome ================================================================
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: Need info on .keyboard files (I want to make a new one) Date: 18 Jan 1995 17:36:02 GMT Organization: University of Heidelberg, Germany Message-ID: <3fjji2$6jp@sun0.urz.uni-heidelberg.de> References: <1995Jan8.140957.36984@cc.usu.edu> In article <1995Jan8.140957.36984@cc.usu.edu> sldq1@cc.usu.edu writes: > Does anyone know where I can find information about the format and requirements > for the NEXTSTEP .keyboard files? These files appear to define the various > keyboard key layouts. I would like to create a new keyboard type that I can > use for the new Microsoft Natural keyboard, so that I can re-map some of it's > special keys to NEXTSTEP functions. Hmmm... MacroSh...t? Oh boy, you are in wrong group ;-))) BTW, Can anybody tell me where I can find docs about the format of the *.keymap files? I'm writing a small editor for Hebrew language, and although it's possible to create a new keyboard maps with the Keyboard demo application, it will make me feeling better if I had more info. Thanks -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: What's all this casting crap? Date: 18 Jan 1995 16:54:13 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3fjh3l$193@darkstar.UCSC.EDU> References: <3fhbie$fcj@hermes.dna.mci.com> In article <3fhbie$fcj@hermes.dna.mci.com> celam@homebrew.cs.mci.com (Cliff Elam) writes: > I dunno, chief, I'll take a good lint package any time.... > I'm no compiler or lint expert; just a user or past user of both. gcc is a product of many, many compiler experts all around the world. These experts have apparently decided quite some time ago (I can't recall lint ever being part of GNU's utilities) that lint is an unnecessary separate tool and have included most of lint's functionality in gcc. That combined with the use of ANSI C reduces some of the need for lint (e.g., the compiler checks ANSI C function protocols, so any incompatibilities are flagged, a former important capability of lint prior to ANSI C). I've never missed lint since moving to NS and its gcc-based compiler. Not being required to use a second tool to check code has been a real time-saver. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Re: What's all this casting crap? Date: 18 Jan 1995 18:21:31 GMT Organization: MCI Communications Distribution: world Message-ID: <3fjm7b$3ml@hermes.dna.mci.com> References: <3fjh3l$193@darkstar.UCSC.EDU> In article <3fjh3l$193@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: > Not being required to use a second tool to check code has been a real > time-saver. Hmm, that's an intersting point. Given the speed of machines today I don't feel that I spend too much time in the actual compile cycle RELATIVE to the scratch-head-go-get-a-coke cycle. In absolute terms I'd like instantaneous compile and execution...... -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
Newsgroups: comp.sys.next.programmer From: netcom.com!kira!davidjohn (David John Burrowes) Subject: Re: Memory streams and the Text class [summary] Message-ID: <1995Jan18.032723.1227@kira.net.netcom.com> Sender: davidjohn@kira.net.netcom.com Organization: No organization at this time. References: <1995Jan16.144659.1416@kira.net.netcom.com> Date: Wed, 18 Jan 1995 03:27:23 GMT Thanks to all of those who have replied to my question. PLEASE DONT SEND ANY MORE! =) (can one somehow unsend from newsgrazer?) QUESTION SUMMARY: If one writes data to a stream then immediately asks a Text instance to readText: from it, why will nothing appear in the Text instance? ANSWER SUMMARY: The Text class only reads from the current position in the stream. (thus, you must NXSeek() first) A rather trivial and obvious solution, wouldn't you say? (I guess I got so focused on the access modes of the stream (esp. the 'semi-documented' NX_READWRITE) this embarassingly obvious thing didn't occurr to me. Sigh =) david john burrowes
Newsgroups: comp.sys.next.programmer From: peisch@cfa.org (Peter Eisch) Subject: Re: Good documentation on sockets? Message-ID: <D2MAH7.4G6@cfa.org> Organization: CANS References: <3fd04d$5s1@xexos.xexos.com> <3fd2ic$iao@geraldo.cc.utexas.edu> <ROBERT.95Jan17100637@steffi.dircon.co.uk> Date: Wed, 18 Jan 1995 19:56:02 GMT Robert Nicholson (robert@steffi.dircon.co.uk) wrote: : The BSD documentation is an excellent introduction.. : Here's what I have my TCP directory... : drwx------ 2 robert wheel 512 Jan 14 17:54 . : drwxr-xr-x 21 robert wheel 3072 Jan 11 20:41 .. : -rw-r--r-- 1 robert wheel 60155 Jun 17 1994 advanced-ipc-tutorial.ps.gz : -rw-r--r-- 1 robert wheel 31764 Jun 17 1994 ipc-primer.ps.gz : -rw-r--r-- 1 robert wheel 29557 Jun 17 1994 serial.ps.gz : -rw-r--r-- 1 robert wheel 5666 Jun 17 1994 socket-primer.shar.gz : -rw-r--r-- 1 robert wheel 69205 Jan 14 17:54 tcp-ip-admin.ps.gz : -rw-r--r-- 1 robert wheel 37505 Jun 17 1994 tcp-ip-intro.ps.gz : -- : "Oh no, actually darling I don't have time for games." : (PGP key: send email with Subject: request pgp key) : (ASCII for text only messages) Yes, the BSD documentation is good. Here is what I have in my / directory... 2 drwxr-xr-x 16 root wheel 1024 Jan 17 23:59 ./ 2 drwxr-xr-x 16 root wheel 1024 Jan 17 23:59 ../ 2 drwxr-xr-x 3 root wheel 1024 Jan 11 11:06 .NeXT/ 2 -rw-r--r-- 1 root wheel 593 Mar 4 1992 .cshrc 2 -rw-r--r-- 1 root wheel 189 Dec 29 16:54 .dir3_0.wmd 2 -rw-r--r-- 1 root wheel 89 Jul 31 1992 .hidden 2 -rw-r--r-- 1 root wheel 187 Mar 20 1989 .login 2 -rw-r--r-- 1 root wheel 150 Dec 8 1992 .path 2 -rw-r--r-- 1 root wheel 125 Dec 8 1992 .profile 2 -rw-r--r-- 1 root daemon 15 Jan 2 14:07 .rhosts 2 drwxr-xr-x 3 peter wheel 1024 Jan 16 18:43 General/ 1 drwxr-xr-x 3 root wheel 1024 Dec 18 1993 LocalAdmin/ 2 drwxr-xr-x 42 root wheel 2048 Jan 1 15:53 LocalApps/ 1 drwxr-xr-x 9 root staff 1024 Jun 3 1994 LocalDeveloper/ 1 drwxr-xr-x 17 root wheel 1024 Jan 1 15:46 LocalLibrary/ 1 dr-xr-xr-x 1 root wheel 512 Jan 18 00:00 Net/ 2 drwxr-xr-x 11 root wheel 1024 Sep 16 1993 NextAdmin/ 2 drwxr-xr-x 12 root wheel 1024 Sep 16 1993 NextApps/ 2 drwxr-xr-x 10 root wheel 1024 Jul 13 1994 NextDeveloper/ 2 drwxr-xr-x 20 root wheel 1024 Oct 19 1993 NextLibrary/ 1 drwxr-xr-x 5 root wheel 1024 Jul 5 1993 Users/ 2 drwxr-xr-x 2 root wheel 2048 Jan 7 22:17 bin/ 2 drwxr-xr-x 3 root wheel 1024 Dec 30 11:27 clients/ 0 lrwxrwxrwx 1 root wheel 11 Dec 28 15:18 dev -> private/dev@ 0 lrwxrwxrwx 1 root wheel 11 Dec 28 15:18 etc -> private/etc@ 2 drwxr-xr-x 4 root wheel 1024 Jul 13 1994 lib/ 8 drwxr-xr-x 2 root wheel 8192 Dec 28 15:11 lost+found/ 0 lrwxrwxrwx 1 root wheel 9 Dec 28 15:18 mach -> $BOOTFILE@ 2 drwxrwxrwx 6 me other 1024 Sep 16 1993 me/ 776 -r--r--r-- 3 root wheel 779168 Sep 14 1993 odmach 2 drwxrwxr-x 11 root wheel 1024 Sep 16 1993 private/ 776 -r--r--r-- 3 root wheel 779168 Sep 14 1993 sdmach 0 lrwxrwxrwx 1 root wheel 11 Dec 28 15:18 tmp -> private/tmp@ 2 drwxr-xr-x 15 root wheel 1024 Jan 17 23:59 usr/ Cool, huh? peter -- peisch@cfa.org ...still trying to figure out what Robers was showing...
Newsgroups: comp.sys.next.programmer From: pelletk@il.us.swissbank.com (Ken Pelletier) Subject: Re: Static Variables (was Re: EOF multiple declaration problem Message-ID: <1995Jan19.004146.16101@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <9501181908.AA12992@flexus> Date: Thu, 19 Jan 1995 00:41:46 GMT Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes > Ken Pelletier, Re: Static Variables (was Re: EOF multiple declaration problem > > If you had multiple declarations of -name, each returning > > objects of different types, then you could use id without > > warnings. > Not true. The compiler will still issue warnings. (I even verified it.) > Hmmm... maybe what's not clear there is that I intended that each of the -name methods is declared to return an id. Surely you're not claiming that the compiler complains about that? are you? Ken Pelletier -- NiKA Software | ken@nika.com Registered NEXTSTEP Consultant | pelletk@swissbank.com NiKA Software | 1207 W. Newport Ave. | Chicago, IL 60657 |
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Wed, 18 Jan 95 20:08:23 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501181908.AA12992@flexus> Subject: Re: Static Variables (was Re: EOF multiple declaration problem See also my response in the ``Re: What's all this casting crap?'' thread (help, who started all these different threads about the same subject?). Ken Pelletier, Re: Static Variables (was Re: EOF multiple declaration problem > If you had multiple declarations of -name, each returning > objects of different types, then you could use id without > warnings. Not true. The compiler will still issue warnings. (I even verified it.) Art Isbell, Re: Static Variables (was Re: EOF multiple declaration problem > Static typing != static binding. Static typing has always > been a good thing because it tells the compiler what type > of object to expect, so the compiler may be able to > produce better optimized code. You do want your app to > run at top speed, don't you ?-) Not true! The code will be exactly the same (I think). What makes you say this? Idem: > Part of your frustration is probably due to NEXTSTEP's > first major API change. NS 3.3 and EOF are caught in > the transition from the old API to the new one. So until > the transition has been completed (NS 4.0), you need to > chill out a little or this stuff is going to drive you > crazy :-) That's no excuse. There should be no method name clashes. Royce Howland, Re: What's all this casting crap? > Just to clarify the above response slightly, the cast is > required only to eliminate compile-time warnings that > result from two or more methods with different return > types. If you don't do the casting, everything will > still work fine at run time, when the run-time system > has uniquely identified what class "myObject" belongs > to. But at compile-time, that information is not always > available, and so the compiler issues a warning if two > or more conflicting method definitions in #imported > headers could match a given message invocation. Not necessarily true. This will be OK if the arguments are encoded the same way (all pointers and id's are compatible in this way), but if the compiler choses a declaration which accepts int and the run-time binding goes to a method which accepts a double, errors will occur (the argument is first converted to an int and put on the stack as one memory word, and the receiving method tries to get two memory words of double from the stack; the next arguments will be misaligned). (I even verified it.) Ken Pelletier makes the same mistake (``Quite right.''). Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Wed, 18 Jan 95 11:40:48 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501181040.AA00521@flexus> Subject: Re: What's all this casting crap? Erik Sowa writes: > Good question. The only thing I've been able to guess is > that it kills the 'multiple declaration' warnings you > mentioned in your previous post. The compiler will *only* recognise the type of the *receiver* (possibly determined by a cast) for the purposes of resolving signature conflicts for a particular method name. Ken Pelletier makes the same error. I've sent both of them a short example program. I don't understand what the purpose of the programmer was: maybe s/he doesn't understand the issues very well, maybe s/he is one of those who think a cast is to be used as documentation or even assertion. Michael Johnson writes: > A cast is a hint to the compiler telling it you know what > you're doing. I thought the idea was to get the compiler to do the work. Why do you want to sweep the dirt under the carpet before the cleaning woman comes? (Er, maybe it's cleaning lady. Or cleaning person? Americans are funny. :-) They even use a word ``gentlelady'', for female Congress members.) > This is a good thing (i.e. getting rid of warnings). If you get ``multiple declarations'' warnings, then, rather than use casting to resolve conflicts ad hoc, you should really check your hierarchy to eliminate the possibility of conflicts. Casting and explicit typing compromise the ability of the compiler to check the quality of your kit's design, in the absense of a -W... flag to report all *possible* conflicts, regardless of whether the compiler had to resolve them for the source at hand (strong hint). If you cast something that is essentially an id, you admit that you (or someone else) have made a design mistake (unless if you're taking over an object from a less restrictively typed variable, which action you should normally back up with very careful thought, good documentation, and preferably a run-time check). The problem here is that we humans like to use names that are easy to remember rather than certifiedly unique tickets, which means that there is a high likelihood for these conflicts if we don't take care. And unfortunately, we can't communicate efficiently enough to make sure that conflicts won't occur when code from different origins comes together (if we're not too sloppy/lazy to do so even for our own code), nor do we have the tools to easily adapt existing code. (Give me a smart editor, that shows normal names but internally uses unique tickets, any time. It should still look for clashes in the names shown, but these will never cause bugs and can be resolved in a matter of seconds.) Static typing should be used only to help check the quality of the code by telling the compiler that you might *not* be knowing what you're doing, and will it please help you out a bit. The problem here is that this also compromises the maintainability of the code, and might inflate complexity beyond intelligibility. I suspect finding the right compromise is (still) a matter of art. And it's *very* difficult to do this well! Just a few thoughts of my own... Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: [super perform...] -- Is this a bug in AppKit? Message-ID: <1995Jan18.190934.13690@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <1995Jan17.083119.21071@mouthers.nwnexus.wa.com> Date: Wed, 18 Jan 1995 19:09:34 GMT In article <1995Jan17.083119.21071@mouthers.nwnexus.wa.com> (slugg jello) writes: > I wonder if I've found a bug in the AppKit? If I do the following: > > [super perform :@selector(play) > with:nil > afterDelay:100 > cancelPrevious :TRUE]; > > the play method gets sent to self rather than to super. My intention is > for the play method to be sent to super. That self in fact receives the > call seems to me to be a bug. What do ya'll think? Is there a > work-around or correct way to accomplish this? There is a beautiful (though a little bit tricky) work-around: @implementation Sound (someCategory) - superPlay { return [[self class] instanceMethodFor: @selector (play)] (); } @end Now you can call it like this: [super perform :@selector(superPlay) with:nil afterDelay:100 cancelPrevious :TRUE]; - Dimitri Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: [super perform...] -- Is this a bug in AppKit? Message-ID: <1995Jan18.191506.14111@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <1995Jan18.190934.13690@almserv.uucp> Date: Wed, 18 Jan 1995 19:15:06 GMT In article <1995Jan18.190934.13690@almserv.uucp> e3udzp@peterpan (Dimitri Plotnikov) writes: > There is a beautiful (though a little bit tricky) work-around: > @implementation Sound (someCategory) > - superPlay > { > return [[self class] instanceMethodFor: @selector (play)] (); > } > @end Oops... It should read: @implementation Sound (someCategory) - superPlay { return [Sound instanceMethodFor: @selector (play)] (); } @end - Dimitri Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
From: mark@susie.gets.ge.com (Mark Ritchie) Newsgroups: comp.sys.next.programmer Subject: Re: no more processes with vfork() Date: 18 Jan 1995 22:04:41 GMT Organization: General Electric Company Message-ID: <3fk39p$dot@alva.ge.com> References: <3f6tca$bn2@News1.mcs.com> Matt Bezark writes > I know about the 100 process per user limit, but expected > that calling the following code segment within a program > more than 100 times to be ok. I expected the vfork/execl > combination to complete and release the process. After > about 80 calls, the vfork returns a failure. Is it the 100 > process limit I'm reaching? Does anyone know a way to do > something similar without the the process limit? We need > the returned pid, so the system() command by itself isn't enough. [code deleted] Matt, Its been a while since I worked with fork() directly but here goes... Assuming 'command' is an executable (as opposed to a shell script). When you call 'execl("/bin/sh", "sh", "-c", command, 0)' you spawn 2 processes (one is sh, the other is the command). Hence starting 50 'command's will hit the 100 process limit. I suspect that the commands you are starting finish relatively quickly and thus you're able to start more then 50 because the earlier processes have finished when the later ones are started. Here's a quick and dirty program which demonstrates the situation. Type changing the sleep time from 1 to 10 and see how that effects the results. For me on a Nextstation turbo: sleep 1 hits the limit at 87, sleep 10 hits the limit at 50. NOTE: HIGHLY ARCHITECTURE AND MACHINE LOAD DEPENDENT Don't rely one hitting the limit with any kind of consistency. #include <stdio.h> main() { const char *command = "/usr/bin/sleep 1"; int count = 0; int pid = 0; while(1){ if((pid = vfork()) == 0){ // child - spawn command if(execl("/bin/sh", "sh", "-c", command, 0) == -1){ fprintf(stderr, "can't launch: \"%s\"\n", command); } exit(0); } else { // parent if(pid == -1){ perror("vfork() failed"); exit(1); } else { fprintf(stderr, "launched process: %d\n", count++); } } } } Hope this helps Mark -- Mark Ritchie - Object Oriented Developer GE Capital Technology Services Mississauga, Ontario, Canada mark@susie.gets.ge.com [NeXTmail]
From: sears@uh.edu (Paul S. Sears) Newsgroups: comp.sys.next.programmer Subject: DBKit adapters for RDB 5.1 or ODBC? Date: 18 Jan 1995 22:27:41 GMT Organization: University of Houston Distribution: world Message-ID: <3fk4kt$fvh@masala.cc.uh.edu> Looking for a DBkit adapter to access a VMS RDB 5.1 database. This version of RDB also supports ODBC. Anyone got one? -- Paul S. Sears * sears@uh.edu (NeXT Mail OK) The University of Houston * suggestions@tree.egr.uh.edu (NeXT Engineering Computing Center * comments, complaints, questions) NeXT System Administration * DoD#1967 '83 NightHawk 650SC >>> SSI Diving Certification #755020059 <<< "Programming is like sex: One mistake and you support it a lifetime."
From: david@jaffe.com Newsgroups: comp.sys.next.programmer Subject: Can't attach interrupt Date: 19 Jan 1995 01:44:37 GMT Organization: University of California, Berkeley Message-ID: <3fkg65$n0q@agate.berkeley.edu> A user reports a problem with the NS-Intel MIDI driver (supplied with the Music Kit). He is using some kind of old fashioned card (I don't recall what type) that must use IRQ2. He sets, in Configure.app, the driver to use IRQ2. Then, when the driver initializes and tries to attach the interrupt, the console prints the message "Can't attach interrupt!" and returns an error code. If, instead, he sets the driver to use IRQ5, the interrupt attaches OK (this is because the driver doesn't actually probe the hardware.) Except, of course, the card doesn't work, since it wants IRQ2. Does anyone have an idea what's wrong here?
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: comp.sys.next.programmer Subject: Compiling m4-1.4, GPC on NS3.2 Date: 19 Jan 1995 16:16:10 GMT Organization: University of Heidelberg, Germany Message-ID: <3fm38a$jaf@sun0.urz.uni-heidelberg.de> I'm stuck with compiling m4-1.4 with NS3.2 with NeXT's compiler. When it comes to builtin.c, the compiles chokes with the following messages: cc -c -DHAVE_CONFIG_H -I.. -I. -I./../lib -g -O builtin.c builtin.c:357: illegal expression, found `__extension__' builtin.c:357: illegal expression, found `int' builtin.c:357: illegal external declaration, found `)' builtin.c:375: illegal expression, found `__extension__' builtin.c:375: illegal expression, found `int' builtin.c:375: illegal expression, found `)' Somebody else reported this problem two months ago, using a gcc. My experience is with the NeXT cc from 3.2/Moto (based on gcc 2.2.2). NeXT's cc from 3.2/HPPA (based on gcc 2.5.8) gives the same result. gcc 2.4.5 running on 3.2/Moto works! Funny coincidence or not, the same problem arised when I tried to compile the GPC (GNU Pascal). GPC has to be compiled on top of a GCC 2.5.8 source tree, so I decided to use NeXT's cc sources as shiped with 3.2/HPPA. Compiling cc worked fine, but gpc failed for (a modified) gcc.c with the errors listed above. The real problem seems to be a routine obstack_grow() in both cases. Any hints ? Has anybody successfully compiled m4-1.4 or gpc with NEXTSTEP ? Gregor -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
Newsgroups: comp.sys.next.programmer From: karl@khaos.com (Karl Hanzel) Subject: programming an unattended power-up on black HW? Message-ID: <1995Jan19.050309.394@khaos.com> Sender: karl@khaos.com Organization: Rocky Mountain NeXT Users' Group Date: Thu, 19 Jan 1995 05:03:09 GMT OK, i give... how does the Preferences.app do the auto-power-up setting? I want to have a cron task set this so that my machine can power-up at prescribed times without me having to mouse my way around in Preferences for each occasion. I was hoping to get a clue from doing a 'strings /NextApps/Preferences.app/Boot.preferences/Boot' but no real luck. Is source code available somewhere? Is it only black/motorola hw that does this, or can others too? Presumably, it's writing the power-up time to a special register built into the CMOS (or whatever that'd be called) clock hardware, and i wouldn't count on other makes of workstations to have special hardware support for such a thing. Thanks for any & all help! pax, Karl *-----> Karl Hanzel Boulder, Colorado... Home: karl@khaos.com (NeXT/MIME compliant); (303)443-6602
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: What's all this casting crap? Date: 19 Jan 1995 17:44:31 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3fm8dv$mr2@darkstar.UCSC.EDU> References: <9501181040.AA00521@flexus> In article <9501181040.AA00521@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: > Static typing should be used only to help check the quality of the code by > telling the compiler that you might *not* be knowing what you're doing, and > will it please help you out a bit. The problem here is that this also > compromises the maintainability of the code, and might inflate complexity > beyond intelligibility. I suspect finding the right compromise is (still) a > matter of art. And it's *very* difficult to do this well! > It's also very difficult to write perfect code (i.e., no bugs). I admit that I don't always know what I'm doing (I *think* I do, but that doesn't always get translated perfectly into code). So I'd rather give up a little flexibility by using static typing to get the compiler to help me discover my errors. I can always go back later and revert to less restrictive typing should I need to, but this, in my experience, is a much less frequent occurrence than coding errors that the compiler catches because of static typing, So while Raf is correct theoretically (he usually is :-) practical considerations are more important for me. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: EOF: Master/Peer w/ qualifier on Peer Date: 19 Jan 1995 16:51:06 GMT Organization: MCI Communications Distribution: world Message-ID: <3fm59q$ei3@hermes.dna.mci.com> Hopefully this will be less controversial than my casting question.... Anyway, I'm trying to create a master/peer (what everyone but NEXT would probably call a master/detail) setup with a qualifier on the peer. More or less exactly like the code in the Chapter 12 (p. 6 on my printer) of the EOF documentation. The only problem is that it doesn't work. :-( I have everything hooked up ok (I think) but when the code executes I get the infamous: Unknown error code 100003 in NXReportError. Great. Any ideas? -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
From: davechao@cteq07.pa.msu.edu (David Bowser-Chao) Newsgroups: comp.sys.next.programmer Subject: cross-references in gcc, g++? Date: 19 Jan 1995 17:35:58 GMT Organization: Michigan State University Message-ID: <3fm7tu$1ake@msunews.cl.msu.edu> Could anyone help me with the following? I remember hazily that on the CRAY, for example, the fortran compiler could produce a very nice symbol cross-reference table, detailing where each variable/function was called/used/defined. I need something like that now, and the man pages for gcc and ld seem not to make any mention of this facility. Isn't this a "standard" feature of compilers, and if not, where could I find a tool to do this analysis? Thanks, David
From: willers@butp.unibe.ch (Moritz Willers) Newsgroups: comp.sys.next.programmer Subject: defines for architectures? Date: 19 Jan 1995 15:14:16 GMT Message-ID: <3flvk8$t1v@aragorn.unibe.ch> This must be written somewhere in TFM. But I can't find it and am not patient enough to go on looking for it. Can some kind soul tell me how I can test with an #ifdef or #if for the Motorola or other architecture, eg. #ifdef M68K Thanks, -- Moritz Willers Institute of Theoretical Physics Sidlerstrasse 5 3012 Bern, Switzerland willers@butp.unibe.ch (NeXTMail, MIME)
From: Greg_Anderson@afs.com (Gregory H. Anderson) Newsgroups: comp.sys.next.programmer Subject: Re: defines for architectures? Date: 19 Jan 1995 19:31:51 GMT Organization: Anderson Financial Systems Inc. Message-ID: <3fmen7$dkt@shelob.afs.com> References: <3flvk8$t1v@aragorn.unibe.ch> In article <3flvk8$t1v@aragorn.unibe.ch> willers@butp.unibe.ch (Moritz Willers) writes: > Can some kind soul tell me how I can test with an #ifdef or #if for the > Motorola or other architecture, eg. #ifdef M68K 'man arch' yields the following table: The currently known architectures are: Name CPU Type CPU Subtype Description hppa CPU_TYPE_HPPA CPU_SUBTYPE_HPPA_ALL HP-PA i386 CPU_TYPE_I386 CPU_SUBTYPE_I386_ALL Intel 80x86 i860 CPU_TYPE_I860 CPU_SUBTYPE_I860_ALL Intel 860 m68k CPU_TYPE_MC680x0 CPU_SUBTYPE_MC680x0_ALL Motorola 68K m88k CPU_TYPE_MC88000 CPU_SUBTYPE_MC88000_ALL Motorola 88K m98k CPU_TYPE_MC98000 CPU_SUBTYPE_MC98000_ALL Power PC mips CPU_TYPE_MIPS CPU_SUBTYPE_MIPS_ALL MIPS sparc CPU_TYPE_SPARC CPU_SUBTYPE_SUN4_ALL SPARC vax CPU_TYPE_VAX CPU_SUBTYPE_VAX_ALL DEC VAX The first value is what you test with #ifdefs. -- Gregory H. Anderson | "Internet: a giant international network Stud Hombre Cybermuffin | of intelligent, informed computer Anderson Financial Systems | enthusiasts, by which I mean 'people greg@afs.com (NeXTmail OK) | without lives.'" -- Dave Barry, 2/6/94
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: EOF: casting and IB parsing.... Date: 19 Jan 1995 20:26:37 GMT Organization: MCI Communications Distribution: world Message-ID: <3fmhtt$h45@hermes.dna.mci.com> Hmm, well, after all this so very interesting discussion on casting I decided that I would (even though it pains me) go back and change: id dstSuperCategoryEOController; to: EOController *dstSuperCategoryEOController; so that the dang compiler would shut (and speed!) up. Now, however, I re-discover that IB only parses "id foo" and not "EOWoof *foo". Well, crap. Any ideas? -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
Newsgroups: comp.sys.next.programmer From: "benjamin bernhard" <bbernhar@cs.indiana.edu> Subject: Re: best c++ for nextstep Message-ID: <1995Jan19.095416.7626@news.cs.indiana.edu> Organization: Computer Science, Indiana University References: <1995Jan17.183816.11559@news.cs.indiana.edu> <3fhqk2$hke@hermes.dna.mci.com> Date: Wed, 18 Jan 1995 18:00:34 -0500 In article <3fhqk2$hke@hermes.dna.mci.com>, Cliff Elam <celam@homebrew.cs.mci.com> wrote: >In article <1995Jan17.183816.11559@news.cs.indiana.edu> "benjamin bernhard" ><bbernhar@cs.indiana.edu> writes: >> >> Hello, >> >> I'm looking for the best, most complete, c++ implementation available >> for my black next machine. > >Well, best C++ always sounds like best car wreck to me: walking away alive is >success enough :-) Anyway, the gcc compiler that comes with your NEXT is a >good C++ compiler. There are lots of C++ libraries (including X stuff) >available from the big ftp sites. Yes, I'm sure most NS people don't like c++. I'd rather not discuss the merits of the language here, I'm just looking for the best available implementation. >> What limits do the best options have? > >It's a fat floating curve-ball folks, and Ruth has his feet set! Ahem. What >exactly do you mean by limitations? Dev tools? Gui support? My understanding is that g++ 2.6.3 (what's the version that shipped with NS 3.2?) has several shortfalls including: (from the FAQ) - exceptions - static_cast, reinterpret_cast, const_cast, dynamic_cast - limited documentation - templates must be declared and defined in the same file. - Static data member templates are not supported. - Template member names are not available when defining member function templates. - Class templates are instantiated in some situations where such instantiation should not occur. - Function templates cannot be inlined at the site of their instantiation. I have ben told that the SGI c++ compiler is excellent, I may use it. Any other info about the limits of g++ or other possible compilers much appreciated. Thanks, -- __________________________________________________________________________ Ben Bernhard "Nothing that results from human progress 812/339-5304 (fax) is achieved with unanimous consent." bbernhar@cs.indiana.edu ---Christopher Columbus
From: pcu@umich.edu Newsgroups: comp.sys.next.programmer Subject: non-cast cast Date: 19 Jan 1995 14:52:17 GMT Organization: University of Michigan Distribution: world Message-ID: <3flub1$6nr@lastactionhero.rs.itd.umich.edu> References: <9501181040.AA00521@flexus> In article <9501181040.AA00521@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: > Erik Sowa writes: > Static typing should be used only to help check the quality of the code by > telling the compiler that you might *not* be knowing what you're doing, and > will it please help you out a bit. The problem here is that this also > compromises the maintainability of the code, and might inflate complexity > beyond intelligibility. I suspect finding the right compromise is (still) a > matter of art. And it's *very* difficult to do this well! Nonsense! Here's an example of the non-cast cast...... enjoy. [ #ifdef DEBUG (List *) #endif myBigList objectAt......... ho ho ho! -- Peter Urka <pcu@umich.edu> Dept. of Chemistry, Univ. of Michigan Anything to me is sweeter, Than to see Shock-headed Peter. - H. Hoffmann
From: premise@jupiter.eecs.umich.edu (Sean Willson) Newsgroups: comp.sys.next.programmer Subject: Dock extender application? Date: 19 Jan 1995 16:06:05 GMT Organization: University of Michigan Engineering, Ann Arbor Message-ID: <3fm2ld$rkj@srvr1.engin.umich.edu> I read a while back about a utility that someone created to extend the normal dock to allow documents and such to be placed on the background like a Mac (sorry). It also allowed the used to have something in the background, I think, other than one color or animation. Can someonr direct me to where that may be. I have checked ftp.cs.orst.edu but cannot seem to find it. Thanks for the help....... Sea Willson -- ______________________________________________________________ / Sean Michael Willson | "Don't believe in /______ / premise@umich.edu | miracles rely on them."/ / / http://www.engin.umich.edu/~premise/ WWW Page / / / University of Michigan College of Engineering / / / NeXT Programmer in training! / / / NeXTMail: premise@jupiter.eecs.umich.edu / / /_____________________________________________________________/ / (________/
From: tokumaru@spock.usc.edu (Phillip Tokumaru) Newsgroups: comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.sysadmin Subject: Anyone compile GCC 2.6.x for NS/HPPA? Date: 19 Jan 1995 08:21:05 -0800 Organization: University of Southern California, Los Angeles, CA Sender: tokumaru@spock.usc.edu Distribution: world Message-ID: <3fm3hh$cb6@spock.usc.edu> Has anyone gotten GCC 2.6.3 up and running under NEXTSTEP for HPPA? Phillip Tokumaru ptok@cave.usc.edu
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn) Newsgroups: comp.sys.next.programmer Subject: Re: My wish for 95: alt-delete deletes caracter right of the cursor Date: 20 Jan 1995 05:58:58 GMT Organization: Rensselaer Polytechnic Institute, Troy NY, USA Distribution: world Message-ID: <3fnjf2$rih@usenet.rpi.edu> References: <1995Jan19.162411.3556@afs.com> Greg_Anderson@afs.com (Gregory H. Anderson) writes: > jbright@stimpy (Jason Bright) writes: > > How bout text drag and drop a la Solaris (probably the ONLY > > nice thing I have to say about its interface). Select a bunch > > of text with the mouse. Mouse down in the middle of the > > selection and drag.... get the little text icon and drag the > > text out. OmniWeb lets you do this with images....very nice > > feature (good job Omni gang). > > Not to put too fine a point on it: > > RETCH! PUKE! VOMIT! GAG! > > As others have pointed out, that paradigm sucks for a slew of > usability reasons. It should be banned from all future text > handling applications before anyone else gets hurt. Images, OK. > Text, no way. While I'm not favorably impressed with most the implementations of this I've seen, perhaps a different implementation would work out much better? Say you select text, and a "handle" (little filled-in box) appeared in the middle of the selection. If you select that box, you can pick up the text and drag it somewhere else. If you select elsewhere in the selection, then it still behaves as it does now. Probably want a minimum selection size before the "handle" shows up. If you select one character, chances are you don't have to drag it somewhere else... Or, for that matter, there's no reason the handle has to be *over* the text. Maybe have a marker of some sort appear on the side of the window (or somewhere else...). Thus you are free to reselect any text, anywhere in the window, without anything thinking you want to drag the text somewhere. But if you *do* want to drag the text somewhere, you can do that by clicking on the icon (or whatever) on the side of the window, and drag that somewhere else. The nice thing about this idea [he says, waving his hands wildly] is that the user would be free to scroll the window wherever he wanted, before clicking on that icon to pick up the text and drop the text on it's destination. Given just a little more caffeine-induced hallucinations, I think I could even claim that one could make available both "copy" and "move" versions of this idea. Okay, now that I've done the hard part, everyone else just needs to go out and write a few thousand lines of code to implement it. You don't even have to pay me royalties (though we probably should patent the idea, just so some other schmuck doesn't patent this user-interface idea and then charge anyone who implements it). Perhaps I should just go home and get some sleep. Still, I am almost convinced there's an interesting idea there, somewhere. -- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu ITS Systems Programmer (handles NeXT-type mail) Rensselaer Polytechnic Institute; Troy NY USA
Newsgroups: comp.sys.next.programmer From: Greg_Anderson@afs.com (Gregory H. Anderson) Subject: Re: My wish for 95: alt-delete deletes caracter right of the cursor Message-ID: <1995Jan19.162043.3497@afs.com> Sender: greg@afs.com Organization: Anderson Financial Systems Inc. References: <3fe89f$4os@news.tuwien.ac.at> Date: Thu, 19 Jan 1995 16:20:43 GMT In article <3fe89f$4os@news.tuwien.ac.at> rft@raven.cg.tuwien.ac.at (Robert F Tobler) writes: > Since it's in the wishes for '95 category, I'd like to add mine: > Shift-CursorLeft, Shift-CursorRight, Shift-CursorUp, & Shift-CursorDown > extend the current selection. (like in MS Word ...). But this would be > harder to implement using a special "Keyboard-daemon" like program. So I > think it should be suggested to NeXT for adding it to the functionality > of the Text-object. This should not pose to many problems, since these > key-combinations do not have any special meaning yet, i.e. they do > normal cursor positioning like their unshifted equivalents. WriteUp and PasteUp already do this... 8^) You're right, this would have to be implemented in the Text object itself, because it currently knows how to extend the current selection only by way of mouse clicks. To do this with keyboard equivalents for up and down, you have to figure out what's directly above (or below) the current selection point, as if the user had clicked the mouse there. Not a trivial problem, I assure you. But first you have to convince SJ and Co. that users care about keyboard selection. Remember the first Mac: no arrow keys at all! It may be a tougher sell than you think. -- Gregory H. Anderson | "Internet: a giant international network Stud Hombre Cybermuffin | of intelligent, informed computer Anderson Financial Systems | enthusiasts, by which I mean 'people greg@afs.com (NeXTmail OK) | without lives.'" -- Dave Barry, 2/6/94
Newsgroups: comp.sys.next.programmer From: fischer@fokus.gmd.de (Robert Fischer) Subject: Re: Dock extender application? Message-ID: <1995Jan20.105656.3884@fokus.gmd.de> Sender: news@fokus.gmd.de (News system) Organization: GMD-Fokus References: <3fm2ld$rkj@srvr1.engin.umich.edu> Date: Fri, 20 Jan 1995 10:56:56 GMT In article <3fm2ld$rkj@srvr1.engin.umich.edu> premise@jupiter.eecs.umich.edu (Sean Willson) writes: > I read a while back about a utility that someone created to extend the normal > dock to allow documents and such to be placed on the background like a Mac > (sorry). It also allowed the used to have something in the background, I > think, other than one color or animation. Can someonr direct me to where that > may be. I have checked ftp.cs.orst.edu but cannot seem to find it. > Thanks for the help....... > > Sea Willson > It's called "Fiend" and is located in '/pub/next/binaries/util' on cs.orst.edu (for example). Robert. -- ----------------------------------------------------------------------- Robert Fischer @ GMD-Fokus -------- __o ------- _`\<,_ fischer@fokus.gmd.de ------- (*)/ (*) ## NeXT-Mail welcome ## -----------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer From: Greg_Anderson@afs.com (Gregory H. Anderson) Subject: Re: My wish for 95: alt-delete deletes caracter right of the cursor Message-ID: <1995Jan19.162411.3556@afs.com> Sender: greg@afs.com Organization: Anderson Financial Systems Inc. References: <D2IIvz.Jrr@cunews.carleton.ca> Date: Thu, 19 Jan 1995 16:24:11 GMT In article <D2IIvz.Jrr@cunews.carleton.ca> jbright@stimpy (Jason Bright) writes: > How bout text drag and drop a la Solaris (probably the ONLY > nice thing I have to say about its interface). Select a bunch of text > with the mouse. Mouse down in the middle of the selection and drag.... > get the little text icon and drag the text out. OmniWeb lets you do > this with images....very nice feature (good job Omni gang). Not to put too fine a point on it: RETCH! PUKE! VOMIT! GAG! As others have pointed out, that paradigm sucks for a slew of usability reasons. It should be banned from all future text handling applications before anyone else gets hurt. Images, OK. Text, no way. My humble opinion, of course... 8^) -- Gregory H. Anderson | "Internet: a giant international network Stud Hombre Cybermuffin | of intelligent, informed computer Anderson Financial Systems | enthusiasts, by which I mean 'people greg@afs.com (NeXTmail OK) | without lives.'" -- Dave Barry, 2/6/94
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn) Newsgroups: comp.sys.next.programmer Subject: Re: defines for architectures? Date: 20 Jan 1995 07:24:32 GMT Organization: Rensselaer Polytechnic Institute, Troy NY, USA Distribution: world Message-ID: <3fnofg$ur@usenet.rpi.edu> References: <3flvk8$t1v@aragorn.unibe.ch> willers@butp.unibe.ch (Moritz Willers) writes: > This must be written somewhere in TFM. But I can't find it and > am not patient enough to go on looking for it. > > Can some kind soul tell me how I can test with an #ifdef or #if > for the Motorola or other architecture, eg. #ifdef M68K This may not apply to you, but in general I'd first like to ask the question "Why do you need to know?". It may be that you're using architecture to make a decision that should be made based on some other setting. For instance, if the *reason* you want to know the architecture is because your code has to handle little- endian architectures differently than big-endian architectures, then might be better to check for #ifdef __BIG_ENDIAN__ do thing 1 #elif __LITTLE_ENDIAN__ do thing 2 #else #error Help! Help! I don't know what to do! #endif -- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu ITS Systems Programmer (handles NeXT-type mail) Rensselaer Polytechnic Institute; Troy NY USA
Newsgroups: comp.unix.programmer,comp.sys.next.programmer From: rp9@unix.york.ac.uk (R Peppe) Subject: Re: Good documentation on sockets? Message-ID: <1995Jan19.183445.14049@leeds.ac.uk> Date: Thu, 19 Jan 1995 18:34:44 +0000 (GMT) References: <D2HF9z.1rq@news2.new-york.net> Followup-To: comp.unix.programmer,comp.sys.next.programmer Matthew Hocker (hocker@ritz.mordor.com) wrote: > I'm trying to teach myself how to use sockets on my NeXTstation (NeXT 3.3/3.2 > developer) and I haven't had much luck with the man pages. Is there better > documentation available anywhere on the Internet? Or, can anyone recommend a > good book on the subject? While getting a book on the subject is a good idea, there are still a fair number of aspects of socket programming that are difficult to remember no matter how many times you write them. I have written a small collection of routines that take all the hard work out of socket programming, while leaving the basic paradigm unchanged. I didn't realise quite how useful they would be when I first wrote them - but since written (a couple of years ago) and used in developing many applications, I wouldn't ever go back to the original. Advantages: don't have to remember which include files to use what were all those fields in the sockaddr_in structure anyway (and is that port number in host or network byte order....) ? sockets code starts to look _much_ less cluttered socket code tends to work first time! (fewer things to forget) you can still use all the rest of the unix syscall interface (e.g. read, write, select, etc) and as nice side effect, code written this way tends to be more portable, as all the grubby bits are hidden away. Disadvantages: overhead is one function call. (not a lot compared to the obligatory sys call...) erm... Anyway, in case anyone's interested, I append this collection of routines. Hope someone finds it useful. cheers, rog. #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh <file", e.g.. If this archive is complete, you # will see the following message at the end: # "End of shell archive." # Contents: DOC sockcmd.c sockcmd.h # Wrapped by rog@ohm.york.ac.uk on Thu Jan 19 18:27:29 1995 PATH=/bin:/usr/bin:/usr/ucb ; export PATH if test -f DOC -a "${1}" != "-c" ; then echo shar: Will not over-write existing file \"DOC\" else echo shar: Extracting \"DOC\" \(6142 characters\) sed "s/^X//" >DOC <<'END_OF_DOC' Xa few functions to hide the nastiness of internet sockets under unix. X Xif you find them useful, i'd love to know. (email at rog@ohm.york.ac.uk) X X Xthey cope with two types of socket: stream (TCP) and datagram (UDP) Xsome of the functions apply to both types of socket; some to one Xor the other. X Xall functions return -1 on error. X Xgeneral functions X***************** X X int sc_makeaddr(Address *addr, int port, char *name) X X fills in the given Address structure with X the relevant details. X X an Address structure contains details of a host address (its X Internet address) and a port number. X X _name_ is the name of a machine resolvable by the name server X (e.g. glenlivet.ohm.york.ac.uk) or a numerical IP address (e.g. 144.32.136.21) X if name is NULL, then the name of the local machine will be used. X X int sc_bindaddr(int fd, Address *addr) X X binds the socket fd to the address (previously filled in with makeaddr()) _addr_. X if the port number in _addr_ is 0, the socket will be bound to a random unused X unprivileged port number. X X this call is usually made in one of three circumstances : X 1) prior to accepting incoming connections on a stream socket (see also listenstrm() and acceptstrm()) X 2) prior to accepting incoming packets on a datagram socket (see also sendpacket() and readpacket()) X 3) to bind to a 'privileged port number' (any port number less than 1024) prior to connecting X to a service that requires a privileged client (e.g. rlogin). (this needs root privileges) X X int sc_getaddr(int fd, Address *addr) X X fills in _addr_ with the address associated with the socket _fd_. X X char *sc_addr2str(Address *addr) X X returns a string representation of _addr_. repeated calls X overwrite the returned buffer. X X int sc_addr_equal(Address *a, Address *b) X X returns non-zero a and b are the same. (same host and X same port number) X X int sc_getport(Address *addr) X X get the port number in _addr_. X Xdatagram socket specific functions X********************************** X X int sc_makedgramsocket(void) X X creates a datagram socket and returns its file descriptor (or -1 on error) X X int sc_readpacket(int fd, Address *addr, char *buf, int n) X X read a packet from datagram socket _fd_ into buffer _buf_ of length _n_. X the buffer should be large enough to contain the packet. X if addr is not NULL, it will be filled in with the address of the sending socket. X _fd_ should be a socket that has been bound (see bindaddr()). X X return the length of the packet read (or -1 on error) X X int sc_sendpacket(int fd, Address *addr, char *buf, int n) X X write a packet _buf_ of length _n_ down datagram socket _fd_ to destination _addr_. X Xstream socket specific functions X******************************** X X int sc_connectstrm(int fd, Address *addr) X X attempt to connect stream socket _fd_ to address _addr_ (previously filled in with makeaddr()) X X int sc_listenstrm(int fd) X X mark stream socket _fd_ as waiting for incoming connections. X connections can then be waited for with acceptstrm(); using the select() system X call to wait for _fd_ to become readable also works. X X int sc_acceptstrm(int fd, Address *addr) X X blocks until a connection request to stream socket _fd_ is received. X _fd_ should previously have been marked to receive connections with listenstrm(). X X if _addr_ is not NULL, it is filled in with the address of the socket at the X other end of the connection. X X returns a file descriptor which is a newly established socket connected to X the other end. (read() system call reads data from the other end; write() writes X data to the other end) X Xa few notes about sockets and other unix system calls X***************************************************** X X the file descriptors referred to above are conventional unix file descriptors, X (as used in the read(), select(), fcntl(), etc system calls) and can be used X as such. X X the only major restriction on this is that the read() and write() system calls X do not work on datagram sockets, because the destination address is sent X anew for each datagram. (use the sendpacket() and readpacket() calls) X Xexamples X******** X X error checking code has been omitted for clarity. be aware that any call X may fail at any time... X X code to connect to a remote TCP service at a remote address and known port number X X ... X fd = connect_tcp("glenlivet.ohm.york.ac.uk", 23); X write(fd, "hello other end\n", 16); X ... X X int connect_tcp(char *hostname, int portno) X { X Address addr; X int fd; X sc_makeaddr(&addr, portno, hostname); /* remote hostname, known port number */ X X fd = sc_makestrmsocket(); /* TCP socket */ X sc_connectstrm(fd, &addr); /* connect across */ X return fd; X } X X code to set up a TCP service at a known port number X X do_service(int portno) X { X Address addr; X int fd, fdconnected; X sc_makeaddr(&addr, portno, (char *)0); /* local hostname, known port number */ X fd = sc_makestrmsocket(); /* TCP socket */ X sc_bindaddr(fd, &addr); /* bind to known port */ X sc_listenstrm(fd); /* mark available for incoming connections */ X X for (;;) X { X fdconnected = sc_acceptstrm(fd, (Address *)0); /* wait for connection (don't care where from) */ X write(fdconnected, "hello other end\n", 16); /* talk to connection */ X ... X } X } X X code to send a UDP packet to known address and port number X X sendit(char *name, int portno) X { X Address addr; X sc_makeaddr(&addr, portno, name); X fd = sc_makedgramsocket(); X sc_sendpacket(fd, &addr, "hello other end\n", 16) X } X X code to receive UDP packets at known address and port number X X receiveit(int portno) X { X Address addr; X char buf[1024]; X sc_makeaddr(&addr, portno, (char *)0); X fd = sc_makedgramsocket(); X sc_bindaddr(fd, &addr); X for (;;) X { X int pksize; X pksize = sc_readpacket(fd, (Address *)0, buf, 1024); X buf[pksize] = 0; /* terminate string... */ X printf("packet received; contents: '%s'\n", buf); X } X } END_OF_DOC if test 6142 -ne `wc -c <DOC`; then echo shar: \"DOC\" unpacked with wrong size! fi # end of overwriting check fi if test -f sockcmd.c -a "${1}" != "-c" ; then echo shar: Will not over-write existing file \"sockcmd.c\" else echo shar: Extracting \"sockcmd.c\" \(3583 characters\) sed "s/^X//" >sockcmd.c <<'END_OF_sockcmd.c' X#include <libc.h> X#include "sockcmd.h" X#include <arpa/inet.h> X#include <netdb.h> X X/* X * socket interface routines. X * - a simplified interface to the UNIX socket syscall interface. X * written by w.r.t.peppe (rog@ohm.york.ac.uk) X * use or abuse at will X * if you find this useful, i'd love to know... (email welcome) X */ X Xint sc_makeaddr(Address *addr, int port, char *name) X/* X * fill in an Address structure. X * name is the required hostname (a NULL name means use X * the local host). X * port is the port number X * return -1 on error. X */ X{ X char hname[256], *s; X static Address cachelocal; X static int donelocal; X int i; X struct hostent *ent; X X if (donelocal && name == 0) X *addr = cachelocal; X else X { X if (name==0) X { X if (gethostname(hname, 256)==-1) return -1; X name = hname; X } X if (ent = gethostbyname(name)) X { X addr->s.sin_family = ent->h_addrtype; X addr->s.sin_addr = *((struct in_addr *)ent->h_addr_list[0]); X } X else X { X for (s = name; *s; s++) X if (*s < '0' && *s > '9' && *s != '.') X return -1; X /* it's a host given by internet number */ X addr->s.sin_addr.s_addr = inet_addr(name); X addr->s.sin_family = AF_INET; X } X if (name == 0) X { X donelocal = 1; X cachelocal = *addr; X } X } X X addr->s.sin_port = htons(port); X addr->addrlen = sizeof(struct sockaddr_in); X for (i=0; i<8; i++) X addr->s.sin_zero[i] = 0; X return 0; X} X Xvoid sc_setaddr(Address *addr, long inet_addr, int port) X/* X * fill in an Address structure from a numeric internet address X * and a port number. X * probably not generally very useful X */ X{ X static Address blankaddr; X *addr = blankaddr; X addr->addrlen = sizeof(struct sockaddr_in); X addr->s.sin_family = AF_INET; X addr->s.sin_addr.s_addr = inet_addr; X addr->s.sin_port = port; X} X Xchar *sc_addr2str(Address *addr) X/* X * return a string representation of an Address structure. X * don't call this twice in one printf! X */ X{ X static char buf[100]; X sprintf(buf, "[%s:%d]", inet_ntoa(addr->s.sin_addr), ntohs(addr->s.sin_port)); X return buf; X} X Xint sc_addr_equal(Address *a, Address *b) X/* X * return non-zero if the two addresses are the X * same X */ X{ X return a->s.sin_addr.s_addr == b->s.sin_addr.s_addr && X a->s.sin_port == b->s.sin_port; X} X Xint sc_getaddr(int fd, Address *addr) X/* X * get the Address associated with socket fd X */ X{ X addr->addrlen = sizeof(addr->s); X return getsockname(fd, (struct sockaddr *)&addr->s, &addr->addrlen); X} X Xint sc_getport(Address *addr) X/* X * return the port number of an Address X */ X{ X return ntohs(addr->s.sin_port); X} X Xint sc_bindaddr(int fd, Address *addr) X{ X return bind(fd, (struct sockaddr *)&(addr->s), addr->addrlen); X} X Xint sc_makedgramsocket(void) X{ X return socket(AF_INET, SOCK_DGRAM, 0); X} X Xint sc_makestrmsocket(void) X{ X return socket(AF_INET, SOCK_STREAM, 0); X} X Xint sc_connectstrm(int fd, Address *addr) X{ X return connect(fd, (struct sockaddr *)&addr->s, addr->addrlen); X} X Xint sc_listenstrm(int fd) X{ X return listen(fd, 5); X} X Xint sc_acceptstrm(int fd, Address *addr) X{ X Address here; X if (!addr) addr = &here; X addr->addrlen = sizeof(addr->s); X return accept(fd, (struct sockaddr *)&(addr->s), &(addr->addrlen)); X} X Xint sc_readpacket(int fd, Address *addr, char *s, int n) X{ X Address from; X if (!addr) addr = &from; X addr->addrlen = sizeof(addr->s); X return recvfrom(fd, s, n, 0, (struct sockaddr *)&addr->s, &addr->addrlen); X} X Xint sc_sendpacket(int fd, Address *addr, char *s, int n) X{ X return sendto(fd, s, n, 0, (struct sockaddr *)&(addr->s), addr->addrlen); X} END_OF_sockcmd.c if test 3583 -ne `wc -c <sockcmd.c`; then echo shar: \"sockcmd.c\" unpacked with wrong size! fi # end of overwriting check fi if test -f sockcmd.h -a "${1}" != "-c" ; then echo shar: Will not over-write existing file \"sockcmd.h\" else echo shar: Extracting \"sockcmd.h\" \(1238 characters\) sed "s/^X//" >sockcmd.h <<'END_OF_sockcmd.h' X#include <sys/types.h> X#include <sys/socket.h> X#include <netinet/in.h> Xtypedef struct X{ X int addrlen; X struct sockaddr_in s; X} Address; X Xint sc_makedgramsocket(void); /* make datagram (UDP) socket */ Xint sc_makestrmsocket(void); /* make stream (TCP) socket */ X Xint sc_makeaddr(Address *addr, int port, char *name); /* make address */ Xint sc_getaddr(int fd, Address *addr); /* get socket's address */ Xint sc_getport(Address *addr); /* return port number part of address */ Xint sc_bindaddr(int fd, Address *addr); /* bind socket to address */ Xchar *sc_addr2str(Address *addr); /* return str representation of addr */ X Xvoid sc_setaddr(Address *addr, long inet_addr, int port); /* set address from inet addr and port */ X Xint sc_connectstrm(int fd, Address *addr); /* connect stream socket to address */ Xint sc_listenstrm(int fd); /* mark stream socket ready for incoming connections */ Xint sc_acceptstrm(int fd, Address *addr); /* accept any incoming connections */ X Xint sc_readpacket(int fd, Address *addr, char *s, int n); /* receive datagram */ Xint sc_sendpacket(int fd, Address *addr, char *s, int n); /* send datagram */ X Xint sc_addr_equal(Address *a, Address *b); /* true if addresses are identical */ END_OF_sockcmd.h if test 1238 -ne `wc -c <sockcmd.h`; then echo shar: \"sockcmd.h\" unpacked with wrong size! fi # end of overwriting check fi echo shar: End of shell archive. exit 0
From: willers@butp.unibe.ch (Moritz Willers) Newsgroups: comp.sys.next.programmer Subject: Re: defines for architectures? Date: 20 Jan 1995 14:04:32 GMT Distribution: world Message-ID: <3foftg$dh4@aragorn.unibe.ch> References: <3fnofg$ur@usenet.rpi.edu> Garance A. Drosehn writes > willers@butp.unibe.ch (Moritz Willers) writes: > > This must be written somewhere in TFM. But I can't find it and > > am not patient enough to go on looking for it. > > > > Can some kind soul tell me how I can test with an #ifdef or #if > > for the Motorola or other architecture, eg. #ifdef M68K > > This may not apply to you, but in general I'd first like to ask > the question "Why do you need to know?". It may be that you're > using architecture to make a decision that should be made based > on some other setting. For instance, if the *reason* you want to > know the architecture is because your code has to handle little- > endian architectures differently than big-endian architectures, > then might be better to check for First: Thanks for the help from everywhere. And then to answer this, why I need it. It's no big/little endian problem. NeXT must yet have another bug in the NXSpellServer. I already came across one which they are going to fix in some future release. - you probably know of my nextispell services for spell checking text with ispell via NeXT's SpellPanel. As the new architectures came up, I keep getting complaints that the text is selected off by one character. They only come from people with Intel or HP machines. So the problem seems to be connected to the architecture. I couldn't very this yet myself, so I didn't inform NeXT about this bug yet - if it really is one. (hey NeXT, if you're interested in verifying this with my code, please contact me) But people want to use the spell checker and I have to circumvent this bug, as I already have to work around the other one. Very annoying. And I'm only doing this for you out there. I have myself bought HSD's product when they gave it away for almost free at one time for m68k's. I don't use nextispell anymore :-) almost, I still use it for text documents. But then again I hate tex and try to avoid it. That's what I call hacking :-) - Moritz -- Moritz Willers Institute of Theoretical Physics Sidlerstrasse 5 3012 Bern, Switzerland willers@butp.unibe.ch (NeXTMail, MIME) And now it would be appropriate to add (as I read in someone else's signature): Programming is like sex, one mistake and you have to support it a lifetime.
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Good documentation on sockets? Date: 19 Jan 1995 22:28:13 -0000 Organization: me organized? That's a joke! Message-ID: <3fmp1t$jc2@steffi.dircon.co.uk> References: <3fd04d$5s1@xexos.xexos.com> <3fd2ic$iao@geraldo.cc.utexas.edu> <ROBERT.95Jan17100637@steffi.dircon.co.uk> <D2MAH7.4G6@cfa.org> peisch@cfa.org wrote in comp.sys.next.programmer >Robert Nicholson (robert@steffi.dircon.co.uk) wrote: > >: The BSD documentation is an excellent introduction.. > >: Here's what I have my TCP directory... > >: drwx------ 2 robert wheel 512 Jan 14 17:54 . >: drwxr-xr-x 21 robert wheel 3072 Jan 11 20:41 .. >: -rw-r--r-- 1 robert wheel 60155 Jun 17 1994 advanced-ipc-tutorial.ps.gz >: -rw-r--r-- 1 robert wheel 31764 Jun 17 1994 ipc-primer.ps.gz >: -rw-r--r-- 1 robert wheel 29557 Jun 17 1994 serial.ps.gz >: -rw-r--r-- 1 robert wheel 5666 Jun 17 1994 socket-primer.shar.gz >: -rw-r--r-- 1 robert wheel 69205 Jan 14 17:54 tcp-ip-admin.ps.gz >: -rw-r--r-- 1 robert wheel 37505 Jun 17 1994 tcp-ip-intro.ps.gz >: -- >: "Oh no, actually darling I don't have time for games." >: (PGP key: send email with Subject: request pgp key) >: (ASCII for text only messages) > >Yes, the BSD documentation is good. > >Here is what I have in my / directory... > > 2 drwxr-xr-x 16 root wheel 1024 Jan 17 23:59 ./ > 2 drwxr-xr-x 16 root wheel 1024 Jan 17 23:59 ../ > 2 drwxr-xr-x 3 root wheel 1024 Jan 11 11:06 .NeXT/ > 2 -rw-r--r-- 1 root wheel 593 Mar 4 1992 .cshrc > 2 -rw-r--r-- 1 root wheel 189 Dec 29 16:54 .dir3_0.wmd > 2 -rw-r--r-- 1 root wheel 89 Jul 31 1992 .hidden > 2 -rw-r--r-- 1 root wheel 187 Mar 20 1989 .login > 2 -rw-r--r-- 1 root wheel 150 Dec 8 1992 .path > 2 -rw-r--r-- 1 root wheel 125 Dec 8 1992 .profile > 2 -rw-r--r-- 1 root daemon 15 Jan 2 14:07 .rhosts > 2 drwxr-xr-x 3 peter wheel 1024 Jan 16 18:43 General/ > 1 drwxr-xr-x 3 root wheel 1024 Dec 18 1993 LocalAdmin/ > 2 drwxr-xr-x 42 root wheel 2048 Jan 1 15:53 LocalApps/ > 1 drwxr-xr-x 9 root staff 1024 Jun 3 1994 LocalDeveloper/ > 1 drwxr-xr-x 17 root wheel 1024 Jan 1 15:46 LocalLibrary/ > 1 dr-xr-xr-x 1 root wheel 512 Jan 18 00:00 Net/ > 2 drwxr-xr-x 11 root wheel 1024 Sep 16 1993 NextAdmin/ > 2 drwxr-xr-x 12 root wheel 1024 Sep 16 1993 NextApps/ > 2 drwxr-xr-x 10 root wheel 1024 Jul 13 1994 NextDeveloper/ > 2 drwxr-xr-x 20 root wheel 1024 Oct 19 1993 NextLibrary/ > 1 drwxr-xr-x 5 root wheel 1024 Jul 5 1993 Users/ > 2 drwxr-xr-x 2 root wheel 2048 Jan 7 22:17 bin/ > 2 drwxr-xr-x 3 root wheel 1024 Dec 30 11:27 clients/ > 0 lrwxrwxrwx 1 root wheel 11 Dec 28 15:18 dev -> private/dev@ > 0 lrwxrwxrwx 1 root wheel 11 Dec 28 15:18 etc -> private/etc@ > 2 drwxr-xr-x 4 root wheel 1024 Jul 13 1994 lib/ > 8 drwxr-xr-x 2 root wheel 8192 Dec 28 15:11 lost+found/ > 0 lrwxrwxrwx 1 root wheel 9 Dec 28 15:18 mach -> $BOOTFILE@ > 2 drwxrwxrwx 6 me other 1024 Sep 16 1993 me/ > 776 -r--r--r-- 3 root wheel 779168 Sep 14 1993 odmach > 2 drwxrwxr-x 11 root wheel 1024 Sep 16 1993 private/ > 776 -r--r--r-- 3 root wheel 779168 Sep 14 1993 sdmach > 0 lrwxrwxrwx 1 root wheel 11 Dec 28 15:18 tmp -> private/tmp@ > 2 drwxr-xr-x 15 root wheel 1024 Jan 17 23:59 usr/ > >Cool, huh? > >peter > >-- >peisch@cfa.org > >...still trying to figure out what Robers was showing... > You must be brain dead if you don't see what it's showing. Here's a hint. Archie! -- "Oh no, actually darling I don't have time for games." (PGP key: send email with Subject: request pgp key) (ASCII for text only messages)
From: dion.dock@mccaw.com (Dion Dock) Newsgroups: comp.sys.next.programmer Subject: Re: Need info on .keyboard files (I want to make a new one) Date: 19 Jan 1995 19:37:12 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3fmf18$77q@ftp-p.mccaw.com> References: <3fjji2$6jp@sun0.urz.uni-heidelberg.de> In article <3fjji2$6jp@sun0.urz.uni-heidelberg.de> tuparev@EMBL-Heidelberg.DE (Georg Tuparev) writes: > In article <1995Jan8.140957.36984@cc.usu.edu> sldq1@cc.usu.edu writes: > > Does anyone know where I can find information about the format and > requirements > > for the NEXTSTEP .keyboard files? These files appear to define the various > > keyboard key layouts. I would like to create a new keyboard type that I can > > use for the new Microsoft Natural keyboard, so that I can re-map some of it's > > special keys to NEXTSTEP functions. I don't suppose Keyboard.app in /NextDeveloper/Demos does the job.... -- Dion Dock. Paradigm Systems \\||// --DOOM-- Product Delivery, Axys project. //||\\ dion.dock@mccaw.com
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: How is shlib version determined at run-time? Date: 20 Jan 1995 16:29:47 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3foodr$d5c@darkstar.UCSC.EDU> I admit that I haven't paid close enough attention to similar past questions. Oh, well, I didn't need to know then :-) How does one determine under what version of the OS an app is executing? I know about /usr/lib/NextStep/software_version, but is reading this file the only answer? I haven't been able to find a function or method that does the job. What I'd really like is a more precise method. I'd like to be able to determine what version of a shlib is being used. I know that each class can have a version, but I don't know of any table that maps class versions to shlib version. And I don't even know whether NeXT increments class versions with each class change. Any help would be appreciated. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: EOF: casting and IB parsing.... Date: 20 Jan 1995 16:43:25 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3fop7d$dc8@darkstar.UCSC.EDU> References: <3fmhtt$h45@hermes.dna.mci.com> In article <3fmhtt$h45@hermes.dna.mci.com> celam@homebrew.cs.mci.com (Cliff Elam) writes: > Hmm, well, after all this so very interesting discussion on casting I decided > that I would (even though it pains me) go back and change: > id dstSuperCategoryEOController; > to: > EOController *dstSuperCategoryEOController; > so that the dang compiler would shut (and speed!) up. > > Now, however, I re-discover that IB only parses "id foo" and not "EOWoof > *foo". > > Well, crap. Any ideas? > You're certainly having a tough 1995 :-) I've been doing the following for the past 4 years: @interface NibManager:Object { // ----------------- Instance Variable Declarations ---------------------- @private @protected #ifndef __STDC__ id window; #else __STDC__ Window *window; #endif __STDC__ char *nibName; char *bundleName; BOOL isFrameSaved; BOOL isModal; BOOL isWindowCentered; NXZone *nibZone; @public } The __STDC__ macro is defined during compilation, so the staticly-typed declaration is used then, but IB is happy because it finds the id declarations. Instance variables that aren't needed in IB are then declared outside of the #ifdef...#endif. You can use emacs or possibly Edit to spit out an interface file template that contains all this stuff so that you don't have to manually enter it for each file. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
Newsgroups: comp.sys.next.programmer From: pec@netcom.com (Manabu Tokunaga) Subject: ORB/CORBA Solutions Vendor Sought Message-ID: <pecD2pwAp.16A@netcom.com> Summary: Need contacts for people supplying hetero ORB type solutions Keywords: orb,corba,nextstep,openstep Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Fri, 20 Jan 1995 18:49:36 GMT I am looking for people who have working solutions for implementing ORBs. I am especially interested in people who can help implement DO solutions that work between Solaris 2.4/Sun 4.0 C++ and Intel NEXTSTEPs We are willing to use C++ (NeXT released version) to bridge between Objective C program. If you compnay is providing the solution or will be able to in a next few months time frame, that will be great. Any helpful recommendations are also very much appreciated. Manabu Tokunaga, CEMAX, Inc. Fremont CA. (510) 770-8612 X393, manabu@cemax.com Personal Account: pec@netcom.com -- Manabu Tokunaga <manabu@cemax.com> CEMAX, Inc. 47281 Mission Falls Court, Fremont, CA 94539 (510) 770-8612 X393 Fax: (510) 770-8555 Personal Account: pec@netcom.com
From: btschumy@bga.com (Bill Tschumy) Newsgroups: comp.sys.next.programmer Subject: Re: How is shlib version determined at run-time? Date: 20 Jan 1995 13:10:46 -0600 Organization: Otherwise Message-ID: <3fp1rm$mnj@edwin.bga.com> References: <3foodr$d5c@darkstar.ucsc.edu> In article <3foodr$d5c@darkstar.ucsc.edu>, Art Isbell <art@cubicsol.com> wrote: > I admit that I haven't paid close enough attention to similar past >questions. Oh, well, I didn't need to know then :-) > > How does one determine under what version of the OS an app is >executing? I know about /usr/lib/NextStep/software_version, but is >reading this file the only answer? I haven't been able to find a function >or method that does the job. > > What I'd really like is a more precise method. I'd like to be able to >determine what version of a shlib is being used. I know that each class >can have a version, but I don't know of any table that maps class versions >to shlib version. And I don't even know whether NeXT increments class >versions with each class change. > > Any help would be appreciated. >--- >Art Isbell NeXTmail: art@cubicsol.com >NeXT Registered Consultant Voice: +1 408 335 1154 >Cubic Solutions Fax: +1 408 335 2515 >NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane > Software Development and Consulting Felton, CA 95018-9442 > > > I believe you are supposed to use the host_kernel_version() mach function. Look it up in Librarian. Bill Tschumy | Posting news to thousands of machines Otherwise | throughout the entire civilized world. bill@otherwise.com | Costing the net hundreds if not thousands (NeXTmail and MIME accepted) | of dollars to send everywhere.
From: brilee@po.EECS.Berkeley.EDU (Brian Woo Lee) Newsgroups: comp.sys.next.programmer Subject: OpenGL compatible libraries for NeXT? Date: 19 Jan 1995 23:23:00 GMT Organization: University of California, Berkeley Message-ID: <3fms8k$rqa@agate.berkeley.edu> I'm in a computer graphics course and we are doing our projects on very old SGI machines. I was wondering if there are any Open GL compatible library packages for the NeXT... specifically for the NeXTStep intel version. I'd appreciate any help you can send my way.. Thanks, Brian
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: EOF - EORelationship question.... Date: 19 Jan 1995 23:00:12 GMT Organization: MCI Communications Distribution: world Message-ID: <3fmqts$id9@hermes.dna.mci.com> I'm working on a prototype where the user selects one or more detail fields in a master/detail layout displayed in NXTableViews. When they hit a button I want to copy the (source) master and detail records to another pair of (target) NXTableViews. I've almost got it working, but I think that I'm misunderstanding something fundamental. I can put the master records in their NXTableView and the detail records in their NXTableView but how do I build the relationship? (Under gdb the relationship I built in EOModeller is there in the EOController for the master NXTableView.) Hmm, hope that makes sense - I do better with some hand-waving and a white-board! :-) -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office Airedales and polar bears!
Newsgroups: comp.sys.next.programmer From: sowa@netcom.com (Erik Sowa) Subject: Re: What's all this casting crap? In-Reply-To: Raf Schietekat's message of Wed, 18 Jan 95 11:40:48 +0100 Message-ID: <SOWA.95Jan19171101@netcom20.netcom.com> Sender: sowa@netcom.com (Erik Sowa) Organization: Wahoo 5 References: <9501181040.AA00521@flexus> Date: Fri, 20 Jan 1995 01:10:59 GMT >>>>> "Raf" == Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: Erik Sowa writes: >> Good question. The only thing I've been able to guess is that it >> kills the 'multiple declaration' warnings you mentioned in your >> previous post. Raf> The compiler will *only* recognise the type of the *receiver* Raf> (possibly determined by a cast) for the purposes of resolving Raf> signature conflicts for a particular method name. OK. I seem to recall that the nasty problem was old methods returning a char * and new methods returning a NSString. So maybe that is the reason for the (NSString *) casts. -- Erik Sowa (sowa@netcom.com)
From: deano@farli.otago.ac.nz (Dean McRobie) Newsgroups: comp.sys.next.programmer Subject: The Far side of NeXTStep Date: 20 Jan 1995 02:20:12 GMT Organization: University of Otago, Dunedin, NZ Distribution: world Message-ID: <3fn6ks$okv@celebrian.otago.ac.nz> Keywords: dead, beef, cow, far side, memory, bugs I got quite a surprise today when I looked at an error message showing me that I was using some unallocated memory: (gdb) run Starting program: /Ramoth/users/deano/Albatross/DesignSystem/DesignSystem.debug/DesignSystem Assertion failed: You removed a View from the View hierarchy that had been lockFocus'ed Program generated(1): Memory access exception on address 0xdeadbeef (invalid address). 0x50069c8 in objc_msgSend () (gdb) where Reading in symbols for IRDeanoView.M...done. Reading in symbols for DS_IRLinkObject_Picture.m...done. Reading in symbols for DSPictureController.m...done. Reading in symbols for DesignSystem_main.m...done. #0 0x50069c8 in objc_msgSend () #1 0x1bf54 in renderCroppedMotif (nodeBounds=0x3fff48c, motif=0x932f824) at IRDeanoView.M:62 #2 0x1daa2 in -[IRDeanoView drawSelf::] (self=0x90f09c4, _cmd=0x618ac53, rects=0x3fff48c, rectCount=1) at IRDeanoView.M:497 #3 0x601b7ac in -[View _display::] () #4 0x601b814 in -[View _display::] () #5 0x601406a in -[View display:::] () #6 0x60139ea in -[View display] () #7 0x1d954 in -[IRDeanoView showMotifs:] (self=0x90f09c4, _cmd=0x4d5f7, tag=1) at IRDeanoView.M:473 #8 0x27522 in -[DS_IRLinkObject(Picture) motifChangedWithTag:] (self=0x90f1660, _cmd=0x4bcb2, tag=1) at DS_IRLinkObject_Picture.m:276 #9 0x269c4 in -[DS_IRLinkObject(Picture) addMotifFromPath:andName:] (self=0x90f1660, _cmd=0x4c527, path=0x9145248 "/Albatross.CD-ROM/DesignSystem/Motifs/01Dinosaurs/01Tyrannosaurus Rex.Motif", aName=0x9133600 "01Tyrannosaurus Rex") at DS_IRLinkObject_Picture.m:88 #10 0xbd5e in -[DSPictureController addMotif:] (self=0x90f1500, _cmd=0x4b7e4, sender=0x913c128) at DSPictureController.m:449 #11 0x502ea68 in -[Object perform:with:] () #12 0x6060530 in -[Application sendAction:to:from:] () #13 0x6064dc4 in -[Control sendAction:to:] () #14 0x606c7ba in -[Cell _sendActionFrom:] () #15 0x6067e00 in -[Cell trackMouse:inRect:ofView:] () #16 0x606dee2 in -[ButtonCell trackMouse:inRect:ofView:] () #17 0x606a16e in -[Control mouseDown:] () #18 0x606177c in -[Window sendEvent:] () #19 0x6029772 in -[Application sendEvent:] () #20 0x602ffd2 in -[Application run] () #21 0x2ddfe in main (argc=1, argv=0x3fffb30) at DesignSystem_main.m:15 (gdb) up #1 0x1bf54 in renderCroppedMotif (nodeBounds=0x3fff48c, motif=0x932f824) at IRDeanoView.M:62 (gdb) print *motif $1 = { anImage = 0xbeefdead, hmmm = 0xdeadbeef, bounds = { origin = { x = 2.82445578e-35, y = 2.15442033e-33 }, size = { width = 48, height = 48 } }, tag = 6291456 } It appears that memory which you have not touched is filled with the hex strings 0xdead and 0xbeef! Isn't that beautiful! I LIKE it! Once I finally worked out what it was doing! Deano -- Dean McRobie | NeXTMail: deano@Black_Albatross.otago.ac.nz Programmer | Office: +64-3-479-8347 Black Albatross Project | Lab: +64-3-479-8488 University of Otago | Fax: +64-3-479-8529 Dunedin, New Zealand 9015 "All spangled up ... and glittering on ..."
Newsgroups: comp.sys.next.programmer From: scratch@arcturus.sce.carleton.ca (Craig Scratchley) Subject: Re: Release Date of NeXT Developer 3.3 Message-ID: <scratch.790640258@arcturus.sce.carleton.ca> Keywords: next developer 3.3 release Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University References: <3f3t9v$58n@server.cs.vt.edu> <3f4pjq$235@ivy.bga.com> Date: Fri, 20 Jan 1995 22:17:38 GMT btschumy@bga.com (Bill Tschumy) writes: >In article <3f3t9v$58n@server.cs.vt.edu>, >Charles M. Esterbrook <charles@manta.cs.vt.edu> wrote: >> >>Does anyone know when NeXT Developer will be released for >>Intel/Motorola? I've heard it's in beta. >> >>-Chuck >It is in Beta. Expect to see it released around mid-year. Does anybody know what version of Next-modified gcc comes with the 3.3 developer (beta). I need to use nested functions and NeXT did not include this feature in the 3.2 release for HPPA. Thanks. -- W. Craig Scratchley | internet: scratch@sce.carleton.ca Dept. of Systems and Computer Engineering | phone: (613) 788-5740 (Dept.) Carleton University | (613) 241-6952 (Home) Ottawa, ON, CANADA K1S 5B6 | fax: (613) 788-5727 (Dept.)
Newsgroups: comp.sys.next.programmer From: King_Richard@pcp.ca (Richard King) Subject: Re: [super perform...] -- Is this a bug in AppKit? Message-ID: <1995Jan20.200036.8195@pcp.ca> Sender: news@pcp.ca Organization: PanCanadian Petroleum Ltd. References: <1995Jan18.190934.13690@almserv.uucp> Date: Fri, 20 Jan 95 20:00:36 GMT In article <1995Jan18.190934.13690@almserv.uucp> e3udzp@peterpan (Dimitri Plotnikov) writes: > In article <1995Jan17.083119.21071@mouthers.nwnexus.wa.com> (slugg jello) > writes: > > I wonder if I've found a bug in the AppKit? If I do the following: > > > > [super perform :@selector(play) > > with:nil > > afterDelay:100 > > cancelPrevious :TRUE]; > > > > the play method gets sent to self rather than to super. My intention is > > for the play method to be sent to super. That self in fact receives the > > call seems to me to be a bug. What do ya'll think? Is there a > > work-around or correct way to accomplish this? > > There is a beautiful (though a little bit tricky) work-around: > @implementation Sound (someCategory) > - superPlay > { > return [[self class] instanceMethodFor: @selector (play)] (); > } > @end > > > Now you can call it like this: > > [super perform :@selector(superPlay) > with:nil > afterDelay:100 > cancelPrevious :TRUE]; > [sorry if the explanation is a bit foggy, so am I today] There is no bug, this is the correct behavior. The reason for this is that calls to "super" invoke superclass behaviors on the subclass. There is no separate superclass object. Superclass and subclass attributes for one object have the same identity. Whenever you invoke a super method (such as [super name]), self is still the identity of the object, and a superclass method is being invoked upon a subclass, the way inheritance is supposed to work. But not always intuitive... Having forgotten the previous posts on this, may I assume that the superclass must receive the play: message because it is overridden? If so, why has the functionality of the subclass' play: method been altered so much that it cannot safely be called? My first recommendation in this case might be to rename the subclass' existing play: method to something more appropriate and leave play not overridden, unless there is a seriously good reason not to. If you must retain the play: method in the subclass, here's what you can do that avoids some of the runtime hacks. (BTW, I think the above instance method function invocation should have 2 args: self and a SEL representing the method you are invoking.) @implementation mySubclass : Sound - superPlay: sender { return [super play: sender]; } @end Now you can call it like this: [self perform :@selector(superPlay:) with:nil afterDelay:100 cancelPrevious :TRUE]; Hoever, this is what I'd suggest (divining from what I think you're trying to do): @implementation MySubclass : Sound - delayedPlay: sender { // Causes the sound to start playing after 100 ms. // Should another of these messages be sent within 100 ms, // will postpone playing of the sound until 100 ms after // the latest receipt. // Returns self. [self perform :@selector(play:) with:sender afterDelay:100 cancelPrevious :TRUE]; return self; } @end Now you don't need a separate method at all! :-) Hope this helps, Richard
From: peske@ctp.com (Philip Eskelin) Newsgroups: comp.sys.next.programmer Subject: Tips, etc. Date: 19 Jan 1995 16:16:15 -0500 Organization: Cambridge Technology Partners Distribution: world Message-ID: <3fmkqv$4tj@looney.ctp.com> I have a data management system which sits on top of a sockets layer which is currently ported to Windows 3.1, Windows NT, Solaris, SunOS, AIX, HPUX, OSF/1, and a few other platforms. It is now necessary to port it to NeXT. Here are some questions I have: 1. Is it possible to build a shared (or dynamic-link) library? How? 2. What type of compiler? I know that it supports, Objective C, but are there any alternatives? Linking? 3. Are there man pages on a NeXT? I've heard that there isn't. 4. Is there an FTP site exist that has some good, simple examples of NexT utilities and/or FAQ-like tips? Thank you in advance. If you wish to reply, e-mail is preferred. -- /\/\ | Philip B. Eskelin, Jr. peske@ctp.com / /_ \ | Cambridge Technology Partners, Inc. \ / / | 304 Vassar Street, Cambridge, MA 02139 \/\/ | Phone: (617) 374-8656; FAX: (617) 374-8300
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Linker - multiple symbols problem Date: 20 Jan 1995 23:09:03 GMT Organization: Stanford University Message-ID: <3fpfqf$cs7@nntp.Stanford.EDU> Hello, now that gmake works (thanks for the replies), I am trying to port the SUIF compiler to NeXT. The biggest problem is linking. It needs some posix functions, I can't do anything about it. When I lik it this way: atlantis104:/stan/Developer/suif/src/nsharlit> ld -o nsharlit *.o -L/stan/Developer/suif/NeXT/lib -lsuif -lsys_s I get: ld: Undefined symbols: _prog_ver_string _prog_who_string _sysconf __dyld_func_lookup __NXArgc __NXArgv __environ When I add -lposix to it at the end of the command line, I get the same thing. When I put -lposix on the beginning, tho, I get: ld: multiple definitions of symbol __atexit /usr/lib/libposix.a(atexit.o) definition of __atexit in section (__TEXT,__text) /lib/libsys_s.a(atexit.o) definition of absolute __atexit (value 0x5002054) ld: multiple definitions of symbol _atexit and so on, forever. What should I do? Thanks, --- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss Guy | "Forty-two!" yelled | | SU Computer Science | Loonquawl. "Is that all | | Box 2642, Stanford, CA (415) 497 4396 | you've got to show for | | stanj@cs.stanford.edu | seven and a half | | NeXTmail / MIME anytime welcome! | million years' work?" | +-------------------------------------------+-------------------------+
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: What's all this casting crap? Date: 20 Jan 1995 16:56:19 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3fopvj$dha@darkstar.UCSC.EDU> References: <SOWA.95Jan19171101@netcom20.netcom.com> In article <SOWA.95Jan19171101@netcom20.netcom.com> sowa@netcom.com (Erik Sowa) writes: > OK. I seem to recall that the nasty problem was old methods returning a > char * and new methods returning a NSString. So maybe that is the > reason for the (NSString *) casts. > This is probably one of the reasons why NeXT made so many minor naming changes to the familiar methods that we've used for years. They've probably managed to avoid most name clashes. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: gmake Date: 20 Jan 1995 07:05:12 GMT Organization: Stanford University Message-ID: <3fnnb8$226@nntp.Stanford.EDU> Hello, anyone out there who knows where to get gmake for NeXT? I have a bunch of makefiles in gmake format, and I am unable to convert them myself, so I thought let's find gmake. If you know where to dig, let me know, you would make a student really happy! Thanks, - Stan --- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss Guy | "Forty-two!" yelled | | SU Computer Science | Loonquawl. "Is that all | | Box 2642, Stanford, CA (415) 497 4396 | you've got to show for | | stanj@cs.stanford.edu | seven and a half | | NeXTmail / MIME anytime welcome! | million years' work?" | +-------------------------------------------+-------------------------+
From: mcgredo@crl.com (Donald R. McGregor) Newsgroups: comp.sys.next.programmer Subject: Oracle sqlnet 2? Date: 19 Jan 1995 23:51:35 -0800 Organization: YoyoDyne Propulsion Systems Message-ID: <3fnq27$j4@crl9.crl.com> Has anyone been using Oracle SQL*Net 2 with NeXT? Do the DBKit/EOF adaptors handle this? Is there a shared library? Confused, -- Don McGregor |"Speak out, sir, and do not Maister or Campbell me--my foot mcgredo@crl.com| is on my native heath, and my name is MacGregor!" -W. Scott
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <jcarson@mcgh.org> From: Jerry Carson <jcarson@mcgh.org> Message-ID: <9501201711.AA05170@mcgh.org> Date: Fri, 20 Jan 95 12:11:51 -0500 Subject: WS App Termination I know that I can get the Workspace to launch an app using: [[Application workspace] launchApplication:"Terminal"] Is there an easy way to get the workspace to terminate an app that is no longer needeed? Jerry Carson
Newsgroups: comp.sys.next.programmer From: stephen@gcm.com (Stephen Slayton) Subject: FSF g2c for NeXT? Message-ID: <1995Jan20.195411.22489@gcm.com> Sender: usenet@gcm.com (Cnews Administrator) Organization: Greenwich Capital Markets, Inc. Date: Fri, 20 Jan 1995 19:54:11 GMT I have some fortran code that I would like to convert to C code. I took a look at ftp.att.com:/netlib/f2c, but getting that working seems like a lot of work. Anyone aware of a precompiled version for next, or some other alternative? Gratefully, Stephen Slayton stephen@gcm.com
From: Dirk Balfanz <balfanz@informatik.hu-berlin.de> Newsgroups: comp.sys.next.programmer Subject: Re: Distributed Objects - Summary Date: 21 Jan 1995 13:10:16 GMT Organization: Humboldt University Berlin, Department of Computer Science Message-ID: <3fr13p$meh@hahn.informatik.hu-berlin.de> References: <3fe3ka$pad@hahn.informatik.hu-berlin.de> <3fjgq7$g9a@hahn.informatik.hu-berlin.de> Ok, there has been some response that I should post what I've learned. The problem was as follows: If you have a server, you register it with NXConnection and have the resulting NXConnection object (in the server thread) listen to incoming messages (i.e. use one of the -run* methods). When a client object introduces itself to the server, say, by theServer = [NXConnection connectToName: "MyServer" onHost: "thathost"]; [theServer sayHelloFrom: self] // self == client the corresponding NXConnection (correspondig to the NXProxy object "theServer", that is) in the client thread is only run until -sayHelloFrom:sender returns (from the server). So if the server sends back messages to the client (to it known as "sender") whilst being in -sayHelloFrom:sender, everything is fine and the messages go through. If the server sends back messages to the client later, i.e. after the message which introduced the client returned, the NXConnection object in the client thread doesn't run any longer. So messages don't get dispached to the objects that are known to that NXConnection object (which are those that have at one time or another been equipped with an NXProxy object), including our client object. Knowing this, the rest is easy: Just keep the NXConnection object that is produced for the "theServer" proxy in the client thread running, regardless of the -sayHelloFrom:sender message. The simplest (or is it the most simple?) case is when you're within an AppKit application. Just say: [[theServer connectionForProxy] runFromAppKit] In other cases you have to use one of the other -run* messages which might be a bit more difficult. That at least to me explained why I should run a NXConnection object that at first sight has nothing to do with my client object. But it works and I hope my explanations are correct! Thanks again to all that helped me. I hope I restated their explanations correctly. If still something is wrong, it's probably my fault and not theirs. Dirk.
From: rstevens@noao.edu (W. Richard Stevens) Newsgroups: comp.unix.programmer,comp.sys.next.programmer Subject: Re: Good documentation on sockets? Date: 21 Jan 1995 14:20:46 GMT Organization: National Optical Astronomy Observatories, Tucson, AZ, USA Message-ID: <3fr57u$5l9@noao.edu> References: <D2HF9z.1rq@news2.new-york.net> <1995Jan19.183445.14049@leeds.ac.uk> An important nit pick: you should *always* calls inet_addr() before calling gethostbyname(), since the former is a fast in-memory test and only if that fails do you want to use network resources (possibly) contacting a resolver which can contact a name server and can take a while. Rich Stevens
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: IPCFlushOutput problem with Text subclass Date: 21 Jan 1995 15:26:34 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3fr93a$ik7@solaris.cc.vt.edu> I subclassing the text object in order to allow highlighting of words on the fly (as they're typed in). It not very large right now and I don't feel I am doing anything fancy but everytime I quit the app I get this message on the console. Jan 21 10:17:41 jehu WindowServer[280]: IPCFlushOutput: failed to flush output for stream 0x11d16b4. Most of the highlighting is done with code that looks like this int start, length; NXSelPt startPt, endPt; int startPos; id startFont = [self font]; NXColor startColor = [self textColor]; [self getSel:&startPt :&endPt]; startPos = startPt.cp; [self setAutodisplay:NO]; // Find start and length of sel to highlight [self setSel:start :(start+length)]; [self setSelColor:[hlColor color]]; [self setSelFont:hlFont]; [self setSel:startPos :0]; // Reset the old colors, fonts [self setSelColor:startColor]; [self setSelFont:startFont]; [self setAutodisplay:YES]; [self display]; It doesn't complain when during execution but only when I quit. Any help would be appreciated. Thanks Jehu
From: gmecchia@cc.colorado.edu Newsgroups: comp.sys.next.programmer Subject: Should assignment methods return "self" or "->this" ? Date: 20 Jan 1995 14:19:43 GMT Organization: The Colorado College, Colorado Springs, CO Message-ID: <3fogpv$ned@lace.Colorado.EDU> Hi, when does an assignment method returns the argument itself? Why shouldn't it return self? Here is an example: items := #('one' 'two' 'three'). lp := ListBox new owner: myWindow; contents: items. Transcript show: lp class printString; cr. lp is now an instance of Array. If instead we had: lp := ListBox new owner: myWIndow. lp contents: items. lp is still an instance of ListBox. This happens because the method contents: returns the collection passed as argument. Why not return "self" ? - Alexis gmecchia@cc.colorado.edu
From: filip@filtronix.eunet.be (Filip Lingier) Newsgroups: comp.sys.next.programmer Subject: Re: Release Date of NeXT Developer 3.3 Date: 21 Jan 1995 14:04:46 GMT Organization: Filtronix Inc. Distribution: world Message-ID: <3fr49u$8h@filtronix.eunet.be> References: <scratch.790640258@arcturus.sce.carleton.ca> In article <scratch.790640258@arcturus.sce.carleton.ca> scratch@arcturus.sce.carleton.ca (Craig Scratchley) writes: > Does anybody know what version of Next-modified gcc comes with > the 3.3 developer (beta). I need to use nested functions and > NeXT did not include this feature in the 3.2 release for HPPA. 2.5.8 would be a save guess... Filip -- ------------------------------------------------------------------------- FILTRONIX A programmer's think-tank - info@filtronix.eunet.be (NeXTmail OK!) -------------------------------------------------------------------------
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: WS App Termination Date: 22 Jan 1995 00:06:04 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3fs7hc$39b@darkstar.UCSC.EDU> References: <9501201711.AA05170@mcgh.org> In article <9501201711.AA05170@mcgh.org> Jerry Carson <jcarson@mcgh.org> writes: > I know that I can get the Workspace to launch an app using: > > > [[Application workspace] launchApplication:"Terminal"] > > > Is there an easy way to get the workspace to terminate an app that > is no longer needeed? > Possibly the Speaker and Listener classes will do what you need. Check out their class descriptions. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Static Variables (was Re: EOF multiple declaration problem Date: 19 Jan 1995 16:40:14 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3fm4le$lra@darkstar.UCSC.EDU> References: <9501181908.AA12992@flexus> In article <9501181908.AA12992@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: > Art Isbell, Re: Static Variables (was Re: EOF multiple declaration problem > > Static typing has always > > been a good thing because it tells the compiler what type > > of object to expect, so the compiler may be able to > > produce better optimized code. You do want your app to > > run at top speed, don't you ?-) > Not true! The code will be exactly the same (I think). What makes you say this? The devil made me do it :-) Raf is not the only person to challenge me on this one. I'm certainly no compiler expert, so I was relying on my recollection of rationales for using static typing that I had read in NeXT's documentation. Of course, I can't find that reference (possibly a figment of my imagination :-) now when I *really* need it. Maybe I interpreted "better type checking" to mean "better code". On the other hand, I did say that "the compiler may be able to produce better optimized code" - and maybe not :-) I guess I could try to compare generated assembler code in both cases (static and non-static typing), but I've got work to do. > > Idem: > > Part of your frustration is probably due to NEXTSTEP's > > first major API change. NS 3.3 and EOF are caught in > > the transition from the old API to the new one. So until > > the transition has been completed (NS 4.0), you need to > > chill out a little or this stuff is going to drive you > > crazy :-) > That's no excuse. There should be no method name clashes. > Given that NeXT has limited resources as we all do, I'll vote that NeXT spend its resources on fixing more serious problems before examining the entire transitional API for method name clashes. This problem will go away all by itself in the future. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
Newsgroups: comp.sys.next.software,comp.sys.next.programmer From: Nicole A Vincent <nicolev@number_one.ppit.com.au> Subject: Need Database Development/Access tools Message-ID: <D2szJ2.A1@number_one.ppit.com.au> Sender: usenet@number_one.ppit.com.au Organization: Ashe's on Heidelberg - the Virtual NeXTSTEP Cafe Downunder. Date: Sun, 22 Jan 1995 10:52:14 GMT Hi I'm in need of an easy to program database package,... basically I need the graphical niceness of DataPhile (for both designing the database and accessing it) but something relational which can cope with a client-server type design. Truthfully, I do not think much of programming it in Objective-C with Interface builder so I'd like something really simple,... Please send suggestions, prices, ftp sites (for demos) to me, but do keep the emails to a smaller size :-) Thanx in advance. Cheers Nicole --- --------------------------- NeXTmail Accepted --------------------------- Nicole Vincent : nicolev@number_one.ppit.com.au MELBOURNE VIC AUSTRALIA The joys of love made her human and the agonies of love destroyed her. -- Spock, "Requiem for Methuselah", stardate 5842.8
Newsgroups: comp.sys.next.programmer From: dbhinz@znih.rmnug.org (David Hinz) Subject: Q: IB Scrollview Inspector Message-ID: <1995Jan20.231544.1573@nugget.rmNUG.ORG> Sender: dbhinz@nugget.rmNUG.ORG Organization: Rocky Mountain NeXT Users' Group Date: Fri, 20 Jan 1995 23:15:44 GMT In the Interface Builder Scrollview Inspector are the Line Amount and Page Context parameters the same as the setLineScroll: and setPageScroll methods of the ScrollView object? Thanks, David Hinz -- {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} { } { David Hinz } { Hz Computing Technologies }
From: c4craig@csn.net (Craig Anderson) Newsgroups: comp.sys.next.programmer,comp.lang.scheme Subject: Scheme for NS/FIP 3.2 Date: 22 Jan 1995 03:58:31 GMT Organization: Colorado Supernet Message-ID: <3fsl58$aba@news-2.csn.net> Can anyone advise me on a good scheme to build and use on NS/FIP 3.2? I have gotten siod-3.0 and libscheme-0.5 to build and will look at both for embedding into objective-c. I would like to try some larger interpreter packages as well. I have been unsuccessfull in building bigloo2, scheme48, and mit-scheme. Thanks, Craig Anderson craig@c4.com
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: EOF: casting and IB parsing.... Message-ID: <D2qK1v.B9n@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems, Inc. References: <3fmhtt$h45@hermes.dna.mci.com> Date: Sat, 21 Jan 1995 03:22:43 GMT Cliff Elam writes > I decided that I would (even though it pains me) go back and change: > id dstSuperCategoryEOController; > to: > EOController *dstSuperCategoryEOController; > so that the dang compiler would shut (and speed!) up. Good decision. Even more important, this way the dang compiler can help you find alot of errors quickly at compile time instead of (with much more effort) at run time. > Now, however, I re-discover that IB only parses "id foo" and not "EOWoof > *foo". > Well, crap. Any ideas? This is a limitation of the current IB. Fortunately, there is a fairly reasonable workaround as follows: #ifdef __STDC__ EOController *dstSuperCategoryEOController; // for cc #else id dstSuperCategoryEOController; // for IB #endif Or you could just add the outlet in the IB class inspector. But I recommend parsing to keep IB and the class def in sync. (I'd really prefer IB and cc to obtain class descriptions from a single source automatically.) I've heard rumours that some future IB will be smarter about typing, but have seen no statement from NeXT about that. -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Sat, 21 Jan 95 13:55:07 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501211255.AA00797@flexus> Subject: Re: Static Variables (was Re: EOF multiple declaration problem >>>>> Ken Pelletier writes: Hmmm... maybe what's not clear there is that I intended that each of the -name methods is declared to return an id. Surely you're not claiming that the compiler complains about that? are you? <<<<< I'm sorry, I must not have read very carefully. I assumed you meant something like -(ObjectClass1*)name and -(ObjectClass2*)name. [Opinions deleted.] Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Sat, 21 Jan 95 19:00:56 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501211800.AA07595@flexus> Subject: Re: EOF: casting and IB parsing.... In your header file: #ifdef NOTIB EOController *dstSuperCategoryEOController; Text *theText; TextField *theTextField; #else id dstSuperCategoryEOController; id theText; id theTextField; #endif In Makefile.preamble: CFLAGS = -DNOTIB I always do this (the reader will note that this implies that I often do use static typing, but not for the purpose of method name clash resolution, of course), and I can't think of any other solution. NOTIB means ``not Interface Builder'', and is now defined during compilation, but not during parsing. Do use this exact macro: maybe it can become a standard, and I don't want to adapt my source. :-) Questions that come to my mind: 1. Are there compilers that can't handle whitespace before #ifdef and friends? I want them to blend with my indentation, so that they don't sabotage Edit text contraction, but maybe I should give that up for source that has to be highly portable? I often see source that puts these flush left, which is very ugly, but might this perhaps be necessary? 2. Can anyone explain the following warning: "`TextField' does not respond to `setStringValue:'"? It's just a warning with the NOTIB stuff, and compilation and execution of the program give no problems. For other classes, there are no problems with type checking. And if I #import <appkit/appkit.h> before the @interface it's OK too, but I don't want to do that: one should use @class in .h files. It doesn't bother me much, it's just strange. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer From: tomi@shinto.nbg.sub.org (Thomas Engel) Subject: Where to put App Infos ? Message-ID: <D2AG6y.Ar@shinto.nbg.sub.org> Sender: tomi@shinto.nbg.sub.org (Thomas Engel) Organization: STEPeople's home. (A NUGI member) Date: Thu, 12 Jan 1995 10:37:45 GMT Hi all! Well I'm just seeing how all those nice apps mess up with my home directory so I want to ask for your ideas on how to make that better. For me the right way of storing app dependent data is: - Use dwrite/read defaults where single values are appropriate. - Take care of a MyApp/ directory in the ~/Library and LocalLibrary locations for data that the user should be able to control, extend or modify. - Use a ~/.AppInfo/MyApp/ folder where big binaries have to be stored that should not be visible. Now my first question is if that is the way you think applications should store their data. I'm don't know why this is not covered in the Guidelines...same as for naming conventions with object methods. What I really don't like are those apps that create all those "."-files where you can't even tell the application that created it...and even worth..when they flock like sheep in your home dir. Should this go into some kind of programmer FAQ ? Is even .AppInfo a wrong idea...should everything do into the dwrite defaults ? Aloha Tomi -- _________________________________________________________ (tomi@shinto.nbg.sub.org) Thomas Engel Neptunstr. 9 NeXTMail welcome D - 90522 Oberasbach Germany
From: rick@TotSysSoft (Richard Jacoby) Newsgroups: comp.sys.next.programmer Subject: Re: Anybody using MiniSQL & EOF ? Date: 22 Jan 1995 18:00:49 GMT Organization: Total System Software Distribution: world Message-ID: <3fu6gh$8ec@tssnext.TotSysSoft.com> References: <3fscjc$t8r@discovery.ectds.com> In article <3fscjc$t8r@discovery.ectds.com> armes@tds.com (Jim Armes) writes: > In article <3fgl4v$82q@sonne.darmstadt.gmd.de> hoff@pluto.darmstadt.gmd.de > (Holger Hoffstaette) writes: > > Hi everyone! > > > > I'd like to hear from people who use mSQL with Mark Onyschuk's EOF > > adaptor. In particular, I'm looking for modified versions of either > > NeXT's or SHL's EOF examples, which are all made for Sybase or Oracle. > > If anybody is doing something along these lines, please be so kind to > > mail me, so that we can pull out our hairs cooperatively. =:) > > I've been playing with it for some small personal databases to prepare for > some projects we have going on at work. You should be able to use the > oracle or sybase examples without much modification, just run the > creation scripts modified for msql's syntax and build the model. The > only thing I've found so far is that it (the adaptor) doesn't seem to know > how to translate a 'relationship pipe' eg: > person->person_books->book.title doesn't seem to generate the correct > sql. I'm playing with it some more this weekend to see if its me or the > adaptor. > If you are getting that doesn't seem to generate the correct sql let them know... About a year ago, I found somthing. let then know and had a fix in a couple of days.. I was impressed. Rick > I hope this is useful > Jim > #--------------------------------------------------------# > # Jim Armes | I've got a Dentium and you do not # > # Matrix-Man | nahh nahh nah nah nahhhh... # > # <my opinions> | (Darn division errors... ;) # > #Trident Data Systems| but IiiiiM a lumberjack and I'm ok# > # armes@tds.com |I sleep all night & I work all day.#
From: armes@tds.com (Jim Armes) Newsgroups: comp.sys.next.programmer Subject: Re: Anybody using MiniSQL & EOF ? Date: 22 Jan 1995 01:32:28 GMT Organization: Trident Data Systems Distribution: world Message-ID: <3fscjc$t8r@discovery.ectds.com> References: <3fgl4v$82q@sonne.darmstadt.gmd.de> Keywords: eof In article <3fgl4v$82q@sonne.darmstadt.gmd.de> hoff@pluto.darmstadt.gmd.de (Holger Hoffstaette) writes: > Hi everyone! > > I'd like to hear from people who use mSQL with Mark Onyschuk's EOF > adaptor. In particular, I'm looking for modified versions of either > NeXT's or SHL's EOF examples, which are all made for Sybase or Oracle. > If anybody is doing something along these lines, please be so kind to > mail me, so that we can pull out our hairs cooperatively. =:) I've been playing with it for some small personal databases to prepare for some projects we have going on at work. You should be able to use the oracle or sybase examples without much modification, just run the creation scripts modified for msql's syntax and build the model. The only thing I've found so far is that it (the adaptor) doesn't seem to know how to translate a 'relationship pipe' eg: person->person_books->book.title doesn't seem to generate the correct sql. I'm playing with it some more this weekend to see if its me or the adaptor. I hope this is useful Jim #--------------------------------------------------------# # Jim Armes | I've got a Dentium and you do not # # Matrix-Man | nahh nahh nah nah nahhhh... # # <my opinions> | (Darn division errors... ;) # #Trident Data Systems| but IiiiiM a lumberjack and I'm ok# # armes@tds.com |I sleep all night & I work all day.#
From: armes@tds.com (Jim Armes) Newsgroups: comp.sys.next.programmer Subject: Re: EOF: casting and IB parsing.... Date: 23 Jan 1995 03:04:32 GMT Organization: Trident Data Systems Distribution: world Message-ID: <3fv6c0$n9h@discovery.ectds.com> References: <3fmhtt$h45@hermes.dna.mci.com> > that I would (even though it pains me) go back and change: > id dstSuperCategoryEOController; > to: > EOController *dstSuperCategoryEOController; > so that the dang compiler would shut (and speed!) up. > > Now, however, I re-discover that IB only parses "id foo" and not "EOWoof > *foo". well, you could do a find/replace on dstSuperCategoryEOController and change all references to (EOController *)dstSuper... and leave the interface reference as an id. Not pretty, but it will work. Jim -- #--------------------------------------------------------# # Jim Armes | I've got a Dentium and you do not # # Matrix-Man | nahh nahh nah nah nahhhh... # # <my opinions> | (Darn division errors... ;) # #Trident Data Systems| but IiiiiM a lumberjack and I'm ok# # armes@tds.com |I sleep all night & I work all day.#
From: yoda@cis.uni-muenchen.de (Marc Guenther) Newsgroups: comp.sys.next.programmer Subject: Re: Where to put App Infos ? Date: 23 Jan 1995 21:12:08 GMT Organization: Institut fuer Informatik der Universitaet Muenchen Message-ID: <3g1638$2v8@arcadia.informatik.uni-muenchen.de> References: <D2AG6y.Ar@shinto.nbg.sub.org> In article <D2AG6y.Ar@shinto.nbg.sub.org> tomi@shinto.nbg.sub.org (Thomas Engel) writes: > For me the right way of storing app dependent data is: > > - Use dwrite/read defaults where single values are appropriate. > - Take care of a MyApp/ directory in the ~/Library and LocalLibrary > locations for data that the user should be able to control, extend or > modify. > - Use a ~/.AppInfo/MyApp/ folder where big binaries have to be stored > that should not be visible. Well, thats exactly how it should be done, IMHO. Unfortunately, most people dont do that. Perhaps we should send hate-mail to all programmers, who dont do that ? :) More serious, it should definitely be in some kind of FAQ. Aaaand, Don and friends are working on a Preference system for Misckit, why not include it there ? Make it easy to use for everyone. You know, its easy to rite into the homedir. Its more difficult to write into other directories. First you have to check, if ~/.AppInfo/MyApp/ exists, is writeable, go there, write into it. Hmm... > Should this go into some kind of programmer FAQ ? Definitely !! -- Marc Guenther ------------------------------------------------------------------------- Centrum fuer Informations | Wagmuellerstr. 23 | Phone: +49 89 211 0670 und Sprachverarbeitung | 80538 M"unchen | Fax: +49 89 211 0674 University of Munich | Germany | yoda@cis.uni-muenchen.de -------------------------------------------------------------------------
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: comp.sys.next.programmer Subject: Re: FSF g2c for NeXT? Date: 23 Jan 1995 14:06:16 GMT Organization: University of Heidelberg, Germany Message-ID: <3g0d4o$lqj@sun0.urz.uni-heidelberg.de> References: <1995Jan20.195411.22489@gcm.com> Stephen Slayton (stephen@gcm.com) wrote: : I have some fortran code that I would like to convert to C code. : I took a look at ftp.att.com:/netlib/f2c, but getting that working : seems like a lot of work. Anyone aware of a precompiled version for : next, or some other alternative? Try ftp.NMR.EMBL-Heidelberg.DE:/pub/next/non-gui/gnu. There's a quad-FAT binary+source version of f2c, f2c.sb.NIHS.gnutar.gz. Gregor -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: comp.sys.next.programmer Subject: Re: gmake Date: 23 Jan 1995 14:17:01 GMT Organization: University of Heidelberg, Germany Message-ID: <3g0dot$lqj@sun0.urz.uni-heidelberg.de> References: <3fnnb8$226@nntp.Stanford.EDU> Stan Jirman (stanj@cs.stanford.edu) wrote: : Hello, : anyone out there who knows where to get gmake for NeXT? I have a bunch of : makefiles in gmake format, and I am unable to convert them myself, so I : thought let's find gmake. Hmm. gmake is just GNU's make. You could dig it up on nearly every well-sorted ftp server. The most recent version I found was make-3.72.1.tar.gz. It configured and compiled out-of-the-box with NS3.2/Intel. Gregor PS: If you can't find it anywhere else, you could try info2.rus.uni-stuttgart.de:/pub/unix/gnu. -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: EOF: casting and IB parsing.... Message-ID: <D2u382.1nK@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems, Inc. Date: Mon, 23 Jan 1995 01:09:38 GMT Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes [ use a macro definition to allow static typing and still allow IB to parse] >#ifdef NOTIB > Text *theText; >#else > id theText; >#endif > In Makefile.preamble: > CFLAGS = -DNOTIB Its simpler and less error prone to use the predefined macro __STDC__ than to define a new macro (NOTIB) and try to remember to define it in Makefile.preamble all the time. -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
Newsgroups: comp.sys.next.programmer From: scratch@sundance.sce.carleton.ca (Craig Scratchley) Subject: Re: Release Date of NeXT Developer 3.3 Message-ID: <scratch.790802525@sundance.sce.carleton.ca> Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University References: <scratch.790640258@arcturus.sce.carleton.ca> <3fr49u$8h@filtronix.eunet.be> Date: Sun, 22 Jan 1995 19:22:05 GMT filip@filtronix.eunet.be (Filip Lingier) writes: >In article <scratch.790640258@arcturus.sce.carleton.ca> >scratch@arcturus.sce.carleton.ca (Craig Scratchley) writes: > > Does anybody know what version of Next-modified gcc comes with > > the 3.3 developer (beta). I need to use nested functions and > > NeXT did not include this feature in the 3.2 release for HPPA. >2.5.8 would be a save guess... Here is what I now know (obtainable using the command "gcc -v") HP 3.2 seems to have Next version cc-430.8, gcc 2.5.8 (This version is available from anonymous ftp from the usual sites.) A fellow reported to me that: HP 3.3 DevPR1 has Next version cc-437.2.3, gcc 2.5.8 I'm not sure if Intel and/or M68k version(s) are any different. Does anybody know if the Nextstep 3.3 version(s) of the Next-gcc source are available from anonymous ftp? Vanilla gcc 2.5.8 should support nested functions. Apparently NeXT did not include the feature in version cc-430.8. Does anybody know if cc-437.x or whatever includes nested functions? -- W. Craig Scratchley | internet: scratch@sce.carleton.ca Dept. of Systems and Computer Engineering | phone: (613) 788-5740 (Dept.) Carleton University | (613) 241-6952 (Home) Ottawa, ON, CANADA K1S 5B6 | fax: (613) 788-5727 (Dept.)
From: fletcher@nova.umuc.edu (Charles Fletcher) Newsgroups: comp.sys.next.programmer Subject: NXConnection exceptions on timeouts Date: 23 Jan 1995 10:13:48 -0500 Organization: University of Maryland University College Message-ID: <3g0h3c$biv@nova.umuc.edu> Summary: Problem with timeouts using NXConnection Keywords: MTS, NXConnection, timeout, exceptions I am having the following problem and would appreciate some help (or point me to some docs that might help.) I took the MTS (multi-thread server) example (/NextDeveloper/ Examples/DistributedObjects/MultipleThreads/MultiThreadedServer.m) and extended it (only slightly) for my needs--the server does the calculation of a command sent to it by some client. However, whenever the calculation takes too long (around 15 seconds) I get a message "Uncaught exception #11013" and the client exits (the server continues the calculation and must be killed.) Since this happens around the 15 sec mark, I assumed (possibly incorrectly) that it was some kind of Timeout problem (since the default value is 15000 millisec)--however, every attempt I have made to correct the situation via timeout methods has failed to correct the problem. I have tried-- > reset the default using the class (factory) method + setDefaultTimeout: > reset the timeouts with -setOutTimeout: and -setInTimeout: > copy the NXConnection.h file to my directory and using it as the included header file (after hacking the default timeout value.) I continue to get the exception (11013) after 15 sec. Either -- I don't know what I am doing with the above methods (a reasonable bet.) -- There is a bug in NXConnection (according to the Release Notes, there was a bug with NXConnection responding --or not responding, as the case may be-- to the methods that reset the timeout value. But this was *suppose* to have been fixed under 3.2 (I am running 3.2 on black hardware.) Can anyone give me any ideas what may be going on (am I even on the right track?) Also, how can I identify what the exception means-- is there some place that says what exception 11013 is?? Is there a way I could write an exception handler to correct (ignore?) the problem? Any help would be appreciated. Thanks in advance, Charlie -- NeXTMail to: | ...to confer, converse, and charlie@technosci.com | otherwise hobnob with my | brother wizards.
Newsgroups: comp.sys.next.programmer From: tgugger@norden1.com (Tom Gugger) Subject: NEXTSTEP/Career Positions Message-ID: <1995Jan23.163610.4814@norden1.com> Organization: Norden 1 Communications Date: Mon, 23 Jan 1995 16:36:10 GMT The EAGLE GROUP is currently representing six companies that specialize in the NEXTSTEP platform. These companies offer excellent career opportunities, outstanding benefits, and relocation assistance. All positions require prior NEXTSTEP commercial experience. PLATFORM-----------------------NEXTSTEP LANGUAGE-----------------------OBJECTIVE C DESIRED------------------------DB KIT DESIRED------------------------SYBASE A PLUS-------------------------EOF To be considered----Fax your resume or mail a hard copy. ... * ATP/qwk 1.42 * I have seen the future and it is now the past. -- tgugger@norden1.com (419) 882-7339 [fax] Eagle Group (419) 882-8006 [voice] PO Box 8167 Sylvania, Ohio 43560
From: rsmallwo@islandnet.com Newsgroups: comp.sys.next.programmer Subject: Info on Building a NEXT Sound App Date: 23 Jan 1995 18:32:18 GMT Organization: Island Net in Victoria, B.C. Canada 604-477-5163 Message-ID: <3g0sni$5qh@island.amtsgi.bc.ca> I am looking at building a simple sound app with NEXTSTEP. I have reviewed the sound kit and it looks like it will provide me with most of the functionality that I need. What would be valuable to me is a high level explanantion of sound basics to supplement the class, function, etc. description in chapter 16 of the NEXT general reference... ie. sound formats supported (ie. ATC), impact of sampling rates, etc. Is there a good book/source someone could recommend for this? From the documentation I have from the NextWorld Expo, it looks like the Sound Kit will be dropped in OpenStep. Is it expected that 3rd Party developers are to pick up the slack and create an Openstep compatible sound kit? Lastly, the app I am to be involved with may need to convert sound files generated on a WINDOWS machine (in a .wav format) to a NEXT format. Is there are information or utilities that someone could recommend to help with this? Thanks in Advance, Rhys Smallwood
From: rmasse@cnri.reston.va.us (Roger E. Masse) Newsgroups: comp.sys.next.programmer Subject: Re: Compiling m4-1.4, GPC on NS3.2 Date: 23 Jan 1995 22:56:23 GMT Organization: Corporation for National Research Initiatives Distribution: world Message-ID: <3g1c6n$f26@news.CNRI.Reston.Va.US> References: <3fm38a$jaf@sun0.urz.uni-heidelberg.de> Keywords: gcc In article <3fm38a$jaf@sun0.urz.uni-heidelberg.de> flight@mathi.uni-heidelberg.de (Gregor Hoffleit) writes: > I'm stuck with compiling m4-1.4 with NS3.2 with NeXT's compiler. When > it comes to builtin.c, the compiles chokes with the following > messages: > > cc -c -DHAVE_CONFIG_H -I.. -I. -I./../lib -g -O builtin.c > builtin.c:357: illegal expression, found `__extension__' > builtin.c:357: illegal expression, found `int' > builtin.c:357: illegal external declaration, found `)' > builtin.c:375: illegal expression, found `__extension__' > builtin.c:375: illegal expression, found `int' > builtin.c:375: illegal expression, found `)' > > Somebody else reported this problem two months ago, using a gcc. > My experience is with the NeXT cc from 3.2/Moto (based on gcc > 2.2.2). NeXT's cc from 3.2/HPPA (based on gcc 2.5.8) gives the same > result. gcc 2.4.5 running on 3.2/Moto works! > > Funny coincidence or not, the same problem arised when I tried to > compile the GPC (GNU Pascal). GPC has to be compiled on top of a GCC > 2.5.8 source tree, so I decided to use NeXT's cc sources as shiped > with 3.2/HPPA. Compiling cc worked fine, but gpc failed for (a > modified) gcc.c with the errors listed above. > > The real problem seems to be a routine obstack_grow() in both cases. > > Any hints ? Has anybody successfully compiled m4-1.4 or gpc with > NEXTSTEP ? Older versions of gcc... the factory NeXT compiler included, do not support the __extension__ construct. I've compiled m4-1.4 with gcc 2.6.3 on NS 3.3 Intel without a hitch, I then m4'ed myself a sendmail.cf file for sendmail.8.6.9 and am now running same... and much happier. Definately a chicken and egg problem. I'd Start with gcc. Regards, Roger E. Masse, Systems Engineer Corporation for National Research Initiatives 1895 Preston White Drive, Suite 100 Reston, Virginia, USA 22091 Internet: rmasse@CNRI.Reston.VA.US (MIME/NeXTmail OK)
From: cpayne@itsnet.com (Carl Payne) Newsgroups: comp.sys.next.programmer Subject: pid_t, POSIX waitpid ?? Date: 20 Jan 1995 21:30:04 -0000 Organization: Internet Technology Systems Message-ID: <3fpa0s$li0@destiny.itsnet.com> n trying to compile so,mething, I get an error similar to: undefined: pid_t. I checked with the vendor, they said I needed the POSIX waitpid, or any version of wait that "knows about WNOHANG." On a Cube running 3.1 + dev, what would this be? TIA, Carl Payne Internet Operations Director, ITS cpayne@itsnet.com <--NeXTmail OK
From: jsickel@sickel.com (Jeffrey A. Sickel) Newsgroups: comp.sys.next.programmer Subject: Need for information about Serial Ports Date: 23 Jan 1995 20:31:12 GMT Organization: Radian Corporation Message-ID: <3g13mg$s2c@zippy.radian.com> Keywords: serial ports I need to get information about various kinds of serial ports used on Intel/NeXT/HP/Sun/etc. Then NeXTanswers information about tty connections through the serial port helps, but I need references, ftp sites, electrical engineering documents. Where can I find these? Regards, Jeff Sickel jsickel@sickel.com
From: fletcher@nova.umuc.edu (Charles Fletcher) Newsgroups: comp.sys.next.programmer Subject: Re: NXConnection exceptions on timeouts Date: 23 Jan 1995 11:05:03 -0500 Organization: University of Maryland University College Message-ID: <3g0k3f$fri@nova.umuc.edu> References: <3g0h3c$biv@nova.umuc.edu> Keywords: MTS, NXConnection, timeout, exceptions ps--So I don't appear totally stupid, I finally found the list of NXConnections declared in NXProxy (of course!-). Anyway, 11013 = NX_receiveTimedOut -- so any ideas why what I have been doing (see previous post) hasn't been working? Thanks again, Charlie -- NeXTMail to: | ...to confer, converse, and charlie@technosci.com | otherwise hobnob with my | brother wizards.
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Mon, 23 Jan 95 19:42:35 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501231842.AA01918@flexus> Subject: Re: EOF: casting and IB parsing.... Er, well, I suppose #ifndef __STDC__ /*Interface Builder only understands `id' outlets*/ id dstSuperCategoryEOController; #else EOController *dstSuperCategoryEOController; #endif (with a comment) is OK too, even though it is less self-evident (Obj-C++...), so forget about NOTIB. About question 1: Art Isbell tells me that ``I think older C preprocessors had problems with '#' not occurring in column 0'' (I hope *he* is not going to attack me for quoting from non-public mail :-) ), and I'll assume he's right. ANSI does allow whitespace before `#', but I'm thinking a bit about how to (re)write generally acceptable C code. I'm also trying to develop the ultimate macro set for function parameter lists, including the stdarg/varargs question. If you're particularly interested... About question 2: I forgot to mention explicitly that I *did* #import <appkit/appkit.h> before the implementation. That's why the warning is so strange. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.unix.programmer,comp.sys.next.programmer From: rp9@unix.york.ac.uk (R Peppe) Subject: Re: Good documentation on sockets? Message-ID: <1995Jan24.105915.21998@leeds.ac.uk> Date: Tue, 24 Jan 1995 10:59:15 +0000 (GMT) References: <D2HF9z.1rq@news2.new-york.net> <1995Jan19.183445.14049@leeds.ac.uk> <3fr57u$5l9@noao.edu> Followup-To: comp.unix.programmer,comp.sys.next.programmer W. Richard Stevens (rstevens@noao.edu) wrote: > An important nit pick: you should *always* calls inet_addr() before > calling gethostbyname() [embarrassed grin] oops, not only that, but a fatally flawed condition as well. that'll teach me to mention 'bug-free'! in case anyone's wants it, here's the fixed 'sc_makeaddr' function. (it now copes with numeric IP addresses as it should have originally...) cheers, rog. int sc_makeaddr(Address *addr, int port, char *name) /* * fill in an Address structure. * name is the required hostname (a NULL name means use * the local host). * port is the port number * return -1 on error. */ { char hname[256], *s; static Address cachelocal; static int donelocal = 0; int i; struct hostent *ent; if (donelocal && name == 0) *addr = cachelocal; else { if (name==0) { if (gethostname(hname, sizeof(hname))==-1) return -1; /* assume hname must be of non-zero length if gethostname succeeds */ s = name = hname; } else for (s = name; *s; s++) if ((*s < '0' || *s > '9') && *s != '.') break; if (*s == 0) /* if it's a numeric IP address */ { /* it's a host given by internet number */ addr->s.sin_addr.s_addr = inet_addr(name); addr->s.sin_family = AF_INET; } else /* non-numeric - treat it as a name */ { if ((ent = gethostbyname(name)) == 0) return -1; addr->s.sin_family = ent->h_addrtype; addr->s.sin_addr = *((struct in_addr *)ent->h_addr_list[0]); } if (name == 0) { donelocal = 1; cachelocal = *addr; } } addr->s.sin_port = htons(port); addr->addrlen = sizeof(struct sockaddr_in); for (i=0; i<8; i++) addr->s.sin_zero[i] = 0; return 0; }
From: fsmlk1@aurora.alaska.edu Newsgroups: misc.jobs.resumes,comp.sys.next.programmer Subject: Manager/NEXTSTEP developer looking for work Date: 24 Jan 1995 15:13 -0900 Organization: University of Alaska - Fairbanks Sender: fsmlk1@aurora (Kienenberger Mike L) Distribution: world Message-ID: <24JAN199515135731@aurora> News-Software: VAX/VMS VNEWS 1.41.UAF This posting has been forwarded for a friend who does not have access to Usenet. Please respond to the email address, addresses, and phone numbers given below and not to me. --fsmlk1@aurora.alaska.edu Eduardo A. Bistrain Zuniga ------------------------------------------------------------------- Palermo #3081 - Apartment 6, Prados Providencia Guadalajara, Jalisco 44670 Mexico Home : (011-523) 641-4362 Office : (011-523) 679-1800 Mexico City : (011-525) 562-8299 Email: eduardo_bistrain@multiva.com Objective Managerial position in a leading company where I can direct a team, define strategies and implement projects and innovative solutions. Summary of Relevant Experience More than six years in management and technical areas, primarily with financial institutions. Emphasis on systems design and project leadership. Expertise in NEXTSTEP development. Professional Experience Senior Software Engineer January 1994 to present Bancentro, Grupo Financiero MultiVa * Reviewed and proposed simplifications for branch and back-office operations. * Implemented teller application. * Developed initial version of bank and brokerage house Customer Information and Relationships File. * Created several Distributed Objects (DOs) for branch management. * Evaluated user requests, defined functional requirements and overall design of branch application, and coordinated programming efforts of internal and external staff. * Coordinated NeXT Mentorship Program. Independent Consultant June 1992 to December 1993 * Contracted with diverse industry client base to identify, analyze and solve corporate MIS problems of varying magnitude. * Designed, coded and tested a multimedia application for training newly hired bank personnel for Bancomer. Developed application in NEXTSTEP using Xanthus CraftMan. * Designed, coded and tested a series of programs integrating OCR devices and Magnetic Card Readers to branch applications for Bancomer. * Designed, coded, tested and trained users of a new MIS system for large appliance distributor Distribuidora Galicia. System generates financial ratios, sales forecasts, comparisons of current figures against budget. * Designed, coded and tested a POS system to track sales, inventory and assignment of rented phones for BS-Cellular Rent. * Designed and tested an application to control sales and inventory turnover for liquor distributor Impulsora Comercial Gilsa. Managed three programmers. * Evaluated HR system processes (payroll, benefits, taxes) and proposed fixes and optimizations for Banco del Centro. * Designed a consolidated Customer Information File. Specified procedures to eliminate duplicate customers for Banco del Centro. Project Manager May 1990 to June 1992 Servicios Integrales Aplicados a Sistemas (SINAPSIS) * Co-founded company providing systems integration expertise for banking, retailing and manufacturing industries. Developed strong relationship with computer manufacturers such as NCR and Hewlett-Packard. * Managed branch automation software project for Bancomer. Defined functional requirements and supervised staff of five programmers. Implemented project using Cross-Sell Manager, FlexTran and C. * Implemented teller transactions for Bancreser using FlexTran. Research Assistant August 1988 to May 1990 Universidad Iberoamericana * Installed all LANs in campus labs. * Taught Advanced C Programming and Software Engineering courses. Computer Programmer January 1986 to September 1986 Grupo Datanet Sistemas * Programmed and tested parts of hotel front-desk system written in COBOL. Education M.B.A. I.T.E.S.M. Campus Estado de Mexico Mexico City, Mexico B.A. with Honors in M.I.S. Universidad Iberoamericana Mexico City, Mexico NeXT Mentorship Program NeXT Computer, Inc. Guadalajara, Mexico FlexTran: Advanced programming NCR de Mexico Mexico City, Mexico Intermediate Cross-Sell Manager FMI Charlottesville, Virginia Novell Netware FTS Novellco de Mexico Mexico City, Mexico TOEFL examination (score: 510) Our Lady of the Lake University San Antonio, Texas English as a Second Language Byrom School of Languages Manchester, England
From: btschumy@bga.com (Bill Tschumy) Newsgroups: comp.sys.next.programmer Subject: Animating icon movement across screen Date: 23 Jan 1995 21:40:11 -0600 Organization: Otherwise Sender: bill@otherwise.com Message-ID: <3g1sqr$jp2@james.bga.com> I am trying the animate an icon moving across the screen. This would be similar to what happens when you drag an icon using the dragging protocol in the kit. The difference is that I am moving it under program control rather than user control ( I guess it is really like when the icon animates back to its starting location if you don't drop it on a acceptable target). I know the basic trick is is to throw up a nonretained, nonautofill window and then composite (using SOVER) the icon into the window. This gives an icon with a transparent background. What I haven't been able to do is move the icon to a new location without flashing. Taking the window off screen, moving it, putting it back on screen and compositing back in the icon flashes objectionably. Has anyone figured out how the Workspace does this? I suspect it must have to do with throwing up a cover window to hide the action. Didn't there used to be an example back before the window dragging protocols were put in the kit? Bill Tschumy | Posting news to thousands of machines Otherwise | throughout the entire civilized world. bill@otherwise.com | Costing the net hundreds if not thousands (NeXTmail and MIME accepted) | of dollars to send everywhere.
From: schaefr@i11s2.ira.uka.de (Johannes Schaefer) Newsgroups: comp.sys.next.programmer Subject: generic scsi driver `sg' Date: 24 Jan 1995 15:57:16 GMT Organization: University of Karlsruhe, FRG Sender: schaefr@i11s2 (Johannes Schaefer) Distribution: world Message-ID: <3g380s$ipa@nz12.rz.uni-karlsruhe.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit hi folks, does anybody has experience in writing scsi drivers using the generic `sg' (NeXTSTep 3.2 HP PA-RISC) provided by NeXT? In particular, I wrote a program for a NeXTStation to drive a Fujitsu M3097G (options: image processing/compression) scanner, which seems to work nice (incl. compressed transfer from scanner to station). However, when I ported the code to a NeXTStep 3.2 HP PA-RISC system, the reading of image data refuses to work. Image data transfer is done by transferring the data in chunks of, say, 64K. Unsually one get therefore n-1 chunks at 64K and the last chunk containing the rest of the image data. This dammed last chunk seems unfortunatly not been transfered by `sg'. I do (more or less) the following pseudo code: // uncompressed images ... size_of_image_in_bytes= rows * ((cols + 7) / 8); /* e.g.: size_of_image_in_bytes= 131074 */ do { xfered_bytes= read_image_data( 0x10000 /* bytes to be tfed */, &eom, ... ); bytes_read+= xfered_bytes; } while( ! eom ); lost_bytes= size_of_image_in_bytes - bytes_read; /* e.g.: lost_bytes= 2 for the reason described above ... */ If I use compressed (FAX3/4) transfer, I can't even predict the `size_of_image_in_bytes' in advance and, as a consequence, cannot raise an error message (`sg' does NOT report any errors, of course). Any known relief ... N.B. A possible quick and dirty workaround is to ajust the image size to chunk border. This only works on uncompressed transfer and is not the way I do prefer. ThanX Ivo B"ohme
Newsgroups: comp.sys.next.programmer From: project1@ets.com Subject: Re: DBTableView Question Message-ID: <D2vp08.4v0@ets.com> Sender: project1@ets.com (Project1 Account) Organization: ETS, Inc. References: <3duouk$44g@Radon.Stanford.EDU> Date: Mon, 23 Jan 1995 21:57:43 GMT Hello: In DBModule you can create an Entity which has all the attribute you want display.The entity may looks like a table but has not corresponding table in any of the database you have. The you create a DBRecordList for that entity. Inserting new record into your DBRecordList at source code level. They you have [aDBTableView reloadData:sender]; Essentially just pretend you have such a table there and artificially insert record into the recordList. Jian In article <3duouk$44g@Radon.Stanford.EDU> stanj@cs.Stanford.EDU (Stan Jirman) writes: > Hello, > > I need to know how to feed a DBTableView with other input than from > a database. I have lots of data (record-like) in memory and the > DBTableView seems predestined for displaying it. MetroSuction does > it somehow, and so do others. But how? > > Thanks a lot in advance. Replies by email - possibly with sample > code - preferred. > > - Stan > --- > +-------------------------------------------+-------------------------+ > | Stan Jirman -- The Swiss Guy | "Forty-two!" yelled | > | SU Computer Science | Loonquawl. "Is that all | > | Box 2642, Stanford, CA (415) 497 4396 | you've got to show for | > | stanj@cs.stanford.edu | seven and a half | > | NeXTmail / MIME anytime welcome! | million years' work?" | > +-------------------------------------------+-------------------------+
Newsgroups: comp.sys.next.misc,comp.sys.next.programmer From: erik@rat.se (Erik Heimdahl) Subject: Getting core-dumps Message-ID: <D2wKq4.J3n@rat.se> Sender: erik@rat.se (Erik Heimdahl) Organization: Research & Trade, AB. Date: Tue, 24 Jan 1995 09:20:46 GMT How do I get a core-dump from an application launched from Workspace ?? I tried to dwrite Workspace CoreLimit, and create a /cores, but I can t find any core-files. /erik -- Erik Heimdahl | "A man without hope, Software Developer @ Research & Trade | is a man without fear." Internet: erik@rat.se <NeXTmail> | Tel: +46 8 21 17 50 | - Frank Miller
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3g3k1h$bfp@seymour.sfu.ca> Control: cancel <3g3k1h$bfp@seymour.sfu.ca> Date: 24 Jan 1995 19:40:08 GMT Organization: none Distribution: world Message-ID: <3g3l2o$cas@seymour.sfu.ca> References: <3g3k1h$bfp@seymour.sfu.ca> Originator: ken@darwin.mbb.sfu.ca <3g3k1h$bfp@seymour.sfu.ca> was cancelled from within rn.
From: garrett@opensource.com (Garrett L. Rice) Newsgroups: comp.sys.next.programmer,comp.sys.next.advocacy,comp.sys.next.misc Subject: Any NS Proj Mgmt, Metrics & Testing Products Available? Date: 24 Jan 1995 22:35:32 GMT Organization: Rocky Mountain Internet Inc. Message-ID: <3g3vbk$ko7@potogold.rmii.com> Hello, I have a client who is looking for Project Management tools (revision control, multi-user access, etc) for NEXTSTEP. She is also looking for testing and metrics tools for her development project. Any suggestions? -- Garrett L. Rice OpenSource, Inc. 1776 Lincoln Street, Suite 1012, Denver, CO 80203 800.TRY.OPEN (879.6736) OR 1.303.861.4411 303.861.2393 FAX garrett@opensource.com (NeXTmail)
From: mauriti@cs.tu-berlin.de (Frank Hartlep) Newsgroups: comp.sys.next.programmer Subject: object ivar always nil in IB inspector Date: 25 Jan 1995 11:41:13 GMT Organization: Technical University of Berlin, Germany Distribution: world Message-ID: <3g5dcp$qpm@news.cs.tu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I'm having no luck in building a working palette. The problem is, that the IBInspector ivar 'object' in my inspector is never set to the id of my palettized classe's instance. The value is always nil in the inspector's init method (after invoking [super init]). The documentation states the setting should happen automatically, but it isn't. I can't see any difference between my code and the examples code. Is there anything else to do, when palettizing a non-View class (other than invoking associateObject:...)? Thanks, Frank
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: Does -posix work for ObjC programs? Date: 24 Jan 1995 19:41:29 GMT Organization: none Distribution: world Message-ID: <3g3l59$cdo@seymour.sfu.ca> Hi. I need to be able to compile an ObjC app with the -posix option to get POSIX fcntl() semantics. Problem is, I get the following errors on compile. I am using NS/I 3.3, 3.2 developer. I have included posix.m below. What am I doing wrong? norton% cc -posix posix.m posix.m:2: warning: could not use precompiled header '/NextDeveloper/Headers/objc/Object.p', because: posix.m:2: warning: #ifdef '_POSIX_SOURCE' not defined when precompiled, but now defined: posix.m:2: warning: on the command line posix.m:2: warning: #ifdef '__STRICT_ANSI__' not defined when precompiled, but now defined: posix.m:2: warning: at /NextDeveloper/Headers/ansi/standards.h:8 ld: Undefined symbols: _objc_msgSend .objc_class_name_Object #include <stdio.h> #include <objc/Object.h> @interface PosixTest : Object { } - hello; @end @implementation PosixTest : Object - hello { printf("hello\n"); } @end main() { PosixTest *pt = [[PosixTest alloc] init]; [pt hello]; [pt free]; }
From: Greg_Anderson@afs.com (Gregory H. Anderson) Newsgroups: comp.sys.next.programmer Subject: Re: charcodes for arrow keys Date: 24 Jan 1995 20:22:36 GMT Organization: Anderson Financial Systems Inc. Message-ID: <3g3nic$332@shelob.afs.com> References: <3g3beo$i4s@news.service.uci.edu> In article <3g3beo$i4s@news.service.uci.edu> rmyers@dec5200.acs.uci.edu (Richard Myers) writes: > There does not seem to be a file where all the charcodes are kept. > I found this out while writing code to hadle the arrow keys. Has > someone assembled these in a handy .h file? > If not I may do so and put it in the MiscKit... I don't know of any files, but here's the basic information you need: Most key events come through with a data.key.charSet of NX_ASCIISET (0) or NX_SYMBOLSET (1). The arrow keys are mapped to the charCodes that generate pictures of arrows if you printed them in the Symbol font: left = 0xac (172) up = 0xad (173) right = 0xae (174) down = 0xaf (175) All other charCodes in the NX_SYMBOLSET are presumed to generate single-character references to the Symbol font. The true underlying font is not permanently shifted in this case. On Intel and other keyboards with function keys, there is a new charSet (254) which AFS calls NX_FUNCTIONSET. (There is no standard #define for this, at least in 3.2.) Available charCodes include: f1 through f12 - 0x20 through 0x2b insert - 0x2c delete - 0x2d home - 0x2e end - 0x2f pageup - 0x30 pagedown - 0x31 print - 0x32 scrolllock - 0x33 pause - 0x34 Remember that F1 is commonly reserved for the Help key. -- Gregory H. Anderson | "Internet: a giant international network Stud Hombre Cybermuffin | of intelligent, informed computer Anderson Financial Systems | enthusiasts, by which I mean 'people greg@afs.com (NeXTmail OK) | without lives.'" -- Dave Barry, 2/6/94
From: fletcher@nova.umuc.edu (Charles Fletcher) Newsgroups: comp.sys.next.programmer Subject: Re: NXConnection exceptions on timeouts Date: 24 Jan 1995 15:58:00 -0500 Organization: University of Maryland University College Message-ID: <3g3pko$pql@nova.umuc.edu> References: <3g0h3c$biv@nova.umuc.edu> <3g0k3f$fri@nova.umuc.edu> Keywords: MTS, NXConnection, timeout, exceptions Using the class method +setDefaultTimeout is the solution (I figured it out last night)--my problem was I need to do it in the client. Although the server was returning the error, it was the client the was causing the timeout. Thanks to everyone who sent me help. Charlie > >Charlie > >-- > NeXTMail to: | ...to confer, converse, and > charlie@technosci.com | otherwise hobnob with my > | brother wizards. > -- NeXTMail to: | ...to confer, converse, and charlie@technosci.com | otherwise hobnob with my | brother wizards.
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <bbum@friday.com> Message-ID: <199501241939.NAA01262@friday.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v116.1) From: Bill Bumgarner <bbum@friday.com> Date: Tue, 24 Jan 95 13:39:09 -0600 Subject: Re: Compiling m4-1.4, GPC on NS3.2 # I've compiled m4-1.4 with gcc 2.6.3 on NS 3.3 Intel without a # hitch, I then m4'ed myself a sendmail.cf file for sendmail.8.6.9 # and am now running same... and much happier. Funny -- that was the same reason why I compiled m4, ran into the problem you mentioned, and had to beat my head against it. As it turns out there is a really minor (one character !) bug in one of the m4 source files that causes it to blow up when compiling w/ NeXT's compiler: At line 275 in file lib/obstack.h, you will find: #if __GNUC__ < 2 || (NeXt && !__GNUC_MINOR__) #define __extension__ #endif The "NeXt" should be "NeXT". Once changed, m4 should build about as easily as other gnu packages. b.bum --- <bbum@friday.com> | In cyberspace.... Friday Software & Consulting | ...no one can hear you laugh.
Newsgroups: comp.sys.next.programmer From: c92kl@comlab.ox.ac.uk (Kenneth Lomax) Subject: nextStep for SGis and Suns? please.... Message-ID: <1995Jan25.114630.1280@client40.comlab.ox.ac.uk> Originator: c92kl@client40.comlab Sender: c92kl@comlab.ox.ac.uk (Kenneth Lomax) Organization: Oxford University Computing Laboratory, UK Date: Wed, 25 Jan 1995 11:46:30 GMT Hi. Could anyone please tell me where I could find a NextStep program for either the Suns or SGIndys? I need to work on these computers but would like the Next interface and its Project builder. Any help would be greatly appreciated. Many thanks Ken
Newsgroups: comp.sys.next.programmer From: burkhot@il.us.swissbank.com (Thomas Burkholder) Subject: Re: object ivar always nil in IB inspector Message-ID: <1995Jan25.161338.17636@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3g5dcp$qpm@news.cs.tu-berlin.de> Date: Wed, 25 Jan 1995 16:13:38 GMT Frank Hartlep writes > nil in the inspector's init method (after invoking > [super init]). The documentation states The inspector's object ivar is set when the selection is. It can't be set before -init is called (objects aren't supposed to have state until they're initialized). You should be able to depend on it after -revert: is called (obviously, then, in the -ok: method, too) which is alright, since that should be the only place you need to use them. Hope that helps- +Thomas Thomas K. Burkholder (burkhold@vanguard.com) Software Engineer, Vanguard Software, Corp. #import <stddisclaimer.h>
Newsgroups: comp.sys.next.programmer From: smith@nextone.niehs.nih.gov (Howard C. Smith) Subject: Global Object re-implementation. Message-ID: <1995Jan25.175545.1660@alw.nih.gov> Sender: postman@alw.nih.gov (AMDS Postmaster) Organization: National Institutes of Health Date: Wed, 25 Jan 1995 17:55:45 GMT Id like to be able to replace the system calls NXGetc and NXPutc on a global basis. The need for this is to add text-to-speech capability throughout the Nextstep GUI, similar to the Outspoken product on the MAC. Any suggestions, esp relating to shared library usage, on doing this would be especially welcome. Perhaps I am barking up a wrong tree and retreiving information from the window server may be the way to go? -- Howard Smith
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer Subject: Re: EOF - EORelationship question.... Date: 25 Jan 1995 00:01:04 GMT Organization: MCI Message-ID: <3g44c0$ok5@hermes.dna.mci.com> References: <3fmqts$id9@hermes.dna.mci.com> In article <3fmqts$id9@hermes.dna.mci.com>, Cliff Elam <celam@homebrew.cs.mci.com> wrote: > >I'm working on a prototype where the user selects one or more detail fields >in a master/detail layout displayed in NXTableViews. > >When they hit a button I want to copy the (source) master and detail records >to another pair of (target) NXTableViews. > >I've almost got it working, but I think that I'm misunderstanding something >fundamental. I can put the master records in their NXTableView and the >detail records in their NXTableView but how do I build the relationship? >(Under gdb the relationship I built in EOModeller is there in the >EOController for the master NXTableView.) > >Hmm, hope that makes sense - I do better with some hand-waving and a >white-board! :-) >-- >Cliff Elam >celam@radiomail.net (text only) <<-- always works >celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office >Airedales and polar bears! Cliff: If I understand your question correctly: 1. Go into EOModeler and add a relationship on the master table (entity). Name this relationship and then specify the relationship as either 1-1 or 1-many. Then specify what fields should be used to create the join. 2. Save this eomodel file and then drag it into your IB file. 3. In IB, connect from the master controller to the detail controller and then click on the relationship. Unless you define a custom EOF for either entities, you should be able to test this completely in IB's test mode. Hope this helps.... - Alex -
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer Subject: Re: does isEqual: in NSArray work? - problem solved! Date: 25 Jan 1995 00:08:54 GMT Organization: MCI Message-ID: <3g44qm$okk@hermes.dna.mci.com> References: <3fgtpi$co5@hermes.dna.mci.com> In article <3fgtpi$co5@hermes.dna.mci.com>, Alex Nghiem <alexn@fdcsrvr.cs.mci.com> wrote: >Hello there: > >Does isEqual: in NSArray work in EOF 1.0 (release)? > >The following is a code fragment from the DOServerClient class (in /NextDeveloper/Examples/EnterpriseObjects/DistributedObjects/DistributedObjects_sybase). > >- (void)removeClient:anObject >{ > int index; > > index = [clientArray indexOfObjectIdenticalTo: anObject]; > if (index != NSNotFound){ > [clientArray removeObjectAtIndex:index]; > [clientDataSources removeObjectAtIndex:index]; > } >} > >I double checked the contents of clientArray with the po (print description) command in gdb - anObject is indeed in clientArray. However, indexOfObjectIdenticalTo:anObject always return with an erroneous number (I believe it's 2^10 + 1). > >Likewise, when I send a containsObject, the return value is false. I believe both methods fail b/c isEqual: is broken. > >Has anybody else encountered this bug? I know about the isEqual: patch that's included for NSNumber but I haven't seen anything on this bug (if it is indeed one). > >Please e-mail me and I'll summarize if there's interest. > >Thanks, > > >- Alex - None is as blind as those unwilling to see (or something like that :) I wasn't clear on my post. I was using EOF and DO. The confusion stems from how DO and gdb interacts. clientArray contains proxies, and that makes the entire situation confusing at first sight. Here's my interaction with gdb. (gdb) po clientArray (<DOServerClient: 0x15cb10>) (gdb) p anObject $4 = (struct DOServerClient *) 0x15cb10 (gdb) p [clientArray indexOfObjectIdenticalTo: $4] $5 = 2147483647 (gdb) p (BOOL)[clientArray containsObject:$4] $6 = 0 '\000' At this point, clientArray seems to be behaving very strangely. Further inspection leads to some interesting results though: (gdb) p (id)[clientArray objectAtIndex:0] $7 = (struct NXProxy *) 0x1a7f50 (gdb) p [clientArray indexOfObject:$4] $8 = 2147483647 (gdb) p [clientArray indexOfObject:$7] $9 = 0 It turns out that the po command sends a description to each object in the collection. Since the proxy does not understand the description command, it forwards it to the real object (DOServerClient). Hence my original confusion about whether isEqual: works (I was under the mistaken impression that indexofObjectIdenticalTo: uses isEqual:). Hope this is of some use to someone.... - Alex -
Newsgroups: comp.sys.next.programmer From: tini@gurke.ping.de (Constantin Szallies) Subject: Re: Closing and freeing NIB file? Message-ID: <D2x7tu.pI@gurke.ping.de> Sender: usenet@gurke.ping.de Organization: Legalize THC References: <1995Jan10.180912.2061@nugget.rmNUG.ORG> <1995Jan13.053749.11100@pcp.ca> Date: Tue, 24 Jan 1995 17:41:53 GMT King_Richard@pcp.ca (Richard King) wrote: >In article <1995Jan10.180912.2061@nugget.rmNUG.ORG> dbhinz@znih.rmnug.org >(David Hinz) writes: >> >> What is the best way to implement loading and unloading of a Info.nib >file each >> time it is selected from the menu. >My test application used the "free on close" option in IB and worked fine. >Maybe the connections aren't set up right. I think this does only free the window, but not all stuff that was loaded with the NIB file. Take, for example, an image that is not part of the window. -- <--------------------------------------------------------------> | Constantin Szallies ||| tini@gurke.ping.de | | Emil Figge 7 44227 Dortmund (o o) Tel: 0231/7519681 | <------------------------------oOo--(_)--oOo------------------->
From: nigelc@drake.bt.co.uk(Nigel Champion) Newsgroups: comp.sys.next.programmer Subject: Clickable Lines Date: 25 Jan 1995 09:05:18 GMT Organization: BT Labs, Martlesham Heath, Ipswich, UK Message-ID: <3g548e$dbs@pheidippides.axion.bt.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Has anybody made a graphical line object, that knows when it has been clicked on ? If not any pointers? Thanks Nigel --- _______________________________________________________________ ____ . _ . /# /_\_ |\_|/__/| | |/o\o\ / / \/ \ \ | \\_/_/ /__|O||O|__ \ / |_ | |/_ \_/\_/ _\ | | ||\_ ~| | | (____) | || | ||| \/ \/\___/\__/ // | |||_ / (_/ || \// | | || || | | ||\ ||_ \ \ //_/ \_| o| \______// /\___/ __ || __|| / ||||__ (____(____) (___)_) /***********\ Ren Stimpy ______________________________________________________________ Nigel Champion +44 473 647286 Email nigelc@drake.bt.co.uk
From: cadilhac@arles.univ-rennes1.fr (Nicolas Cadilhac) Newsgroups: comp.sys.next.programmer Subject: static variable in an instance method Date: 25 Jan 1995 14:22:16 GMT Organization: Universite de Rennes 1, France Message-ID: <3g5mqo$4i8@news.univ-rennes1.fr> Hello, just a little problem : I declare a static boolean variable inside an instance method of an object. At run-time, several instances exist for this object. The problem is, when one of the instances changes the static variable, it's changed too for the other instances of the same class !! How can I do to avoid this ??
From: btschumy@bga.com (Bill Tschumy) Newsgroups: comp.sys.next.programmer Subject: Re: static variable in an instance method Date: 25 Jan 1995 11:15:12 -0600 Organization: Otherwise Message-ID: <3g60v0$evn@ivy.bga.com> References: <3g5mqo$4i8@news.univ-rennes1.fr> In article <3g5mqo$4i8@news.univ-rennes1.fr>, Nicolas Cadilhac <cadilhac@arles.univ-rennes1.fr> wrote: >Hello, > >just a little problem : I declare a static boolean variable inside an >instance method of an object. At run-time, several instances exist for >this object. The problem is, when one of the instances changes the static >variable, it's changed too for the other instances of the same class !! >How can I do to avoid this ?? Gee, it sounds like this static variable really wants to be an instance variable. Why not try that? Bill Tschumy | Posting news to thousands of machines Otherwise | throughout the entire civilized world. bill@otherwise.com | Costing the net hundreds if not thousands (NeXTmail and MIME accepted) | of dollars to send everywhere.
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Where to put App Infos ? Date: 25 Jan 1995 17:30:47 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3g61s7$dgb@darkstar.UCSC.EDU> References: <D2AG6y.Ar@shinto.nbg.sub.org> In article <D2AG6y.Ar@shinto.nbg.sub.org> tomi@shinto.nbg.sub.org (Thomas Engel) writes: > For me the right way of storing app dependent data is: > > - Use dwrite/read defaults where single values are appropriate. > - Take care of a MyApp/ directory in the ~/Library and LocalLibrary > locations for data that the user should be able to control, extend or > modify. > - Use a ~/.AppInfo/MyApp/ folder where big binaries have to be stored > that should not be visible. > > Now my first question is if that is the way you think applications should > store their data. I'm don't know why this is not covered in the > Guidelines...same as for naming conventions with object methods. > It *is* covered in the _NEXTSTEP User Interface Guidelines_, a manual that all NS developers should read and follow to maintain the across-app consistency that has been shown to be so important to users but that is lacking in most other user environments. Your suggestions are exactly what NeXT recommends. Here's the relevent text (found in NextDev using Librarian with the keyword ".AppInfo"): "Creating Unrequested Files and Folders Applications sometimes need to create files and folders for a user, other than as the result of a Save command. If the files are associated with a particular document, they should be grouped with that document and placed in a file package. Otherwise, where the files are located and what they're named depends on whether the user needs to have direct access to them: If the user never needs to get at the files or folders independently of using the application that creates them, they should be placed in a folder named ~/.AppInfo. If an application needs to create many such files, it should put them in its own folder in ~/.AppInfo. For example, if an application named MyApp needs to create many unrequested files, it should put them in a folder called ~/.AppInfo/MyApp. If the ~/.AppInfo folder doesn't already exist, the application should create it. If the user might sometimes need to get at the files or folders independently of the application that creates them (for example, template files), they should be placed under ~/Library. You should name each file or folder so that the user can easily tell which application put it there. The guiding principle here is that the user's home folder belongs to the user. An application shouldn't leave anything there that belongs to it, not to the user. When the application must create unrequested files and folders, it should put them where the user can find them but where they aren't likely to get in the user's way. Note: You should generally use the defaults system instead of files to store small amounts of data. The functions supporting the defaults system are described in the NEXTSTEP General Reference manual." > What I really don't like are those apps that create all those "."-files > where you can't even tell the application that created it...and even > worth..when they flock like sheep in your home dir. > Agreed!! > Should this go into some kind of programmer FAQ ? > What should go into the FAQ is the recommendation to read and follow the NEXTSTEP UI guidelines when UI questions arise. > Is even .AppInfo a wrong idea...should everything do into the dwrite > defaults ? > Nope. You're doing the correct thing. You can sleep well tonight :-) --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442 -- NewsGrazer, a NeXTstep(tm) news reader, posting -- M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.WT*7&UA M<F=L,3(P"EQM87)G<C$R,`I<<&%R9%QT>#$Q-3)<='@R,S`T7'1X,S0U-EQT M>#0V,#A<='@U-S8P7'1X-CDQ,EQT>#@P-C1<='@Y,C$V7'1X,3`S-CA<='@Q M,34R,%QF,%QB,%QI,%QU;&YO;F5<9G,R-%QF8S!<8V8P($EN(&%R=&EC;&4@ M/$0R04<V>2Y!<D!S:&EN=&\N;F)G+G-U8BYO<F<^('1O;6E`<VAI;G1O+FYB M9RYS=6(N;W)G("A4:&]M87,@16YG96PI('=R:71E<SI<"CX@1F]R(&UE('1H M92!R:6=H="!W87D@;V8@<W1O<FEN9R!A<'`@9&5P96YD96YT(&1A=&$@:7,Z M7`H^(%P*/B`M(%5S92!D=W)I=&4O<F5A9"!D969A=6QT<R!W:&5R92!S:6YG M;&4@=F%L=65S(&%R92!A<'!R;W!R:6%T92Y<"CX@+2!486ME(&-A<F4@;V8@ M82!->4%P<"\@9&ER96-T;W)Y(&EN('1H92!^+TQI8G)A<GD@86YD($QO8V%L M3&EB<F%R>2!<"CX@("!L;V-A=&EO;G,@9F]R(&1A=&$@=&AA="!T:&4@=7-E M<B!S:&]U;&0@8F4@86)L92!T;R!C;VYT<F]L+"!E>'1E;F0@;W)<"CX@("!M M;V1I9GDN7`H^("T@57-E(&$@('XO+D%P<$EN9F\O37E!<'`O(&9O;&1E<B!W M:&5R92!B:6<@8FEN87)I97,@:&%V92!T;R!B92!S=&]R961<"CX@("!T:&%T M('-H;W5L9"!N;W0@8F4@=FES:6)L92Y<"CX@7`H^($YO=R!M>2!F:7)S="!Q M=65S=&EO;B!I<R!I9B!T:&%T(&ES('1H92!W87D@>6]U('1H:6YK(&%P<&QI M8V%T:6]N<R!S:&]U;&0@(%P*/B!S=&]R92!T:&5I<B!D871A+B!))VT@9&]N M)W0@:VYO=R!W:'D@=&AI<R!I<R!N;W0@8V]V97)E9"!I;B!T:&4@(%P*/B!' M=6ED96QI;F5S+BXN<V%M92!A<R!F;W(@;F%M:6YG(&-O;G9E;G1I;VYS('=I M=&@@;V)J96-T(&UE=&AO9',N7`H^(%P*("`@($ET("II<RH@8V]V97)E9"!I M;B!T:&4@7TY%6%135$50(%5S97(@26YT97)F86-E($=U:61E;&EN97-?+"!A M(&UA;G5A;"!T:&%T(&%L;"!.4R!D979E;&]P97)S('-H;W5L9"!R96%D(&%N M9"!F;VQL;W<@=&\@;6%I;G1A:6X@=&AE(&%C<F]S<RUA<'`@8V]N<VES=&5N M8WD@=&AA="!H87,@8F5E;B!S:&]W;B!T;R!B92!S;R!I;7!O<G1A;G0@=&\@ M=7-E<G,@8G5T('1H870@:7,@;&%C:VEN9R!I;B!M;W-T(&]T:&5R('5S97(@ M96YV:7)O;FUE;G1S+B`@66]U<B!S=6=G97-T:6]N<R!A<F4@97AA8W1L>2!W M:&%T($YE6%0@<F5C;VUM96YD<RY<"EP*("`@($AE<F4G<R!T:&4@<F5L979E M;G0@=&5X="`H9F]U;F0@:6X@3F5X=$1E=B!U<VEN9R!,:6)R87)I86X@=VET M:"!T:&4@:V5Y=V]R9"`B+D%P<$EN9F\B*3I<"EP*(D-R96%T:6YG(%5N<F5Q M=65S=&5D($9I;&5S(&%N9"!&;VQD97)S7`I<"EP*07!P;&EC871I;VYS('-O M;65T:6UE<R!N965D('1O(&-R96%T92!F:6QE<R!A;F0@9F]L9&5R<R!F;W(@ M82!U<V5R+"!O=&AE<B!T:&%N(&%S('1H92!R97-U;'0@;V8@82!3879E(&-O M;6UA;F0N7`I<"DEF('1H92!F:6QE<R!A<F4@87-S;V-I871E9"!W:71H(&$@ M<&%R=&EC=6QA<B!D;V-U;65N="P@=&AE>2!S:&]U;&0@8F4@9W)O=7!E9"!W M:71H('1H870@9&]C=6UE;G0@86YD('!L86-E9"!I;B!A(&9I;&4@<&%C:V%G M92Y<"EP*3W1H97)W:7-E+"!W:&5R92!T:&4@9FEL97,@87)E(&QO8V%T960@ M86YD('=H870@=&AE>2=R92!N86UE9"!D97!E;F1S(&]N('=H971H97(@=&AE M('5S97(@;F5E9',@=&\@:&%V92!D:7)E8W0@86-C97-S('1O('1H96TZ7`I< M"K<)268@=&AE('5S97(@;F5V97(@;F5E9',@=&\@9V5T(&%T('1H92!F:6QE M<R!O<B!F;VQD97)S(&EN9&5P96YD96YT;'D@;V8@=7-I;F<@=&AE(&%P<&QI M8V%T:6]N('1H870@8W)E871E<R!T:&5M+"!T:&5Y('-H;W5L9"!B92!P;&%C M960@:6X@82!F;VQD97(@;F%M960@?B\N07!P26YF;RX@($EF(&%N(&%P<&QI M8V%T:6]N(&YE961S('1O(&-R96%T92!M86YY('-U8V@@9FEL97,L(&ET('-H M;W5L9"!P=70@=&AE;2!I;B!I=',@;W=N(&9O;&1E<B!I;B!^+RY!<'!);F9O M+B`@1F]R(&5X86UP;&4L(&EF(&%N(&%P<&QI8V%T:6]N(&YA;65D($UY07!P M(&YE961S('1O(&-R96%T92!M86YY('5N<F5Q=65S=&5D(&9I;&5S+"!I="!S M:&]U;&0@<'5T('1H96T@:6X@82!F;VQD97(@8V%L;&5D('XO+D%P<$EN9F\O M37E!<'`N("!)9B!T:&4@?B\N07!P26YF;R!F;VQD97(@9&]E<VXG="!A;')E M861Y(&5X:7-T+"!T:&4@87!P;&EC871I;VX@<VAO=6QD(&-R96%T92!I="Y< M"EP*MPE)9B!T:&4@=7-E<B!M:6=H="!S;VUE=&EM97,@;F5E9"!T;R!G970@ M870@=&AE(&9I;&5S(&]R(&9O;&1E<G,@:6YD97!E;F1E;G1L>2!O9B!T:&4@ M87!P;&EC871I;VX@=&AA="!C<F5A=&5S('1H96T@*&9O<B!E>&%M<&QE+"!T M96UP;&%T92!F:6QE<RDL('1H97D@<VAO=6QD(&)E('!L86-E9"!U;F1E<B!^ M+TQI8G)A<GDN("!9;W4@<VAO=6QD(&YA;64@96%C:"!F:6QE(&]R(&9O;&1E M<B!S;R!T:&%T('1H92!U<V5R(&-A;B!E87-I;'D@=&5L;"!W:&EC:"!A<'!L M:6-A=&EO;B!P=70@:70@=&AE<F4N7`I<"E1H92!G=6ED:6YG('!R:6YC:7!L M92!H97)E(&ES('1H870@=&AE('5S97(G<R!H;VUE(&9O;&1E<B!B96QO;F=S M('1O('1H92!U<V5R+B`@06X@87!P;&EC871I;VX@<VAO=6QD;B=T(&QE879E M(&%N>71H:6YG('1H97)E('1H870@8F5L;VYG<R!T;R!I="P@;F]T('1O('1H M92!U<V5R+B`@5VAE;B!T:&4@87!P;&EC871I;VX@;75S="!C<F5A=&4@=6YR M97%U97-T960@9FEL97,@86YD(&9O;&1E<G,L(&ET('-H;W5L9"!P=70@=&AE M;2!W:&5R92!T:&4@=7-E<B!C86X@9FEN9"!T:&5M(&)U="!W:&5R92!T:&5Y M(&%R96XG="!L:6ME;'D@=&\@9V5T(&EN('1H92!U<V5R)W,@=V%Y+EP*7`I. M;W1E.B`@66]U('-H;W5L9"!G96YE<F%L;'D@=7-E('1H92!D969A=6QT<R!S M>7-T96T@:6YS=&5A9"!O9B!F:6QE<R!T;R!S=&]R92!S;6%L;"!A;6]U;G1S M(&]F(&1A=&$N("!4:&4@9G5N8W1I;VYS('-U<'!O<G1I;F<@=&AE(&1E9F%U M;'1S('-Y<W1E;2!A<F4@9&5S8W)I8F5D(&EN('1H92!.15A44U1%4"!'96YE M<F%L(%)E9F5R96YC92!M86YU86PN(EP*7`H^(%=H870@22!R96%L;'D@9&]N M)W0@;&EK92!A<F4@=&AO<V4@87!P<R!T:&%T(&-R96%T92!A;&P@=&AO<V4@ M(BXB+69I;&5S("!<"CX@=VAE<F4@>6]U(&-A;B=T(&5V96X@=&5L;"!T:&4@ M87!P;&EC871I;VX@=&AA="!C<F5A=&5D(&ET+BXN86YD(&5V96X@(%P*/B!W M;W)T:"XN=VAE;B!T:&5Y(&9L;V-K(&QI:V4@<VAE97`@:6X@>6]U<B!H;VUE M(&1I<BY<"CX@7`H@("`@06=R965D(2%<"EP*/B!3:&]U;&0@=&AI<R!G;R!I M;G1O('-O;64@:VEN9"!O9B!P<F]G<F%M;65R($9!42`_7`H^7`H@("`@5VAA M="!S:&]U;&0@9V\@:6YT;R!T:&4@1D%1(&ES('1H92!R96-O;6UE;F1A=&EO M;B!T;R!R96%D(&%N9"!F;VQL;W<@=&AE($Y%6%135$50(%5)(&=U:61E;&EN M97,@=VAE;B!522!Q=65S=&EO;G,@87)I<V4N7`I<"CX@27,@979E;B`N07!P M26YF;R!A('=R;VYG(&ED96$N+BYS:&]U;&0@979E<GET:&EN9R!D;R!I;G1O M('1H92!D=W)I=&4@(%P*/B!D969A=6QT<R`_7`H^(%P*("`@($YO<&4N("!9 M;W4G<F4@9&]I;F<@=&AE(&-O<G)E8W0@=&AI;F<N("!9;W4@8V%N('-L965P M('=E;&P@=&]N:6=H="`Z+2E<"BTM+5P*07)T($ES8F5L;"`@("`@("`@("`@ M("`@("`@("`@("`@("`@("`@("`@($YE6%1M86EL.B!A<G1`8W5B:6-S;VPN M8V]M7`I.95A4(%)E9VES=&5R960@0V]N<W5L=&%N="`@("`@("`@("`@("`@ M("`@("`@(%9O:6-E.B`K,2`T,#@@,S,U(#$Q-31<"D-U8FEC(%-O;'5T:6]N M<R`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("!&87@Z("LQ(#0P M."`S,S4@,C4Q-5P*3D585%-415`O3W!E;E-T97`@("`@("`@("`@("`@("`@ M("`@("`@("!54VUA:6PZ(#,Q-2!-;V]N($UE861O=R!,86YE7`H@(%-O9G1W M87)E($1E=F5L;W!M96YT(&%N9"!#;VYS=6QT:6YG("`@("`@("`@("!&96QT 6;VXL($-!(#DU,#$X+3DT-#)<"@I]"FYS `
From: rain@beauty.ucsb.edu (John Wadleigh) Newsgroups: comp.sys.next.programmer Subject: Color cells in Browser - HOW TO!? Date: 25 Jan 1995 20:55:49 GMT Organization: University of California, Santa Barbara Message-ID: <3g6dsl$k0l@ucsbuxb.ucsb.edu> I would like to set the color of the cells in my browser to different colors. How do I go about that? I don't want to use a color palette, just want to use the regular red, green, and blue colors. These are the functions I know of: (NXColor) NXConvertRGBtoColor(float,float,float); NXSetColor:(NXColor)theColor Do I use these? Please HELP! Thanks... P.S. - if you can, please add how to change the font as well?
From: tm8025a@newssrv.soc.american.edu Newsgroups: comp.sys.next.programmer Subject: App problems and suffixes file Date: 24 Jan 95 12:05:31 Organization: The American University, Washington DC Distribution: fj Message-ID: <tm8025a.95Jan2412531@newssrv> Mime-Version: 1.0 Content-Type: text/plain I already posted something to this effect on comp.next.sysadmin but got no replies. Maybe a wider distribution can help. I am no longer seeing the suffixes file work in the .NeXT directory in my home space. Programs like Opener, Omniweb and OmniImage no longer work with files of a certain suffix. If I have a .gz file double clicking it no longer starts up Opener and uncompresses the file. Same with things like a .html file or .gif. Certain programs like WordPerfect, that I have used for awhile, do work but not the new ones. I have even added manually certain suffixes lines from an other account to no avail. I know this is local to my account and I have looked in the tools inspector to try and set the default app. I only see Edit and Terminal depending on the execute bit. Any help would be great. I can still go to open in a lot of the programs but I would like all the functional features I can get. Torrey McMahon E-mail would be great but I'll take any help I get. tm8025a@american.edu tm8025a@newssrv.soc.american.edu
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer,comp.sys.next.advocacy,comp.sys.next.misc Subject: Re: Any NS Proj Mgmt, Metrics & Testing Products Available? Date: 25 Jan 1995 17:09:58 GMT Organization: MCI Message-ID: <3g60l6$2s7@hermes.dna.mci.com> References: <3g3vbk$ko7@potogold.rmii.com> In article <3g3vbk$ko7@potogold.rmii.com>, Garrett L. Rice <garrett@opensource.com> wrote: >Hello, > >I have a client who is looking for Project Management tools (revision >control, multi-user access, etc) for NEXTSTEP. She is also looking for >testing and metrics tools for her development project. Any suggestions? > >-- >Garrett L. Rice >OpenSource, Inc. >1776 Lincoln Street, Suite 1012, Denver, CO 80203 >800.TRY.OPEN (879.6736) OR 1.303.861.4411 >303.861.2393 FAX >garrett@opensource.com (NeXTmail) Garrett: Please post your findings to the net. - Alex -
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: DBKit Adaptor for interbase(Borland) Date: 26 Jan 1995 18:18:43 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3g8p23$7re@darkstar.UCSC.EDU> References: <3g8h7b$5it@usenet.INS.CWRU.Edu> In article <3g8h7b$5it@usenet.INS.CWRU.Edu> axp26@po.CWRU.Edu (Ashish Pandit) writes: > I am looking for DBKit adaptor for interbase(Borland). If you have any > information regarding from where can I find it, could you please Email > me at axp26@po.cwru.edu? I have checked with Nextstep Customer Support, > but they don't seem to know about this adaptor. Thanks > -- Borland should be the source of the Interbase adaptor. I don't have their toll-free number, but their local number is (408) 431-1000. You may have to let the phone ring for quite a while because Borland laid off 38% of its work force about 10 days ago and there don't seem to be as many people answering the phone as before :-( (When will the Justice Department curb Microsoft's monopolistic business practices that are partially responsible for driving competitors like Borland out of business?) With the recent staff reductions, I have some concern about Borland's continued support for the tiny NS market although Borland is attempting to move away from direct competition with MS and into client-server products like Interbase. But, of course, Interbase and its clients compete with MS's SQLServer and clients in the PC world, at least. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Global Object re-implementation. Date: 26 Jan 1995 18:22:08 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3g8p8g$7td@darkstar.UCSC.EDU> References: <3g88if$1e0@lastactionhero.rs.itd.umich.edu> In article <3g88if$1e0@lastactionhero.rs.itd.umich.edu> pcu@umich.edu writes: > In article <1995Jan25.175545.1660@alw.nih.gov> smith@nextone.niehs.nih.gov > (Howard C. Smith) writes: > > > Id like to be able to replace the system calls > > NXGetc and NXPutc on a global basis. The need > > This is going to be extremely hard! > NXGetc and NXPutc are macros, not system calls. :) > -- Seems that macros would be easier, not more difficult to reimplement. Just redefine 'em to your own custom implementation. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: untereck@iphcip1.physik.uni-mainz.de (Oliver Unter Ecker) Newsgroups: comp.sys.next.programmer Subject: HELP: I can do right, can you do left? (mouse click) Date: 26 Jan 1995 10:53:39 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <199501261650.RAA07229@iphcip1.physik.uni-mainz.de> Hi! I am trying to generate an ordinary mouse click. So far, I succeeded doing a right click, but can't figure out how to do a left click. The following Yap code snappet will show you what works, and what doesn't. It will shortly pop up the Yap menu over the Yap PS Output window (the right click), but won't select it if it wasn't already (response to a left click). /x 560 def /y 416 def /window x y Above 0 findwindow pop exch pop exch pop def %/window currentwindow def /context currentactiveapp def x y setmouse Rmousedown x y realtime 0 window 0 1 255 context posteventbycontext pop Rmouseup x y realtime 0 window 0 1 255 context posteventbycontext pop Lmousedown x y realtime 0 window 0 1 255 context posteventbycontext pop Lmouseup x y realtime 0 window 0 1 255 context posteventbycontext pop Note, this works even if the menu (right) button isn't enabled in Preferences. I get the same results in C using the appropriate PS ops, or DPS client library's DPSPostEvent, or Application's -sendEvent method. Looking for the difference one may argue the right click doesn't need the correct window to work, so this might simply be wrong. I checked this, however, the window is ok. Anyhow, it's unconvenient to provide correct context and window if all you want is doing a mouse click no matter where on what window in what app. There're undocumented defines in <bsd/dev/event.h>: /* How to pick window(s) for event (for PostEvent) */ #define NX_NOWINDOW -1 #define NX_BYTYPE 0 #define NX_BROADCAST 1 #define NX_TOPWINDOW 2 #define NX_FIRSTWINDOW 3 #define NX_MOUSEWINDOW 4 #define NX_NEXTWINDOW 5 #define NX_LASTLEFT 6 #define NX_LASTRIGHT 7 #define NX_LASTKEY 8 #define NX_EXPLICIT 9 #define NX_TRANSMIT 10 #define NX_BYPSCONTEXT 11 #endif EVENT_H /* End of defs common with dpsclient/event.h */ They're not in sync with dpsclient as claimed, and I wonder with which of the "PostEvents" they'll work. There's a low-level ioctl(EVIOLLPE), totally undocumented, of course, which should work thru /dev/ev0. It doesn't require context nor window, but is, not very elegant (or future-compatible) by nature. Journaling has this mouse-click requirement, too. I wonder how it works internally. Maybe someone at NeXT feels to share his knowledge with us. I promise a copy of the app that will come out of that for the helpful mind who can do left... Oliver untereck@iphcip1.physik.uni-mainz.de
Newsgroups: comp.sys.next.programmer From: stephen@gcm.com (Stephen Slayton) Subject: Re: Hash Table & NXTransport problem Message-ID: <1995Jan24.210237.21569@gcm.com> Sender: usenet@gcm.com (Cnews Administrator) Organization: Greenwich Capital Markets, Inc. References: <3fgnui$hi@caladan.restena.lu> Date: Tue, 24 Jan 1995 21:02:37 GMT Yes, you have to write 3 short methods. There is an example of this: a subclass of List called FullCopyList, somewhere in /NextDevelop/Examples/DistributedObjects/*/*.m. For your hash table, the basic idea is to traverse the hash table, printing out every instance element, assuming each instance in the hash table responds to the read and write methods. Stephen Rudy Jacoby (rudy.jacoby@crpht.lu) wrote: : Hi, I 'm looking for a solution for my application. : I would like to pass as argument a hash table between two applications : via a network connection. : First, is it possible and if it is, do I have to write different : encoding and decoding methods for each hash table whose key description : and value description are different ???? : Is there any possibility to write these methods whatever the key : description and the value description ??? : Thanks in advance for any info. : jacoby rudy : rudy.jacoby@crpht.lu -- Stephen Slayton stephen@gcm.com (Only ASCII mail please)
From: seanl@ringding.cs.umd.edu (Sean Luke) Newsgroups: comp.sys.next.programmer Subject: Re: My wish for 95: alt-delete deletes caracter right of the cursor Date: 26 Jan 1995 23:17:34 GMT Organization: University of Maryland, College Park Message-ID: <3g9aie$is1@hecate.umd.edu> References: <D2IIvz.Jrr@cunews.carleton.ca> <1995Jan19.162411.3556@afs.com> Gregory H. Anderson (Greg_Anderson@afs.com) wrote: >> How bout text drag and drop a la Solaris (probably the ONLY >> nice thing I have to say about its interface). Select a bunch of text >> with the mouse. Mouse down in the middle of the selection and drag.... >> get the little text icon and drag the text out. OmniWeb lets you do >> this with images....very nice feature (good job Omni gang). > RETCH! PUKE! VOMIT! GAG! Way to go, Greg! I wholeheartedly agree with this one. I've used MS Word 6.0 a lot in recent months and have decided that the drag-and-drop mentality for text simply does not work. Far too many times have I draged words out-of-place in paragraphs while trying to select something else. It's absolutely hideous. This is not to say the idea is bad. But it MUST take back-seat to the action of click-dragging to select text. The easy way to do this is to relegate text-drag-and-drop to alt-click-and-drag, so it's out of harm's way unless the user _explicitly_ wants to do just that. Sean Luke U Maryland at College Park seanl@cs.umd.edu Today's Chemical: Aluminum Zirconium Tetrachlorohydrex GLY
From: vchi@visgen.com (Vrijmoed Chi) Newsgroups: comp.sys.next.programmer Subject: Help Help Date: 26 Jan 1995 17:39:37 GMT Organization: The Eye Research Institute of Canada Message-ID: <3g8mop$82g@sator.eric.on.ca> Keywords: Help Hi, I am wondering if there is a way to separate the help file from the main application. The situation is: I am writing some bundles with panels and windows, I want to attach the help file to these bundles instead of putting it back to the main application. It seems that the help system is only searching the Help.store in the main bundle (the main application). Is there a way to enhance it? Thanks much in advance!
Newsgroups: comp.sys.next.programmer From: dbhinz@znih.rmnug.org (David Hinz) Subject: Selection lists? Message-ID: <1995Jan25.231003.1017@nugget.rmNUG.ORG> Sender: dbhinz@nugget.rmNUG.ORG Organization: Rocky Mountain NeXT Users' Group Date: Wed, 25 Jan 1995 23:10:03 GMT In the User Interface Guidelines, chapter 1, Visual Guide, there is a section on "Browswers and Selection Lists". What are "Selection Lists"? Are they Browsers with just one column, the title turned off, and possibly no horizontal scrollbar? Or are selection lists a customized ScrollView with a matrix of cells inside? Is one better that the other? Any comments? Thanks, David Hinz -- {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} { } { David Hinz } { Hz Computing Technologies }
From: hubert@samson (Hubert B. Hickman) Newsgroups: comp.sys.next.programmer Subject: Re: DBKit Adaptor for interbase(Borland) Date: 27 Jan 1995 04:14:01 GMT Organization: University of Nebraska Medical Center, Omaha, NE, USA Distribution: world Message-ID: <3g9ru9$mdc@netserv.unmc.edu> References: <3g8p23$7re@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: : In article <3g8h7b$5it@usenet.INS.CWRU.Edu> axp26@po.CWRU.Edu (Ashish : Pandit) writes: : > I am looking for DBKit adaptor for interbase(Borland). If you have any : > information regarding from where can I find it, could you please Email : > me at axp26@po.cwru.edu? I have checked with Nextstep Customer Support, : > but they don't seem to know about this adaptor. Thanks : > -- : Borland should be the source of the Interbase adaptor. I don't have : their toll-free number, but their local number is (408) 431-1000. You may : have to let the phone ring for quite a while because Borland laid off 38% : of its work force about 10 days ago and there don't seem to be as many : people answering the phone as before :-( (When will the Justice : Department curb Microsoft's monopolistic business practices that are : partially responsible for driving competitors like Borland out of : business?) : : With the recent staff reductions, I have some concern about Borland's : continued support for the tiny NS market although Borland is attempting to : move away from direct competition with MS and into client-server products : like Interbase. But, of course, Interbase and its clients compete with : MS's SQLServer and clients in the PC world, at least. : --- : Art Isbell NeXTmail: art@cubicsol.com : NeXT Registered Consultant Voice: +1 408 335 1154 : Cubic Solutions Fax: +1 408 335 2515 : NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane : Software Development and Consulting Felton, CA 95018-9442 The Interbase adaptor is available from ftp.next.com or www.next.com in the patches directory: * InterbaseAdaptor 3.2 94-04-29 1543 InterbaseAdaptor Install 3k 94-04-29 1545 InterBaseAdaptor.pkg 520k 94-03-14 1544 InterBaseAdaptor.ReadMe 3k 94-03-14 Interbase sales can be reached at 800 451-7788. Interbase tech support is (800) 437-7367. 3.3 is the current release of Interbase for NEXTSTEP. 4.0 is in the works. We've been working with Interbase for about 18 months now, and in general have been pretty pleased with it. Send me email if you have more questions. Hubert Hickman hubert@hksys.com Voice (402) 697-1310 Fax (402) 330-8613
From: chris@flowcube.stem.com (Christopher Smith) Newsgroups: comp.sys.next.programmer Subject: Looking for Mail.app API Date: 26 Jan 1995 18:53:42 GMT Organization: SyStemix, Inc. Distribution: world Message-ID: <3g8r3n$9v9@iserver.stem.com> Greetings, I'm looking to add a feature to my app, similar to "Suggestions..." found in many applications (which brings up a compose window in Mail and plops some text in it). Soo... where can I find the Mail.app API? I am also interested in ways to send mail from within my app without bothering the user with using Mail.app. Any help would be greatly appreciated. Thanks, chris _______________________________/_______________________________ Christopher.Smith............./ .. _ .. __ . .. ____ Flow.Cytometry.Computer.Guy...\ \ /OO\ " " SyStemix,.Inc..................\ \________\^_/____/ 3155.Porter.Dr..415.813.6611....\ . _ / .. \__ Palo.Alto.CA..fax 415.856.7887...\ \/ 94304..chris@flowserver.stem.com..\ __________________________________/____________________________ (NeXTmail & MIME accepted) / (Spastic with Plastic)
From: pcu@umich.edu Newsgroups: comp.sys.next.programmer Subject: Re: Global Object re-implementation. Date: 26 Jan 1995 13:37:19 GMT Organization: University of Michigan Distribution: world Message-ID: <3g88if$1e0@lastactionhero.rs.itd.umich.edu> References: <1995Jan25.175545.1660@alw.nih.gov> In article <1995Jan25.175545.1660@alw.nih.gov> smith@nextone.niehs.nih.gov (Howard C. Smith) writes: > Id like to be able to replace the system calls > NXGetc and NXPutc on a global basis. The need This is going to be extremely hard! NXGetc and NXPutc are macros, not system calls. :) -- Peter Urka <pcu@umich.edu> Dept. of Chemistry, Univ. of Michigan Anything to me is sweeter, Than to see Shock-headed Peter. - H. Hoffmann
Newsgroups: comp.sys.next.misc,comp.sys.next.programmer From: gemoe@proximus.north.de (Gerhard Moeller) Subject: Re: Getting core-dumps References: <D2wKq4.J3n@rat.se> Organization: German NeXT User Group, Oldenburg. Date: Thu, 26 Jan 1995 10:18:50 GMT Message-ID: <1995Jan26.101850.3499@proximus.north.de> In article <D2wKq4.J3n@rat.se>, Erik Heimdahl <erik@rat.se> wrote: > >How do I get a core-dump from an application launched from Workspace ?? >I tried to dwrite Workspace CoreLimit, and create a /cores, but I can t >find any core-files. CoreLimit (I didn't know that it exists as a default, though) just limits the size of coredumps, the directory /cores just insures that all coredumps go directly there, which is quite important (so everyone should do that), as otherwise the core is put in the directory where the application was launched from. (If you have many newbies on a system it takes a lot of time to find(1) those cores and purge them...) If you want to GET a core (for example for debugging), you can use kill(1). If you look at sigvec(2), you'll find the SIGNALs that cause a coredump. For example SIGQUIT does. So just find out the PID of your application (ps | grep [your_application_name], the first column shows the PID) and type kill -3 [the_process_ID] Then you'll get your core dumped in /cores. Gerhard. -- N < principiis obsta! >------------------< PGP Key available on request > N e Gerhard Moeller, Amselweg 16, 26122 Oldenburg (FRG) [*: 02/21/1968] e X Private: gemoe@proximus.north.de Phone (voice): +49-441-507856 X T Uni: Gerhard.Moeller@arbi.Informatik.Uni-Oldenburg.DE NeXTmail T NoGeNUG - Northern German NeXT User Group: NoGeNUG@proximus.north.DE
Newsgroups: comp.sys.next.programmer From: (Raul Alvarez) Subject: Re: Color cells in Browser - HOW TO!? Message-ID: <1995Jan26.135553.304@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3g6dsl$k0l@ucsbuxb.ucsb.edu> Date: Thu, 26 Jan 1995 13:55:53 GMT John Wadleigh writes > I would like to set the color of the cells in my browser to > different colors. How do I go about that? I don't want to use > a color palette, just want to use the regular red, green, and blue > colors. > > These are the functions I know of: > (NXColor) NXConvertRGBtoColor(float,float,float); > NXSetColor:(NXColor)theColor > > > Do I use these? Please HELP! Thanks... > > P.S. - if you can, please add how to change the font as well? I have done this by subclassing NXBrowserCell, and setting cell prototype to my new cell. In your subclass of NXBrowserCell you can implement the following method: - setTextAttributes:textObject { [super setTextAttributes:textObject]; if(someCondition) { // set the text to blue [textObject setTextColor: NXConvertRGBAToColor(0.0, 0.0, 1.0, NX_NOALPHA)]; } return self; } All NXBrowserCells share an instance of a Text object. You have to set the attributes of this Text object to do what you want.
From: rueiwun@helium.gas.uug.arizona.edu (Ruei-wun Tu) Newsgroups: comp.sys.next.programmer Subject: Problem about Building Smalltalk-1.1.1??? Date: 26 Jan 1995 20:44:58 GMT Organization: University of Arizona, Unix Users Group Message-ID: <3g91ka$qal@news.CCIT.Arizona.EDU> Hello, I try to build Smalltalk-1.1.1 for my Intel NeXT running NeXTStep 3.2. I followed the installation guide and kind of successfully building it (except a couple of warning messages). However, when I try to do "mst -V" to build all the funcations, I failed. The followings are the error message shown on my terminal. Hope someone in this group can help me to solve it. ==================================================================== Processing CFuncs.st "CFuncs.st", line 44: Bus Error Object class>>#isVariable Object class>>#variableSubclass:instanceVariableNames:classVariableNames:poolDictionaries:category: UndefinedObject>>#executeStatements UndefinedObject>>nil ==================================================================== Please E-mail me your suggestions. Thanks in advance!!! Rueiwun Tu rueiwun@gas.uug.arizona.edu
From: seanl@ringding.cs.umd.edu (Sean Luke) Newsgroups: comp.sys.next.programmer Subject: Re: Info on Building a NEXT Sound App Date: 27 Jan 1995 05:01:01 GMT Organization: University of Maryland, College Park Message-ID: <3g9umd$pfl@hecate.umd.edu> References: <3g0sni$5qh@island.amtsgi.bc.ca> rsmallwo@islandnet.com wrote: >I am looking at building a simple sound app with NEXTSTEP. I have >reviewed the sound kit and it looks like it will provide me with most of >the functionality that I need. #ifdef ADVERTISEMENT-ALERT // :-) Though a sound app would be good programming practice, if your aim is to build something to get some work done, might I suggest taking a look at building a Resound module instead? Resound.app is a fairly sophisticated SoundKit-based application designed for exactly this situation. It provides an API for building plug-in modules (of your own design) to do all sorts of nifty sound-twiddling, without the pain of building a big sound app to do it in. It's free. I think you'd find it most useful. Resound 2.1 (the most recent version--fairly new) is on the archives. However, if you wait for a week or so, Resound 2.2 (a few bugs stomped, some features added, etc., etc.) will replace it. I'm about done getting it ready after suggestions and small bug reports from users of 2.1 (which, heck, was only released two weeks ago--thanks everybody!) #endif >What would be valuable to me is a high >level explanantion of sound basics to supplement the class, function, etc. >description in chapter 16 of the NEXT general reference... ie. sound >formats supported (ie. ATC), impact of sampling rates, etc. Is there a >good book/source someone could recommend for this? The best book is NeXT's sound documentation (really), if you've already got a fairly good grasp of general digital sound storage. The only things likely to throw you for a loop are: Mu-Law encoding ATC compression (A NeXT custom thing which unfortunately isn't all that well documented, but pretty good) Non-Sound or non-supported formats (24 and 32-bit, DSP_CORE, etc.) Other than that it's really not to complex. If you're looking to do a simple NeXT sound app, you really need only deal with the Sound, SoundView, and SoundMeter objects--don't worry about the other underlying objects for now, as they're not necessary unless you're doing some fairly major hacking. >From the documentation I have from the NextWorld Expo, it looks like the >Sound Kit will be dropped in OpenStep. Is it expected that 3rd Party >developers are to pick up the slack and create an Openstep compatible >sound kit? Frankly, I don't think it would be that tough. But it might not be pretty, considering the number of different drivers to consider. >Lastly, the app I am to be involved with may need to convert sound files >generated on a WINDOWS machine (in a .wav format) to a NEXT format. Is >there are information or utilities that someone could recommend to help >with this? There is an application out there called GISO.app, which provides a front-end for a set of sound conversion utilities called sox (you can find them on the archives--search archie for "sox"). However, sox was done before WAV became standard (the latest it has is "VOC"). Fortunately, sox can also deal with arbitrary sound formats if you give it enough information about the format itself. Unfortunately, I don't have a clue as to the format for WAV sound. I'm slowly putting together the pieces for a Resound module called "Input/Output" which uses the sox utilities. It's slow going, though, mostly because I don't know what current formats would be useful and what they look like. If you need to do this kind of thing, I'd suggest building it as a module to Resound. That way you wouldn't have to build a sophisticated sound app to do your research (just plug your research right in), and plus we'd all get the benefit of any modules you come up with. If you'd like my help I'd be glad to provide it. Sean Luke U Maryland at College Park seanl@cs.umd.edu Today's Chemical: Aluminum Zirconium Tetrachlorohydrex GLY
From: frank@heron.cc.gatech.edu (Frank Cobia) Newsgroups: comp.sys.next.programmer Subject: In-Line Editing of Browser Cell Values Date: 27 Jan 1995 05:12:41 GMT Organization: Cybernetx, Inc. Distribution: world Message-ID: <3g9vc9$5lj@jabba.cybernetics.net> Keywords: Browser, BrowserCell, Editing I am posting this for a friend that I work with. However feel feel to email (or NeXTMail) me with replies. Thanks Frank ---------------------------------------------- I am currently developing an application in which I would like the user to be able to edit a NXBrowser item "in-line". The user would double-click on the desired item and it would become editable the way TextFields do in IB. I can think of a couple of ways to do this, but I'm interested in other suggestions. Of course, if someone knows where I can get source code that does this I would be extremely grateful. Please respond to johnhe@crt.com John H. Hethcox Information Technology NCMI -- Frank Cobia frank@cobra.cybernetics.net
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn) Newsgroups: comp.sys.next.programmer Subject: Re: defines for architectures? Date: 26 Jan 1995 02:14:45 GMT Organization: Rensselaer Polytechnic Institute, Troy NY, USA Distribution: world Message-ID: <3g70il$ntq@usenet.rpi.edu> References: <3foftg$dh4@aragorn.unibe.ch> willers@butp.unibe.ch (Moritz Willers) writes: > Garance A. Drosehn writes > > willers@butp.unibe.ch (Moritz Willers) writes: > > > This must be written somewhere in TFM. But I can't find it and > > > am not patient enough to go on looking for it. > > > > > > Can some kind soul tell me how I can test with an #ifdef or #if > > > for the Motorola or other architecture, eg. #ifdef M68K > > > > This may not apply to you, but in general I'd first like to ask > > the question "Why do you need to know?". It may be that you're > > using architecture to make a decision that should be made based > > on some other setting. [etc] > > First: Thanks for the help from everywhere. > > And then to answer this, why I need it. It's no big/little endian > problem. NeXT must yet have another bug in the NXSpellServer. I > already came across one which they are going to fix in some future > release. - you probably know of my nextispell services for spell > checking text with ispell via NeXT's SpellPanel. > > As the new architectures came up, I keep getting complaints that > the text is selected off by one character. They only come from > people with Intel or HP machines. So the problem seems to be > connected to the architecture. I couldn't very this yet myself, > so I didn't inform NeXT about this bug yet - if it really is one. > (hey NeXT, if you're interested in verifying this with my code, > please contact me) Is there some way for you to programatically determine when the bug exists, instead of compiling in a workaround based on the architecture? Maybe read back the selected text, after having selected it, and see what you get? I haven't programmed something that would run into the bug you describe, but I think that it's always worthwhile to ask "Is there a better way to check for <ThingX> than #ifdef's based on hardware architecture?". What happens when a new version of whatever-it-is comes along, and the bug doesn't exist for some people running on Intel, but does exist for others? -- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu ITS Systems Programmer (handles NeXT-type mail) Rensselaer Polytechnic Institute; Troy NY USA
From: koen1830@w250zrz.zrz.tu-berlin.de (Andreas Koenig) Newsgroups: comp.sys.next.programmer Subject: Re: nextStep for SGis and Suns? please.... Date: 26 Jan 1995 13:35:27 GMT Organization: mal franz, mal anna Message-ID: <3g88ev$276@brachio.zrz.TU-Berlin.DE> References: <1995Jan25.114630.1280@client40.comlab.ox.ac.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Fcc: /u/k/Mailboxes/NNoutgoing.mbox/mbox Apparently-To: <koen1830@w203zrz.zrz.tu-berlin.de> In article <1995Jan25.114630.1280@client40.comlab.ox.ac.uk>, Kenneth Lomax <c92kl@comlab.ox.ac.uk> wrote: >Hi. Could anyone please tell me where I could find a NextStep >program for either the Suns or SGIndys? I need to work on these computers >but would like the Next interface and its Project builder. Any help >would be greatly appreciated. >Many thanks >Ken You're out of luck. Sun has announced it will release OpenStep this year. The plans have been postponed several times. Just wait and see. A recent announcement of NeXT stated, they are now able to show NeXTstep on a Sun, but this rather looked like a demo, not like a working system. And SGI? This is a quote from the sgi.misc FAQ: Subject: -19- Wouldn't Nextstep be great on SGIs? Date: 05 Jan 94 00:00:01 EST Possibly. If Next ported Nextstep to IRIX (and several SGI employees have made it clear that it is up to Next, not SGI, to do so) the question might be worth discussing. That nonwithstanding, Next zealots have flogged Nextstep around the SGI newsgroups many times. They haven't convinced the command-line diehards that the Next way is better or vice versa. Please don't try it yourself. Sigh, andreas
Newsgroups: comp.sys.next.programmer From: karl@trapac.com (Karl Kraft) Subject: Re: Animating icon movement across screen Message-ID: <D3241D.uD@trapac.com> Organization: Trans Pacific Container Service Corporation References: <3g1sqr$jp2@james.bga.com> Date: Fri, 27 Jan 1995 09:08:00 GMT In article <3g1sqr$jp2@james.bga.com> bill@otherwise.com writes: >I am trying the animate an icon moving across the screen. This would >be similar to what happens when you drag an icon using the dragging >protocol in the kit. The difference is that I am moving it under > >Has anyone figured out how the Workspace does this? I suspect it must >have to do with throwing up a cover window to hide the action. Didn't >there used to be an example back before the window dragging protocols >were put in the kit? Yeah, I'm making heavy use of this in my current project. The old example was called WhatADrag, and it has two different implementations. One was completely appkit based, and the other was mostly postscript based. The postscript based one was the one that allowed alpha. The only bad thing about the example (and this is from memory), was that it was written before NXImages, and the code for the postscript version is sort of hairy. IMHO, the current drag scheme is a wonderful robust implementation (IPC, alpha dragging), and has an easy to use interface, but it does have it's problems (like it requires the workspace, and it sometimes hangs). I think NeXT should update and distribute the old example still. WhatADrag was last in the 2.0 examples. If you can find an old 2.1 OD or CD, you should be able to drag it up from there. If not, let me know and I probably still have it somewhere -- Karl Kraft Karl_Kraft@trapac.com Karl_Kraft@ensuing.com [My opinions are my own]
Newsgroups: comp.sys.next.programmer From: peter_rasmussen@swissbank.com (Peter Rasmussen) Subject: Re: TIP: Making Obj-C source-code readable for everyone - using hyperlinks Message-ID: <1995Jan27.110515.1883@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3f6agn$hs7@darkstar.UCSC.EDU> Date: Fri, 27 Jan 1995 11:05:15 GMT Art Isbell writes > If the updated Edit app (as previewed at the last Expo) is included in > 3.3 Developer, it will implement much of what some people want to do using > RTF source while using plain text. This seems preferable to adding all > the RTF directives and extra preprocessing required to deal with RTF > source. One thing I would certaintly love about a future Edit.app ... is the addition of an Edit API ... Cheers Peter Rasmussen
Newsgroups: comp.sys.next.programmer From: jbright@stimpy (Jason Bright) Subject: Re: My wish for 95: alt-delete deletes caracter right of the cursor Message-ID: <D32J66.2Kq@cunews.carleton.ca> Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University References: <D2IIvz.Jrr@cunews.carleton.ca> <1995Jan19.162411.3556@afs.com> <3g9aie$is1@hecate.umd.edu> Date: Fri, 27 Jan 1995 14:34:54 GMT : Gregory H. Anderson (Greg_Anderson@afs.com) wrote: : >> How bout text drag and drop a la Solaris (probably the ONLY : >> nice thing I have to say about its interface). Select a bunch of text : >> with the mouse. Mouse down in the middle of the selection and drag.... : >> get the little text icon and drag the text out. OmniWeb lets you do : >> this with images....very nice feature (good job Omni gang). : > RETCH! PUKE! VOMIT! GAG! So what are you trying to say here greg? Quit beating around the bush.. :)_ : This is not to say the idea is bad. But it MUST take back-seat to the : action of click-dragging to select text. The easy way to do this is to : relegate text-drag-and-drop to alt-click-and-drag, so it's out of harm's : way unless the user _explicitly_ wants to do just that. I have talked to a couple of people about this, and the concept of [some modifier key]-click and drag keeps coming up....ARRRRRGH. Not that it isn't a potential solution to the problem, but it's NOT CONSISTENT!! I don't have to hold down a modifier key to drag out images......(INSERT OTHER BEEF HERE: having to hold down control to drop a file onto docked apps!! arrrrrrgh). I understand reservations about the Slowaris technique, but I shudder at the thought of key modifiers- they just aren't intuitive and consistent with the rest of the interface. I think text drag and drop in NS is something that should really be explored. Anybody have a better idea? later j jbright@stimpy.carleton.ca
From: don@darth.byu.edu (Don Yacktman) Newsgroups: comp.sys.next.programmer Subject: Re: Looking for Mail.app API Date: 27 Jan 1995 00:40:11 GMT Distribution: world Message-ID: <3g9fdb$gf7@bones.et.byu.edu> References: <1995Jan26.203246.26111@dec8.ncku.edu.tw> Christopher Smith writes ) Greetings, ) ) I'm looking to add a feature to my app, similar to "Suggestions..." ) found in many applications (which brings up a compose window in Mail ) and plops some text in it). Soo... where can I find the Mail.app API? The easiest way is to use the MiscMailApp in the MiscKit. It's plug and play. Or you could use it as example code and go roll your own. ) I am also interested in ways to send mail from within my app without ) bothering the user with using Mail.app. MiscMailApp can do that, or you can set up a pipe to /usr/ucb/mail or /usr/lib/sendmail yourself and fire off a message that way, wich would be a solution portable across most UNIXes. -- Later, -Don Yacktman Don_Yacktman@byu.edu
Newsgroups: comp.sys.next.programmer From: glen@prosoft.com (Glen Biagioni) Subject: Re: char*=void* vs. char*<void* Message-ID: <D32MKs.FGK@prosoft.wimsey.com> Sender: glen@prosoft.wimsey.com (Glen Biagioni) Organization: ProSoft Solutions, Inc. References: <9501261510.AA02753@flexus> Date: Fri, 27 Jan 1995 15:48:27 GMT Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes > Hi, > > Could anyone give me a good reason for ANSI to allow assignments between any > two pointers of which at least one is of type void*, while not providing the > same freedom with comparisons? > > Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium > If I don't answer: my mail relay can't handle !, % or .uucp, I think > > PS: What's all that about OG Simson? > I wonder if the feeling was that comparisions make sense in the context of difference. a<b iff b-a>0. Certainly difference between pointers is meaningful only in the case that the pointers are of the same type. -- Glen Biagioni <glen@prosoft.com> (NeXTmail accepted) Vancouver BC Canada
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer,comp.sys.next.misc Subject: Qualifier Peer Master/Peerin EOF... Date: 25 Jan 1995 17:12:43 GMT Organization: MCI Communications Distribution: world Message-ID: <3g60qb$2u1@hermes.dna.mci.com> I'm still having trouble getting qualified peer (as in Master/Detail for the rest of the world) fetches to work. Using the DEPARMENT and EMPLOYEE tables from NEXT I've setup two NXTableViews and generally hooked everything together in IB just like you'd expect. The initial fetch in MyController.m's AppDidInit works fine. I have a little text field/button GUI-thingie that is supposed to allow you to discriminate against employees by salary. :-) Here's the code that happens when you push the button: - doSalaryQualify: sender { float theSalary; id mySalaryQualifier; EODatabaseDataSource *myEODatabaseDataSource; id myTableEntity; // note - NEXT call this a master-peer relationship myEODatabaseDataSource = [myPeerEOController dataSource]; // get our entity myTableEntity = [myEODatabaseDataSource entity]; // theSalaryTextField is on the screen for user input theSalary = [theSalaryTextField floatValue]; // build a qualifier using our Entity // logic: if (salary = 0) then // get an unrestrited qualifier // else // get a restricted qualifier with input text if (theSalary == 0) mySalaryQualifier = [myTableEntity qualifier]; else mySalaryQualifier = [[EOQualifier alloc] initWithEntity: myTableEntity qualifierFormat: @"%A > %f", @"SALARY", theSalary]; // see the documentation for EOQualifier the // for format string rules // now set the qualifier for the detail's // EODatabaseDataSource [myEODatabaseDataSource setAuxiliaryQualifier: mySalaryQualifier]; // we've changed the qualifier in the peer controller's data // source so we refetch from the peer controller [myPeerEOController fetch]; return self; } This doesn't work and I can't figure out why. (For those of you who have RT the FM, this is from page 6 of chapter 12 in the EOF documentation.) More data: if I change the code a bit to sort by department in the master controller the above code works fine! When I go to set the qualifier I get the following error code: Unknown error code 100003 in NXReportError Help! -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office (rare!) Airedales and polar bears!
From: btschumy@bga.com (Bill Tschumy) Newsgroups: comp.sys.next.programmer Subject: [Solution] Re: Animating icon movement across screen Date: 27 Jan 1995 13:09:25 -0600 Organization: Otherwise Message-ID: <3gbgd5$dtl@jake.bga.com> References: <3g1sqr$jp2@james.bga.com> <D3241D.uD@trapac.com> In article <D3241D.uD@trapac.com>, Karl Kraft <karl@trapac.com> wrote: >In article <3g1sqr$jp2@james.bga.com> bill@otherwise.com writes: >>I am trying the animate an icon moving across the screen. This would >>be similar to what happens when you drag an icon using the dragging >>protocol in the kit. The difference is that I am moving it under >> >>Has anyone figured out how the Workspace does this? I suspect it must >>have to do with throwing up a cover window to hide the action. Didn't >>there used to be an example back before the window dragging protocols >>were put in the kit? > >Yeah, I'm making heavy use of this in my current project. The old >example was called WhatADrag, and it has two different implementations. >One was completely appkit based, and the other was mostly postscript >based. The postscript based one was the one that allowed alpha. > >The only bad thing about the example (and this is from memory), >was that it was written before NXImages, and the code for the >postscript version is sort of hairy. > >IMHO, the current drag scheme is a wonderful robust implementation >(IPC, alpha dragging), and has an easy to use interface, but it >does have it's problems (like it requires the workspace, and it >sometimes hangs). I think NeXT should update and distribute the >old example still. > >WhatADrag was last in the 2.0 examples. If you can find an old >2.1 OD or CD, you should be able to drag it up from there. If not, >let me know and I probably still have it somewhere > >-- >Karl Kraft >Karl_Kraft@trapac.com >Karl_Kraft@ensuing.com >[My opinions are my own] I have gotten a number of private email responses to my query. Many thanks to John N. Alegre, Darcy BROCKBANK, Jeff Martin, Paul Kim, Scott Hess, Greg Mutzel, Todd Nathan, John Coppinger, and Roberto Arrocha. The example was indeed call WhatADrag. It does show one method of doing it, but as Karl says above, it is not very efficient. I have chose to rely instead on the undocumented postscript operator "fillwindow". Except for the fact that it is undocumented and thus could go away, this little puppy is great. The fillwindow operator will fill a *retained* and offscreen window with the bits starting at any level in the window heirarchy. Here is a wrap for it's use: defineps fillWindow(int place, otherWindow, windowNum) place otherWindow windowNum fillwindow endps If this looks a lot like an orderwindow, that is because it is very similar. The fillwindow will fill the window with bits exactly as if you ordered a nonautofill window at the same location in the window heirarchy. This works for getting bits that may be underneath some other window (something you can't get at with a the nonautofill scheme). I will leave it as an exercise to the reader to see how this can be used in conjunction with a cover window to animate moving a icon across the screen. BTW, I'm pretty sure that the Workspace uses the fillwindow operator to do its icon dragging. Disclaimer: This is an undocumented postscript call. Use it at your own risk! Bill Tschumy | Posting news to thousands of machines Otherwise | throughout the entire civilized world. bill@otherwise.com | Costing the net hundreds if not thousands (NeXTmail and MIME accepted) | of dollars to send everywhere.
From: stabl@informatik.uni-muenchen.de (Robert Stabl) Newsgroups: comp.sys.next.programmer Subject: Re: nextStep for SGis and Suns? please.... Date: 28 Jan 1995 10:25:00 GMT Organization: Institut fuer Informatik der Universitaet Muenchen Message-ID: <3gd61s$qhr@arcadia.informatik.uni-muenchen.de> References: <1995Jan25.114630.1280@client40.comlab.ox.ac.uk> <3g88ev$276@brachio.zrz.TU-Berlin.DE> koen1830@w250zrz.zrz.tu-berlin.de (Andreas Koenig) writes: >In article <1995Jan25.114630.1280@client40.comlab.ox.ac.uk>, >Kenneth Lomax <c92kl@comlab.ox.ac.uk> wrote: >>Hi. Could anyone please tell me where I could find a NextStep >>program for either the Suns or SGIndys? I need to work on these computers >>but would like the Next interface and its Project builder. Any help >>would be greatly appreciated. >A recent announcement of NeXT stated, they are now able to show >NeXTstep on a Sun, but this rather looked like a demo, not like a >working system. Oh, and how are the NIHS files on ftp.informatik.uni-muenchen.de created? Robert. -- Robert Stabl email: stabl@informatik.uni-muenchen.de Computer Science Institute stabl@source.asset.com University of Munich http://www.pst.informatik.uni-muenchen.de/~stabl/ Leopoldstr. 11B D-80802 Muenchen Tel: +(49) 89 2180 6316 Germany FAX: +(49) 89 2180 6310
Newsgroups: comp.sys.next.programmer From: pelletk@il.us.swissbank.com (Ken Pelletier) Subject: Re: nextStep for SGis and Suns? please.... Message-ID: <1995Jan26.202103.4210@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3g88ev$276@brachio.zrz.TU-Berlin.DE> Date: Thu, 26 Jan 1995 20:21:03 GMT Andreas Koenig writes > > In article <1995Jan25.114630.1280@client40.comlab.ox.ac.uk>, > Kenneth Lomax <c92kl@comlab.ox.ac.uk> wrote: > >Hi. Could anyone please tell me where I could find a NextStep > >program for either the Suns or SGIndys? I need to work on these computers > >but would like the Next interface and its Project builder. Any help > >would be greatly appreciated. > >Many thanks > >Ken > > > You're out of luck. Sun has announced it will release OpenStep this > year. The plans have been postponed several times. Just wait and see. As far as I know, there has been only one announced delay - have there been several other postponments? > > A recent announcement of NeXT stated, they are now able to show > NeXTstep on a Sun, but this rather looked like a demo, not like a > working system. > I've used NEXTSTEP on a SPARC recently, and it is certainly much farther along than what you infer from NeXT's announcement. Ken Pelletier -- NiKA Software | ken@nika.com Registered NEXTSTEP Consultant | NiKA Software | 1207 W. Newport Ave. | Chicago, IL 60657 |
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Thu, 26 Jan 95 16:10:14 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9501261510.AA02753@flexus> Subject: char*=void* vs. char*<void* Hi, Could anyone give me a good reason for ANSI to allow assignments between any two pointers of which at least one is of type void*, while not providing the same freedom with comparisons? Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think PS: What's all that about OG Simson?
Newsgroups: comp.sys.next.programmer From: burkhot@il.us.swissbank.com (Thomas Burkholder) Subject: Re: static variable in an instance method Message-ID: <1995Jan25.173133.18281@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3g5mqo$4i8@news.univ-rennes1.fr> Date: Wed, 25 Jan 1995 17:31:33 GMT Nicolas Cadilhac writes > Hello, > > just a little problem : I declare a static boolean variable inside an > instance method of an object. At run-time, several instances exist for > this object. The problem is, when one of the instances changes the static > variable, it's changed too for the other instances of the same class !! > How can I do to avoid this ?? You can't, that's what static means. It sounds like you should make this an ivar instead, if you want it to retain it's value from one method call to the next. +Thomas
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Solution to programmatically determining shlib versions Date: 27 Jan 1995 17:21:33 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3gba2t$roj@darkstar.UCSC.EDU> Several days ago, I posted asking how one might programmatically determine which version of shlibs are being used by the app. Thanks to all who responded suggesting host_kernel_version() as a way to determine the version of the kernel. While this is probably sufficient in most cases, there might be times when users have replaced certain shlibs with versions from other NS releases to avoid bugs, for example. host_kernel_version() wouldn't be able to detect this situation. Raf Schietekat, father of Otool.app and all around good guy, came to my rescue. He shared what he learned about low-level (to me, at least :-) details of shlibs while writing Otool. He wrote the following function that ferrets out the version info of particular shlibs. I admit that upon receiving this function, I had to read almost all the way to the end before I recognized anything, but "trust me" (or maybe you'd better test it yourself :-). Raf has permitted me to share this with anyone who might need its functionality. No guarantees, etc. All NS releases may not handle shlibs in the same way and there's certainly no assurance that this will work with future releases, but use if you need it now, here it is. Thanks, Raf, for your continued contribution to the NS world. #import <objc/objc.h> // BOOL #import <sys/param.h> // MAXPATHLEN #import <mach-o/loader.h> #import <mach-o/ldsyms.h> // Returns YES if information about the shared library, aShlibName (e.g., "sys" // for libsys_s.B.shlib) can be found. // If YES is returned, aShlibPath contains the file system path and // theMinorVersion, the minor version number, of aShlibName. static BOOL sharedLibraryVersion(const char *aShlibName, char *aShlibPath, unsigned long *theMinorVersion) { // todo: is the fvmlib string properly terminated? if not, // ``manually'' put a copy in a buffer first // var const struct mach_header *p_mach_header; const struct fvmlib_command *p_command; int i_command; // p_command also used to walk past general load_command's p_mach_header = &_mh_execute_header; for (p_command = (struct fvmlib_command *)(p_mach_header + 1), i_command = 0; i_command < p_mach_header->ncmds; ++i_command, p_command = (struct fvmlib_command *)((void *)p_command + p_command->cmdsize)) { // 14 is the length of "/usr/shlib/lib". if (LC_LOADFVMLIB == p_command->cmd && !strncmp(aShlibName, (char *)p_command + p_command->fvmlib.name.offset + 14, strlen(aShlibName))) { break; } } if (!(i_command < p_mach_header->ncmds)) { return NO; } // Don't use the other fields of this p_command just yet: they are // just requirements that are presumably checked when the executable // is loaded by execve(). We want the ones in the shlib itself. p_mach_header = (struct mach_header *)(p_command->fvmlib.header_addr); for (p_command = (struct fvmlib_command* )(p_mach_header + 1), i_command = 0; i_command < p_mach_header->ncmds; ++i_command, p_command = (struct fvmlib_command *)((void *)p_command + p_command->cmdsize)) { if (LC_IDFVMLIB == p_command->cmd) { break; } } if (!(i_command < p_mach_header->ncmds)) { return NO; } strcpy(aShlibPath, (char *)p_command + p_command->fvmlib.name.offset); *theMinorVersion = p_command->fvmlib.minor_version; return YES; } --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
Newsgroups: comp.sys.next.programmer From: tgugger@norden1.com (Tom Gugger) Subject: NEXTSTEP/CAREER POSITIONS Message-ID: <1995Jan27.164925.29901@norden1.com> Organization: Norden 1 Communications Date: Fri, 27 Jan 1995 16:49:25 GMT The EAGLE GROUP is currently representing five companies that specialize in the NEXTSTEP platform. These are career positions, with excellent opportunities, outstanding benefits, and relocation assistance. All positions require commercial experience. PLATFORM---------------------NEXTSTEP LANGUAGE---------------------OBJECTIVE C DESIRED----------------------SYBASE OR ORACLE DESIRED----------------------DB KIT OR EOF A PLUS-----------------------SMALLTLK ... * ATP/qwk 1.42 * The young know the rules, the old know the exceptions. -- tgugger@norden1.com (419) 882-7339 [fax] Eagle Group (419) 882-8006 [voice] PO Box 8167 Sylvania, Ohio 43560
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: static variable in an instance method Date: 25 Jan 1995 16:31:34 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95Jan25113134@marge.cs.mcgill.ca> References: <3g5mqo$4i8@news.univ-rennes1.fr> In-reply-to: cadilhac@arles.univ-rennes1.fr's message of 25 Jan 1995 14:22:16 GMT <cadilhac@arles.univ-rennes1.fr> writes: >Hello, >just a little problem : I declare a static boolean variable inside an >instance method of an object. At run-time, several instances exist for >this object. The problem is, when one of the instances changes the static >variable, it's changed too for the other instances of the same class !! >How can I do to avoid this ?? Make them instance variables. A static is a static is a static no matter where you put it. The 'where' only affects the scope. - db -- (prog (senseFood (prog (prog (senseFood move eat) eat (senseFood move eat)) rotRight eat) (prog move (prog (prog eat (senseFood move rotRight) eat) loop) rotRight)) (prog (senseFood (senseFood (prog (prog (senseFood move move) eat (senseFood move eat)) rotRight eat) (senseFood (prog (prog (senseFood move
Newsgroups: comp.sys.next.programmer From: chris@flowcube.stem.com (Christopher Smith) Subject: Looking for Mail.app API Message-ID: <1995Jan26.203246.26111@dec8.ncku.edu.tw> Sender: usenet@dec8.ncku.edu.tw (Usenet Manager) Organization: SyStemix, Inc. Date: Thu, 26 Jan 1995 20:32:46 GMT Greetings, I'm looking to add a feature to my app, similar to "Suggestions..." found in many applications (which brings up a compose window in Mail and plops some text in it). Soo... where can I find the Mail.app API? I am also interested in ways to send mail from within my app without bothering the user with using Mail.app. Any help would be greatly appreciated. Thanks, chris _______________________________/_______________________________ Christopher.Smith............./ .. _ .. __ . .. ____ Flow.Cytometry.Computer.Guy...\ \ /OO\ " " SyStemix,.Inc..................\ \________\^_/____/ 3155.Porter.Dr..415.813.6611....\ . _ / .. \__ Palo.Alto.CA..fax 415.856.7887...\ \/ 94304..chris@flowserver.stem.com..\ __________________________________/____________________________ (NeXTmail & MIME accepted) / (Spastic with Plastic)
From: btschumy@bga.com (Bill Tschumy) Newsgroups: comp.sys.next.programmer Subject: Re: Help Help Date: 26 Jan 1995 21:09:46 -0600 Organization: Otherwise Message-ID: <3g9o5q$7qs@edwin.bga.com> References: <3g8mop$82g@sator.eric.on.ca> Keywords: Help In article <3g8mop$82g@sator.eric.on.ca>, Vrijmoed Chi <vchi@visgen.com> wrote: >Hi, > >I am wondering if there is a way to separate the help file from the main >application. The situation is: I am writing some bundles with panels and >windows, I want to attach the help file to these bundles instead of putting it >back to the main application. > >It seems that the help system is only searching the Help.store in the main >bundle (the main application). Is there a way to enhance it? > >Thanks much in advance! Check out the addSupplement:inPath: method in NXHelpPanel. It is designed to add supplemental help pertaining to loadable bundles. Bill Tschumy | Posting news to thousands of machines Otherwise | throughout the entire civilized world. bill@otherwise.com | Costing the net hundreds if not thousands (NeXTmail and MIME accepted) | of dollars to send everywhere.
From: hcole@zia.nrcabq.com Newsgroups: comp.sys.next.programmer Subject: Installer post_install questions Date: 27 Jan 1995 02:57:42 GMT Organization: Engineering International Inc., Public Internet Access Distribution: world Message-ID: <3g9nf6$l6n@mack.rt66.com> Keywords: post_install,Installer I would like the post_install script to conditionally execute certain things depending on whether it is installing Intel, HP, or Motorola. How can I determine what type of architecture has been requested from this script? Thanks for any assistance. - HRC - ,,, (o o) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~oOO~~(_)~~OOo~~~ Howard Cole | Nichols Research Corp. | hcole@zia.nrcabq.com 2201 Buena Vista SE | Suite 203 | "Objects in calendar are Albuquerque, NM 87106 | closer than they appear" Voice: (505) 843-7364 | Fax: (505) 243-2653 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Newsgroups: comp.sys.next.programmer From: aw058@FreeNet.Carleton.CA (Deborah L. Chubey) Subject: ADPCM -- sound format Message-ID: <D32wHE.7z5@freenet.carleton.ca> Sender: aw058@freenet3.carleton.ca (Deborah L. Chubey) Organization: The National Capital FreeNet Date: Fri, 27 Jan 1995 19:22:26 GMT Does anybody know or know where to find specifications for the ADPCM (Acoustic Differential Pulse Code Modulation) formats? I would like to be able to convert other file formats to this one and play/record them off of my Rockwell-based voice modem. Or equally good, have functions that convert this data? Deb.
Newsgroups: comp.sys.next.programmer From: arthur@aivru.sheffield.ac.uk (Arthur Tetzlaff Deas) Subject: Q: C++ class libraries for NeXTSTEP/Intel Date: Fri, 27 Jan 1995 15:46:49 +0000 Message-ID: <9501271546.AA10115@aivru> Sender: usenet@demon.co.uk Hi Folks, Does anyone know of any C++ class libraries for use with NeXT GNU CC -- apart from libg++? I'm particularly interested in any libraries that have similar functionality to the Objective C kits or a subset thereof, but anything will do. Any information received will be posted as a summary at a later date. Thanks in advance Arthur =============================================================================== Arthur Tetzlaff Deas E-Mail: arthur@aivru.shef.ac.uk (preferred) a.h.tetzlaff-deas@sheffield.ac.uk (not read on a regular basis) -- No NeXT Mail please :( ============================================================================== A boring sig. but I'm working on it...
Newsgroups: comp.sys.next.programmer From: hsloong@srgcentre (Loong Ho Sang) Subject: OmniWeb? Message-ID: <D31w4G.3H5@hkuxb.hku.hk> Sender: usenet@hkuxb.hku.hk (USENET News System) Organization: The University of Hong Kong Date: Fri, 27 Jan 1995 06:17:03 GMT Can someone tell me where I can find the OmniWeb? - Loong Ho Sang, Anthony
Newsgroups: comp.sys.next.programmer Subject: Imaginary Math Message-ID: <1995Jan26.180217.39383@cc.usu.edu> From: mike@hobbs.chem.usu.edu (Michael Emmel) Date: 26 Jan 95 18:02:17 MDT Distribution: world I asked for this in the C news group and got no reply so I'll ask a slighly modified question here. Does any body know were ther is a free math libray that can handle inaginary numbers. And for this group a objective C class. Its the last thing I need to free me from the scrouge of fortran. I know this may not be the place but I'm desperate. Mike
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: Can objc_loadModules() be used to load .o files ? Date: 27 Jan 1995 17:15:37 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3gb9np$h26@solaris.cc.vt.edu> I am trying to use objc_loadModules() to load a single object file. Is this possible or would I just be better loading things from bundles? Thanks Jehu
From: bob@newton.uucp ("Robert L. Masterson") Newsgroups: comp.sys.next.programmer,comp.sys.next.advocacy,comp.sys.next.misc Subject: Re: Any NS Proj Mgmt, Metrics & Testing Products Available? Date: 27 Jan 1995 18:58:34 GMT Organization: Software Services and Solutions, Inc. Sender: rlm@sss.com (Robert L. Masterson) Distribution: world Message-ID: <3gbfoq$1rb@babyblue.cs.yale.edu> References: <3g3vbk$ko7@potogold.rmii.com> Summary: SS&S CASE Tools, CodeReviewer and DRCS, perform these functions Keywords: CASE, SS&S, metrics, multi-user, revisions, testing, development In article <3g3vbk$ko7@potogold.rmii.com> Garrett L. Rice writes: >Hello, > >I have a client who is looking for Project Management tools (revision >control, multi-user access, etc) for NEXTSTEP. She is also looking for >testing and metrics tools for her development project. Any suggestions? > >-- >Garrett L. Rice >OpenSource, Inc. >1776 Lincoln Street, Suite 1012, Denver, CO 80203 >800.TRY.OPEN (879.6736) OR 1.303.861.4411 >303.861.2393 FAX >garrett@opensource.com (NeXTmail) The SS&S CASE Tools software line includes the CodeReviewer software analysis and software quality maintenance tool and DRCS, the graphical revision management system for NEXTSTEP and Unix. CodeReviewer computes, graphs, and compares formal software metrics on source code, including Objective C, C++, C, and mixed code. DRCS provides a full graphical revision management system for all of the resources used in NEXTSTEP development, including nib files, binary files, and arbitrarily complex directory structures. Both products are provided under a floating license server, and they run under NEXTSTEP on HP PA-RISC, Intel, and NeXT systems, and will soon run on NEXTSTEP SPARC, as well. To request technical and marketing information on SS&S CASE Tools, SS&S ObjectWare, or any of our award-winning services or products please send email to CASE_Tools@sss.com, call (203) 630-2000 option 4, or fax to (203) 630-2020, or feel free to contact me directly at any of the addresses or numbers below: Robert L. Masterson, Vice President Software Services and Solutions, Inc. rlm@sss.com phone: (203) 630-2000 x780 fax: (203) 630-2020
From: cs@ecs.co.at (Christian Starkjohann) Newsgroups: comp.sys.next.bugs,comp.sys.next.programmer Subject: getpwnam et al don't work with posix Date: 28 Jan 1995 19:00:10 GMT Organization: EUnet EDV DienstleistungsgesmbH, Wien Distribution: world Message-ID: <3ge47q$9dk@c2.eunet.co.at> Originator: cs@servus Hello everyone, here is a short excerpt from pwd.h. The same nonsense is in grp.h. #ifdef _POSIX_SOURCE short pw_short_pad1; /* pad to preserve struct size */ uid_t pw_uid; short pw_short_pad2; /* pad to preserve struct size */ gid_t pw_gid; #else int pw_uid; int pw_gid; #endif /* _POSIX_SOURCE */ Noone at NeXT seems to have realized that there are two kinds of processors: big endian and little endian. The 486 happens to be a little endian machine, so the above code does not work. The posix termios-interface to the serial does also not work correctly, and there were reports in this group about other library functions that do not work correctly. How can NeXT claim to have posix-support? -- Christian Starkjohann <cs@ecs.co.at> or <cs@ds1.kph.tuwien.ac.at>
From: dennisg@news-srvr.CyberSAFE.COM (Dennis Glatting) Newsgroups: comp.sys.next.programmer Subject: Re: best c++ for nextstep Date: 25 Jan 1995 11:57:10 -0800 Organization: CyberSAFE Corporation, Redmond WA Message-ID: <3g6aem$r3e@kerby.ocsg.com> References: <1995Jan17.183816.11559@news.cs.indiana.edu> <3fhqk2$hke@hermes.dna.mci.com> In article <3fhqk2$hke@hermes.dna.mci.com>, Cliff Elam <celam@homebrew.cs.mci.com> wrote: >In article <1995Jan17.183816.11559@news.cs.indiana.edu> "benjamin bernhard" ><bbernhar@cs.indiana.edu> writes: >> >> Hello, >> >> I'm looking for the best, most complete, c++ implementation available >> for my black next machine. > >Well, best C++ always sounds like best car wreck to me: walking away alive is >success enough :-) Anyway, the gcc compiler that comes with your NEXT is a >good C++ compiler. There are lots of C++ libraries (including X stuff) >available from the big ftp sites. > The NeXT C++ compiler is an old, limiting version of G++, V 2.2.2. >> What limits do the best options have? > >It's a fat floating curve-ball folks, and Ruth has his feet set! Ahem. What >exactly do you mean by limitations? Dev tools? Gui support? > If CSet++ existed on the NeXT I would highly encourage you to take that path. Your best alternative is GNU 2.6.4 (available soon). Its limitations are: it doesn't support default template parameters; it doesn't support exceptions on most platforms (yet); it doesn't support RTTI (in progress); and you can't mix Objective-C and C++ code. I seem to recall an advertisement where cfront was ported to the NeXT. -dpg -- Dennis P. Glatting / CyberSAFE Corporation Network and Security Infrastructure Architect
From: celam@homebrew.cs.mci.com (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Re: Clickable Lines Date: 26 Jan 1995 00:48:16 GMT Organization: MCI Communications Distribution: world Message-ID: <3g6rgh$7hm@hermes.dna.mci.com> References: <3g548e$dbs@pheidippides.axion.bt.co.uk> In article <3g548e$dbs@pheidippides.axion.bt.co.uk> nigelc@drake.bt.co.uk(Nigel Champion) writes: > Has anybody made a graphical line object, that knows when it has been > clicked on ? > Use a box object (squeeze it down and stretch it out with IB) - it's a subclass of "View : Responder : Object" and you can catch a "mouse down" event. -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office (rare) Airedales and polar bears!
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: Where to put App Infos ? Date: 26 Jan 1995 13:52:34 GMT Organization: Total System Software Distribution: world Message-ID: <3g89f2$u0@tssnext.TotSysSoft.com> References: <3g1638$2v8@arcadia.informatik.uni-muenchen.de> In article <3g1638$2v8@arcadia.informatik.uni-muenchen.de> yoda@cis.uni-muenchen.de (Marc Guenther) writes: }~ In article <D2AG6y.Ar@shinto.nbg.sub.org> tomi@shinto.nbg.sub.org (Thomas }~ Engel) writes: }~ > For me the right way of storing app dependent data is: }~ > }~ > - Use dwrite/read defaults where single values are appropriate. }~ > - Take care of a MyApp/ directory in the ~/Library and LocalLibrary }~ > locations for data that the user should be able to control, extend or }~ > modify. }~ > - Use a ~/.AppInfo/MyApp/ folder where big binaries have to be stored }~ > that should not be visible. }~ }~ Well, thats exactly how it should be done, IMHO. And /LocalLibrary/Documentation/ or ~/Library/Documentation for any on-line docs that are not part of the Help system, depending on where the app is installed (/LocalApps or ~/Apps). BUT, don't ignore slightly more complex values in the dwrite/read defaults database such as those automatically stored for window locations by the FrameAutosave methods. Also, when a standard Global default CAN satisfy the app, it shouldn't write the same info with a different key under its own name to the defaults database. Finally, avoid grunging the defaults database with binary info. Do the extra needed to keep it as 7-bit printable ASCII as possible, escaping control characters and even NeXT Encoding accented values to octal or hex representations (\033 or \0x1B)... Somebody want to summarize and E-Mail this along to be included in an existing FAQ? Bruce
From: rain@mcl.ucsb.edu (John Wadleigh) Newsgroups: comp.sys.next.programmer Subject: COLOR BROWSER CELLS Date: 28 Jan 1995 21:31:08 GMT Organization: University of California, Santa Barbara Message-ID: <3ged2s$nl4@ucsbuxb.ucsb.edu> Keywords: browser Is there any way to set the color of browser cells inside the delegate methods?? Or a simpler way then was told to me before? I would like to simply use setTextColor but that only acts on a text object. So is there a way to get the text object from a cell?? Or is there a simple way so that I can just add it in my browser:loadCell:atRow:inColumn: method?? Thanks! John PLEASE HELP ME!!
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <bbum@friday.com> Message-ID: <199501282154.PAA00322@friday.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v116.1) From: Bill Bumgarner <bbum@friday.com> Date: Sat, 28 Jan 95 15:54:31 -0600 Subject: sendmail 8.6.9 & NeXTSTEP I was able to [almost] successfully build and install sendmail 8.6.9, but I'm sendmail is not recognizing any of the aliases that are in Netinfo. [yes, I compiled with the -DNIS flag] Has anyone successfully installed sendmail such that it uses Netinfo aliases? (and as an aside, has anyone written an app that allows one to intelligently manage/edit aliases?) thanks, b.bum
From: ernst@cs.tu-berlin.de (Ernst Kloecker) Newsgroups: comp.sys.next.programmer Subject: Re: char*=void* vs. char*<void* Date: 29 Jan 1995 10:37:09 GMT Organization: Technical University of Berlin, Germany Message-ID: <3gfr4l$ba1@news.cs.tu-berlin.de> References: <9501261510.AA02753@flexus> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: >Could anyone give me a good reason for ANSI to allow assignments between any >two pointers of which at least one is of type void*, while not providing the >same freedom with comparisons? I can only guess : If the compiler finds a pointer comparison it enters the pointer arithmetic part of itself and pointer arithmetic of pointers to unknown sizes (void*) is illegal. I cannot see a reason to forbid pointer comparison, though. -- ----------------------------------------------------------------------------- Ernst Kloecker phone: ++49-30-6181635 e-mail: ernst@cs.tu-berlin.de -----------------------------------------------------------------------------
From: Ben Garvey <garveyb@ucs.orst.edu> Newsgroups: comp.sys.next.programmer Subject: Help--NeXT printer for IBM Date: Fri, 27 Jan 1995 16:50:39 -0800 Organization: University Computing Services - Oregon State University Message-ID: <Pine.OSF.3.91.950127164702.6102G-100000@ucs.orst.edu> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I have an IBM compatible computer with a NeXT, SCSI interface, printer and I have run out of options on how to get it to accept a print job!!! It is recognized by the SCSI host adapter as a Canon BJC-820. The model number on my printer is N2004. HELP HELP HELP q Ben Garvey garveyb@ucs.orst.edu
Newsgroups: comp.sys.next.programmer From: anderson (Ken Anderson) Subject: Re: Color cells in Browser - HOW TO!? Message-ID: <1995Jan27.044459.25989@biztech.com> Sender: news@biztech.com Organization: Biztech, Inc. References: <3g6dsl$k0l@ucsbuxb.ucsb.edu> Date: Fri, 27 Jan 1995 04:44:59 GMT In article <3g6dsl$k0l@ucsbuxb.ucsb.edu> rain@beauty.ucsb.edu (John Wadleigh) writes: >I would like to set the color of the cells in my browser to >different colors. How do I go about that? I don't want to use >a color palette, just want to use the regular red, green, and blue >colors. > >These are the functions I know of: >(NXColor) NXConvertRGBtoColor(float,float,float); >NXSetColor:(NXColor)theColor > > >Do I use these? Please HELP! Thanks... > >P.S. - if you can, please add how to change the font as well? Unfortunately, NXBrowserCells do not have the capability of drawing in color...So, since we live in a wonderful object oriented world, subclass it! As a hint, you'll have to override these methods: -drawInside:(const NXRect *) cellFrame inView:controlView; -highlight:(const NXRect *)cellFrame inView:controlView lit:(BOOL)lit; You also have to consider these: 1) The standard highlighting scheme won't work (NeXT's compositing scheme only works in monochrome). Therefore, you'll have to devise a clever way to highlight the cell. 2) NeXT uses a tiff for the arrow icon in the browser cells. That means that while you drew the cell's background in blue, when you composite the tiff, it'll still have a gray background. My solution would be to draw a simpler arrow using PostScript. Good luck! Ken Anderson anderson@biztech.com
Newsgroups: comp.sys.next.programmer From: borrelli@ritz.mordor.com (Steve Borrelli) Subject: Looking for linker binary Organization: Mordor International BBS - Jersey City, NJ Date: Sat, 28 Jan 1995 22:21:01 GMT Message-ID: <D34zF1.MsJ@ritz.mordor.com> I've downloaded cc, as, gdb and libg++ from the ftp sites, but now the compiler is complaining that it needs ld. Does anyone know where I can get a binary (m68k) of the linker program and whatever else (otool, strip, etc. ) I would need to write simple c code? thanks! _steve -- Steven Borrelli borrelli@ritz.mordor.com NeXT, MIME mail formats, finger for PGP key, blah blah blah
From: tom@hukatronic.cz (Tomas Hurka) Newsgroups: comp.sys.next.programmer Subject: TableView with multi level headings Date: 29 Jan 1995 02:02:07 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9501290744.AA00260@hurka> Hi All, For the project I am working on I need {DB|NS}TableView with multi level headings. Does anybody know how to do it? Yesterday I tried to find out what was going inside DBTableView, but it looks like this is very complicated object with lots of undocumented object like BDGridView, DBHeadingView, DBLayout and so on. Thanks in advance for any suggestions, --- Tomas Hurka tom@hukatronic.cz NeXTMAIL OK
Newsgroups: comp.sys.next.programmer From: drew@fnbc.com (Drew Davidson) Subject: Re: Any NS Proj Mgmt, Metrics & Testing Products Available? Message-ID: <1995Jan25.190347.9221@fnbc.com> Sender: news@fnbc.com Organization: First National Bank Of Chicago, Chicago IL, USA References: <3g3vbk$ko7@potogold.rmii.com> Date: Wed, 25 Jan 95 19:03:47 GMT In article <3g3vbk$ko7@potogold.rmii.com> garrett@opensource.com (Garrett L. Rice) writes: > Hello, > > I have a client who is looking for Project Management tools (revision > control, multi-user access, etc) for NEXTSTEP. FNBC recently dropped TeamNet for DevMan from VNP Software. Although TeamNet's concepts were correct (versioned file system, Engineering Change Orders [for checkins], etc.) the product was far, far too buggy and slow for a modest-sized development team. Our switch to DevMan was relatively painless and quick. Dan Crimmins of VNP Software helped us through the rough spots (putting our source into DevMan), and their support is quick and extremely helpful. Also the price is incredibly reasonable compared to TeamNet (almost an order of magnitude different). You can contact VNP Software at info@vnp.com. Our build system, however is a custom job (written by me) based on GNU Make that handles the multi-user and large size aspects of most projects far better than ProjectBuilder. > She is also looking for testing and metrics tools for her development > project. Any suggestions? Sorry, I can't really help you there except for MallocDebug and gprof (provided by NeXT). > -- > Garrett L. Rice - Drew -- +--------------------------------+---------------------------------------+ | Drew Davidson | Drew: "Sorry to disturb you, Frank" | | First National Bank of Chicago | Frank: "That's ok, I was already | | drew@fnbc.com (NeXTmail, MIME) | disturbed." | +--------< All opinions expressed here are mine and mine alone >---------+
From: rueiwun@helium.gas.uug.arizona.edu (Ruei-wun Tu) Newsgroups: comp.sys.next.programmer Subject: [REPOST]:Problem with installing GNU Smalltalk-1.1.1??? Date: 29 Jan 1995 22:00:57 GMT Organization: University of Arizona, Unix Users Group Message-ID: <3gh36p$q9d@news.CCIT.Arizona.EDU> Hello, I try to build Smalltalk-1.1.1 for my Intel NeXT running NeXTStep 3.2. I followed the installation guide and kind of successfully building it (except a couple of warning messages). However, when I try to do "mst -V" to build all the funcations, I failed. The followings are the error message shown on my terminal. Hope someone in this group can help me to solve it. ==================================================================== Processing CFuncs.st "CFuncs.st", line 44: Bus Error Object class>>#isVariable Object class>>#variableSubclass:instanceVariableNames:classVariableNames:poolDictionaries:category: UndefinedObject>>#executeStatements UndefinedObject>>nil ==================================================================== Please E-mail me your suggestions. Thanks in advance!!! Rueiwun Tu rueiwun@gas.uug.arizona.edu
From: koen1830@w250zrz.zrz.tu-berlin.de (Andreas Koenig) Newsgroups: comp.sys.next.programmer Subject: Re: nextStep for SGis and Suns? please.... Date: 30 Jan 1995 11:41:30 GMT Organization: mal franz, mal anna Message-ID: <3gij9a$cqa@brachio.zrz.TU-Berlin.DE> References: <3g88ev$276@brachio.zrz.TU-Berlin.DE> <1995Jan26.202103.4210@il.us.swissbank.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Fcc: /u/k/Mailboxes/NNoutgoing.mbox/mbox Apparently-To: <koen1830@w203zrz.zrz.tu-berlin.de> In article <1995Jan26.202103.4210@il.us.swissbank.com>, Ken Pelletier <pelletk@il.us.swissbank.com> wrote: >Andreas Koenig writes >> Sun has announced it will release OpenStep this >> year. The plans have been postponed several times. Just wait and see. > >As far as I know, there has been only one announced delay - have there been >several other postponments? > Ok, I haven't been very precise. Browsing through my archive I could not find a single announcement that states a concrete date when OpenStep will be available. NeXT recently offered a job for a test suite designer (!). On Nov, 21st NeXT and SUNSOFT announced the amazing sentence: NeXT, SunSoft, Inc., Hewlett-Packard Company and Digital Equipment Corporation intend to ship OpenStep-compliant products in 1995. >I've used NEXTSTEP on a SPARC recently, and it is certainly much >farther along than what you infer from NeXT's announcement. I'm pleased to hear that, really. Where did you get it? Can I have a try, too? andreas
From: rbz@zeisler (Rodger B Zeisler) Newsgroups: comp.sys.next.programmer Subject: Re: OmniWeb? Date: 29 Jan 1995 23:12:59 GMT Organization: Texas Metronet, Inc 214/705-2901, login info Message-ID: <3gh7dr$r7p@feenix.metronet.com> References: <D31w4G.3H5@hkuxb.hku.hk> hsloong@srgcentre (Loong Ho Sang) wrote: >Can someone tell me where I can find the OmniWeb? http://www.omnigroup.com/ --- Rodger (NeXTMail Welcome!) ----------------------------------------------------------- Rodger B. Zeisler Internet rbz@eversoft.com Everest Software Corporation Work (214) 437-7636 4347 W. Northwest Hwy, #851 Fax (214) 437-7600 Dallas, TX 75220-3864 Home (214) 517-4884 -----------------------------------------------------------
Newsgroups: comp.sys.next.programmer From: brouwer@mickey.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: Re: Selection lists? Message-ID: <D37sA3.3rt@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany References: <1995Jan25.231003.1017@nugget.rmNUG.ORG> Date: Mon, 30 Jan 1995 10:39:38 GMT In <1995Jan25.231003.1017@nugget.rmNUG.ORG> dbhinz@znih.rmnug.org (David Hinz) writes: >In the User Interface Guidelines, chapter 1, Visual Guide, there is a section >on "Browswers and Selection Lists". What are "Selection Lists"? Are they >Browsers with just one column, the title turned off, and possibly no >horizontal scrollbar? Exactly. >Or are selection lists a customized ScrollView with a matrix of >cells inside? Is one better that the other? The One-Column-Browser = Selection List is better, because it proviedes a delegate mechanism and some of the necessary administration stuff. Basically it is the same mechanism i.e. a browser column is a Matrix of cells within a ScrollView. Bye, Klaus Brouwer.
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: Release vs Free in Object disposal? Message-ID: <D3EtFL.3u7@id.com> Sender: randy@id.com (Randy) Organization: Intrinsic Development Corporation, Inc. References: <D39yGz.5vF@news.cis.umn.edu> Date: Fri, 3 Feb 1995 05:47:44 GMT In article <D39yGz.5vF@news.cis.umn.edu> jalegre@hiv.med.umn.edu (John Alegre) writes: > However, if I have a simple case of allocating an object for the > scope of a local procedure, or even for limited use within the > method calls of a single object, is it ok to use free to dispose > of that object if I know for certain that I am finished with it > and it is not being used anywhere else? Nope, you should still use release. If you alloc/init an object and release it soon afterwards, that is the same as alloc/init followed by free in the old world. The free method isn't and won't be implemented in NSObject -- you need to use alloc/init, retain, release, and autorelease to do all of your memory management. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
Newsgroups: comp.sys.next.programmer From: kevins@bmd.com Subject: Re: OmniWeb? Message-ID: <1995Feb3.083946.3599@bMD.com> Sender: kevins@bMD.com (Kevin Solie) Organization: benchMark Developments, Inc. (314-872-2907) References: <3gh7dr$r7p@feenix.metronet.com> Date: Fri, 3 Feb 1995 08:39:46 GMT In article <3gh7dr$r7p@feenix.metronet.com> rbz@zeisler (Rodger B Zeisler) writes: > hsloong@srgcentre (Loong Ho Sang) wrote: > >Can someone tell me where I can find the OmniWeb? > > http://www.omnigroup.com/ > > --- > Rodger (NeXTMail Welcome!) > ----------------------------------------------------------- > Rodger B. Zeisler Internet rbz@eversoft.com > Everest Software Corporation Work (214) 437-7636 > 4347 W. Northwest Hwy, #851 Fax (214) 437-7600 > Dallas, TX 75220-3864 Home (214) 517-4884 > ----------------------------------------------------------- > chicken/egg --- Kevin Solie Director of Development: benchMark Developments, Inc. Software Engineer: Tapestry Computing
From: armes@tds.com (Jim Armes) Newsgroups: comp.sys.next.programmer Subject: Re: COLOR BROWSER CELLS Date: 3 Feb 1995 00:59:46 GMT Organization: Trident Data Systems Distribution: world Message-ID: <3grv62$pst@discovery.ectds.com> References: <3ged2s$nl4@ucsbuxb.ucsb.edu> In article <3ged2s$nl4@ucsbuxb.ucsb.edu> rain@mcl.ucsb.edu (John Wadleigh) writes: > Is there any way to set the color of browser cells inside the delegate > methods?? Or a simpler way then was told to me before? > > I would like to simply use setTextColor but that only acts on a text object. > So is there a way to get the text object from a cell?? Or is there a simple > way so that I can just add it in my browser:loadCell:atRow:inColumn: method?? > > Thanks! > John > > PLEASE HELP ME!! I'll check some old code, but I did a popuplist that changed color when you clicked on it. (don't ask :) Anyway, I seem to recall all I did was subclass the appropriate cell class and override drawSelf to composite in the color I wanted. You should be able to directly subclass nxbrowsercell Hope that helps, Jim -- #--------------------------------------------------------# # Jim Armes | I've got a Dentium and you do not # # Matrix-Man | nahh nahh nah nah nahhhh... # # <my opinions> | (Darn division errors... ;) # #Trident Data Systems| but IiiiiM a lumberjack and I'm ok# # armes@tds.com |I sleep all night & I work all day.#
From: Nader Nazari Newsgroups: comp.sys.next.programmer Subject: Help show picture in a resizeable window Date: 3 Feb 1995 13:00:50 GMT Organization: Chalmers University of Technology Message-ID: <3gt9e2$2qk@nyheter.chalmers.se> Summary: Help to show picture in a resizable window I have written a program for showing some pictures. It gets an event and reads the appropriate "gif" file and shows it as an image. I show each picture with a custom view on a panel. So far the panels are not RESIZEABLE. I want them to be, but two problems arise. First - How can I resize a panel such as it follows a certain format. The user are not allowed to resize only width or hight of the panel,but when she/he changes one the other must be changes too according to the picture's format. Two - I show a picture by creating an image object as follows - showPicture:(char *)fileName { NXPoint myPoint; [self lockFocus]; if(!image) image = [NXImage alloc]; [image initFromFile:fileName]; [image setName: fileName]; myPoint.x = NX_X(&frame) + 10.0; myPoint.y = NX_Y(&frame) + 10.0; [image composite: NX_COPY toPoint:&myPoint]; PS_show(); [self unlockFocus]; return self; } This method is defined in a class named < Picture (subclass of View) > < image> is an instanse variable in the subClass and I create a Picture object for each picture. If I use a resizeable panel and try to resize it, the picture disappears. I tried to show it again by calling the method from <windowDidResize> delegate method, but I did not succeed. How can I resize the picture when I resize the panel. Thanks Nader Nazari nazari@cs.chalmers.se
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 03 Feb 1995 12:35:13 GMT Organization: Eindhoven University of Technology, The Netherlands Distribution: world Message-ID: <TIGGR.95Feb3133513@cobra.es.ele.tue.nl> References: <3goh5f$k4h@arcadia.informatik.uni-muenchen.de> <3gq7jt$sde@lyra.csx.cam.ac.uk> In-reply-to: bm10009@cam.ac.uk's message of 2 Feb 1995 09:11:25 GMT In article <3gq7jt$sde@lyra.csx.cam.ac.uk> bm10009@cam.ac.uk (Ben Moseley) writes: If on the other hand you didn't allocate them yourself then you shouldn't release them (that's the FK policy). NOT. If you want to keep a pointer to an object, you retain the object. If you want to forget about it, you release it (probably in dealloc or some other go-away-you're-useless method). Objects returned by class methods (like `[NSString stringWithFormat: @"%d", 1]') are autoreleased; objects returned by alloc are implicitly retained once. --Tiggr
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 2 Feb 1995 21:19:44 GMT Organization: MCI Message-ID: <3gri9g$d1f@hermes.dna.mci.com> References: <3goh5f$k4h@arcadia.informatik.uni-muenchen.de> In article <3goh5f$k4h@arcadia.informatik.uni-muenchen.de>, Christian Leeden van der <leeden@informatik.uni-muenchen.de> wrote: >Hi, > >I have some problems using the foundation class objects. I built an >object >having NSObject as parent that contains several references to NSString >objects. >i.e. > >@interface myObject:NSObject >{ lastName *NSString; > firstName *NSString; > street *NSString; > ..... >} >.... > >Now I was wondering what would happen when I send my object a release >message (or a retain message or autorelease). I would like the >NSString objects that my object references (and is owner of and >therefore responsible for releasing) to be released, too when my >object gets a release message. My thinking was to implment a release >method in my object which sends a release message to each NSString >object and then a release message to super. But the documentation >states that overriding the release method should only be done in rare >cases (implementing your own reference-counting scheme) and should not >contain the call [super release]! > >The same thing goes for the retain message (shouldn't be overridden, >no [super retain] etc.). I have not found any examples yet for an >object derived from NSObject which would implement the memory >allocation/deallocation scheme! > > >Does anybody have an answer to this very basic question (examples would be >great!) > >Thanx > >Christian van der Leeden >----------------------------------------------------------------------- >leeden@informatik.uni-muenchen.de Christian: From what I understand, you're supposed to use the new method, dealloc. This snippet is from the PeopleDemo in the EOF subdirectory: - (void)dealloc { [DepartmentName autorelease]; [FacilityLocation autorelease]; [toEmployee autorelease]; [super dealloc]; } The idea is that the dealloc method is automatically invoked by the release method, which you do send. If this is grossly wrong, I would appreciate if someone can correct it. - Alex -
From: etienne@venus.univ-lr.fr (Etienne Gourdon) Newsgroups: comp.sys.next.programmer Subject: InformixAdaptor stripping problem Date: 3 Feb 1995 18:46:03 GMT Organization: Universite de La Rochelle Message-ID: <3gttlb$ga6@hp_univ.univ-lr.fr> Keywords: InformixAdaptor dbkit I m developping some NeXTSTEP applications with dbkit and InformixAdaptor. But, I ve just a little problem when I make the installation of my application with project builder. - On the installed application, when I make the first informix request, I ve the following message on a panel CANNOT LOAD adaptor: InformixAdaptor - I ve also, the following messages on the console : Jan 24 11:51:45 venus adresses[887]: Error loading /NextLibrary/Adaptors/InformixAdaptor.adaptor/InformixAdaptor Jan 24 11:51:45 venus adresses[887]: rld(): Undefined symbols: Jan 24 11:51:45 venus adresses[887]: When I try to lauch the application from a SHELL window, I ve the following messages on the SHELL window : Error loading /NextLibrary/Adaptors/InformixAdaptor.adaptor/InformixAdaptor rld(): Undefined symbols: __ctype_ _strchr _objc_msgSend _strlen _sprintf _memmove _DBReadObject _strcpy _strcmp _DBLocalizedStringForAdaptor _strncpy _objc_msgSendSuper _vm_page_size _NXCreateChildZone _environ _malloc _realloc _NXGetDefaultValue _strcat _NXUpdateDefaults _NXRegisterDefaults _getenv _NXUserName _NXSetDefault _syslog _NXCopyStringBufferFromZone _memset _DBLocalizedNibForAdaptor _NXApp _NXBeep _bcopy _vsprintf objc_class_name_List objc_class_name_DBEntity objc_class_name_DBAttribute objc_class_name_DBString objc_class_name_DBBasicAdaptor objc_class_name_DBBasicAdaptorContext objc_class_name_Protocol _free _NXCopyStringBuffer _NXWriteDefault _strrchr objc_class_name_OpenPanel objc_class_name_Panel _sscanf objc_class_name_DBExpressionList objc_class_name_Object objc_class_name_DBSQLExpression _errno _atof _ecvt _time _localtime _setpwent _getuid _getpwuid _endpwent _fclose _fopen _fread __filbuf _fseek _kill _access _read _write _perror _exit _pipe _close _vfork _dup __iob _fprintf _fflush __exit _execv _wait _open _creat _lseek _ftime _getservbyname _gethostbyname _bzero _socket _connect _getpwnam _fgetc _getdtablesize In fact, the problem concern the stripping of the application. The application works fine without stripping (strip command). Do you have any solution to solve this problem. Could you also inform us of the evolution on an InformixAdaptor on INTEL. Thanks for your information.
Newsgroups: comp.sys.next.programmer From: jmartin@Dallas.Bozell.com (Jeff Martin) Subject: Re: Looking for Mail.app API Message-ID: <1995Jan27.153958.26319@bozell.com> Sender: news@bozell.com Organization: Bozell, Jacobs, Kenyon & Eckhardt, Inc. References: <3g8r3n$9v9@iserver.stem.com> Date: Fri, 27 Jan 1995 15:39:58 GMT opinions expressed are strictly those of the user and not necessarily those of BJK&E or its clients. In article <3g8r3n$9v9@iserver.stem.com> chris@flowcube.stem.com (Christopher Smith) writes: > Greetings, > > I'm looking to add a feature to ... which brings up a compose window > in Mail and plops some text in it). > I am also interested in ways to send mail from within my app without > bothering the user with using Mail.app. These should work... ... jeff // This method brings up a compose window in Mail.app. - (BOOL)sendMailTo:(const char *)to subject(const char *)sub body:(const char *)body cc:(const char *)cc { id speaker= [[Speaker alloc] init]; port_t portmailSend = PORT_NULL; int win=0; // Deativate self and launch mail if not launched [NXApp deactivateSelf]; [[Application workspace] launchApplication:"Mail.app"]; portmailSend = NXPortFromName("MailSendDemo", 0); if(portmailSend==PORT_NULL) return nil; [speaker setSendPort:portmailSend]; [speaker selectorRPC:"openSend:" paramTypes:"I",&win]; [speaker selectorRPC:"setTo:inWindow:" paramTypes:"ci", to, win]; [speaker selectorRPC:"setSubject:inWindow:" paramTypes:"ci",sub,win]; [speaker selectorRPC:"setCc:inWindow:" paramTypes:"ci",cc,win]; [speaker selectorRPC:"setBody:inWindow:" paramTypes:"ci",body,win]; [speaker free]; port_deallocate(task_self(), portmailSend); return self; } // This method sends a simple ascii message using sendmail. - (BOOL)sendMailTo:(const char *)to subject(const char *)sub body:(const char *)body cc:(const char *)cc { FILE *sendmail; // Attempt to open conection to send mail if(sendmail = popen("/usr/lib/sendmail -t ", "w")) { // Write mail arguements to pipe fprintf(sendmail, "To: %s\n", to); fprintf(sendmail, "Subject: %s\n", subject); fprintf(sendmail, "%s\n", body); fprintf(sendmail, ".\n"); // Close connection and return success pclose(sendmail); return YES; } // Return failure return NO; }
Newsgroups: comp.sys.next.programmer From: ehutch@norden1.com (E. Hutchinson) Subject: NEXTSTEP/Obj C/PERM--ILL- Message-ID: <1995Feb3.213116.8546@norden1.com> Organization: Norden 1 Communications Date: Fri, 3 Feb 1995 21:31:16 GMT @SUBJECT:NEXTSTEP/Obj C/PERM--ILL-- N POSITION----------------------Developer SKILLS REQUIRED---------------NEXTSTEP Objective C DB KIT SYBASE OR ORACLE EXPERIENCE REQUIRED-----------Commercial TYPE OF POSITION--------------Career Position OPPORTUNITY-------------------Outstanding RELOCATION--------------------Company Paid LOCATION----------------------Greater Chicago Area TO BE CONSIDERED--------------Fax resume or mail a hard copy. ... * ATP/qwk 1.42 * Think carefully before wishing, it might just come true. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: box5888@bigwpi.WPI.EDU (CCC Help Desk, box5888) Newsgroups: comp.sys.next.programmer Subject: Re: OmniWeb? Followup-To: comp.sys.next.misc Date: 4 Feb 1995 16:15:26 GMT Organization: None Sender: papyrus@world.com Message-ID: <3h096u$e5e@bigboote.WPI.EDU> References: <3gh7dr$r7p@feenix.metronet.com> <1995Feb3.083946.3599@bMD.com> <SAMURAI.95Feb3212511@marge.cs.mcgill.ca> #include<std.disclaimer> #define "I speak only for myself" From the CHD samurai@marge.cs.mcgill.ca (Darcy BROCKBANK): ><kevins@bmd.com> writes: > >>In article <3gh7dr$r7p@feenix.metronet.com> rbz@zeisler (Rodger B Zeisler) >>writes: >>>hsloong@srgcentre (Loong Ho Sang) wrote: >>>>Can someone tell me where I can find the OmniWeb? >>> >>>http://www.omnigroup.com/ >>> >>> >>chicken/egg > >lynx/SpiderWoman ;-). > >- db Come on people!!! I hope this isn't a joke ... I mean, *If* you look hard enough at the problem ... it's really quite small! 1. How can I get this cool thing if I don't have it already??? -> you can! ... how are you posting here? 2. Most communications programs have a downloading capability ... -> Whoah ... wait!!!! Maybe I can get these darned new fangle things WITHOUT [omniweb lynx spiderwoman] ... Wow! Do some rtfm'n and use the dang CLI! Most connections sites have archie and ftp ... use those, then download the software onto your system, whether it is with zmodem, kermit --> Oh NO! Not uuencode and text capture! Yes, Kinda sarcastic, however, I find this: "Well, gee, I guess you can't" attitude pretty tiring. If you want to know how to use ftp, archie, or even how to download ... post a question, or better yet, read the newbie news groups. Yes, these WWW utilities are really really nice, but there are other ways to do things ... sometimes they are even more efficient. Follow Ups to comp.sys.next.misc, please. Flames > /dev/null BTW, find omniweb @ ftp.cs.orst.edu currently in /pub/next/software/submissions Joel Belog -- Box 5888, CCC Help Desk, Fuller Labs - B21, 831-5888, 8am to 5pm. sig truncated due to cutbacks.....
Newsgroups: comp.sys.next.programmer From: dbhinz@znih.rmnug.org (David Hinz) Subject: Q: How to print contents of text object Message-ID: <1995Feb4.062517.3527@nugget.rmNUG.ORG> Sender: dbhinz@nugget.rmNUG.ORG Organization: Rocky Mountain NeXT Users' Group Date: Sat, 4 Feb 1995 06:25:17 GMT I have the following code segment for printing data from a stream. The data is read into a text object and then I want to print the text object. The data that is read in is larger than the view area of the window and text object. How do I print all of the data that now resides in the text (view)? Is there a better way of printing data then having to go through the trouble of creating a window and a text object just to print? I want the user to be able to use the standard print panel (Save, Preview, Fax, Cancel, Print). This code works fine when the data set is small and fits inside the text object. Thanks, David Hinz - printData:sender { ... ... other code here ... ... // Create text window textWindow = [[Window alloc] initContent:&textRect style:NX_TITLEDSTYLE backing:NX_BUFFERED buttonMask:0 defer:YES]; // Get the frame size [textWindow getFrame:&textRect]; // Create the text object, same size as window. browserText = [[Text alloc] initFrame:&textRect]; [textWindow setContentView:browserText]; // Remove this when working!!!! [textWindow makeKeyAndOrderFront:nil]; [browserText setFont:[Font newFont:"Courier" size: 12.0 style:0 matrix:NX_FLIPPEDMATRIX]]; // Read the stream into the text object [browserText readText:listStream]; // May not be necessary. [browserText sizeToFit]; NXCloseMemory (listStream, NX_TRUNCATEBUFFER); // Print it! [browserText printPSCode:self]; ... ... other code here ... ... } -- {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} { } { David Hinz } { Hz Computing Technologies }
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: OmniWeb? Date: 04 Feb 1995 02:25:11 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95Feb3212511@marge.cs.mcgill.ca> References: <3gh7dr$r7p@feenix.metronet.com> <1995Feb3.083946.3599@bMD.com> In-reply-to: kevins@bmd.com's message of Fri, 3 Feb 1995 08:39:46 GMT <kevins@bmd.com> writes: >In article <3gh7dr$r7p@feenix.metronet.com> rbz@zeisler (Rodger B Zeisler) >writes: >>hsloong@srgcentre (Loong Ho Sang) wrote: >>>Can someone tell me where I can find the OmniWeb? >> >>http://www.omnigroup.com/ >> >> >chicken/egg lynx/SpiderWoman ;-). - db -- For he today that sheds his blood with me shall be my brother; be he ne'er so vile, this day shall gentle his condition. Gentlemen in England now abed shall think themselves accursed they were not here, and hold their manhoods cheap whiles any speaks that fought with us upon Saint Crispin's day.
Newsgroups: comp.sys.next.programmer From: borrelli@ritz.mordor.com (Steve Borrelli) Subject: Help! Need to compile C..... Organization: Mordor International BBS - Jersey City, NJ Date: Fri, 3 Feb 1995 03:52:02 GMT Message-ID: <D3Eo2r.7Fp@ritz.mordor.com> -----BEGIN PGP SIGNED MESSAGE----- help help help I need a simple C compiler for a black machine running 3.3 user. I've downloaded cc, as, libg++, and gdb off the net, but now my system is looking for ld. Where can I get a binary of it, and what else do I need to compile (like other libs) ? Thanks! _steve -----BEGIN PGP SIGNATURE----- Version: 2.6 iQCVAwUBLzGhzQuDQGTpBlSFAQGpcgP/eRtyIkyxQojZvnl8nZ2bzLWC6Lgaxs1c oyvJSSYUWHASRNmb95x8tc4pQsB49JzDK8DsIBDrXHcenOZM23z1dLmgLDIoSmW8 SCkxHcYVHLIGabx0ahSmiFDsPNDURhHTKtLgX9QhnzQkZ/5+qoFv6Lt7hpTWnaeK 7Zqq4ZwnAko= =ddDE -----END PGP SIGNATURE----- -- Steven Borrelli borrelli@ritz.mordor.com NeXT, MIME mail formats, finger for PGP key, blah blah blah
From: armes@tds.com (Jim Armes) Newsgroups: comp.sys.next.programmer Subject: Re: bug in mktime() ? Date: 4 Feb 1995 01:59:52 GMT Organization: Trident Data Systems Distribution: world Message-ID: <3gun2o$jf4@discovery.ectds.com> References: <3grd3m$fsv@transfer.stratus.com> Keywords: time after time In article <3grd3m$fsv@transfer.stratus.com> charlie@snowflake.az.stratus.com writes: > can anyone tell me why the following program prints "fails"? > > #import <time.h> > #import <stdio.h> > > main() { > struct tm t1, t2; > int i,j; > > /* t1 is 1995-01-31 12:28:58 mst */ > /* t2 is 1995-02-01 13:28:55 mst */ > i = mktime (&t1); > j = mktime (&t2); ^^^ um, it may have something to do with the fact that mktime generates time_t [unsigned long] instead of ints. Its probably doing a type coercion of some type and causing your problem. Jim -- #--------------------------------------------------------# # Jim Armes | I've got a Dentium and you do not # # Matrix-Man | nahh nahh nah nah nahhhh... # # <my opinions> | (Darn division errors... ;) # #Trident Data Systems| but IiiiiM a lumberjack and I'm ok# # armes@tds.com |I sleep all night & I work all day.#
Newsgroups: comp.sys.next.programmer From: karl@trapac.com (Karl Kraft) Subject: Re: bug in mktime() ? Message-ID: <D3FrwM.382@trapac.com> Organization: Trans Pacific Container Service Corporation References: <3grd3m$fsv@transfer.stratus.com> Date: Fri, 3 Feb 1995 18:12:21 GMT In article <3grd3m$fsv@transfer.stratus.com> charlie@snowflake.az.stratus.com writes: > Subject: NeXT bug with mktime()? Nope. 100% attributable to programmer error. > can someone tell me why the following program prints > "fails"? In short, you are filling the time structure with garbage. If you read the man page for mktime(), you would see that tm_year is the number of years since 1900. That will at least get you back into the right century, and stop the overflow. The next problem is that month is set to Feb 31st, a non-existant day. This overflows (as the manual documents), to be Mar 3rd. t1.tm_mon = 0; t2.tm_mon = 1; t1.tm_year = 95; t2.tm_year = 95; -- Karl Kraft Karl_Kraft@trapac.com Karl_Kraft@ensuing.com [My opinions are my own]
Newsgroups: comp.sys.next.programmer From: (Raul Alvarez) Subject: Re: Help show picture in a resizeable window Message-ID: <1995Feb3.142752.2896@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3gt9e2$2qk@nyheter.chalmers.se> Date: Fri, 3 Feb 1995 14:27:52 GMT Nader Nazari writes > First - How can I resize a panel such as it follows a certain format. The user are not > allowed to resize only width or hight of the panel,but when she/he changes one the other > must be changes too according to the picture's format. You can do this by implementing the windowWillResize delegate method: - windowWillResize:sender toSize:(NXSize *)frameSize FrameSize gives you the size the window wants to resize to; you can change it to whatever you want. > If I use a resizeable panel and try to resize it, the picture disappears. I tried to show > it again by calling the method from <windowDidResize> delegate method, but I did not > succeed. > How can I resize the picture when I resize the panel. You are probably better of overloading the drawSelf:(const NXRect *)rects :(int)rectCount method in View. It does several nice things. First, the view has already been lockFocused for you. Second, it gives you an array of rectangles, and a rectangle count; this way you only have composite the rectangles that have changed. Third, and most important, you are guaranteed that it will be called when a window or part of a window needs to be redisplayed.
From: ken@nika.com (Ken Pelletier) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 5 Feb 1995 01:59:48 GMT Organization: MCSNet Services Distribution: world Message-ID: <3h1bel$1e3@News1.mcs.com> References: <TIGGR.95Feb3133513@cobra.es.ele.tue.nl> In article <TIGGR.95Feb3133513@cobra.es.ele.tue.nl> tiggr@es.ele.tue.nl (Pieter Schoenmakers) writes: > In article <3gq7jt$sde@lyra.csx.cam.ac.uk> bm10009@cam.ac.uk (Ben Moseley) writes: > > If on the other hand you didn't allocate them yourself then you shouldn't > release them (that's the FK policy). > > NOT. If you want to keep a pointer to an object, you retain the object. If > you want to forget about it, you release it (probably in dealloc or some > other go-away-you're-useless method). Objects returned by class methods > (like `[NSString stringWithFormat: @"%d", 1]') are autoreleased; objects > returned by alloc are implicitly retained once. --Tiggr Just a minor point of clarification: Ben's correct in saying that you shouldn't _release_ objects you didn't allocate. If you're simply keeping a reference to an object, retain it and autorelease (not _release_) it when you're through with it. - Ken -- Ken Pelletier (ken@nika.com) NiKA Software 1207 W. Newport Ave. Chicago, IL 60657
From: armes@tds.com (Jim Armes) Newsgroups: comp.sys.next.programmer Subject: Re: bug in mktime() ? Date: 4 Feb 1995 02:01:07 GMT Organization: Trident Data Systems Distribution: world Message-ID: <3gun53$jgj@discovery.ectds.com> References: <3grd3m$fsv@transfer.stratus.com> Keywords: time after time In article <3grd3m$fsv@transfer.stratus.com> charlie@snowflake.az.stratus.com writes: > can anyone tell me why the following program prints "fails"? > main() { > struct tm t1, t2; > int i,j; > > /* t1 is 1995-01-31 12:28:58 mst */ > /* t2 is 1995-02-01 13:28:55 mst */ > i = mktime (&t1); > j = mktime (&t2); ^^^ um, it may have something to do with the fact that mktime generates time_t [unsigned long] instead of ints. Its probably doing a type coercion of some type and causing your problem. Jim -- #--------------------------------------------------------# # Jim Armes | I've got a Dentium and you do not # # Matrix-Man | nahh nahh nah nah nahhhh... # # <my opinions> | (Darn division errors... ;) # #Trident Data Systems| but IiiiiM a lumberjack and I'm ok# # armes@tds.com |I sleep all night & I work all day.#
From: night@b65215.student.cwru.edu (John L. Millard) Newsgroups: comp.sys.next.programmer Subject: Npd? Date: 5 Feb 1995 03:56:17 GMT Organization: Case Western Reserve University, Cleveland, Ohio (USA) Message-ID: <3h1i91$ghj@usenet.INS.CWRU.Edu> Hello all -- Just one quick question -- Since I don't have any printers running, networked or directly linked through the port, to my NeXTstation, is it at all necessary to have npd and lpd running? This is probably a self-evident question, but I thought I would just check quickly with you guys before I go killing things. :) Thanks in advance for any tips! :) -- John ____________________________________________________________ | John L. Millard | You can live only once, but 4th Year Computer Engineering | if you do it right, once is Case Western Reserve Univ. | enough. night@b65215.student.cwru.edu | jlm13@po.cwru.edu | -- Unknown ______________________________|_____________________________ "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining." -- Jeff Raskin, interviewed in Doctor Dobb's Journal ____________________________________________________________
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <@mail.uunet.ca,@beltrix:mark@oa.guild.org> Message-ID: <m0rax3i-000alXC@oa.guild.org> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Mark Onyschuk <mark@oa.guild.org> Date: Sat, 4 Feb 1995 21:50:41 -0500 Subject: FOUND: shared memory, semaphores library for NEXTSTEP Thanks to the numerous folks who pointed out the manufacturer of this product: ---8<---cut here---8<--- R&A SHIPS Triple-fat SysVIPC V3.4 SHARED MEMORY & SEMPAHORE EMULATION FOR NEXTSTEP FREE UPGRADE FOR EXISTING CUSTOMERS *) ... SysVIPC offers NEXTSTEP programmers the possibility to use Unix System V style shared memory and semaphores in their code, thus enhancing portability on one side and easier porting of existing applications that use the Unix System V shared memory and semaphore API. ... The following library calls are supported: semctl, semget, semop, shmctl, shmget, shmat, shmdt, ftok The following programs are included: ipcs, ipcrm The software license allows copies of the executables of icps and icprm to be shipped with your product. ... Contact R&A Goudreinetstraat 582 2564 PX Den Haag The Netherlands Fax/answering: +31 70 3230851 Email: info@rna.nl We prefer e-mail. NeXTmail welcome. ---8<---cut here---8<--- Best regards, Mark --- M. Onyschuk and Associates Inc. 389 Leslie St. Toronto Canada, M4M 3E3 NEXTSTEP SOFTWARE DEVELOPMENT phone +1.416.462.3954
From: "Sean M. Willson" <premise@pluto.eecs.umich.edu> Newsgroups: comp.sys.next.programmer Subject: HTML Version of OpenStep Specification Date: 5 Feb 1995 00:01:58 GMT Organization: University of Michigan Engineering, Ann Arbor Message-ID: <3h14hm$mrk@srvr1.engin.umich.edu> Attached is a WWW URL of a HTML version of the OpenStep Specification I have been working on. It is in halfway presentable form now. It has a few imagemaps and I am working on adding a search on form. Due to the fact that I am a full time student working on programming under NeXTStep as well as classes, I don't have alot of time. This is something I threw (worked on for a while) together for refrence and thought others would enjoyit. Thanks for the bandwith.....If you have any comments just send them through my page, THANKS...... http://www.engin.umich.edu/~premise/ (MY HOME PAGE) Just goto the page on NeXTStep and look at item 13 of the first listing. Sean Willson _________________________________________________________________________ | Sean M. Willson "Chance favors a prepaired mind.." | | University of Michigan College of Engineering | | ASCII: premise@umich.edu NeXTMail: premise@pluto.eecs.umich.edu | | http://www.engin.umich.edu/~premise/ WWW Page (NeXT Stuff) | | NeXT Programmer (Artist) in training! | |_______________________________________________________________________|
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: ADPCM -- sound format Date: Fri, 3 Feb 1995 15:32:22 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950203153222.643AACUK.malc@daneel> References: <D32wHE.7z5@freenet.carleton.ca> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII >Does anybody know or know where to find specifications for the ADPCM > (Acoustic Differential Pulse Code Modulation) formats? I would like to >be able to convert other file formats to this one and play/record them off >of my Rockwell-based voice modem. > > Or equally good, have functions that convert this data? > I think you want the later! ;-) One place to ftp this source code from is ftp://ftp.cwi.nl/pub/audio/ccitt-adpcm.tar.Z. Eventually I might get round to wrapping this up under a Sound Object, but for now I have a set of files I've amended for NEXTSTEP SND files -- mail me if you want a copy. Have fun, mmalc.
Newsgroups: comp.sys.next.programmer Subject: NeXT Libraries in 3.2 Message-ID: <1995Feb3.153754.40463@cc.usu.edu> From: mike@hobbs.chem.usu.edu (Michael Emmel) Date: 3 Feb 95 15:37:54 MDT Distribution: world I have NeXTStep Developer 3.2 at home and 2.1 at work it seems that there has been quit a few changes. To get my string copying funtions to work I had to use some flags unfortunatly I lect my make file off the disk. My basic question is were in the online documents are the generic discriptions of the new header libraries which are now in ansi and bsd folders. Right now I'm just compiling C code but I have to do quite a bit of work to get things going. Thanks I feel like a dinasour NeXT has come a long way since 2.1. gee I guess KSR doesn't cut it anymore. Mike
From: alateras@iaccess.com.au (alateras@iaccess.com.au) Newsgroups: comp.sys.next.programmer Subject: Who distributes NEXT in Australia Date: 6 Feb 1995 10:14:27 GMT Organization: Control Message-ID: <3h4sq3$od0@sleipnir.iaccess.com.au> Can someone please tell me who distributes NEXt in Australia Regards Jim Alateras
Newsgroups: comp.sys.next.programmer From: lamb@eqt.ch (Alexander Lamb) Subject: New IB and DragDrop of Text in Scroll View ? Message-ID: <D3L7HH.7Kt@eunet.ch> Sender: usenet@eunet.ch Organization: EUnet AG, Switzerland Date: Mon, 6 Feb 1995 16:36:53 GMT I have looked everywhere for an answer but didn't find it... In the new IB (came with EOF v. 1.0) the Text object in a ScrollView will not "stick" to any window (although the little square showing that I am copying is there)... What is the workaround ? (until now I have managed by simply copying and pasting from other nibs that already have a Text in ScrollView object). Thanks, Alexander Lamb Expert Quantitative Trading Geneva / Switzerland
From: glen@wildpalm (Glen Birnie) Newsgroups: comp.sys.next.programmer Subject: Enterprise Objects with QuickBase Date: 6 Feb 1995 14:52:24 GMT Organization: Xexos Ltd, London Distribution: world Message-ID: <3h5d38$ssd@xexos.xexos.com> Does anyone know where I can find some demos/example databases for using the Enterprise Object Framework in conjunction with QuickBase? email: glen@xexos.com
Newsgroups: comp.sys.next.programmer From: cedman@princeton.edu (Carl Edman) Subject: Re: projectBuilder and emacs In-Reply-To: schaefr@i11s1.ira.uka.de's message of 2 Feb 1995 13:57:58 GMT To: schaefr@i11s1.ira.uka.de (Johannes Schaefer) Message-ID: <CEDMAN.95Feb5234538@freedom.princeton.edu> Originator: news@hedgehog.Princeton.EDU Sender: news@Princeton.EDU (USENET News System) Organization: Princeton University References: <3gqod6$3p3@nz12.rz.uni-karlsruhe.de> Date: Mon, 6 Feb 1995 04:45:37 GMT In article <3gqod6$3p3@nz12.rz.uni-karlsruhe.de> schaefr@i11s1.ira.uka.de (Johannes Schaefer) writes: Is it possible to insall emacs as the application to come up when clicking on ProjectBuilder's warning and error list? If yes, how? Sure. Just go to Info/Preferences and put Emacs into the Editor field. Or do I take it that you have had problems when you tried that ? Carl Edman cedman@princeton.edu
Newsgroups: comp.sys.next.programmer From: roshandel@fokus.gmd.de (Mehrdad Roshandel) Subject: CustomCell Message-ID: <1995Feb7.173444.16201@fokus.gmd.de> Sender: news@fokus.gmd.de (News system) Organization: GMD-Fokus Date: Tue, 7 Feb 1995 17:34:44 GMT Has anybody an example using CustomCell in scrolling Matrix or browser? I need to know how to manage and change the image in cutom cell (like in Mail.app for seen and unseen Mails). Thanks for any idea. ================================================================= Mehrdad Roshandel, GMD Fokus Hardenbergplatz 2 10623 Berlin Phone: +49 30 254 99 230 Germany FAX: +49 30 254 99 116 E-mail (X.400 preferred): roshandel@fokus.berlin.gmd.d400.de smtp: mrd@fokus.gmd.de (NeXT-mail wellcome ================================================================
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Lost keyboard events Date: 7 Feb 1995 16:18:15 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3h86g7$rj8@darkstar.UCSC.EDU> We seem to be experiencing lost keyboard events in our NS 3.2 application running on NEC PC's. It works fine on black hardware and Intel GX/Professional PC's. We run our own database login panel. When capturing the password in a TextField, I use the TextField's textDelegate in which I implement textDidGetKeys:isEmpty: to replace the entered character with a blank character to prevent the capture of passwords by copying and pasting. Database login usually fails because of a bad password. Typing very slowly usually results in a successful login. The machines on which this occurs are not busy when this happens. I'm at a loss to explain how this can happen. Has anyone seen this sort of problem before and if so, how did you deal with it? --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: michael@zeus (Michael Peacock) Newsgroups: comp.sys.next.programmer Subject: Re: Enterprise Objects with QuickBase Date: 7 Feb 1995 16:18:16 GMT Organization: Texas Metronet, Inc 214/705-2901, login info Message-ID: <3h86g8$7si@feenix.metronet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit glen@wildpalm (Glen Birnie) wrote: >Does anyone know where I can find some demos/example databases for using >the Enterprise Object Framework in conjunction with QuickBase? Have you looked at the PeopleDemo project in the QuickBase/Examples subdirectory? --- Michael S. Peacock Everest Software Corp. michael@eversoft.com Ph. 214-437-7631
Newsgroups: comp.sys.next.programmer From: pelletk@il.us.swissbank.com (Ken Pelletier) Subject: Re: A basic question about subclasses of NSObject Message-ID: <1995Feb6.164638.26095@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3h1bel$1e3@News1.mcs.com> Date: Mon, 6 Feb 1995 16:46:38 GMT Ken Pelletier writes > In article <TIGGR.95Feb3133513@cobra.es.ele.tue.nl> tiggr@es.ele.tue.nl (Pieter > Schoenmakers) writes: > > In article <3gq7jt$sde@lyra.csx.cam.ac.uk> bm10009@cam.ac.uk (Ben Moseley) > writes: > > > > If on the other hand you didn't allocate them yourself then you shouldn't > > release them (that's the FK policy). > > > > NOT. If you want to keep a pointer to an object, you retain the object. If > > you want to forget about it, you release it (probably in dealloc or some > > other go-away-you're-useless method). Objects returned by class methods > > (like `[NSString stringWithFormat: @"%d", 1]') are autoreleased; objects > > returned by alloc are implicitly retained once. --Tiggr > > Just a minor point of clarification: Ben's correct in saying that you > shouldn't _release_ objects you didn't allocate. If you're simply keeping a > reference to an object, retain it and autorelease (not _release_) it when > you're through with it. > [self awakeFromNap] !! I must have been gooned out-on Liquid Wrench when I wrote this. Using release when you're through with an object that you didn't alloc is quite appropriate, in fact should be preferred over autorelease if you can be certain you'll not reference it further. My apologies to Tiggr. -- Ken Pelletier NiKA Software | ken@nika.com Registered NEXTSTEP Consultant | pelletk@swissbank.com NiKA Software | 1207 W. Newport Ave. | Chicago, IL 60657 |
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer,comp.lang.objective-c Subject: Infrequently Asked Questions Followup-To: comp.sys.next.programmer Date: 07 Feb 1995 17:14:10 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Feb7181410@cobra.es.ele.tue.nl> Just for the fun of it, I've been writing down answers to frequently asked questions concerning Objective-C pos[t]ed on comp.sys.next.programmer and comp.lang.objective-c which, though frequently asked, do not belong in a FAQ, either because they (and the answers) go into too much detail or because the answer takes several kilobytes. I've dubbed it the `Infrequently Asked Questions' and it is available through URL `http://www.es.ele.tue.nl/tiggr/objc/iaq.html'. Comments are welcome. --Tiggr
Newsgroups: comp.sys.next.programmer Subject: Wanted: Prolog Message-ID: <1995Feb6.112947.8011@roper.uwyo.edu> From: ezimmerm@UWYO.EDU Date: 6 Feb 95 11:29:46 MST Distribution: world Organization: University of Wyoming, Laramie Salutations! I'm going to be doing some Prolog in one of my classes soon and would like to do it on my home Cube, so as not to have to stoop to one of the school's DOS machines. Where can I get Prolog for NeXT? If there isn't a Prolog interpreter for NeXT, what's a good version that I can compile? Thanks, Gene ezimmerm@uwyo.edu
Newsgroups: comp.sys.next.programmer From: rp9@unix.york.ac.uk (R Peppe) Subject: Avoiding wordwrap in TextFields - is it possible ? Message-ID: <1995Feb6.135640.29424@leeds.ac.uk> Date: Mon, 6 Feb 1995 13:56:40 +0000 (GMT) subject says it all, really. i have a text field of a particular length, and i would like to put as much text in it as possible, without performing word wrap. e.g. if i have a field containing a very short word followed by a very long word, (e.g. the string 'six supercalifragilisticexpialidociouses') the second word disappears, leaving only the first. how can i stop it doing this ? (horizontally scrolling text fields would be nice too...) thanks for any help, rog.
From: dickw@dino.eng.monash.edu.au (Richard West) Newsgroups: comp.sys.next.programmer Subject: Re: Who distributes NEXT in Australia Date: 7 Feb 1995 01:38:03 GMT Organization: Monash University Message-ID: <3h6itr$rqv@harbinger.cc.monash.edu.au> References: <3h4sq3$od0@sleipnir.iaccess.com.au> alateras@iaccess.com.au (alateras@iaccess.com.au) wrote: : Can someone please tell me who distributes NEXt in Australia : Regards : Jim Alateras A distributor of NS in Australia is : Idealogy Systems Office 5, 1st Floor 387-389 Springvale Rd Phone : (03) 547 0477 Springvale 3171 Fax : (03) 558 5035 Victoria EMail : idealogy@otto.bf.rmit.oz.au They also sell NS pre-installed on Intel, HP and SPARC (when NS is released for this). Contact Rob Coulson for further details. Richard West dickw@dino.eng.monash.edu.au (NeXTMail, MIME & ASCII accepted)
Newsgroups: comp.sys.next.programmer From: Paul_Lynch@plsys.com (Paul Lynch) Subject: DO onHost: with IP address? Message-ID: <1995Feb7.100109.17943@seer.demon.co.uk> Sender: news@seer.demon.co.uk Organization: P & L Systems Date: Tue, 7 Feb 1995 10:01:09 GMT Is it possible to execute a DO connect when you only have an IP address, and not a host name? It doesn't appear to be, and I'd hate to have to set up DNS on a small site just for this. Multilevel netinfo prevents the hostnames from being seen from all possible locations. Paul -- Paul Lynch (NeXTmail) paul@plsys.com Tel: (01494)671501 9 Stable Lane, Seer Green, Fax: (01494)680228 Bucks, HP9 2YT, UK
From: armes@tds.com (Jim Armes) Newsgroups: comp.sys.next.programmer Subject: Re: Text in a ScrollView Date: 5 Feb 1995 00:40:38 GMT Organization: Trident Data Systems Distribution: world Message-ID: <3h16q6$a3c@discovery.ectds.com> References: <3gr58l$3us@news.service.uci.edu> In article <3gr58l$3us@news.service.uci.edu> rmyers@dec5200.acs.uci.edu (Richard Myers) writes: > Specifically I have done: > > [myScroll setVertScrollerRequired:YES]; > [myScroll setDocView:myText]; > Check out the ScrollView and Clipview classes, Scrollview usually needs a Clipview that then has the docview inside it. So, you'd alloc init a clipview, attach your text to it, then set the scrollers docview to the clipview. -- #--------------------------------------------------------# # Jim Armes | I've got a Dentium and you do not # # Matrix-Man | nahh nahh nah nah nahhhh... # # <my opinions> | (Darn division errors... ;) # #Trident Data Systems| but IiiiiM a lumberjack and I'm ok# # armes@tds.com |I sleep all night & I work all day.#
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: COLOR BROWSER CELLS Date: 07 Feb 1995 19:54:33 GMT Organization: me organized? That's a joke! Distribution: world Message-ID: <ROBERT.95Feb7195433@steffi.dircon.co.uk> References: <3ged2s$nl4@ucsbuxb.ucsb.edu> <3grv62$pst@discovery.ectds.com> To: armes@tds.com (Jim Armes) In-reply-to: armes@tds.com's message of 3 Feb 1995 00:59:46 GMT <armes@tds.com> writes: >In article <3ged2s$nl4@ucsbuxb.ucsb.edu> rain@mcl.ucsb.edu (John Wadleigh) >writes: >>Is there any way to set the color of browser cells inside the delegate >>methods?? Or a simpler way then was told to me before? >> >>I would like to simply use setTextColor but that only acts on a text >object. >>So is there a way to get the text object from a cell?? Or is there a >simple >>way so that I can just add it in my browser:loadCell:atRow:inColumn: >method?? Why not just subclass NXBrowserCell implement setTextColor: and explicitly call that method which will simply set the textColor of the browsers textCell. ie. your subclass will retain state indicating what color is should be drawn in. Before each cell is drawn it will by default ask for the text attributes of the fieldEditor used to render the cell's contents. See setTextAttributes:anObject In here you would simply set the textObject to the cells textColor that you set before. >> >>Thanks! >>John >> >>PLEASE HELP ME!! >I'll check some old code, but I did a popuplist that changed color when >you clicked on it. This sounds totally disgusting. (don't ask :) Anyway, I seem to recall all I did was >subclass the appropriate cell class and override drawSelf to composite in >the color I wanted. You should be able to directly subclass nxbrowsercell Composite the color from where exactly? Oh and one other thing? Since when do you have to create yor own ClipView for stock standard ScrollViews? -- "Oh no, actually darling I don't have time for games." (PGP key: send email with Subject: request pgp key) (ASCII for text only messages)
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: ADPCM -- sound format Date: 07 Feb 1995 19:59:17 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Feb7195917@steffi.dircon.co.uk> References: <D32wHE.7z5@freenet.carleton.ca> <950203153222.643AACUK.malc@daneel> To: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> In-reply-to: mmalcolm Crawford's message of Fri, 3 Feb 1995 15:32:22 GMT <m.crawford@dcs.shef.ac.uk> writes: >>Does anybody know or know where to find specifications for the ADPCM >>(Acoustic Differential Pulse Code Modulation) formats? I would like to >>be able to convert other file formats to this one and play/record them off >>of my Rockwell-based voice modem. >> >>Or equally good, have functions that convert this data? >> >I think you want the later! ;-) >One place to ftp this source code from is > ftp://ftp.cwi.nl/pub/audio/ccitt-adpcm.tar.Z. >Eventually I might get round to wrapping this up under a Sound Object, but >for now I have a set of files I've amended for NEXTSTEP SND files -- mail me >if you want a copy. >Have fun, >mmalc. Unless your Rockwell-based voice modem is a Zyxel forget it. Zyxel are the only company to my knowledge that publish their voice format. Hence, in order to write translation software you need to know this. NOTE: I'm running vgetty on a SPARC and it works pretty well for this task. -- "Oh no, actually darling I don't have time for games." (PGP key: send email with Subject: request pgp key) (ASCII for text only messages)
Newsgroups: comp.sys.next.programmer From: pelletk@il.us.swissbank.com (Ken Pelletier) Subject: Re: CustomCell Message-ID: <1995Feb7.201318.8267@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <1995Feb7.173444.16201@fokus.gmd.de> Date: Tue, 7 Feb 1995 20:13:18 GMT Mehrdad Roshandel writes > Has anybody an example using CustomCell in scrolling Matrix or browser? > I need to know how to manage and change the image in cutom cell (like in > Mail.app for seen and unseen Mails). > Thanks for any idea. > > If you're using a browser, NXBrowserCell already allows you to set an image via the - setImage: method. A warning about NXBrowserCell's - setImage: - it frees the previously-set image, so you're expected to pass it a copy rather than a reference to a shared image. Since I typically have a handful of images which reflect some attribute of the items in a browser, and a large number of browser cells, this is a sorry situation. I got around this by creating a subclass of NXImage called StickyNXImage, whose -free method doesn't really free, and implements a -reallyFree method that does free when I need it to. I then use [StickyImage findImageNamed:"foo.tiff"] to get a shared image which NXBrowserCell won't free on me; no more copies being created as the user navigates the browser. If you're not using or subclassing NXBrowserCell, you can override -drawInside:inView: and do whatever drawing you need. /NextDeveloper/Examples/AppKit/ScrollDoodScroll/CustomCell.m should get you started with some ideas. -- Ken Pelletier NiKA Software | ken@nika.com Registered NEXTSTEP Consultant | pelletk@swissbank.com NiKA Software | 1207 W. Newport Ave. | Chicago, IL 60657 |
Newsgroups: comp.sys.next.programmer From: kfeec@westminster.ac.uk (Nisar Jalal) Subject: ---- Patents ----- Message-ID: <D3oqGM.LEC@westminster.ac.uk> Organization: University of Westminster Date: Wed, 8 Feb 1995 14:19:33 GMT An associate of mine is writing a book on intellectual property..copyrights, patents etc. Primarily for software developers who wish to protect their creative efforts. She is anxious to know developers throughout the world (especially Europe), and how they protect their achievements. Please reply to her address, clandy@freenet.columbus.oh.us Tell her you got the details from Nisar.
From: mueller@anke.imsd.uni-mainz.de Newsgroups: comp.sys.next.programmer Subject: Connectiong 2 windows graphically Date: 8 Feb 1995 10:10:43 GMT Organization: Johannes Gutenberg-Universitaet Mainz, Germany Message-ID: <3ha5b3$eji@bambi.zdv.Uni-Mainz.DE> Hallo, I have the following problem: I want to connect 2 windows in my application just like InterfaceBuilder does connect his instances graphically with their target instances/outlets. In particular, I want to click on a window in a special mouse mode (no problem to registrate this with a mouseDown-method), then draw a black frame around this window (or its title bar), and then - when the user drags to another window, draw the connection graphically by a black (arrow) line, and then, when the target window is selected by a MouseUp-event, draw a black frame around the target window (or its title bar) It would also be a solution if the black connection line between the two windows appears AFTER the target window has been selected. Any pointers to example (PS) code. ideas, ftp server are welcome (Do not worry: I am not trying to reprogram IB - the original one is good enough) Thanks in advance. Robert -- Robert Mueller Tel. 06131/17 20 22 Medizinische Informatik Fax. 06131/17 29 68 Institut fuer Medizinische Statistik und Dokumentation, Universitaetskliniken Mainz 55101 Mainz, Germany (email: mueller@anke.imsd.uni-mainz.de)
From: whs@harvardnet.com (Bill Southworth) Newsgroups: comp.sys.next.programmer Subject: Does ifconfig support alias option? Date: 8 Feb 1995 05:17:01 GMT Organization: UltraNet Communications, Inc. Message-ID: <3h9k4d$15a@remus.ultranet.com> Could someone running 3.3 check to see if the ifconfig command supports the alias option. There's a scheme that I just saw posted for making an http server respond for multiple domains that depends on this feature. We haven't upgraded to 3.3 yet so I don't have a way to check to see if this works. -- Bill Southworth whs@harvardnet.com
From: ivo@hasc.ca Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 6 Feb 1995 15:30:55 GMT Organization: Hutchison Avenue Software Distribution: world Message-ID: <3h5fbf$dcv@giuliani.gun.com> References: <3h1bel$1e3@News1.mcs.com> In article <3h1bel$1e3@News1.mcs.com> ken@nika.com (Ken Pelletier) writes: > Just a minor point of clarification: Ben's correct in saying that you > shouldn't _release_ objects you didn't allocate. If you're simply > keeping a reference to an object, retain it and autorelease (not > _release_) it when you're through with it. What? Why is that? The autorelease is just going call release anyway. -- ivo@hasc.ca
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 8 Feb 1995 17:02:10 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3hatei$k24@darkstar.UCSC.EDU> References: <3h5fbf$dcv@giuliani.gun.com> In article <3h5fbf$dcv@giuliani.gun.com> ivo@hasc.ca writes: > In article <3h1bel$1e3@News1.mcs.com> ken@nika.com (Ken Pelletier) writes: > > Just a minor point of clarification: Ben's correct in saying that you > > shouldn't _release_ objects you didn't allocate. If you're simply > > keeping a reference to an object, retain it and autorelease (not > > _release_) it when you're through with it. > > What? Why is that? The autorelease is just going call release anyway. > That's true, but your contract with Foundation's memory management system states that you should not blow away a retained object before the end of the current event loop. release will lead to an immediate dealloc if the retain count is 1 whereas autorelease will ensure that the object will live until the end of the current event loop. You may be able to get away with this if you are very familiar with the use of the object in question, but when this code is revisited by you or someone else, the existence of the object till the end of the event loop may be assumed. If so, messages to a dealloc'ed object will likely occur. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: arunc@ux1.cso.uiuc.edu (Arun Chandra) Newsgroups: comp.sys.next.programmer Subject: Compiling GDB 4.13 Date: 8 Feb 1995 18:16:45 GMT Organization: University of Illinois at Urbana Message-ID: <3hb1qd$eeh@vixen.cso.uiuc.edu> Hi, I'm trying to compile the gnu debugger, V4.13 on a NeXTStation, running NS3.1. I'm using the gcc compiler, version 2.6.3. The 'configure' command exits with: *** Gdb does not support host m68k-next-bsd questions: 1. Does anyone know why this is the case? 2. Are there any workarounds? 3. Is there a binary of gdb V4.13 available for NS 3.1? (I've tried compiling it, and it runs fine up to a point, then just stops, without completing the compile.) Thanks in advance, Arun Chandra arunc@ux1.cso.uiuc.edu -- Arun Chandra arunc@ux1.cso.uiuc.edu
From: mrothste@galaxy.csc.calpoly.edu (Mont Egan Rothstein) Newsgroups: comp.sys.next.programmer Subject: Subclassing NSString Date: 8 Feb 1995 10:30:42 -0800 Organization: Cal Poly, State University Message-ID: <3hb2ki$5i1@galaxy.csc.calpoly.edu> NNTP-Posting-User: mrothste It seems that subclassing NSString is not as straight forward as regular old obj-c subclassing. Could some kind soul please let me in on the trick or send me an example of how to do this? Thanks, -Mont
From: mrothste@galaxy.csc.calpoly.edu (Mont Egan Rothstein) Newsgroups: comp.sys.next.programmer Subject: EOTableView and sort order Date: 8 Feb 1995 10:33:32 -0800 Organization: Cal Poly, State University Message-ID: <3hb2ps$610@galaxy.csc.calpoly.edu> NNTP-Posting-User: mrothste EOModeler.app has a EOTableView that sorts on the left most column (i.e. the user can drag any column to the left and that becomes the column to sort on). Has anyone written an EOTableView that does this, and if so where can I get ahold of it? Thanks, -Mont
From: shim@grasp.insa-lyon.fr (Kwang-Bo Shim) Newsgroups: comp.sys.next.programmer Subject: HELP: how install Mac font for NeXT? Date: 8 Feb 1995 18:30:27 GMT Organization: C.I.S.M. Universite de Lyon 1 / INSA de Lyon Message-ID: <3hb2k3$a60@cismsun.univ-lyon1.fr> Bonjour!!! I've downloaded a McIntosh font "sonata.sit" from site (ftp.funet.fi), but could not install it sucessfully for my NeXT(040/NS3.2). Merci beaucoup for any info. K. SHIM --
Kwangbo SHIM LISPI, INSA de Lyon, Dept. Informatique 20, av A. Einstein 69621 VILLEURBANNE CEDEX, FRANCE Voice, Fax:(+33)77933688 Email: shim@grasp.insa-lyon.fr (NeXTMail!) #################################################################### #################################################################### From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 9 Feb 1995 16:45:19 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3hdgqv$cfh@darkstar.UCSC.EDU> References: <TIGGR.95Feb9111024@cobra.es.ele.tue.nl> In article <TIGGR.95Feb9111024@cobra.es.ele.tue.nl> tiggr@es.ele.tue.nl (Pieter Schoenmakers) writes: > In article <3hatei$k24@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) > writes: > > That's true, but your contract with Foundation's memory management > system states that you should not blow away a retained object before the > end of the current event loop. > > Where exactly is this stated? Probably nowhere, since it would make the > following code fragment illegal: `[[o retain] release]'. > "Illegal" is a little strong :-) The above is similar to, but not necessarily as strong as, [[o alloc] free]; i.e., why would you want to do this? The above merely increments then decrements the retain count burning a few cycles in the process. Darcy Brockbank stated "Anyway, I don't believe that this is sanctioned usage (ie. release as a forbidden method), else it wouldn't have made it into the API." Maybe I should have been a little more specific and said that "you should not blow away a retained object *that you didn't create* before the end of the current event loop". So you can release objects you've created, but you should autorelease all others. > If anybody wants to tell something to the object in question which I have > retained or allocated previously and in which I am no longer interested, I > do a release, period. If the other party wishes to talk to the object, it > should have retained it. > This seems to imply that autorelease should never be used. If you always release, then you'd better understand all pathways through your code so that you don't release prematurely. autorelease gives you the luxury of knowing that an object will be available during the current event loop without the need for testing all pathways through your code. Maybe I've misunderstood (VERY LIKELY :-) How do you, Pieter, determine when to use release vs. autorelease? --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: A basic question about subclasses of NSObject Message-ID: <1995Feb9.165032.26561@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <SAMURAI.95Feb8233313@marge.cs.mcgill.ca> Date: Thu, 9 Feb 1995 16:50:32 GMT Darcy BROCKBANK writes > <art@cubicsol.com> writes: > > That's true, but your contract with Foundation's memory management > >system states that you should not blow away a retained object before the > >end of the current event loop. release will lead to an immediate dealloc > >if the retain count is 1 whereas autorelease will ensure that the object > >will live until the end of the current event loop. > > > You may be able to get away with this if you are very familiar with > >the use of the object in question, but when this code is revisited by you > >or someone else, the existence of the object till the end of the event > >loop may be assumed. If so, messages to a dealloc'ed object will likely > >occur. > > Which could actually be a bug, and a hard one to find at that. I'm the > other way around, I never autorelease things. If someone gets some bogus > idea about using an object, then that's their bogus idea and they better > change it ;-). Anyway, I don't believe that this is sanctioned usage > (ie. release as a forbidden method), else it wouldn't have made it into > the API. > You are correct. The documentation is actually quite specific on this. The only time you really need to do an autorelease is when you might need to access the object again in your method scope. This is especially true when you are setting an ivar and releasing the old one and retaining the new one: - (void)setIvar:newIvar { [ivar autorelease]; ivar = [newIvar retain]; return; } The reason you autorelease the old one is because it is possible that (newIvar==ivar). In that case, if you were to -release ivar and you were the last one retaining it, it would immediately be -dealloc'ed. Then when you tried to access newIvar it would have already been freed. What this illustrates is that it is possible that you might need to access an object again after releasing it without realizing it. Caution is recommended when explicitly releasing an object. Make absolutely sure that there is no possibility that you will need to access it again. Beyond all of this, there is a large benefit to autoreleasing everything (except with the -dealooc method). All of the object/memory deallocation gets moved outside of the user event. This will potentially speed up the application's responsiveness. Instead of occuring while the user is waiting for their event to complete, it occurs afterwards during key think time. The only time to be careful when doing this is when a lot of objects are deallocated within the event or when dealloc's on certain objects are very costly. In either of those two situations, it is possible that the app won't give control to the user when they are expecting it. In any case, it is probably a good idea to read through NeXT's documentation on the retain/release policies a couple of times. It may be a little hard to completely grasp all of its implications the first time through. One other caveat to be aware of: don't expect that an object that has been given to you will be available throughout your scope (i.e. that it has been autoreleased). This is definitely not the case. It is very possible that an object will become invalid after you receive it but before you are done using it. This is especially true if you release the source of the object. A good rule of thumb is that if you have anything more than an immediate need for an object that is returned to you (i.e. to be used in the next message), then retain and autorelease it. That way, you can be absolutely sure that the object will stick around long enough. -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
From: ivor@cs.mcgill.ca (Ivo ROTHSCHILD) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 9 Feb 1995 17:39:54 GMT Organization: Hutchison Ave Software Distribution: world Message-ID: <3hdk1a$mbf@sifon.cc.mcgill.ca> References: <3h5fbf$dcv@giuliani.gun.com> <3hatei$k24@darkstar.UCSC.EDU> <TIGGR.95Feb9111024@cobra.es.ele.tue.nl> In article <TIGGR.95Feb9111024@cobra.es.ele.tue.nl> tiggr@es.ele.tue.nl (Pieter Schoenmakers) writes: >In article <3hatei$k24@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) >writes: > > That's true, but your contract with Foundation's memory management > system states that you should not blow away a retained object before the > end of the current event loop. > >Where exactly is this stated? Probably nowhere, since it would make the >following code fragment illegal: `[[o retain] release]'. Exactly. Judging from the confusion on all this, it looks like this wonderful invention (that's sarcasm, BTW) is just going to produce buggy and/or memory leaking code. Simple concept, somewhat confusing for people, pain-in-the-ass to use. > release will lead to an immediate dealloc if the retain count is 1 > whereas autorelease will ensure that the object will live until the end > of the current event loop. > >If anybody wants to tell something to the object in question which I have >retained or allocated previously and in which I am no longer interested, I >do a release, period. If the other party wishes to talk to the object, it >should have retained it. Yes, everyone retains/releases for themselves. You should only expect objects to live until the end of the current event loop if you call autorelease on an object that you have previously retained. Anyone else calling release or autorelease on the object, if they have also previously reatined it, will not affect you. Autorelease is just a delayed release - the reference count will not go to zero until the release is performed. All this only works however, if everyone only releases what they have rights to release. -ivo
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer Subject: Re: Where is the Next-In-Line magazine? Date: 9 Feb 1995 17:39:56 GMT Organization: MCI Message-ID: <3hdk1c$fjn@hermes.dna.mci.com> References: <3hblvq$mqe@cismsun.univ-lyon1.fr> In article <3hblvq$mqe@cismsun.univ-lyon1.fr>, Kwang-Bo Shim <shim@grasp.insa-lyon.fr> wrote: >Hello! > >Where can I find the Next-In-Line magazine? > >Merci d'avance! >K. SHIM > > >-- >#################################################################### >Kwangbo SHIM >LISPI, INSA de Lyon, Dept. Informatique >20, av A. Einstein >69621 VILLEURBANNE CEDEX, FRANCE >Voice, Fax:(+33)77933688 Email: shim@grasp.insa-lyon.fr (NeXTMail!) >#################################################################### Kwango: E-mail them at nil-info@nil.com. If that doesn't work, contact the editor at rob@bedazzled.com. Regards, - Alex -
Newsgroups: comp.sys.next.programmer From: freeband@netcom.com (Nick Porcaro) Subject: Mac fonts on NeXT Message-ID: <freebandD3pAx0.B2w@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 8 Feb 1995 21:41:24 GMT Check out a recent issue of Next-In-Line magazine, there is an article on this - Nick
From: mark@nextstep.dorm6.nctu.edu.tw (Lin Yi-chih) Newsgroups: comp.sys.next.programmer Subject: Build MiscKit error Date: 9 Feb 1995 20:10:02 GMT Organization: Dep. Computer Sci. & Information Eng., Chiao Tung Univ., Taiwan, R.O.C Message-ID: <3hdsqq$ir7@news.csie.nctu.edu.tw> I tried to build MiscKit in NS/FIP 3.3 but get the error message " header file 'wraps.h' not found " when building the MiscArrowButtonPalette.palette but I found that the wraps.h is in /sys, after I link it, then works Why PB can not handle it? Mark
From: speters@samsun.us.oracle.com (Stephen Peters) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 10 Feb 1995 05:59:43 GMT Organization: Oracle Corporation, Redwood City, CA, USA Distribution: world Message-ID: <SPETERS.95Feb9215944@samsun.us.oracle.com> References: <TIGGR.95Feb9111024@cobra.es.ele.tue.nl> <3hdgqv$cfh@darkstar.UCSC.EDU> In-reply-to: art@cubicsol.com's message of 9 Feb 1995 16:45:19 GMT In article <3hdgqv$cfh@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: >> If anybody wants to tell something to the object in question which I >> have retained or allocated previously and in which I am no longer >> interested, I do a release, period. If the other party wishes to >> talk to the object, it should have retained it. > This seems to imply that autorelease should never be used. If you > always release, then you'd better understand all pathways through your > code so that you don't release prematurely. autorelease gives you the > luxury of knowing that an object will be available during the current > event loop without the need for testing all pathways through your code. > > Maybe I've misunderstood (VERY LIKELY :-) How do you, Pieter, > determine when to use release vs. autorelease? Well, here's how I understand it -- I'm sure I'll be corrected if I'm steering people in the wrong direction. * If I'm returning an object to a calling procedure, whether I've retain'd it or alloc'ed it, and I don't want that object anymore, I should perform an autorelease on it before returning. If I haven't retain'd or alloc'ed it, then I can pass it through unmassaged. * All other times, use release. Just be careful that every release (or autorelease) of an object has either an alloc or a retain associated with that same object. * If you want an object to stick around for later invocations, either retain it or alloc it. If you use the above contract, you shouldn't need to worry about keeping the object around until the end of the event loop when you release it -- everyone who still wants the object after the moment you call release will have already retained it. Stephen Peters
From: armes@tds.com (Jim Armes) Newsgroups: comp.sys.next.programmer,comp.sys.next.bugs Subject: Next FK with hybrid palettes Date: 8 Feb 1995 07:13:41 GMT Organization: Trident Data Systems Distribution: world Message-ID: <3h9qv5$q3a@discovery.ectds.com> Folks, I've been moving some palette objects based off standard appkit objects (textfield, textfieldcell, switch, etc) from a palette I developed under 3.2 to an EOF based palette. I'm having trouble because it looks like the getInspectorClassName method doesn't seem to return what it used to for all of the appkit objects. I used the return of the superclass to determine what inspector to bring up for subclasses of regular appkit objects so I don't have to re-do next's inspectors. But this method seems to always return null now, no matter what object I call. This wouldn't be so bad (I could make a single inspector for the classes, I guess) except that this problem seems also to occur for the other inspector types ( getEditorClassName, getSizeInspectorClassName, etc.) This means that I can't edit my subclass's instances in IB unless I either make an editor (yeah right) or figure out how to get the information. The really weird thing is that the old palette (without FK objects) loads and 'inspects' correctly in the new IB. When I try to return the correct inspector name (inside IB's wrapper) IB can't find the inspector. Am I missing something obvious here ? Jim -- #--------------------------------------------------------# # Jim Armes | I've got a Dentium and you do not # # Matrix-Man | nahh nahh nah nah nahhhh... # # <my opinions> | (Darn division errors... ;) # #Trident Data Systems| but IiiiiM a lumberjack and I'm ok# # armes@tds.com |I sleep all night & I work all day.#
From: Wesley C. Smith <wes@take3.com> Newsgroups: comp.sys.next.programmer Subject: Re: Looking for Mail.app API Date: Thu, 9 Feb 1995 22:02:55 GMT Organization: Take 3 Message-ID: <950209170255.1073AAABE.wes@sherlock.take3.com> References: <3g8r3n$9v9@iserver.stem.com> <1995Jan27.153958.26319@bozell.com> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII >// This method brings up a compose window in Mail.app. It won't if someone has Eloquent 2.0 running. > [[Application workspace] launchApplication:"Mail.app"]; > portmailSend = NXPortFromName("MailSendDemo", 0); > if(portmailSend==PORT_NULL) return nil; It would be best to check if the MailSendDemo port exists before starting up Mail.app. Other programs (like Eloquent) support the MailSendDemo API and might have already grabbed the port preventing Mail.app from responding to the API. Better yet would be to have a preference for which program to launch if the MailSendDemo port is not in use. Something like: portmailSend = NXPortFromName("MailSendDemo", 0); if(portmailSend==PORT_NULL) { [[Application workspace] launchApplication:MAIL_PROGRAM]; portmailSend = NXPortFromName("MailSendDemo", 0); if(portmailSend==PORT_NULL) return nil; } Wesley C. Smith wes@take3.com NeXT, MIME, ASCII, SUN, Microsoft Take 3 (616) 228-6556 phone P.O. Box 40 (616) 929-3336 fax Cedar, MI 49621-0040
Date: 9 Feb 1995 22:29:01 GMT From: ccapc@cyber.sell.com (Consumer Credit Advocates) Newsgroups: comp.sys.next.programmer Sender: ccapc@panix.com Message-ID: <cancel2.3hcppg$inq@panix.com> Control: cancel <3hcppg$inq@panix.com> Subject: cmsg cancel <3hcppg$inq@panix.com> Spam cancelled by news@bnr.ca
From: ivor@cs.mcgill.ca (Ivo ROTHSCHILD) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 9 Feb 1995 22:48:46 GMT Organization: Hutch Ave Soft Corp. Distribution: world Message-ID: <3he64e$5s1@sifon.cc.mcgill.ca> References: <TIGGR.95Feb9111024@cobra.es.ele.tue.nl> <3hdgqv$cfh@darkstar.UCSC.EDU> In article <3hdgqv$cfh@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: > This seems to imply that autorelease should never be used. If you >always release, then you'd better understand all pathways through your >code so that you don't release prematurely. autorelease gives you the >luxury of knowing that an object will be available during the current >event loop without the need for testing all pathways through your code. > > Maybe I've misunderstood (VERY LIKELY :-) How do you, Pieter, >determine when to use release vs. autorelease? If you've retained an object (or created it with alloc/init), you can call release or autorelease - your choice. However, if you call release, you should not refer to the object again. With autorelease, you can still refer to the object until the AutoreleasePool is destroyed. Autorelease is commonly used when an object has no use for a referenced object anymore (ie. it wants to release it) but it also wants to give that object to a third party (often returning it from a method call.) Thus release is no good because it will have to reference the object after the release call. -ivo
Organization: University of Illinois at Chicago, ADN Computer Center Date: Thu, 9 Feb 1995 14:36:28 CST From: Manish Shah <U53516@uicvm.uic.edu> Message-ID: <95040.143628U53516@uicvm.uic.edu> Newsgroups: comp.sys.next.programmer Subject: .MOD player for Intel-NeXT Hello everyone, I was wondering if anyone knew where I could get a MOD player <for terminal or as a .App> for Intel-based NeXT-Step. I saw a MOD player for the 68000 based Ne XT, so I would think that an Intel NeXT version would exist. I'd appreciate it if someone could send me email about it because I dont check the newsgroups tha t often. Much appreciated. Manish... manish@babe.math.uic.edu
From: ckminer@longs.lance.colostate.edu Newsgroups: comp.sys.next.programmer Subject: EOF and speed Date: 9 Feb 1995 23:49:49 GMT Organization: Rocky Mountain Internet Inc. Distribution: world Message-ID: <3he9mt$h5l@potogold.rmii.com> Keywords: eof speed quickbase fetching I am experimenting with ways to increase the percieved performance of an EOF application. Here's what I have tried and the various result. I would appreciate any comments(constructive) which people can offer. - Disable snapshots in EODatabase and set the EODatabaseContext update strategy to EONoUpdate. This had no discernable effect on fetching speed performance. However I found that keepsSnapshots method of EODatabaseContext does not work as advertised. The documentation claims this method will report NO if the context locking strategy is EONoUpdate and the EODatabase for the context is configured with setKeepsSnapshots:NO. - Use two entities to represent my single underlying DB table. The master has few fields defined, but enough so a user can select the record of interest from a table view. When a selection is made, the detail entity for the selection is filled with info. This results in all fields being fetched for only one record. The problems with this approach are many: - only fetch, saveToObjects, saveToDataSource, and redisplay are forwarded to the detail controller. This requires handling for delete and insert - edits in the detail controller do not cause messaging to the master controllers delegate - setting the master and detail controller to use the same delegate requires the saveToObjects related methods to be handled twice. Once for the master, and a second time for the detail. - updates, inserts and deletes are problematic since the master entity and the detail entity really refer to the same underlying DB table. - Use two entities and two underlying tables. This seems to defeat the point of having an EOModel. Isn't the goal here to not bind the underlying tables to my application. Shouldn't I be able to grow my application (to be read business model) with out migrating my underlying tables? Chris
From: shess@subzero.winternet.com (Scott Hess) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 09 Feb 1995 23:50:02 GMT Organization: Is a sign of weakness Distribution: world Message-ID: <SHESS.95Feb9175002@subzero.winternet.com> References: <TIGGR.95Feb9111024@cobra.es.ele.tue.nl> <3hdgqv$cfh@darkstar.UCSC.EDU> In-reply-to: art@cubicsol.com's message of 9 Feb 1995 16:45:19 GMT In article <3hdgqv$cfh@darkstar.UCSC.EDU>, art@cubicsol.com (Art Isbell) writes: > This seems to imply that autorelease should never be used. >If you always release, then you'd better understand all pathways >through your code so that you don't release prematurely. autorelease >gives you the luxury of knowing that an object will be available >during the current event loop without the need for testing all >pathways through your code. _Please_ do not introduce the concept of "current event loop" into this! Too confusing. It's a "mere" implementation detail and if you rely on it, you _will_ get burned. You should only assume that objects passed into your method are viable, and that objects returned from method calls are viable. Instead, I use a much stronger criteria, that of the current method scope. You somehow have an object which you either allocated or retained, and you need to release it (which is another topic entirely). Do you use -release or -autorelease? Use -release if you don't plan to refer to the object again in this method (in -dealloc, for instance). Use -autorelease if you do plan to refer to the object again later in this method (as your return value, for instance). In order to enforce this way of thinking, I tend to code my calls to -release as: [myObject release]; myObject=nil; Now I#################################################################### Path: news.informatik.uni-muenchen.de!lrz-muenchen.de!fauern!zib-berlin.de!Germany.EU.net!wizard.pn.com!satisfied.elf.com!news.mathworks.com!news2.near.net!news.delphi.com!news2.delphi.com!not-for-mail From: ACI_INC@news.delphi.com (ACI_INC@DELPHI.COM) Newsgroups: comp.sys.next.programmer Subject: Need Documentation for Dis. Objects Date: 10 Feb 1995 14:13:01 -0500 Organization: Delphi Internet Services Corporation Lines: 10 Message-ID: <3hgdrt$4dt@news2.delphi.com> NNTP-Posting-Host: news2.delphi.com Hi, I am trying to find some more advanced documentation for Distributed Object programming than is shipped with 3.2 developer. Any pointewouldld be appreciated. Karlheinz
Newsgroups: comp.sys.next.programmer From: ccuilla@ccdd.com (Chris Cuilla) Subject: Re: A basic question about subclasses of NSObject Message-ID: <1995Feb10.201647.3754@ccdd.com> Sender: ccuilla@ccdd.com Organization: Chris Cuilla Design & Development References: <3hatei$k24@darkstar.UCSC.EDU> Date: Fri, 10 Feb 1995 20:16:47 GMT Art Isbell writes > In article <3h5fbf$dcv@giuliani.gun.com> ivo@hasc.ca writes: > > In article <3h1bel$1e3@News1.mcs.com> ken@nika.com (Ken Pelletier) > writes: > > > Just a minor point of clarification: Ben's correct in saying that you > > > shouldn't _release_ objects you didn't allocate. If you're simply > > > keeping a reference to an object, retain it and autorelease (not > > > _release_) it when you're through with it. > > > > What? Why is that? The autorelease is just going call release anyway. > > > That's true, but your contract with Foundation's memory management > system states that you should not blow away a retained object before the > end of the current event loop. release will lead to an immediate dealloc > if the retain count is 1 whereas autorelease will ensure that the object > will live until the end of the current event loop. I don't understand it that way. The way I get it is that "If you allocate, copy, or retain an object, you are responsible for releasing the newly created object with release or autorelease. Any other time you receive an object, you're not responsible for releasing it." > You may be able to get away with this if you are very familiar with > the use of the object in question, but when this code is revisited by you > or someone else, the existence of the object till the end of the event > loop may be assumed. If so, messages to a dealloc'ed object will likely > occur. The main difference between autorelease and release is WHEN the object receives it's release message (and possibly its dealloc message). Sometimes it is just fine to "release" as opposed to "autorelease". All that said, I tend to simply "autorelease" objects all over (except in dealloc). It has (generally) the same effect, albeit delayed, and then I just think about doing one thing (autorelease). -- Chris Cuilla Chris Cuilla Design & Development ccuilla@ccdd.com (NeXT mail accepted) -- Chris Cuilla Chris Cuilla Design & Development
From: oviedo@doc.cs.nyu.edu (Miguel Oviedo) Newsgroups: comp.sys.next.programmer Subject: objective-c++ code and PDO 2.0 Date: 7 Feb 1995 22:21:57 GMT Organization: Courant Institute of Mathematical Sciences Message-ID: <3h8rq5$ab9@thecourier.cims.nyu.edu> Problem: We are unable to use gcc to compile .M source files. The .M suffix tells the compiler to assume Objective C++ source code. We get an "internal compiler error" even in the simplest cases (even for a source file containing "main(){}"). I am inclined to believe that this part of PDO 2.0 is just plain broken. gcc -v produces 2.5.8 as the version number. (Using SunOS 4.x) Has any body succeded (or failed, or even tried?) using this feature? Your comments are appreciated. miguel (moviedo@sbi.com)
Newsgroups: comp.sys.next.programmer From: js@euler.hnv.icem.de(Juergen Sell) Subject: WM Inspector for files w/o suffix ? Message-ID: <D3p1qw.1HF@euler.hnv.icem.de> Sender: js@euler.hnv.icem.de (Juergen Sell) Organization: Ink Unknown Date: Wed, 8 Feb 1995 18:23:19 GMT I would like to write a workspace Inspector Bundle to have a contents inspector for files with no extension at all, like /usr/spool/uucp/Stats, Makefile etc. The docs clearly mention : The bundle.registry File [...] extension The file extension to be associated with this inspector. (Don't include the . in the extension.) You can only list one extension for each inspector module; wildcard characters aren't permitted. Leaving this empty a la {type=InspectorCommand; mode=contents; extension=; selp=selectionOneOnly; class=MyInspector} ^~~~ does not compile. Can it be done? Juergen --- Fon ++49-511-440688 NeXTMail welcome Fax ++49-511-440617 == What time do we live in when spontaneity and freedom get associated with instant coffee, == when a politician's idea of social change is changing names?
From: mrothste@galaxy.csc.calpoly.edu (Mont Egan Rothstein) Newsgroups: comp.sys.next.programmer Subject: Re: Subclassing NSString Date: 10 Feb 1995 10:49:38 -0800 Organization: Cal Poly, State University Message-ID: <3hgcg2$9vt@galaxy.csc.calpoly.edu> References: <3hb2ki$5i1@galaxy.csc.calpoly.edu> NNTP-Posting-User: mrothste In article <3hb2ki$5i1@galaxy.csc.calpoly.edu>, Mont Egan Rothstein <mrothste@galaxy.csc.calpoly.edu> wrote: >It seems that subclassing NSString is not as straight forward as regular >old obj-c subclassing. Could some kind soul please let me in on the trick >or send me an example of how to do this? > >Thanks, >-Mont > It seems I missed the section in the FoundationKitIntro that deals with this (teaches me notuse the OpenStep spec for a refrence). FoundationKit introduces a new beast called a Class Cluster (or Cluster *!@%, as we affectionately call it :). Clustering a group of classes creates an abstract class. The Intro makes it very clear that this is a trade off between ease of use and complexity of subclassing. Sorry for wasting bandwidth. -Mont
Newsgroups: comp.sys.next.programmer From: ehutch@norden1.com (E. Hutchinson) Subject: NEXTSTEP Career Positions Message-ID: <1995Feb10.165837.16131@norden1.com> Organization: Norden 1 Co#################################################################### From: soward@pop.uky.edu (John Soward) Newsgroups: comp.sys.next.programmer Subject: Re: bug in mktime() ? Date: 10 Feb 1995 15:33:42 GMT Organization: University of Kentucky Computing Services Message-ID: <3hg10m$n4c@service1.uky.edu> References: <3grd3m$fsv@transfer.stratus.com> In article <3grd3m$fsv@transfer.stratus.com> charlie@snowflake.az.stratus.com writes: > can anyone tell me why the following program prints "fails"? > > #import <time.h> > #import <stdio.h> > > main() { > struct tm t1, t2; > int i,j; > > /* t1 is 1995-01-31 12:28:58 mst */ > /* t2 is 1995-02-01 13:28:55 mst */ > > t1.tm_sec = 58; t2.tm_sec = 55; > t1.tm_min = 28; t2.tm_min = 28; > t1.tm_hour = 12; t2.tm_hour = 13; > t1.tm_mday = 31; t2.tm_mday = 1; > t1.tm_mon = 1; t2.tm_mon = 2; > t1.tm_year = 1995; t2.tm_year = 1995; > t1.tm_wday = -1; t2.tm_wday = -1; > t1.tm_yday = -1; t2.tm_yday = -1; > t1.tm_isdst = 0; t2.tm_isdst = 0; > t1.tm_gmtoff = -25200; t2.tm_gmtoff = -25200; > t1.tm_zone = "mst"; t2.tm_zone = "mst"; > > i = mktime (&t1); > j = mktime (&t2); > > if (i > j) > printf ("fails\n"); > else printf ("succeeds\n"); > } The data that you have in the tm structures doesn't match what you have in the comments...if you adjust it as follows it seems to print out "succeeds" for me: #import <time.h> #import <stdio.h> main() { struct tm t1, t2; int i,j; /* t1 is 1995-01-31 12:28:58 mst */ /* t2 is 1995-02-01 13:28:55 mst */ t1.tm_sec = 58; t2.tm_sec = 55; t1.tm_min = 28; t2.tm_min = 28; t1.tm_hour = 12; t2.tm_hour = 13; t1.tm_mday = 31; t2.tm_mday = 1; t1.tm_mon = 0; t2.tm_mon = 1; t1.tm_year = 95; t2.tm_year = 95; t1.tm_wday = 0; t2.tm_wday = 0; t1.tm_yday = 0; t2.tm_yday = 0; t1.tm_isdst = 0; t2.tm_isdst = 0; t1.tm_gmtoff = -25200; t2.tm_gmtoff = -25200; t1.tm_zone = "mst"; t2.tm_zone = "mst"; i = mktime (&t1); j = mktime (&t2); if (i > j) printf ("fails\n"); else printf ("succeeds\n"); } Interestingly there is a glitch in the man page which says something about setting tm_year to 1980...well, follow the earlier description of the field...if you put tm_year = 1995 then do a printf(asctim(&t1)) you'll get something like September 1989 or something...the year 3895 is too far inthe future for it to handle...I wonder if my machine will still be working then? -- John Soward 'The Midnight Sun will burn you up' University of Kentucky -the Cure, Piggy in the Mirror. soward@pop.uky.edu (NeXT) <a href="http://www.uky.edu/~soward">JpS</a>
Newsgroups: comp.sys.next.programmer From: glen@prosoft.com (Glen Biagioni) Subject: Re: A basic question about subclasses of NSObject Message-ID: <D3uIrE.9J@prosoft.wimsey.com> Sender: glen@prosoft.wimsey.com (Glen Biagioni) Organization: ProSoft Solutions, Inc. References: <3hh457$hii@darkstar.UCSC.EDU> Date: Sat, 11 Feb 1995 17:18:49 GMT Art Isbell writes > ... > > Also, forgetting to release an object is much easier because the > release can't be sent until possibly well after the alloc. > > foo = [[[Foo alloc] init] autorelease]; > > takes care of everything in one statement (I know, I know, Scott :-) No > cognitive load alloted to remembering to release later; it's already taken > care of. No leaks (well, ignoring the cylic reference problem :-) > >... Is it legitimate to autorelease before the init? If so, then a nice macro could do [[x alloc] autorelease], yeilding a cleaner looking: foo = [Alloc(Foo) init...]; > Art Isbell NeXTmail: art@cubicsol.com > NeXT Registered Consultant Voice: +1 408 335 1154 > Cubic Solutions Fax: +1 408 335 2515 > NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane > Software Development and Consulting Felton, CA 95018-9442 -- Glen Biagioni <glen@prosoft.com> (NeXTmail accepted) Vancouver BC Canada
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Some (revised) interesting numbers... Date: 10 Feb 1995 21:59:05 GMT Organization: School of Computer Science, McGill Univ. Distribution: world Message-ID: <SAMURAI.95Feb10165905@marge.cs.mcgill.ca> With the help of someone else (you know who you are) I've determined that there was a small bug in the category I was using to benchmark NeXT's objects. This makes a large percentage difference in two of the tests, which basically consisted of running through the array without doing much work. Tiny extra overhead was large compared to these tests (1) and (3), and disappeared on the others. The result is mostly the same, but for the sake of correcting my error, here are the revised numbers: 1) NSMutableArray: Adding 15000 items at the end. 0.13 2) NSMutableArray: Adding 15000 items in the centre. 23.92 3) NSMutableArray: Accessing first 15000 items. 0.01 4) NSMutableArray: Removing 15000 items from the beginning. 53.93 5) NSMutableArray: Removing 15000 items from the end. 0.14 Total time:78.28 1) NKQueue: Adding 15000 items to the end. 0.18 2) NKQueue: Adding 15000 items in the centre. 11.34 3) NKQueue: Accessing first 15000 items. 0.01 4) NKQueue: Removing 15000 items from the beginning. 0.21 5) NKQueue: Removing 15000 items from the end. 0.22 Total time: 11.96 1) NKList: Adding 15000 items to the end. 0.15 2) NKList: Adding 15000 items in the centre. 12.26 3) NKList: Accessing first 15000 items. 0.02 4) NKList: Removing 15000 items from the beginning. 26.26 5) NKList: Removing 15000 items from the end. 0.16 Total time: 38.85 The bug was a call to NXMallocCheck() that got copied and pasted over. Had ObjC had multiple inheritence, I'd not have to copy and paste the category ;-) and so would have avoided the bug! That doesn't excuse me for making a stupid error though... - darcy -- For he today that sheds his blood with me shall be my brother; be he ne'er so vile, this day shall gentle his condition. Gentlemen in England now abed shall think themselves accursed they were not here, and hold their manhoods cheap whiles any speaks that fought with us upon Saint Crispin's day.
From: jwishnie@gb.swissbank.com ( (Jeff Wishnie) Newsgroups: comp.sys.next.programmer Subject: NSThread documentation weirdness... Date: 9 Feb 1995 22:12:38 GMT Organization: Swiss Bank Corporation, High Timber St, London, UK Distribution: world Message-ID: <3he40m$3hl@gpo.gb.swissbank.com> Hi Folks, I just received my EOF 1.1 beta with a new and improved foundation kit. The most welcome addition is the NSThread object that lets one use FoundationKit objects in multithreaded servers. Question: The documentation lists the class method (I'm paraphrasing since the docs are not on the machine I'm sitting at): + (void) newThreadSelector: (SEL) aSelector target: anObj arg: (int) arg the documentation then states that this method forks a new thread calling the given selector on the given target with the given argument AND it says returns the new thread which can then be paused, resumed, killed etc... BUT, the method returns nothing (hence the void). A quick glance at the header confirms it returns nada. Has anyone written anything with NSThread yet? What does it really return? If it doesn't return the thread is there an obvious way to get the thread handle from outside the thread (there is a + (NSThread*) currentThread call but that gives you the thread you are executing in)? Thanks, Jeff jwishnie@gb.swissbank.com
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 11 Feb 1995 22:39:24 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hjeas$1bs@rosie.next.com> References: <SHESS.95Feb9175002@subzero.winternet.com> In article <SHESS.95Feb9175002@subzero.winternet.com> shess@subzero.winternet.com (Scott Hess) writes: > IMHO, one should use -release wherever possible, and only use > -autorelease when it is simply not possible to use -release. > [...] I find code like the following confusing: > -(unsigned)doSomething { > MyObject *oo=[[[MyObject alloc] init] autorelease]; > ... > // Operate on oo. > ... > return ret; > } > > Better to code it like: > -(unsigned)doSomething { > MyObject *oo=[[MyObject alloc] init]; > ... > // Operate on oo. > ... > [oo release]; > oo=nil; > ... > return ret; > } > > There is really no functional difference between these pieces of > code [...] Actually, there *is* a subtle difference (other than oo simply existing for a little while longer in the first example). oo may be leaked in the second example. If an exception is raised (that you don't catch) between the time you allocate oo and the time you release it (as, in your operations with oo), the pointer to oo will be lost and the memory will never be freed. If you autorelease oo when you allocate it, the top NSAutoreleasePool is now responsible for deallocating that object, not you. You can choose to surround "intermediate" code with an exception handler when ever you allocate and use a local object, or you can autorelease (assuming a pool has been created before your method), or you can choose to ignore memory leaks like this. Because exceptions are more common in the Foundation than ever before, the third option doesn't seem very palatable (though, since people writing code are going to forget, it's probably the option that'll be "implemented" most often). > [I think that it is very important to code things as explicitly > as possible in order to leave maintainers no question as to what > you intended. Never assume knowledge on the part of the maintainer.] Generally good advice. However, a little safety may be the price of a little obfuscation. Christopher Kane NeXT Software Quality: OpenStep Compliance
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 11 Feb 1995 22:40:01 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hjec1$1bu@rosie.next.com> References: <SHESS.95Feb9175002@subzero.winternet.com> In article <SHESS.95Feb9175002@subzero.winternet.com> shess@subzero.winternet.com (Scott Hess) writes: > IMHO, one should use -release wherever possible, and only use > -autorelease when it is simply not possible to use -release. > [...] I find code like the following confusing: > -(unsigned)doSomething { > MyObject *oo=[[[MyObject alloc] init] autorelease]; > ... > // Operate on oo. > ... > return ret; > } > > Better to code it like: > -(unsigned)doSomething { > MyObject *oo=[[MyObject alloc] init]; > ... > // Operate on oo. > ... > [oo release]; > oo=nil; > ... > return ret; > } > > There is really no functional difference between these pieces of > code [...] Actually, there *is* a subtle difference (other than oo simply existing for a little while longer in the first example). oo may be leaked in the second example. If an exception is raised (that you don't catch) between the time you allocate oo and the time you release it (as, in your operations with oo), the pointer to oo will be lost and the memory will never be freed. If you autorelease oo when you allocate it, the top NSAutoreleasePool is now responsible for deallocating that object, not you. You can choose to surround "intermediate" code with an exception handler when ever you allocate and use a local object, or you can autorelease (assuming a pool has been created before your method), or you can choose to ignore memory leaks like this. Because exceptions are more common in the Foundation than ever before, the third option doesn't seem very palatable (though, since people writing code are going to forget, it's probably the option that'll be "implemented" most often). > [I think that it is very important to code things as explicitly > as possible in order to leave maintainers no question as to what > you intended. Never assume knowledge on the part of the maintainer.] Generally good advice. However, a little safety may be the price of a little obfuscation. Christopher Kane NeXT Software Quality: OpenStep Compliance
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 11 Feb 1995 22:41:27 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hjeen$1bv@rosie.next.com> References: <SHESS.95Feb9175002@subzero.winternet.com> In article <SHESS.95Feb9175002@subzero.winternet.com> shess@subzero.winternet.com (Scott Hess) writes: > IMHO, one should use -release wherever possible, and only use > -autorelease when it is simply not possible to use -release. > [...] I find code like the following confusing: > -(unsigned)doSomething { > MyObject *oo=[[[MyObject alloc] init] autorelease]; > // Operate on oo. > ... > return ret; > } > Better to code it like: > -(unsigned)doSomething { > MyObject *oo=[[MyObject alloc] init]; > // Operate on oo. > [oo release]; > oo=nil; > ... > return ret; > } > > There is really no functional difference between these pieces of > code [...] Actually, there *is* a subtle difference (other than oo simply existing for a little while longer in the first example). oo may be leaked in the second example. If an exception is raised (that you don't catch) between the time you allocate oo and the time you release it (as, in your operations with oo), the pointer to oo will be lost and the memory will never be freed. If you autorelease oo when you allocate it, the top NSAutoreleasePool is now responsible for deallocating that object, not you. You can choose to surround "intermediate" code with an exception handler when ever you allocate and use a local object, or you can autorelease (assuming a pool has been created before your method), or you can choose to ignore memory leaks like this. Because exceptions are more common in the Foundation than ever before, the third option doesn't seem very palatable (though, since people writing code are going to forget, it's probably the option that'll be "implemented" most often). > [I think that it is very important to code things as explicitly > as possible in order to leave maintainers no question as to what > you intended. Never assume knowledge on the part of the maintainer.] Generally good advice. However, a little safety may be the price of a little obfuscation. Christopher Kane NeXT Software Quality: OpenStep Compliance
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3hjepl$1ch@rosie.next.com> Control: cancel <3hjepl$1ch@rosie.next.com> Date: 11 Feb 1995 22:48:25 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hjerp$1cu@rosie.next.com>
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 11 Feb 1995 14:43:23 GMT Organization: Eindhoven University of Technology, The Netherlands Distribution: world Message-ID: <TIGGR.95Feb11154323@cobra.es.ele.tue.nl> References: <TIGGR.95Feb9111024@cobra.es.ele.tue.nl> <3hdgqv$cfh@darkstar.UCSC.EDU> In-reply-to: art@cubicsol.com's message of 9 Feb 1995 16:45:19 GMT In article <3hdgqv$cfh@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: Maybe I've misunderstood (VERY LIKELY :-) How do you, Pieter, determine when to use release vs. autorelease? The article on this subject by Scott Hess corresponds to what I do. (My First FoundationKit Macro was #define RELEASE(X) do { [(X) release]; (X) = 0; } while (0) and any release invocation done directly instead of through this macro is illegal. Incidentally, while we're at the subject of `My First Whatever', My First PDO Macro was named PROTECT and I hate it.) See <a href="http://www.es.ele.tue.nl/tiggr/objc/q2.html">Reference counting in FoundationKit</a>. --Tiggr
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 10 Feb 1995 16:24:48 GMT Organization: School of Computer Science, McGill Univ. Distribution: world Message-ID: <SAMURAI.95Feb10112448@marge.cs.mcgill.ca> References: <TIGGR.95Feb9111024@cobra.es.ele.tue.nl> <3hdgqv$cfh@darkstar.UCSC.EDU> <SHESS.95Feb9175002@subzero.winternet.com> In-reply-to: shess@subzero.winternet.com's message of 09 Feb 1995 23:50:02 GMT <shess@subzero.winternet.com> writes: >In article <3hdgqv$cfh@darkstar.UCSC.EDU>, >Instead, I use a much stronger criteria, that of the current method >scope. You somehow have an object which you either allocated or >retained, and you need to release it (which is another topic >entirely). Do you use -release or -autorelease? Use -release if >you don't plan to refer to the object again in this method (in >-dealloc, for instance). Use -autorelease if you do plan to refer >to the object again later in this method (as your return value, >for instance). This sounds good... >In order to enforce this way of thinking, I tend to code my calls >to -release as: > [myObject release]; > myObject=nil; This is why I wished that release returned nil, like free. All of my old code looks like this: myObject = [myObject free]; Now, I think I'll make a macro #define RELEASE(object) ([(object) release],(object)=nil) >Now I _can't_ refer to the object again (and if I do, I'm more >likely to have traceable errors). >IMHO, one should use -release wherever possible, and only use >-autorelease when it is simply not possible to use -release. After I agree with this... makes things easier to understand. >all, -autorelease is simply a deferred call to -release, and thus >invokes more baggage than simply calling -release. I find code >like the following confusing: > -(unsigned)doSomething > { > MyObject *oo=[[[MyObject alloc] init] autorelease]; > ... > // Operate on oo. > ... > return ret; > } >Better to code it like: > -(unsigned)doSomething > { > MyObject *oo=[[MyObject alloc] init]; > ... > // Operate on oo. > ... > [oo release]; > oo=nil; > ... > return ret; > } And, if you're returning the object: - (id)gimmeObject; { id oo = [[Something alloc] init]; // do operations return [oo autorelease]; // explicit for people supporting the code } >There is really no functional difference between these pieces of >code, except that in the first piece of code, oo exists much longer >than the second. So there is a slight efficiency difference. Actually, who knows if the method is going to be called 100,000 times in the current "event loop." My genetic algorithms routinely do this kind of thing. If some other class is autoreleasing all of their objects (ie. like NSString, when you call cString), then I'm in big crapola, because I suddenly have 100,000 extra objects sitting around stealing valuable memory and disk space. It could even be a million, I don't know this beforehand! My GA's will easily suck 32M of RAM if I'm doing a serious problem. So, since you don't know how your object is being used, please destroy your allocated resources IMMEDIATELY. Don't save them for the hell of it... we'll have a bunch of Apps that sit around with these huge memory footprints, because everyone is allocating temporary objects, then freeing them at a later point in time. Over a large application, this can add up! 64M standard, here we come! >[I think that it is very important to code things as explicitely >as possible in order to leave maintainers no question as to what >you intended. Never assume knowledge on the part of the maintainer.] See above ;-). - db -- For he today that sheds his blood with me shall be my brother; be he ne'er so vile, this day shall gentle his condition. Gentlemen in England now abed shall think themselves accursed they were not here, and hold their manhoods cheap whiles any speaks that fought with us upon Saint Crispin's day.
Newsgroups: comp.sys.next.programmer From: bbaker@technom.com Subject: The -b option to enscript Message-ID: <1995Feb10.182137.5817@technom.com> Sender: bbaker@technom.com Organization: Technom Enterprises, Inc. Date: Fri, 10 Feb 1995 18:21:37 GMT Greetings, I'm trying to use the -b option of enscript to change the header on faxes sent with the "fax" script. I can get my new header to show up, but I lose the page numbers. Is there a way to include the items from the default header into my custom header? Thanks, Brian Baker. bbaker@technom.com
Newsgroups: comp.sys.next.programmer From: rp9@unix.york.ac.uk (R Peppe) Subject: Printing to a particular physical size ? Message-ID: <1995Feb10.141232.9286@leeds.ac.uk> Date: Fri, 10 Feb 1995 14:12:31 +0000 (GMT) I hesitate to post another probably dumb question to this group, but I'm rapidly getting sick of this problem, and the deadline's next week. :-(| I am displaying geographic map data on screen, and need to print it out to a user-chosen scale. (so that it can be overlayed on conventional maps). I need to tile the map across multiple sheets of printer paper so they can be joined together to make the complete map at the chosen scale. Now if I was just generating my own postscript, this wouldn't be a problem, but I'd really prefer to let the AppKit do most of the work. (I don't want to rewrite printPSCode:!) The trouble is that I cannot get the printed output to use the whole of the sheet of paper. I get margins of about 3 inches on each side, which is _not_ good enough! I _have_ set the correct paper size in PrintInfo, and I've also tried setting the margins to zero, and turning off VertCentered and HorizCentered, only to find that some of the output disappears off the edge and the area printed is no bigger. I have found nowhere in the documentation that tells me how to set the physical size of the printed output on paper. (in my case, there is no direct correlation between the size of the screen representation and printed representation - the screen representation does not attempt to be to scale) If anyone could point me in the direction of a) the part of the documentation that i'm overlooking that tells me exactly how to do this or b) any example source code that really makes use of all those print-related View methods, or c) any comments at all! (especially of the form "don't bother - it's easier to produce your own postscript...") I would be _extremely_ grateful. thanks, rog.
Newsgroups: comp.sys.next.programmer From: arthur@aivru.sheffield.ac.uk (Arthur Tetzlaff Deas) Subject: Re: [Q]: In-line images in OmniWeb... Date: Sat, 11 Feb 1995 15:04:00 +0000 Message-ID: <9502111504.AA10083@aivru> Sender: usenet@demon.co.uk Folks, I wrote: >> >I've noticed that if I'm using OmniWeb (under duress, I hasten to add, see >> >c.s.n.a :) to view a document that contains in-line images it launches >> >ImageFilter ... The moment I sent this post I realised how silly I'd been. The problem seems to be that I forgot to send myself a [self engageBrain] message :) The trick is done using Filter Services. Izumi Ohzawa's NewsIndex* code shows how it's done. Anyway, thanks again to all those who responded for rescuing me from my own stupidity. Cheers Arthur
Newsgroups: comp.sys.next.programmer From: kevin@pages.com (Kevin Sven Berg) Subject: Re: A basic question about subclasses of NSObject [Autorelease] Message-ID: <D3t5Br.8pI@pages.com> Sender: kevin@pages.com (Kevin Sven Berg) Organization: Pages Software Inc References: <SAMURAI.95Feb10112448@marge.cs.mcgill.ca> Date: Fri, 10 Feb 1995 23:31:02 GMT In article <SAMURAI.95Feb10112448@marge.cs.mcgill.ca> samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) writes: > <shess@subzero.winternet.com> writes: > > >In article <3hdgqv$cfh@darkstar.UCSC.EDU>, > > >Instead, I use a much stronger criteria, that of the current method > >scope. You somehow have an object which you either allocated or > >retained, and you need to release it (which is another topic > >entirely). Do you use -release or -autorelease? Use -release if > >you don't plan to refer to the object again in this method (in > >-dealloc, for instance). Use -autorelease if you do plan to refer > >to the object again later in this method (as your return value, > >for instance). > [...different autorelease/release approaches...] > > Actually, who knows if the method is going to be called 100,000 times in > the current "event loop." My genetic algorithms routinely do this kind > of thing. If some other class is autoreleasing all of their objects > (ie. like NSString, when you call cString), then I'm in big crapola, > because I suddenly have 100,000 extra objects sitting around stealing > valuable memory and disk space. It could even be a million, I don't know > this beforehand! My GA's will easily suck 32M of RAM if I'm doing a > serious problem. > > So, since you don't know how your object is being used, please destroy > your allocated resources IMMEDIATELY. Don't save them for the hell of > it... we'll have a bunch of Apps that sit around with these huge memory > footprints, because everyone is allocating temporary objects, then > freeing them at a later point in time. Over a large application, this > can add up! 64M standard, here we come! > You may wish to consider NSAutoreleasePool management instead (i.e. introducing pools directly into your code and manually triggering the autorelease). This approach allows you to pursue the general delayed strategy, but "tighten" the release times according to the needs of your application. Think about this: you want something that gives an "IC-module" user the greatest flexibility for adapting your component, which is the Objective-C approach. If you were to blindly follow an immediate -release strategy, the only performance recourse would be openning up and tuning an individual component, something that is not always possible (and is more typical of a C/C++ approach). Kevin -- -------------------------------------------------- Kevin Sven Berg + Kevin_Berg@pages.com Pages Software Inc. + http://www.pages.com/ --------------------------------------------------
From: "Teele H. Horstra" <teeleh@xs4all.nl> Newsgroups: comp.sys.next.programmer Subject: Info wanted on: Voice recognition Objects Date: 12 Feb 1995 12:20:24 GMT Organization: XS4ALL, networking for the masses Message-ID: <3hkue8$66i@news.xs4all.nl> Hi there, Has anybody done anything with voice recognition objects or is there any NeXT software available which actually works ? The software should work on Intel or PA-RISC, we don't have any old black boxes. Thanks for your reactions.
From: don@darth.byu.edu (Don Yacktman) Newsgroups: comp.sys.next.programmer Subject: Re: daymisckit for TickleServices1.11 Date: 11 Feb 1995 20:46:19 GMT Distribution: world Message-ID: <3hj7mr$k79@bones.et.byu.edu> References: <3hgspb$gtf@godzilla.zeta.org.au> Greg Shaw writes ) Hi all, ) I have just picked up TickleServices1.11 from ftp.cs.orst.edu ) and in trying to compile it I get an error about an import ) file called <daymisckit/daymisc.h> or some such. There is a ) comment near this that says it can be ftp'ed from byu.edu or ) email from Don_Yachtman@byu.edu. This is all being done from ) memory so I may have some spelling errors. ) ) My problem is that I get a Host name look-up failure when I try ) to ftp to byu.edu. I figured email to the same address would ) also fail. Does anone have a more up-to-date address for this ) import file or even a copy themselves which they could post to ) me? ) ) Thanks in advance. ) Greg Shaw. ) ) PS. daymisc cannot be found in a search of the ftp.cs.orst.edu ) index file. It has been replaced by the MiscKit (and there are compatability headers available so that you shouldn't have to change the code over from the old, but I recommend you do so). Look in /next/misckit for it. It is also on ftp.cs.orst.edu. The ftp site is ftp.et.byu.edu. The email address above is correct--note my .sig. In fact, anyone who is using don@darth.byu.edu to reach me will soon find that address invalid as I'm changing Internet providers. (Not to worry, Don_Yacktman@byu.edu will point to the new place.) Of course, the MiscKit is much, much larger than the daymisckit ever was. :-) -- Later, -Don Yacktman Don_Yacktman@byu.edu
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Sat, 11 Feb 95 11:53:11 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9502111053.AA00297@flexus> Subject: Re: A basic question about subclasses of NSObject It's OK to release immediately if this matches a previous retain (you don't have to have created the object) and if you won't access this object anymore. You can use the following, which would extend FREE.h (to be found in MiscKit): /* For an object, in situations where -release suffices... */ #define FFREE_NSOBJECT(id) ([id release],id=nil) #define FREE_NSOBJECT(id) (id?FFREE_OBJECT(id):nil) (You can fill in another value to get a crash or a diagnostic method.) If your code segment is small and it is impossible that an exception will occur between the retain and the release, then release is the best thing to do (autorelease is probably more expensive, maybe someone can test how much). If there is a possibility that an exception will occur, then you might want to use autorelease, because then the autorelease pool stack will take care of any garbage if an exception blows the function/method frame away (maybe there's something to be said for C++ after all ;-) ). Eric Brown gives a situation where autorelease would be essential. This is not true, actually: -(void)setIvar:newIvar{ if(nil!=newIvar) [newIvar retain]; // [nil ...] should not be innocent FREE_NSOBJECT(ivar); ivar=newIvar; } This is equally valid (I would prefer it, if I were coding for the FoundationKit right now, and probably make a macro out of it), and you don't need the -copy that the Concepts manual suggests as *the* alternative. Scott Hess' argument that MyObject *oo=[[[MyObject alloc] init] autorelease] is confusing is not really clear to me. And of course, his alternative is more vulnerable if exceptions may happen. I'm still confused about how autorelease is implemented, and how it affects the retain count. If it has to access the releasepool, autorelease may be more expensive, especially in a multithreaded environment. Can anyone explain how NeXT has actually implemented it? This is really funny stuff! :-) Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: m.crawford@dcs.shef.ac.uk (mmalcolm Crawford) Newsgroups: comp.sys.next.programmer Subject: Re: [Q]: In-line images in OmniWeb using Image Filter...How's it done? Date: 11 Feb 1995 14:05:04 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <950211195601.994AACUa.malc@daneel> References: <9502101548.AA07845@aivru> > I've noticed that if I'm using OmniWeb (under duress, I hasten to > add, see c.s.n.a :) to view a document that contains in-line images > it launches ImageFilter to provide the in-line images within the > document. I need to provide this sort of functionality in a project > I'm working on. My question is, how's it done? > It's done using filter Services... there's an example in: /NextDeveloper/Examples/AppKit/ImageFilter I don't know what manuals you have up there in Psychology, but I've got most of the ones available -- if you need a browse feel free to come down. Have fun, mmalc. posn. research facilitator where institute for language speech and hearing sheffield university c/o department of computer science regent court 211 portobello street sheffield s1 4dp england vox (+44) 114 282 5594 fax (+44) 114 278 0972 email m.crawford@dcs.shef.ac.uk NeXTMail, SunMail, MIME welcome http://www.dcs.shef.ac.uk/
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: Digital sound filtering Date: Sat, 11 Feb 1995 20:14:46 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950211201446.994AACUc.malc@daneel> References: <1995Feb6.140729.1829@tnt.oleane.com> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII > We need implementing a digital sound filter in one of our applications. > Best to ask on comp.dsp... There's an FAQ at ftp://evans.ee.adfa.oz.au/pub/dsp/comp.dsp.faq Your question seems to be number 2.11, which includes in the answer the text given below, Have fun, mmalc. posn. research facilitator where institute for language speech and hearing sheffield university c/o department of computer science regent court 211 portobello street sheffield s1 4dp england vox (+44) 114 282 5594 fax (+44) 114 278 0972 email m.crawford@dcs.shef.ac.uk NeXTMail, SunMail, MIME welcome http://www.dcs.shef.ac.uk/ --- Another public domain filter design package is DFIR, for FIR filter designs. It includes design capabilities for: equiripple linear phase multiband filters, linear phase differentiators, linear phase Hilbert transform filters, MMSE interpolating filters and equiripple Nyquist filters. It is written in Fortran 77 and has been tested on DECStations and Suns. It is available from: aldebaran.ee.mcgill.ca/pub/dfir. Additionally, a package to plot filter responses is available in "pltfilter-V2R0.tar.Z". [Peter Kabal, via Witold Waldman] Another source is netlib: "A free program to design IIR Butterworth, Chebyshev, and Cauer (elliptic) filters, in any of lowpass, bandpass, band reject, and high pass configurations, is available in netlib (e.g. research.att.com) as the file netlib/cephes/ellf.shar.Z. By email to netlib@research.att.com the request message text is `send ellf from cephes' [Stephen Moshier, mosher@world.std.com] The Fortran source code from the IEEE Press book "Programs For Digital Signal Processing" is available for anonymous ftp from file://nimios.eng.mcmaster.ca/pub/IEEE/software/dsp.zip It includes FIR and IIR filter design software, as well as other general purpose DSP subroutines. There is also a C/C++ version of the Parks-McLellan FIR filter design program available from file://ftp.uu.net/usenet/comp.sources.misc/volume22/fir/part01.Z This program was created and tested using Borland C++ 2.0. This requires a pretty reasonable C++ compiler - it is reported that QuickC (not C++) won't do it. [Witold Waldman, witold@hotblk.aed.dsto.gov.au, from Charles Owen at mgcbo@uxa.ecn.bgu.au]
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: Digital sound filtering Date: Sat, 11 Feb 1995 20:49:05 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950211204905.994AACUg.malc@daneel> References: <1995Feb6.140729.1829@tnt.oleane.com> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII I forgot to also mention that if this is serious stuff you might get help from (Marek Roland-Mieszkowski, Ph.D.) Digital Recordings - Advanced R & D 5959 Spring Garden Rd., Suite 1103, Halifax Nova Scotia, B3H-1Y5, Canada. Tel./Fax. (902) 429-9622 Tel./ Fax. (902) 429-9622 E-mail: mmieszko@ac.dal.ca They produce a number of DSP-related NEXTSTEP applications and seem to be both competent and enthusiastic. Have fun, mmalc.
Newsgroups: comp.sys.next.programmer From: aw058@FreeNet.Carleton.CA (Deborah L. Chubey) Subject: PS to G3/4 -- ghostScript..why? Message-ID: <D3uDtv.7Gs@freenet.carleton.ca> Sender: aw058@freenet3.carleton.ca (Deborah L. Chubey) Organization: The National Capital FreeNet Date: Sat, 11 Feb 1995 15:32:19 GMT I have got a nice little utillity to create a G3/G4 fax file from PostScript using NS DPS system, mach messages, and mach threads. It is short and works flawlessly. Why bother with GhostScript and that pbm or whatever it is. If you are interested I send me a note and I'll forward it to you ( if I get too many responces I guess I'll have to figure out how to submit to an ftp site.). Deb.
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: A-A-R-R-R-G-G-G-H-H-H-E-L-P !!!!! Date: 11 Feb 1995 19:17:15 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95Feb11141715@marge.cs.mcgill.ca> References: <D3s7vD.1u4@ladem.tlt.ru> In-reply-to: saty@next2.togliatti.su's message of Fri, 10 Feb 1995 11:28:25 GMT <saty@next2.togliatti.su> writes: >Hi ! >I tried run Terminal.app: > if( !fork()) { > if(fork()) exit(0); > execl( > "/NextApps/Terminal.app/Terminal", > "/saty/netsecurity/util/demo", 0); > printf("Yoooo Moeeee - OBLOM !!!\n"); > exit(1); > }else > wait(0); >but Terminal.app sends the message: > Terminal must be run from the Workspace Manager. Very cute! Try this: [[Application workspace] launchApplication:"Terminal"]; - darcy -- For he today that sheds his blood with me shall be my brother; be he ne'er so vile, this day shall gentle his condition. Gentlemen in England now abed shall think themselves accursed they were not here, and hold their manhoods cheap whiles any speaks that fought with us upon Saint Crispin's day.
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject [Autorelease] Date: 11 Feb 1995 19:46:01 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95Feb11144601@marge.cs.mcgill.ca> References: <SAMURAI.95Feb10112448@marge.cs.mcgill.ca> <D3t5Br.8pI@pages.com> In-reply-to: kevin@pages.com's message of Fri, 10 Feb 1995 23:31:02 GMT <kevin@pages.com> writes: >In article <SAMURAI.95Feb10112448@marge.cs.mcgill.ca> >samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) writes: >> >>So, since you don't know how your object is being used, please destroy >>your allocated resources IMMEDIATELY. Don't save them for the hell of >>it... we'll have a bunch of Apps that sit around with these huge memory >>footprints, because everyone is allocating temporary objects, then >>freeing them at a later point in time. Over a large application, this >>can add up! 64M standard, here we come! >> >You may wish to consider NSAutoreleasePool management instead (i.e. >introducing pools directly into your code and manually triggering >the autorelease). This approach allows you to pursue the general >delayed strategy, but "tighten" the release times according to the >needs of your application. Think about this: you want something >that gives an "IC-module" user the greatest flexibility for adapting >your component, which is the Objective-C approach. If you were to >blindly follow an immediate -release strategy, the only performance >recourse would be openning up and tuning an individual component, >something that is not always possible (and is more typical of a >C/C++ approach). This is in violation of encapsulation and abstraction. If you write an object, I don't want to know what private objects you may or may not be creating. I have to find this out if I'm to use NSAutoreleasePool properly. Moreover, if I decide to change the objects I'm using, my usage of NSAutoreleasePool will have to be modified. Using NSAutoreleasePool is a static approach to dealing with something dynamic, like memory allocation. Which is a bad approach... I don't believe that there is a good reason to delay a release anyway, rather than release something immediately, especially if this object is a private, temporary object. I don't want to have to litter my code with NSAutoreleasePools because people feel like dealying releases for no good reason. And, again, if I do this, as an attempt to "tighten" things up: -- myRoutine create autorelease pool loop do subroutine end loop destroy autorelease pool Who's to say that "subroutine" isn't going to be faced with the identical problem, forcing you to go insert autorelease pools there too (ie. it's recursive... you have to apply this kind of "solution" at every level of abstraction, in order for it to be effective)! It becomes a big mess, and it's really a problem of granularity. Something so static as coding in an autorelease pool can't cope with a fully dynamic system, or encapsulated and abstracted classes . Now, if you could do something like: [NSAutoreleasePool cleanUpAfterAllocating:100000] I'd be pretty happy. But you can't... The general rule of thumb is: be nice with system resources. They're finite, and if you want your class to be truly reusable, then you should be very conservative about your use of resources. You don't know how your class is going to be used in the future (that's why it's reusable) so do your best not to use resources you don't need. Please please please don't use resources you don't need... it's not like apps aren't already fat and piggish enough. So this big test, is if you give me a reusable class, and tell me I can use it, and I put it into my GA simulation, and it's use of resources fills my swapfile and hanges my computer, and you say that "Oh, you should be modifying your code by adding NSAutoreleasePools because I'm autoreleasing a lot of temp objects," I'll say (and please excuse the run-on-sentence ;-), "Your class sucks". I'll write my own that are a little more efficient, and don't require me to modify the code that uses them. Oh, woe on us for not having GC. - db -- For he today that sheds his blood with me shall be my brother; be he ne'er so vile, this day shall gentle his condition. Gentlemen in England now abed shall think themselves accursed they were not here, and hold their manhoods cheap whiles any speaks that fought with us upon Saint Crispin's day.
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: A-A-R-R-R-G-G-G-H-H-H-E-L-P !!!!! Date: 11 Feb 1995 19:57:09 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3hj4ql$r6d@darkstar.UCSC.EDU> References: <SAMURAI.95Feb11141715@marge.cs.mcgill.ca> In article <SAMURAI.95Feb11141715@marge.cs.mcgill.ca> samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) writes: > <saty@next2.togliatti.su> writes: > > >Hi ! > >I tried run Terminal.app: > > > if( !fork()) { > > if(fork()) exit(0); > > execl( > > "/NextApps/Terminal.app/Terminal", > > "/saty/netsecurity/util/demo", 0); > > printf("Yoooo Moeeee - OBLOM !!!\n"); > > exit(1); > > }else > > wait(0); > > >but Terminal.app sends the message: > > Terminal must be run from the Workspace Manager. > > Very cute! > > Try this: > > [[Application workspace] launchApplication:"Terminal"]; > But what if no Application object exists? Can Terminal be opened from a non-AppKit utility? Hmmm, I guess Terminal would already have to be open to run a non-AppKit utility anyway :-) Well, not really. It could have been run in Stuart, TipTop, etc. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3hjeen$1bv@rosie.next.com> Control: cancel <3hjeen$1bv@rosie.next.com> Date: 11 Feb 1995 22:49:15 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hjetb$1cv@rosie.next.com>
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3hjec1$1bu@rosie.next.com> Control: cancel <3hjec1$1bu@rosie.next.com> Date: 11 Feb 1995 22:49:55 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hjeuj$1d0@rosie.next.com>
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3hjebr$1bt@rosie.next.com> Control: cancel <3hjebr$1bt@rosie.next.com> Date: 11 Feb 1995 22:52:43 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hjf3r$1d3@rosie.next.com>
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3hjevs$1d1@rosie.next.com> Control: cancel <3hjevs$1d1@rosie.next.com> Date: 11 Feb 1995 22:56:43 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hjfbb$1d5@rosie.next.com>
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3hjf0n$1d2@rosie.next.com> Control: cancel <3hjf0n$1d2@rosie.next.com> Date: 11 Feb 1995 23:01:27 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hjfk7$1e0@rosie.next.com>
From: jclee@next.com (James C. Lee) Newsgroups: comp.sys.next.misc,comp.sys.next.bugs,comp.sys.next.programmer,comp.sys.next.advocacy Subject: Diamond Viper Pro (Weitek P9100) VL-Bus card on 3.3? Date: 10 Feb 1995 16:38:55 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hg4qv$jt@rosie.next.com> Does anyone have a 3.3 machine with a Diamond Viper Pro VL-Bus (NOTE: not PCI) card that could help me out in testing the driver? I don't have a VL-Bus card here. Please reply by email because I don't read news that often. Thanks! ^James
From: ivan@mario.sbi (Ivan Leung) Newsgroups: comp.sys.next.programmer Subject: Re: PDO: is there a way to send asynchronous messages BOTH ways? Date: 10 Feb 1995 22:38:53 GMT Organization: Salomon Brothers, Inc. Distribution: world Message-ID: <IVAN.95Feb10173853@mario.sbi> References: <1995Feb8.200909.5616@heinz.com> In-reply-to: federico@heinz.com's message of Wed, 8 Feb 1995 20:09:09 GMT In article <1995Feb8.200909.5616@heinz.com> federico@heinz.com (Federico Heinz) writes: > Figure the following scenario: I've got a daemon that > vends an object through PDO to an app. The object that > uses the vended object responds to the > > ... <stuff deleted> > > So is there a way to set up an NXConnection (or > NXConnection pair) in such manner that it will allow > messages to be sent boths ways (server-->client as > well as client-->server) at any time? Or have I hit > a fundamental design limitation? (I have this inborn > tendency to bump my head on them...) The [[serverObject connectionForProxy] runFromAppKit] solution (on the client side) should work. I've tried this in my own programs successfully. However, we might have done things differently in some of the areas such as: - All aynchronous methods are oneway. - My PDO server application uses DOEventLoop instead of [NXConnection run]. - The server does not spawn a seperate thread (well, it's running on SunOS 4.x anyway) to call the client back. The above things may or may not have anything to do with why the solution did not work for you. Good Luck -- Ivan Leung
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Localization Question Date: 12 Feb 1995 10:17:18 GMT Organization: Stanford University Message-ID: <3hkn7e$ro1@nntp.Stanford.EDU> Hello, I have the following problem: After inserting IB help links (for the help cursor), like for menu items, panels, etc), is there an easy way to transfer these changes to other languages? I mean creating the links is tedious enough; keeping 2 languages in sync is tedious, too. But to have to copy all changes over manually is really an overkill. Or is there a simple solution? Thanks in advance, - Stan --- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss Guy | | | SU Computer Science | When you find yourself | | Box 2642, Stanford, CA (415) 497 HEXO | in a hole, stop digging | | stanj@cs.stanford.edu NeXTmail / MIME | | +-------------------------------------------+-------------------------+
Newsgroups: comp.sys.next.programmer From: aw058@FreeNet.Carleton.CA (Deborah L. Chubey) Subject: GNU's OpenStep complient Developer Environment Message-ID: <D3wEq2.C69@freenet.carleton.ca> Sender: aw058@freenet3.carleton.ca (Deborah L. Chubey) Organization: The National Capital FreeNet Date: Sun, 12 Feb 1995 17:46:50 GMT I have heard that GNU people are putting together their own OpenStep complient developer/programming environment. Thay're calling it something like GNUStep. Has anybody herd anything else on this? I would like to know their plans if it is true. Deb.
From: erik@amg.de (Erik Doernenburg) Newsgroups: comp.sys.next.programmer Subject: Re: Interface to ProjectBuilder (Solution) Date: 7 Feb 1995 12:08:22 GMT Organization: AMG Industrieconsulting GmbH Distribution: world Message-ID: <3h7nrm$qm@hagen.amg.de> Thanks to all who replied via e-mail. With your hints I was able to convice ProjectBuilder to display the error messages generated by my own compiler. I still don't fully understand all the MIG stuff, but if you just want to use it it's easy enough. Copy the following three files from the cc source code into your project: make.defs, make_defs.h, make_support.c The latter one goes into the Other Sources suitcase and for the MIG definition file 'make.defs' you have to add these lines to makefile.preamble: OTHER_OFILES = makeUser.o DEFSFILES = make.defs After having done this you can simply call make_support(int type,char *name,char *file,int line,char *msg, int arg1,int arg2,int arg3) Type can either be 0 for error messages or 1 for warnings. Name is the name of the function (or whatever context) the error occured in. File and line should be obvious. Msg is the message in a printf style which can have up to three arguments given by arg1 to arg3. You can also print pointers although it's not good style to pass them in ints. good luck erik ___________________________________________________________ Erik Doernenburg AMG Industrie Consulting GmbH erik@amg.de (work) Joseph-von-Fraunhofer Str. 27 erikd@sultan.ping.de (home) 44227 Dortmund, Germany
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: const char * still in EOF!! Date: 12 Feb 1995 18:06:49 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3hlinp$bke@darkstar.UCSC.EDU> Was I under a misconception when I assumed that Foundation Kit-compliant classes wouldn't need to use const char * types? Why are the following in EOAttribute: const char *_valueClassName; - (const char *)valueClassName; // Returns the name of the class for custom-value types. If a column // from the database is to be represented by an NXImage, for example, // this returns "NXImage". - (void)setValueClassName:(const char *)name; // Sets the class name for values of this attribute. If values are // instances of NXImage, you would send: // [myAttribute setValueClassName:"NXImage"]; --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Cubic Solutions Fax: +1 408 335 2515 NEXTSTEP/OpenStep USmail: 315 Moon Meadow Lane Software Development and Consulting Felton, CA 95018-9442
From: Yves Pons <100321.1674@CompuServe.COM> Newsgroups: comp.sys.next.programmer Subject: Ghostscript Driver compiled Date: 10 Feb 1995 18:59:49 GMT Organization: GENIFI Message-ID: <3hgd35$stk$1@mhade.production.compuserve.com> I need a NS/FIP Ghostscript driver for Hewlett-Packard LaserJet series II printer COMPILED for NS/FIP. All the drivers that I found are not compiled or are for HP-DeskJet printers. Please Email me this driver if you could compile it or if you have it. Thanks in advance. Best regards. Yves Pons. Email: 100321.1674@compuserve.com
From: michael@thi.nl (Michael Brouwer) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 13 Feb 1995 11:25:38 +0100 Organization: Tele Holding International, Amsterdam, the Netherlands Message-ID: <3hnc32$1k2@vivid.thi.nl> References: <SHESS.95Feb9175002@subzero.winternet.com> <3hjeas$1bs@rosie.next.com> In article <3hjeas$1bs@rosie.next.com>, Christopher Kane <ckane@next.com> wrote: >If an exception is raised (that you don't catch) between the >time you allocate oo and the time you release it (as, in your >operations with oo), the pointer to oo will be lost and the memory >will never be freed. If you autorelease oo when you allocate >it, the top NSAutoreleasePool is now responsible for deallocating >that object, not you. This is one of the reasons why exceptions are a very bad idea. The retain release problem when using exceptions can be solved by using autorelease, but in most other code constructs you need to put an exception handler around every objc method call to ensure the postcondition of your method is reached. Michael
From: doyle@zeke.lanl.gov (Mark D. Doyle) Newsgroups: comp.sys.next.programmer Subject: DPS contexts and NXImage Date: 13 Feb 1995 04:33:06 GMT Organization: Los Alamos National Laboratory Distribution: world Message-ID: <3hmne2$ghp@newshost.lanl.gov> Hi there. Well, I have taken upon myself as my first NeXTSTEP programming adventure to extend TeXview.app (and D. Linde's HyperTeXview.app) so that it can handle multiple views of the same document and multiple documents. I have succeeded for the most part except for one niggling little detail that I am having trouble circumventing. Namely, as it is now, all the TeXview windows share the same PS context and this sometimes screws up the mapping between fonts and their font id's in the context. I would really like to have each document in its own DPS context. However, I am having trouble getting the PS to the screen. For inspiration I have been following Yap's approach, but I am stuck. Both the purple book and the NeXT doc's are fairly vague about how to use DPS contexts for on-screen views. So here is what I did: I fixed up all of the PS wraps and PS single op calls so that they only write to the context associated with the currently active document. TeXview creates a cache that is an NXImage for doing all of the page renderings. However, when I composite this image into the view on the screen it comes up blank. Here is the code for SheetView.m which is just a view inside a scroll view whose drawSelf method renders the page into the NXImage and composite it into the view. cdpsctxt is the DPS context for the document that I am trying to render. The code is a mix of Rokicki's original code and Yap-inspired code. - drawSelf:(NXRect *)rects :(int)rectCount { NXRect r ; [cache lockFocus] ; /* cache is just an NXImage */ /* GetFocus gets the bbox of the current clippath, the ctm, and current win number. ReFocus focuses given these values. */ GetFocus(&c1x, &c1y, &c2x, &c2y, winCTM, &realWinNum); DPSSetContext(cdpsctxt) ; /* go to documents context */ ReFocus(realWinNum, winCTM, c1x, c1y, c2x, c2y); DPSSetContext(app_context) ; /* return to app's context */ DPStranslate(cdpsctxt, 0, mvvsize - rvvsize) ; NX_WIDTH(&r) = rhhsize ; NX_HEIGHT(&r) = rvvsize ; NX_X(&r) = 0 ; NX_Y(&r) = 0 ; NXEraseRect(&r) ; DPSsetgray(cdpsctxt, 0.0) ; if (dvifile != NULL) dopage((int)self) ; /* draw the page using lots of PS calls sent to the doc's context */ [cache unlockFocus] ; DPSflush(cdpsctxt) ; PSflush() ; [cache composite:NX_COPY fromRect:rects toPoint:&rects->origin]; return self; } GetFocus and ReFocus are taken right out of Yap. My (probably) incorrect thinking is: [cache lockFocus] locks the focus of the application's DPS context. The I get the parameters associated with where the focus is locked and refocus the document's DPS context to the same place. Then I draw it and then composite it in. But it is blank. I have tried looking in the debugger with showps and the page is being rendered somewhere, but it is hard for me to trace through it all. So what I am doing wrong? Yap draws directly into a window so maybe the difference is between drawing in a window and an NXImage. How can I arrange it so that when ever I send PS to the document's context it gets rendered into the NXImage which can then be composited into the view in the application's context on screen? Or am I completely off-base? Or have I done the right thing and made a boneheaded mistake elsewhere? Thanks for any help, Mark http://nqcd.lanl.gov/people/doyle/doyle.html http://xxx.lanl.gov/hypertex/
Newsgroups: comp.sys.next.programmer,comp.sys.next.bugs From: ccuilla@ccdd.com (Chris Cuilla) Subject: NewsGrazer endless spinning problem...thanks Message-ID: <1995Feb13.045424.19024@ccdd.com> Sender: ccuilla@ccdd.com Organization: Chris Cuilla Design & Development Date: Mon, 13 Feb 1995 04:54:24 GMT Just wanted to thank all of those who responded with suggestions and pointers to what might be causing my endless spinning problem with NewsGrazer. It turns out to have been a bad header in an article. Good to have the "net" for finding answers to problems. Thanks. -- Chris Cuilla Chris Cuilla Design & Development ccuilla@ccdd.com (NeXT mail accepted) -- Chris Cuilla Chris Cuilla Design & Development
From: xxp26229@daisy.egr.uh.edu (Xiangjun Pan) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP Positions - UP TO 75.00/Hr Date: 12 Feb 1995 21:35:47 GMT Organization: University of Houston Message-ID: <3hluvj$h4a@masala.cc.uh.edu> POSITION----------------------PROGRAMMER/ANALYST/DEVELOPER PLATFORM----------------------NEXTSTEP--COMMERCIAL EXPERIENCE. LANGUAGE----------------------OBJECTIVE C--COMMERCIAL EXPERIENCE EXPERIENCE--------------------AT LEAST TWO YEARS TYPE OF POSITION--------------CONTRACT AREA--------------------------WASHINGTON DC TYPE OF APPLICATION-----------FINANCIAL START DATE--------------------IMMEDIATELY TO BE CONSIDERED--------------FAX RESUME. BONUS-------------------------MOVING, OVERTIME (MORE THAN YOUR NORMALLY HOUR RATE) HOUR RATE---------------------UP TO $70.00/HR POSITIONS AVAL----------------SIX OPENINGS INDEPENDENT CONTRACTORS (1099) ARE WELCOME !!!!!! CONTRACT: Tel: (713) 526-2831 or (713) 757-2951 (No e-mail please!)
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: A basic question about subclasses of NSObject Message-ID: <1995Feb13.155309.23327@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <9502111053.AA00297@flexus> Date: Mon, 13 Feb 1995 15:53:09 GMT Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes > I'm still confused about how autorelease is implemented, and how it affects > the retain count. If it has to access the releasepool, autorelease may be > more expensive, especially in a multithreaded environment. Can anyone explain > how NeXT has actually implemented it? > I would bet that an NSAutoreleasePool is simply a collection that does not retain its members, but does release them. Each -autorelease message adds the autoreleased object to the current pool. Then when the pool is released, it sends a -release message to each object in the pool (note that it would be possible, if not likely that an object may be in the pool more than once). All it does is delay the -release message. -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Newsgroups: comp.sys.next.programmer From: brouwer@minnie.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: Re: A basic question about subclasses of NSObject Message-ID: <D3xMxB.2Is@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany References: <TIGGR.95Feb9111024@cobra.es.ele.tue.nl> <3hdgqv$cfh@darkstar.UCSC.EDU> <SHESS.95Feb9175002@subzero.winternet.com> Date: Mon, 13 Feb 1995 09:41:34 GMT In <SHESS.95Feb9175002@subzero.winternet.com> shess@subzero.winternet.com (Scott Hess) writes: >Another way of thinking of this is in terms of -free and Application's >-delayedFree:, with -release obviously corrosponding to -free, and >-autorelease to -delayedFree:. Think of -autorelease as being >instead called -delayedRelease, and you've instantly forced yourself >to always justify using -autorelease instead of -release. That's it. Personally I think, [[SomeClass new] autorelease] isn't too bad, since it avoides memory leaks for local objects. It is rather likely to forget the -free at the end of the method. Bye, Klaus Brouwer
Newsgroups: comp.sys.next.programmer From: brouwer@minnie.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: Re: Localization Question Message-ID: <D3xo5r.68B@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany References: <3hkn7e$ro1@nntp.Stanford.EDU> Date: Mon, 13 Feb 1995 10:08:14 GMT In <3hkn7e$ro1@nntp.Stanford.EDU> stanj@cs.stanford.edu (Stan Jirman) writes: >I have the following problem: After inserting IB help links (for the help >cursor), like for menu items, panels, etc), is there an easy way to >transfer these changes to other languages? I mean creating the links is >tedious enough; keeping 2 languages in sync is tedious, too. But to have >to copy all changes over manually is really an overkill. Or is there a >simple solution? I'm afraid not. IB does not distinguish between language dependent and language independant tasks. If you make a new connection in one nib file you have to add it in alle corresponding international nib files manually. The same with help connections. To make sure that everything is consistent you have to work in ONE language and translate all other nib files when you are ready to release. This means throwing away all translation work done for previous releases. Although NS provides more localization support the other development environments, it's far away from beeing really handy :-( (Ever used NXLocalizeStringFromTableInBundle() or such stuff? Urg!) Bye, Klaus Brouwer
Newsgroups: comp.sys.next.programmer From: ericc@asteroid.lysis.ch (Eric Chaubert) Subject: LocalizationHelper Message-ID: <D3xHMH.5AL@eunet.ch> Sender: usenet@eunet.ch Organization: EUnet AG, Switzerland Date: Mon, 13 Feb 1995 07:47:03 GMT Hello, I know that's maybe not the best place to post such a request but I'm looking for the author of LocalizationHelper (His EMail monty@IntuitiveEdge.com is not valid anymore). I'd like to get a Intel version of that software so if anybody has such a version in his hands or a copy of the source code (I'm ready to register) can he mail it to me. That will be greatly appreciated. Thanks in advance for your help -- Eric Chaubert Software Engineer Lysis SA Cotes de Montbenon 8 Radio Software Development 1003 Lausanne / Switzerland Phone: (+ 41 21) 312-91-91 E-Mail: ericc@lysis.ch
From: Mark Anenberg <marka@Eng.Sun.COM> Newsgroups: comp.sys.next.programmer Subject: Re: NSThread documentation weirdness... Date: 13 Feb 1995 17:15:22 GMT Organization: Sun Microsystems Inc., Mountain View, CA Message-ID: <3ho43a$4d9@engnews2.Eng.Sun.COM> References: <3he40m$3hl@gpo.gb.swissbank.com> jwishnie@gb.swissbank.com ( (Jeff Wishnie) wrote: > > Hi Folks, > > I just received my EOF 1.1 beta with a new and improved foundation kit. > The most welcome addition is the NSThread object that lets one use > FoundationKit objects in multithreaded servers. > > Question: > > The documentation lists the class method (I'm paraphrasing since the docs > are not on the machine I'm sitting at): > > + (void) newThreadSelector: (SEL) aSelector target: anObj arg: (int) arg > > the documentation then states that this method forks a new thread calling > the given selector on the given target with the given argument AND it says > returns the new thread which can then be paused, resumed, killed etc... > > BUT, the method returns nothing (hence the void). A quick glance at the > header confirms it returns nada. > > Has anyone written anything with NSThread yet? What does it really return? > If it doesn't return the thread is there an obvious way to get the thread > handle from outside the thread (there is a + (NSThread*) currentThread > call but that gives you the thread you are executing in)? > > Thanks, > > Jeff > jwishnie@gb.swissbank.com Jeff, Unless NeXT has changed the NSThread code in EOF 1.1, it does NOT return the current thread. It just creates a detached thread, which executes the messages and then exits. It does not wait for the detached thread and it does not explicitly return anything. It is not clear to me yet how to write code that controls a set of thread objects. Any code that I have seen that uses NSThread, does so by using its threadDictionary as a handle of sorts. It always gets the dictionary and then uses setObject: forKey: and objectForKey: to associate stuff with that thread object. It always just checks [[NSThread currentThread] threadDictionary] and goes from there. hope this helps, Mark Anenberg OpenStep Development Team SunSoft
From: pdell@pharos.NoSubdomain.NoDomain (Paul Dell) Newsgroups: comp.sys.next.programmer Subject: Re: GNU's OpenStep complient Developer Environment Date: 13 Feb 1995 17:37:55 GMT Organization: Computer Science Department, Boston University, Boston, MA, USA Sender: pdell@pharos (Paul Dell) Distribution: world Message-ID: <3ho5dj$i0s@news.bu.edu> References: <D3wEq2.C69@freenet.carleton.ca> The web site is: http://fvkma.tu-graz.ac.at/tbm/OpenStep/gnustep/gnustep.html At this moment there seems to be a problem accessing it. You can try later. Paul Dell pdell@bu.edu
From: smith@nextone (Howard Smith) Newsgroups: comp.sys.next.programmer Subject: WindowServer Secure Contexts Date: 13 Feb 1995 03:15:38 GMT Organization: NIEHS Sender: Howard Smith <smith@nextone.niehs.nih.gov> Message-ID: <3hmisq$jjf@huron.eel.ufl.edu> Summary: cant make nonsecure windowserver context Keywords: windowserver ps eps context I'm having some problems using file-io operators while in the postscript dictionary "nextdict". Executing the code sequence: -------- server.ps -------- nextdict begin /init_s { (/tmp/ws_sock) (w) file /myfile exch def } def /exit_s { myfile closefile } def 20 string /tmps exch def % create tmp string /space { myfile ( ) writestring } def /nl { myfile (\n) writestring } def init_s /show { /str exch def % window currentwindow dup 10 tmps cvrs myfile exch writestring space % window level currentwindowlevel 10 tmps cvrs myfile exch writestring space % x y currentpoint pop cvi 10 tmps cvrs myfile exch writestring currentpoint exch pop cvi space 10 tmps cvrs myfile exch writestring space % str myfile str writestring nl } def end ---------- end server.ps ------------ in shared VM (systemdict or nextdict) I consistently get the message: %%[ Error: invalidaccess; OffendingCommand: def ]%% The same code works fine if I substitute "userdict" for "nextdict". From the Adobe Redbook: dictionary access memory systemdict read-only ??? globaldict read-write globalVM userdict read-write localVM From Concepts/Pre3.0_Concepts/04_Drawing.rtfd systemdict read-only shared-context nextdict "modifiable" shared-context userdict ??? ??? I am presuming that NeXT's terminology "shared-context" is equivalent to "globalVM" in Adobe'ese. Questions for any Postscript/Windowserver experts out there: 1) Is there a way to change a "secure" context to a "nonsecure" context? How about as root? 2) What effect does disabling Preferences->Unix->Protected EPS Display have on the security of windowserver client ps contexts? It doesn't seem to change things from my perspective... It must mean security of mach-ports rather than ps code. Even running the code as root doesn't seem to allow access to file-io operators in the nextdict dictionary. What gives? Many thanks... p.s. For those suspicious that all this "security" finagling sounds inimical, I need this functionality to implement a speech processing "service" at the window server level. A guaranteed service provider if you will. -- Howard C. Smith smith@nextone.niehs.nih.gov
From: jsickel@sickel.com (Jeffrey A. Sickel) Newsgroups: comp.sys.next.programmer Subject: Re: Info wanted on: Voice recognition Objects Date: 13 Feb 1995 04:19:01 GMT Organization: MindSpring Enterprises Message-ID: <3hmmjl$30p@matlock.mindspring.com> References: <3hkue8$66i@news.xs4all.nl> Keywords: voice In article <3hkue8$66i@news.xs4all.nl> "Teele H. Horstra" <teeleh@xs4all.nl> writes: > Hi there, > > Has anybody done anything with voice recognition objects or is > there any NeXT software available which actually works ? > > The software should work on Intel or PA-RISC, we don't have any > old black boxes. > > Thanks for your reactions. Please, keep me posted as well. I definately know of some projects where I could use this kind of technology. In fact, is there anyone out there interested in making (helping with) a small device? Jeff Sickel jsickel@sickel.com
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 13 Feb 1995 10:15:05 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Feb13111505@cobra.es.ele.tue.nl> References: <9502111053.AA00297@flexus> In-reply-to: Raf Schietekat's message of Sat, 11 Feb 95 11:53:11 +0100 In article <9502111053.AA00297@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: >I'm still confused about how autorelease is implemented, Approximately: @implementation NSObject -autorelease { [NSAutoreleasePool addObject: self]; return (self); } @end @implementation NSAutoreleasePool +(void) addObject: o { [[[NSThread threadDictionary] valueForKey: key_for_obtaining_the_current_autoreleasepool] addObject: o]; } @end >and how it affects the retain count. Again: autoreleasing does not affect the *current* retain count. Releasing an autorelease pool releases the objects contained therein. An autorelease pool could be implemented as an array which does not retain its contents but which does release it upon a dealloc of itself. See <a href="http://www.es.ele.tue.nl/tiggr/objc/q2.html">Reference counting in FoundationKit</a>. --Tiggr
Newsgroups: comp.sys.next.programmer From: wave@media.mit.edu (Michael B. Johnson) Subject: compositing code (this should be easy) Message-ID: <1995Feb13.185707.21802@news.media.mit.edu> Sender: news@news.media.mit.edu (USENET News System) Organization: MIT Media Laboratory Date: Mon, 13 Feb 1995 18:57:07 GMT Hi folks. I have a whole bunch of very large images that I need to composite, so I just wrote this little program to do it for me. Unfortunately, it doesn't work (I just get the dst image written out in new). I don't get any errors (and I tried to catch all the ones that might flag what silly ass thing I'm doing wrong), so any help would be greatly appreciated... /* * cc -Wall -o sover sover.m -lNeXT_s */ #import <appkit/NXBitmapImageRep.h> #import <appkit/NXImage.h> #import <appkit/Application.h> #import <streams/streams.h> #import <appkit/tiff.h> #import <libc.h> #import <errno.h> #import <stdlib.h> void main(int argc, char **argv) { NXImage *src, *dst; NXPoint aPoint = {0.0, 0.0}; int fd; NXStream *s; if (argc != 4) { printf("USAGE: %s src dst new\n", argv[0]); exit(1); } NXApp = [Application new]; src = [[NXImage alloc] initFromFile:argv[1]]; dst = [[NXImage alloc] initFromFile:argv[2]]; if (![src lockFocus]) { printf("damn! unable to lock focus for image from file <%s>\n", argv[1]); exit(1); } else { if (![[src bestRepresentation] draw]) { printf("[[src bestRepresentation] draw] failed!\n"); exit(1); } [src unlockFocus]; } if (![dst lockFocus]) { printf("damn! unable to lock focus for image from file <%s>\n", argv[2]); exit(1); } else { if (![[dst bestRepresentation] draw]) { printf("[[dst bestRepresentation] draw] failed!\n"); exit(1); } if (![src composite:NX_SOVER toPoint:&aPoint]) { printf("[src composite:NX_SOVER toPoint:&aPoint] failed!\n"); exit(1); } [dst unlockFocus]; } fd = open(argv[3], O_CREAT | O_WRONLY, 0644); if (fd < 0) { perror("couldn't write new file"); exit(1); } s = NXOpenFile(fd, NX_WRITEONLY); [dst writeTIFF:s]; NXClose(s); close(fd); exit(0); } -- --> Michael B. Johnson -- wave@media.mit.edu --> http://wave.www.media.mit.edu/people/wave/ (don't forget the last "/" !!) --> MIT Media Lab -- Computer Graphics & Animation Group --> 20 Ames St. E15-023G -- (617) 666-4119 (day office)
Newsgroups: comp.sys.next.programmer From: wave@media.mit.edu (Michael B. Johnson) Subject: composite code (it really was easy) Message-ID: <1995Feb14.014731.126@news.media.mit.edu> Sender: news@news.media.mit.edu (USENET News System) Organization: MIT Media Laboratory Date: Tue, 14 Feb 1995 01:47:31 GMT To follow up my own post: much thanks to David Koski for his speedy answer to my dilemma, thereby saving me literally hours of mindless GUI pain... Anyway, for reference, here's the code (ain't NEXTSTEP and the wonderful InterNet NeXT folks grand?) BTW, y'all should stop by my web pages: lots of fun images and MPEG and QT sequences, most done using WavesWorld atop NEXTSTEP. Check out the thesis diary and the Stone Rave photos especially. The URL is in my .sig below... Anyway, here's the code: /* * cc -Wall -o sover sover.m -lNeXT_s */ #import <appkit/NXBitmapImageRep.h> #import <appkit/NXImage.h> #import <appkit/Application.h> #import <streams/streams.h> #import <appkit/tiff.h> #import <libc.h> #import <errno.h> #import <stdlib.h> void main(int argc, char **argv) { NXImage *src, *dst; NXBitmapImageRep *tiff; NXPoint aPoint = {0.0, 0.0}; NXSize size; int fd; NXStream *s; if (argc != 4) { printf("USAGE: %s src dst new\n", argv[0]); exit(1); } NXApp = [Application new]; tiff = [[NXBitmapImageRep alloc] initFromFile: argv[1]]; size.width = [tiff pixelsWide]; size.height = [tiff pixelsHigh]; src = [[NXImage alloc] initSize: &size]; // note, you may want to do a [[src setCacheDepthBounded: NO] // useCacheWithDepth: NX_TwentyFourBitRGBDepth]; if ([src lockFocus]) { [tiff draw]; [src unlockFocus]; } [tiff free]; tiff = [[NXBitmapImageRep alloc] initFromFile: argv[2]]; size.width = [tiff pixelsWide]; size.height = [tiff pixelsHigh]; dst = [[NXImage alloc] initSize: &size]; // same note if ([dst lockFocus]) { [tiff draw]; [dst unlockFocus]; } [tiff free]; if (![dst lockFocus]) { printf("damn! unable to lock focus for image from file <%s>\n", argv[2]); exit(1); } else { if (![src composite:NX_SOVER toPoint:&aPoint]) { printf("[src composite:NX_SOVER toPoint:&aPoint] failed!\n"); exit(1); } [dst unlockFocus]; } fd = open(argv[3], O_CREAT | O_WRONLY, 0644); if (fd < 0) { perror("couldn't write new file"); exit(1); } s = NXOpenFile(fd, NX_WRITEONLY); [dst writeTIFF:s]; NXClose(s); close(fd); exit(0); } -- --> Michael B. Johnson -- wave@media.mit.edu --> http://wave.www.media.mit.edu/people/wave/ (don't forget the last "/" !!) --> MIT Media Lab -- Computer Graphics & Animation Group --> 20 Ames St. E15-023G -- (617) 666-4119 (day office)
From: ckminer@longs.lance.colostate.edu Newsgroups: comp.sys.next.programmer Subject: EOF controller with master peer or master detail and insert (long) Date: 13 Feb 1995 17:59:40 GMT Organization: Rocky Mountain Internet Inc. Distribution: world Message-ID: <3ho6mc$2kq@potogold.rmii.com> I have a single table in my DB (QuickBase) which I have represented with two entities(record_table and record_info) in my application. Record_table has enough fields defined to let a user reliably select a record, and record_info has all the fields defined so editing can occur. Their relation is 1:1. The point of using two tables is to speed fetch times by only bringing in all fields for only the record of interest. This all works well and good for viewing and even updating, but I run into any number of problems on inserts. I want to send an insert: message to the master controller, then edit the new record via the detail controller. Then save the edits. The first problem is that after inserting a record in the master controller the error: EOGenericRecord doesn't recognize selector "toRecord_info" This makes sense since the new record doesn't have a value for that key. So I made use of controller:didInsertObject:atIndex: to set the value of the "toRecord_info" key. I don't know if I should set this to [EONull null] or to an instance of EOGenericRecord. - If I use an EOGenericRecord instance, will that be made available for edits in the detail view? - Should I create the instance with [[masterController dataSource] createObject] or [[detailController dataSource] createObject] or have a third data source for creating the new detail. (this last option is the only one that has actually returned and object) Any explaination for this? The SECOND problem occurs when I try to save: updateObject: cannot find original primary key Again this makes some sense, but it is not very helpful in getting a working application. My solution was to mearly set the primary key in the controller:didInsertObject:atIndex method for the newDetail. The THIRD problem is that on saving an error panel appears telling me that locking attributes could not be found for some attribute, so the update fails. This begins to not make sense, since the record is new, and as I understand the objects created in an EOController don't have locking attribues for all of the entity keys when the object is created. My solution was to try the recordObject:.... method of EODatabase or EODatabaseContext. The thought being that I need a snapshot somewhere if I want to do an update. I cannot get the snapshot the usual way, by fetching, since my object doesn't yet exist in the db. Nor can I get it the other usual way, by [EOController insert:] because this just plain didn't work. If I don't edit anything in the detail view everything sort of works, and SQL shows only an insert occurs. Also I can restart my app to continue with editing of my new record. If I edit the fields in the detail view the SQL produced during saveToObjects: shows first an insert, then a failed update. I believe the update fails, because the last snapshot of the new detail doesn't match the DB contents at the time of the update, ie the detail snap doesn't have [EONull null] values for all of its keys. What exactly does an EOController do on insertObject:atIndex: when operations are buffered? I believe this is something like what I want to effect myself, which is where I started (just send insert: to the detail controller(doesn't work))
From: nachnani@ieor-sun1.berkeley.edu (Sushil Nachnani) Newsgroups: comp.sys.next.programmer Subject: Help : new programmer Date: 13 Feb 1995 18:18:19 GMT Organization: U.C. Berkeley Sender: nachnani@ieor-sun1 (Sushil Nachnani) Distribution: world Message-ID: <3ho7pb$9a3@agate.berkeley.edu> Hi! I am in the process of developing a user interface on a NEXT machine. I was wondering if anybody has good pointers to usefule literature. To start things off I need a lot of dialog boxes to initialize the instances of objects taking part in my simulation. If anybody is willing to send me some sample code that would be great. Thanks. -- ************************************************** - SUSHIL NACHNANI ............................................. The way to be happy is to ask yourself before you do anything - do I want to do this? and only proceed if the answer is yes. - Illusions - Richard Bach ............................................. nachnani@cimsim.berkeley.edu sushil@zap.lbl.gov 510 548 0930 (h) 510 486 6670 (w) **************************************************
From: kieffer@lighthouse.com (Robert Kieffer) Newsgroups: comp.sys.next.programmer Subject: Re: A-A-R-R-R-G-G-G-H-H-H-E-L-P !!!!! Date: 13 Feb 1995 22:25:11 GMT Organization: Lighthouse Design, Ltd. Distribution: world Message-ID: <3hom87$ck4@lighthouse.lighthouse.com> References: <3hj4ql$r6d@darkstar.UCSC.EDU> Art Isbell writes > In article <SAMURAI.95Feb11141715@marge.cs.mcgill.ca> > samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) writes: > > <saty@next2.togliatti.su> writes: .. stuff deleted... > > Very cute! > > > > Try this: > > > > [[Application workspace] launchApplication:"Terminal"]; > > > But what if no Application object exists? Can Terminal be opened from > a non-AppKit utility? Hmmm, I guess Terminal would already have to be > open to run a non-AppKit utility anyway :-) Well, not really. It could > have been run in Stuart, TipTop, etc. Application's '+ workspace' is a class method. Do you really need a [running] instance of Application for this to work? Barring that, there's always 'system("open /NextApps/Terminal.app")'. :-) Robert Kieffer kieffer@lighthouse.com
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 13 Feb 1995 21:41:21 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95Feb13164122@marge.cs.mcgill.ca> References: <9502111053.AA00297@flexus> <1995Feb13.155309.23327@il.us.swissbank.com> In-reply-to: ericb@il.us.swissbank.com's message of Mon, 13 Feb 1995 15:53:09 GMT <ericb@il.us.swissbank.com> writes: >Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes >>I'm still confused about how autorelease is implemented, and how it affects >>the retain count. If it has to access the releasepool, autorelease may be >>more expensive, especially in a multithreaded environment. Can anyone explain >>how NeXT has actually implemented it? >> >I would bet that an NSAutoreleasePool is simply a collection that does not >retain its members, but does release them. Each -autorelease message adds the >autoreleased object to the current pool. Then when the pool is released, it >sends a -release message to each object in the pool (note that it would be >possible, if not likely that an object may be in the pool more than once). >All it does is delay the -release message. Pretty much... also note that those of us writing object-intensive apps will make these pools pretty big. If they double in storage size when they run out of room, then an environment that uses up 300,000 objects between releases will cause up to 600,000 slots to be made in the pool. Each slot is at least 4 bytes. That's a waste of 2.4M just to hold the objects. 300,000 objects isn't all that hard to create. I hope nobody else is doing it besides me, or else my swap file is gonna get REALLY big. Of course, I use a recycler, and don't retain/release or autorelease objects because of this. My recycler stores the objects, but doesn't add the 4 byte per object overhead. In fact, it adds 0 overhead, and can re-provide memory when it's needed. It's pretty cool. You just say: [NKRecycler recycleClass:[Myclass class]] And free your object when you're done with it.It'll be automatically recycled and reprovided the next time someone says +alloc to your class. It's totally transparent. Hmmm... I wonder if I should start working on a garbage collector. - darcy -- For he today that sheds his blood with me shall be my brother; be he ne'er so vile, this day shall gentle his condition. Gentlemen in England now abed shall think themselves accursed they were not here, and hold their manhoods cheap whiles any speaks that fought with us upon Saint Crispin's day.
From: greatyak@aol.com (GreatYak) Newsgroups: comp.sys.next.programmer Subject: Looking for Job in Raleigh/Durham North Carolina Date: 14 Feb 1995 13:02:46 -0500 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3hqr86$i6c@newsbf02.news.aol.com> My name is Rob Warner and I am looking for a NeXTSTEP or Smalltalk software development position in the Raleigh/Durham/Chapel Hill/RTP area. I have 4 years of NeXTSTEP and object-oriented experience, as well as both Bachelor's and Master's degrees in Computer Science. If you know of any leads you could provide me with, I'd really appreciate them. Thanks! Rob
From: alvin@cse.ucsc.edu (Alvin Jee) Newsgroups: comp.sys.next.programmer Subject: Distributed Objects real slow? Date: 15 Feb 1995 08:42:27 GMT Organization: University of California, Santa Cruz Message-ID: <3hsepj$bs9@darkstar.UCSC.EDU> Hello Fellow Netters! I am writing an app that I want to use DO in, but I found that the app runs _real_ slowly when using the DO stuff. So, I thought I'd run some quick tests and found that DO runs much, much, much slower that one would expect. The samples I wrote just assign a value to an integer using different programming constructs 1,000,000 times in a for loop. Here's the run times I got from getrusage: Straight C code : 0.000000 system and 0.189984 user Using C functions to set the int: 0.000000 system and 0.569976 user Using C++ object for the int : 0.000000 system and 0.579944 user Using ObjC object for the int : 0.000000 system and 1.159961 user Using DO with protocols : 230.583732 system and 512.727327 user Using DO without protocols : 237.339423 system and 517.345028 user Do these numbers agree with anybody else's? I'm not concerned about the actual numbers, but the relative timings. This was run on an Intel GX/Pro DX2-66 running NS3.2. For the DO runs, the client and server was the same machine. I hope somebody can tell me that my numbers are way off and then show me a way to get the DO numbers within reason. If there is enough interest, I can post the actual code if it would help.. -- Alvin Jee alvin@cse.ucsc.edu NeXTMail gleefully accepted! Using the Internet since 1984
From: wjs@brog.omnigroup.com (William Shipley) Newsgroups: comp.sys.next.programmer Subject: Re: NEXTSTEP Career Positions Date: 12 Feb 1995 15:00:43 -0800 Organization: Omni Development, Inc. Message-ID: <3hm3ur$rtm@brog.omnigroup.com> References: <1995Feb10.165837.16131@norden1.com> E. Hutchinson writes: > The OMNI GROUP currently has several excellent positions >in the NEXTSTEP arena. Most, but not all of these positions >are in the Midwest. These are career positions that require >previous commercial NEXTSTEP experience. >ehutch@norden1.com (419) 893-6367 [fax] >The Omni Group (419) 893-6334 [voice] >1310 Craig >Maumee, Ohio 43537 Please note that this OMNI GROUP has nothing to do with The Omni Group in Seattle; that is the Seattle guys who did the William Morris project, the Frame port, worked on Concurrence, wrote OmniImage and OmniWeb, and consult for McCaw. These also aren't the guys with the THX system. This is some other OMNI GROUP. I don't actually know a thing about them except they aren't me and seem to have my company's name. -Wil Shipley President, Omni Development, Inc. D/B/A The Omni Group DISCLAIMER: I went back to Ohio, but my city was gone.
From: leigh@antechinus.cs.uwa.oz.au (Leigh Smith) Newsgroups: comp.sys.next.programmer,comp.sys.next.hardware Subject: Is there Bus Mouse source in NS/FIP 3.3? Date: 14 Feb 1995 09:00:09 GMT Organization: The University of Western Australia, Department of Computer Science Distribution: world Message-ID: <3hprep$e2n@bilby.cs.uwa.oz.au> Hi All, As I'm running out of XT bus interrupts (3,4,5), I'm trying to run my Logitech MouseMan Bus mouse on AT bus interrupts (10,12,14,15) using a daughter board to access the extra IRQ lines. So far, I've not been successful. I'm running NS/FIP 3.2 which only supplies DriverKit source for video cards, SCSI tape drives and Network cards. If I upgrade to 3.3, is there source for Bus Mice included? Anyone tried a similar stunt? -- Leigh Smith NeXTMail: leigh@cs.uwa.edu.au Computer Science Dept Phone: +61-9-380-1945,Fax:+61-9-380-1089 University of Home NeXTMail:leigh@psychokiller.dialix.oz.au Western Australia Home Phone: +61-9-382-3071 *--=----=----=----=----=----=---====---=----=----=----=----=----=----=--*
Newsgroups: comp.sys.next.programmer,comp.sys.next.sysadmin From: img@ai.ed.ac.uk (Ian Green) Subject: data segment overlapping-- please help Message-ID: <IMG.95Feb15162302@broom.ai.ed.ac.uk> Sender: news@aisb.ed.ac.uk (Network News Administrator) Organization: University of Edinburgh Date: Wed, 15 Feb 1995 16:23:02 GMT Hello, Suddenly i cannot link on my 68040 next slab, running NS 2.1 and gcc 2.3.3. I get errors during linking which are something to do with data segements overlapping with libsys_s.a. What does this mean; what causes it; and of course, what can I do! Please help if you can. Many thanks. -ian green ---- Here is a transcript gcc2.3.3 -v -ansi -g -Wall -o simulate simulate.o templates.o lib/detectlib.o lib/shapelib.o lib/displaylib.o lib/generallib.o lib/contactlib.o lib/movelib.o -lXaw -lXt -lXext -lXmu -lX11 -lm -lXt Reading specs from /usr/local/gnu/lib/gcc-lib/next/2.3.3/specs gcc version 2.3.3 /usr/local/gnu/lib/gcc-lib/next/2.3.3/ld -o simulate -lcrt0.o -L/usr/local/gnu/lib/gcc-lib/next/2.3.3 -L/usr/local/gnu/lib simulate.o templates.o lib/detectlib.o lib/shapelib.o lib/displaylib.o lib/generallib.o lib/contactlib.o lib/movelib.o -lXaw -lXt -lXext -lXmu -lX11 -lm -lXt -lgcc -lsys_s -lgcc ld: __DATA segment (address = 0x68000 size = 0x41c2000) of simulate overlaps with __DATA segment (address = 0x4010000 size = 0x4000) of /usr/shlib/libsys_s.B.shlib ld: __DATA segment (address = 0x68000 size = 0x41c2000) of simulate overlaps with __OBJC segment (address = 0x4014000 size = 0x2000) of /usr/shlib/libsys_s.B.shlib collect: /bin/ld returned 1 exit status *** Exit 1 Stop.
Newsgroups: comp.sys.next.programmer,comp.sys.next.sysadmin From: img@aisb.ed.ac.uk (Ian Green) Subject: data segment overlapping-- please help Message-ID: <D41ux4.FFn@aisb.ed.ac.uk> Sender: news@aisb.ed.ac.uk (Network News Administrator) Organization: Dept AI, Edinburgh University, Scotland Date: Wed, 15 Feb 1995 16:24:39 GMT Hello, Suddenly i cannot link on my 68040 next slab, running NS 2.1 and gcc 2.3.3. I get errors during linking which are something to do with data segements overlapping with libsys_s.a. What does this mean; what causes it; and of course, what can I do! Please help if you can. Many thanks. -ian green ---- Here is a transcript gcc2.3.3 -v -ansi -g -Wall -o simulate simulate.o templates.o lib/detectlib.o lib/shapelib.o lib/displaylib.o lib/generallib.o lib/contactlib.o lib/movelib.o -lXaw -lXt -lXext -lXmu -lX11 -lm -lXt Reading specs from /usr/local/gnu/lib/gcc-lib/next/2.3.3/specs gcc version 2.3.3 /usr/local/gnu/lib/gcc-lib/next/2.3.3/ld -o simulate -lcrt0.o -L/usr/local/gnu/lib/gcc-lib/next/2.3.3 -L/usr/local/gnu/lib simulate.o templates.o lib/detectlib.o lib/shapelib.o lib/displaylib.o lib/generallib.o lib/contactlib.o lib/movelib.o -lXaw -lXt -lXext -lXmu -lX11 -lm -lXt -lgcc -lsys_s -lgcc ld: __DATA segment (address = 0x68000 size = 0x41c2000) of simulate overlaps with __DATA segment (address = 0x4010000 size = 0x4000) of /usr/shlib/libsys_s.B.shlib ld: __DATA segment (address = 0x68000 size = 0x41c2000) of simulate overlaps with __OBJC segment (address = 0x4014000 size = 0x2000) of /usr/shlib/libsys_s.B.shlib collect: /bin/ld returned 1 exit status *** Exit 1 Stop.
Newsgroups: comp.sys.next.programmer From: Cedar@cedar.demon.co.uk (Cedar Systems) Subject: Where is NXApp? Organization: Myorganisation Date: Tue, 14 Feb 1995 20:40:45 +0000 Message-ID: <792794445snz@cedar.demon.co.uk> Sender: usenet@demon.co.uk Does anyone know/care what has happened to the NXApp publication from NEXT. We took out a subscription last Summer, but we have not received the Fall or Winter editions. NEXT told me last Fall that they were doing a *Special* double Winter edition instead of a Fall and Winter edition and that all subscribers would be told of this in due course. I was also told that I could cancel my subscription and get a refund if I preferred! I have not received anything from NEXT since then. I have found previous editions of NXApp very useful, which is just as well as they are $50 a copy. Does anyone have more information on NXApp? Paul. -- ----------------------------------------------- Cedar Systems email: Cedar@cedar.demon.co.uk -----------------------------------------------
Newsgroups: comp.sys.next.programmer From: stefano@galileo.pr.net.ch (Stefano Unternaehrer) Subject: Training Videos for Developers... Europe? Message-ID: <D408sp.6n5@galileo.pr.net.ch> Sender: stefano@galileo.pr.net.ch (Stefano Unternaehrer) Organization: Galileo Software - Tenero - Switzerland Date: Tue, 14 Feb 1995 19:29:13 GMT In c.s.n.announce Robert Smith (Next Announcements) wrote: > The Object Shop has introduced its Corporate Developer Training Videos to > train developers that don't want or can't afford to fly all over the > country for NeXTStep Developer training. > The Corporate Developer series covers basic and advanced topics, > and a competent C programmer can be extremely skilled at NeXTStep > and Objective-C development after watching the 12 tape set. > Videos can be ordered at 1-800-OBJECT-5. This is a great idea, BUT... 1. What about Europe market? 1-800-based phones aren't reachable from here. 2. Are those Videos readable with Europeans video recorders ? 3. Why not a CD-ROM ??? CD-ROM has of course many advantages, like to be readable with any driver, be visible with the workstation i.e. just side by side with your tests, etc etc. Anyway, does someone know a contact e-mail address, or at least a fax or phone number other then 1-800- ? Thank you for any info! Stefano -- Stefano Unternaehrer NeXTStep Software Developer Casa Manuela - 6598 Tenero Switzerland - Europe phone: +41 93 673 073 fax: +41 93 673 064 NeXTMail: Stefano@Galileo.pr.net.CH
From: nicholr@heaphy.gb.swissbank.com (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: CustomCell Date: 13 Feb 1995 17:25:08 GMT Organization: me organized? That's a joke! Message-ID: <NICHOLR.95Feb13172508@heaphy.gb.swissbank.com> References: <1995Feb7.173444.16201@fokus.gmd.de> <1995Feb7.201318.8267@il.us.swissbank.com> To: pelletk@il.us.swissbank.com (Ken Pelletier) In-reply-to: pelletk@il.us.swissbank.com's message of Tue, 7 Feb 1995 20:13:18 GMT <pelletk@il.us.swissbank.com> writes: >If you're using a browser, NXBrowserCell already allows you to set an image via >the - setImage: method. Also note that it assumes the height of the image is the height of a standard NXBrowserCell which sometimes isn't the case when you have images. You need to override calcCellSize if you want your cells height to be the height of the image. >If you're not using or subclassing NXBrowserCell, you can override >-drawInside:inView: and do whatever drawing you need. >/NextDeveloper/Examples/AppKit/ScrollDoodScroll/CustomCell.m should get you >started with some ideas. Yes this example is excellent for working with Cells in this way.
From: kenaaron@aol.com (KenAaron) Newsgroups: comp.sys.next.programmer Subject: OO Job Opportunities Date: 15 Feb 1995 12:45:38 -0500 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3htek2$3os@newsbf02.news.aol.com> NeXTSTEP Developers and Consultants Our client is looking for highly technical individuals to help develop and promote their object oriented technology. We are looking for individuals who have experience developing in an object oriented environment and can communicate the benefits of object oriented technologies to a wide range of customers. If you are interested in finding out more about this opportunity or know of some one who may be interested please contact me. Ken Aaron (recruiter) kenaaron@aol.com 415-327-8801
Newsgroups: comp.sys.next.programmer From: ja50n@netcom.com (Jason Tudisco) Subject: I Need Cash, Help me. Message-ID: <ja50nD41Bn8.sF@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 15 Feb 1995 09:28:20 GMT Sender: ja50n@netcom9.netcom.com Hi, My name is Jason Tudisco. I am 18 years old and have decided to go back to school to try to get my life back on track. I am in the process of getting my G.E.D now. I would like to go to M.I.T. or another good school that teaches Computer Programing. I am also on my own now and have been for two and a half years, And I have learned one thing. Life is isn't always fair. I am always a little to short of cash. Even going to school, and I mean any school, is out of my budget. I have researched many get rich stuff (Most I can't afford) And I have yet to be rich. I saw other poeple around the internet just out right asking for money for nothing in return. In my fight to find extra cash, I am giving it a try. I guess it can't hurt to ask. So I'm asking all of you who have read this far. If you could just send me $5.00, $2.00, or even just $1.00. It would make me very happy. I promiss to all that can help me out a thankyou letter. To all who have at least took the the time to read this, thanks... Jason Tudisco 628 Myrtle Ave. W Sacramento, Ca 95605
From: Lars Immisch <limmisch@t42.ppp.de> Newsgroups: comp.sys.next.programmer Subject: Re: HELP: how install Mac font for NeXT? Date: 15 Feb 1995 01:14:31 GMT Organization: myself Distribution: world Message-ID: <3hrkho$18p@rzsun02.rrz.uni-hamburg.de> References: <3hb2k3$a60@cismsun.univ-lyon1.fr> In article <3hb2k3$a60@cismsun.univ-lyon1.fr> Kwang-Bo Shim, shim@grasp.insa-lyon.fr writes: >Bonjour!!! > >I've downloaded a McIntosh font "sonata.sit" from site (ftp.funet.fi), but >could not install it sucessfully for my NeXT(040/NS3.2). > >Merci beaucoup for any info. >K. SHIM You need to convert it. Metamorphosis (on a Mac) does that job. If you're positive you need only Sonata, send me an email (to remind me) and I can mail you a tar file of Sonata. I did the same thing you are trying to do, but I happen to have a Mac also Lars
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.programmer Subject: Re: GNU's OpenStep complient Developer Environment Date: 15 Feb 1995 08:07:29 GMT Organization: Dept. of Computer Science, University of Salzburg/Austria Distribution: world Message-ID: <3hsco1$d8u@jak.cosy.sbg.ac.at> References: <D3wEq2.C69@freenet.carleton.ca> <3ho5dj$i0s@news.bu.edu> Paul Dell (pdell@pharos.NoSubdomain.NoDomain) wrote: > The web site is: > http://fvkma.tu-graz.ac.at/tbm/OpenStep/gnustep/gnustep.html This page is still unofficial, I will have to put work in it. > At this moment there seems to be a problem accessing it. You can try later. I don't know why, my access logs say that you have received it. ><hostname>.bu.edu [Mon Feb 13 19:46:40 1995] GET > /tbm/OpenStep/gnustep/gnustep.html HTTP/1.0 (I won't tell you the name of his machine) There is a FAQ, >The newest version of this FAQ can be obtained by anonymous ftp from >ftp://ftp.cosy.sbg.ac.at/pub/gnustep/gnustep.FAQ >A HTML version of it can be found on >http://www.cosy.sbg.ac.at/comp/os/gnustep/faq.html. I will soon upload a new version, 0.15 -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@fvkma.tu-graz.ac.at GNU OpenStep Development Team, Documentation Coordinator/Leader http://fvkma.tu-graz.ac.at/tbm/OpenStep/gnustep/gnustep.html
From: fischer@fokus.gmd.de (Robert Fischer) Newsgroups: comp.sys.next.programmer Subject: DBImageFormatter does not clip? Date: 15 Feb 1995 15:25:31 GMT Organization: GMD-FOKUS Message-ID: <3ht6db$3g2@stern.fokus.gmd.de> Hi, I have found no examples for using DBImageFormatter but have made some experiences by my own. There seems to be one bug: I give a NXImage as an object to a DBImageFormatter cell and the image is not clipped to the boundaries of the cell. When I resize the column, the image covers the neighbor cell. Any hints? Thanx, Robert. -- ----------------------------------------------------------------------- Robert Fischer @ GMD-Fokus -------- __o ------- _`\<,_ fischer@fokus.gmd.de ------- (*)/ (*) ## NeXT-Mail welcome ## -----------------------------------------------------------------------
From: hacker@access.digex.net (Dark Hacker) Newsgroups: comp.sys.next.programmer Subject: Problem subclassing TextField Date: 14 Feb 1995 16:23:45 -0500 Organization: Fortress Of Computation Message-ID: <3hr711$jhh@access3.digex.net> Some of the guys here at work have run into a problem with subclassing IB objects. Subclassing MyTextField from TextField we create a custom View object. Problem is that when we click on the MyTextField object we see MouseDown messaged only once... with the firs#################################################################### Path: news.informatik.uni-muenchen.de!lrz-muenchen.de!fauern!news.th-darmstadt.de!terra.wiwi.uni-frankfurt.de!zeus.rbi.informatik.uni-frankfurt.de!news.dfn.de!scsing.switch.ch!news.rediris.es!news.uoregon.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!usc!bloom-beacon.mit.edu!eru.mt.luth.se!news.luth.se!sunic!trane.uninett.no!due.uninett.no!alf.uib.no!alf.uib.no!usenet From: edmtl@alf.uib.no (Thor Legvold) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer,comp.sys.next.hardware Subject: Switchboard dialing strings (NS3.3) Date: 14 Feb 1995 18:22:37 +0100 Organization: University of Bergen Lines: 16 Message-ID: <3hqost$ii8@alf.uib.no> NNTP-Posting-Host: alf.uib.no Xref: news.informatik.uni-muenchen.de comp.sys.next.sysadmin:13971 comp.sys.next.programmer:14419 comp.sys.next.hardware:15098 I just moved my computer (Cube) to my new job - to dial out with my ZyXEL I need to get a dialtone out first (by dialing "0" first). I'm sure there's a way to make this happen automagically for at least NXFax, but haven't found out how. Instead of going into my adressbook to change all the entries to start with "0," there must be somewhere to set a prefix - yes? Maybe I should rather do it in the modems hardware settings? Anyone who knows, please e-mail me! Regards, -- Thor Legvold | This is the strangest life NorNeXT User Group leader | I've ever known... University of Bergen | - Jim Morrison, The Doors Norway | edmtl@edb.uib.no (NeXTmail)
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer Subject: Re: Info wanted on: Voice recognition Objects Date: 14 Feb 1995 17:14:46 GMT Organization: MCI Message-ID: <3hqoe6$gga@hermes.dna.mci.com> References: <3hkue8$66i@news.xs4all.nl> <3hmmjl$30p@matlock.mindspring.com> Keywords: voice In article <3hmmjl$30p@matlock.mindspring.com>, Jeffrey A. Sickel <jsickel@sickel.com> wrote: >In article <3hkue8$66i@news.xs4all.nl> "Teele H. Horstra" ><teeleh@xs4all.nl> writes: >> Hi there, >> >> Has anybody done anything with voice recognition objects or is >> there any NeXT software available which actually works ? >> >> The software should work on Intel or PA-RISC, we don't have any >> old black boxes. >> >> Thanks for your reactions. > >Please, keep me posted as well. I definately know of some projects >where I could use this kind of technology. In fact, is there anyone >out there interested in making (helping with) a small device? > >Jeff Sickel >jsickel@sickel.com Folks: I seem to recall that there was a company in Canada called Trillitium Software (or something like that). Find an old copy of NeXTWorld and check out the ads in the back of the magazines; the ad is distintive b/c it shows the head of a statue on top of a piano with a gag on it. It's been a while so I don't know if they're still around. Hope this helps.... - Alex -
From: rain@beauty.ucsb.edu (John Wadleigh) Newsgroups: comp.sys.next.programmer Subject: HELP: Keyword highlighting in Text Object Date: 15 Feb 1995 20:34:27 GMT Organization: University of California, Santa Barbara Message-ID: <3htogj$17h@ucsbuxb.ucsb.edu> Keywords: text keyword token I am trying to create an editor that will highlight keywords (tokens from a programming language) as the user types and edits the document. I have tried to use the delegate method "textDidChange" (where I set docEdited) to highlight the current word/token near the insert cursor. (this is after marking the word from use of the text filter which checks if the token is in the language). The problem seems to be that in the method "textDidChange" I have to save the selection and mark the token selected, then set the color for it using setSelColor and then reset the selection back. This whole process happens every time a key is entered. This is not looking to be smooth enough. Therefore!! Does someone know a better way? Perhaps by creating my own Text class and replacing the default one? But can someone show me how to do that please? Or if it's something else please show how to do it in detail because I'm just a beginner. Thanks a lot!! :) John
From: ron deangelis <71031.1332@CompuServe.COM> Newsgroups: comp.lang.c++,comp.realtime,comp.std.c++,comp.sys.next.programmer,comp.theory Subject: Real Time OOPS? Date: 16 Feb 1995 00:55:30 GMT Organization: via CompuServe Information Service Distribution: inet Message-ID: <3hu7q2$6k0$2@mhadf.production.compuserve.com> Doing a research paper on real-time object oriented programming. Anyone have resources that I might look at, eg, Pubs, journals, white papers, books, ftp sites... Thankx
From: jon@bearcreek.com (Jon Buffington) Newsgroups: comp.sys.next.programmer,misc.jobs.offered Subject: US-GA-Atlanta System Analyst/Admin - Permanent position Date: 16 Feb 1995 01:16:59 GMT Organization: Bear Creek Technologies, Inc. Distribution: usa Message-ID: <3hu92b$m12@jupiter.netdepot.com> Alpha Star International, an import/export firm, is seeking a C++ programmer and NeXT Unix system administrator to support our custom database application and our NeXT Unix network. Permanent position located in Atlanta, GA. 1-3 years experience preferred. Job Description: C++/Objective C modifications to custom object-oriented database application. Unix networking required, knowledge of Windows NT a plus. Local and wide area network administration, hardware maintainance, user support. Principals only. Please respond to: Alpha Star International attn: Martha Buffington 550 Pharr Rd., Ste. 612 Atlanta, GA 30305 404-237-7175 FAX: 404-237-7462
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Where is NXApp? Date: 16 Feb 1995 03:17:58 GMT Organization: University of Californ#################################################################### From: hlin@hntp2.hinet.net (Heng-Yi Lin) Newsgroups: comp.sys.next.misc,comp.sys.next.programmer Subject: HELP: compile macps v2.3 Date: 16 Feb 1995 03:39:20 GMT Organization: HiNet Message-ID: <3huhd8$adn@serv.hinet.net> Keywords: mac,print,compile Greetings from Formosa! I need to print Macintosh files via a NeXT to NeXT printer and have grabbed from sumex-aim.stanford.edu macps v2.3, which supposed does the job of straightening out problems with LaserPrep. However, since upgrading to NS3.3, I can no longer compile. If some kind soul could take a moment to compile the source (I'll NeXTMail the .shar file to you) and send me the binary, I'll truly appreciate it. Or, if someone's already got the binary (must be v2.3+ to work with MacOS 7+), could you please e-mail it to me? Thanks! -- Best regards, Heng-Yi Lin Fengyuan, Taiwan 420 hlin@hntp2.hinet.net (MIME & NeXTMail OK)
From: hlin@hntp2.hinet.net (Heng-Yi Lin) Newsgroups: comp.sys.next.misc,comp.sys.next.programmer Subject: HELP: compile under NS3.3 w/o Dev3.2 Date: 16 Feb 1995 03:48:20 GMT Organization: HiNet Message-ID: <3huhu4$amn@serv.hinet.net> Following up to my own call for help, and excuse me if my ignorance is obvious: Now that I've compressed my Dev3.0 since it does not work with NS3.3 at all, I was wondering: 1. If I don't need NeXTy things such as IB, could I still compile (straight Unix codes) using the old 3.0 developer compiler set? 2. Failing that, what if I get the GNU compiler (gcc2.6.0.tar.gz from ftp.cs.orst.edu)? Would that work to compile straight Unix sources? Which files do I need to get from ~binaries/programming/? I want to make sure before I grab the whole 6MB... Thanks! -- Best regards, Heng-Yi Lin Fengyuan, Taiwan 420 hlin@hntp2.hinet.net (MIME & NeXTMail OK)
From: dcoyle@kakapo.mpi-hd.mpg.de (David A. Coyle) Newsgroups: comp.sys.next.programmer Subject: Re: Info wanted on: Voice recognition Objects Date: 16 Feb 1995 12:28:39 GMT Organization: University of Heidelberg, Germany Message-ID: <3hvgdn$bji@sun0.urz.uni-heidelberg.de> References: <3hkue8$66i@news.xs4all.nl> <3hmmjl$30p@matlock.mindspring.com> <3hqoe6$gga@hermes.dna.mci.com> alexn@fdcsrvr.cs.mci.com (Alex Nghiem) wrote: >In article <3hmmjl$30p@matlock.mindspring.com>, >Jeffrey A. Sickel <jsickel@sickel.com> wrote: >>In article <3hkue8$66i@news.xs4all.nl> "Teele H. Horstra" >><teeleh@xs4all.nl> writes: >>> Hi there, [[snip]] >Folks: >I seem to recall that there was a company in Canada called Trillitium >Software (or something like that). Find an old copy of NeXTWorld and check >out the ads in the back of the magazines; the ad is distintive b/c it shows >the head of a statue on top of a piano with a gag on it. >It's been a while so I don't know if they're still around. >Hope this helps.... >- Alex - Look in the ObjectWare Catalogue: (Summer '94, page 70) TextToSpeech Developer Kit Trillium Sound research ttsinfo@trillium.ab.ca they claim HPPA in Q4 '94, and the prices don't look bad either. David A. Coyle
From: samschap@merle.acns.nwu.edu (Sam Schapmann) Newsgroups: comp.sys.next.programmer Subject: Re: EOFault question Date: 17 Feb 1995 01:39:07 GMT Organization: Halaby Corporation Message-ID: <3i0unr$22g@news.acns.nwu.edu> References: <3hrqpm$ncd@hermes.dna.mci.com> ... [ description of frustrations with getting an EOFault to fetch from within gdb ] ... Yeah, I ran into the same thing. However, you'll find that sending the fault a message *from within your program code* _will_ cause the fault to resolve itself. I think the reason gdb won't let you send those messages at runtime is because it really thinks the EOFault is an NSConcreteMutable- Array (the Objc runtime interpreter probably screens out any selectors which it can't find under the receiver's method lists). +qualifierForFault: and +fetchOrderForFault: are _class_ methods -- that means they're meant to be sent to the EOFault class object, not the particular EOFault instance that you're dealing with. The example code you mentioned should work if you make the following substitutions: [array qualifier] ===> [EOFault qualifierForFault:array] [array fetchOrder] ===> [EOFault fetchOrderForFault:array] Next has an _excellent_ Objective-C/OOP book. You can check it out in the /NextLibrary/Documentation/NextDev/Concepts/ObjectiveC directory. Hope this helps ... Sam (ASCII only, please)
Newsgroups: comp.sys.next.programmer From: borrelli@ritz.mordor.com (Steven Borrelli) Subject: Re: I Need Cash, Help me. References: <ja50nD41Bn8.sF@netcom.com> Organization: Mordor International BBS - Jersey City, NJ Date: Wed, 15 Feb 1995 19:07:25 GMT Message-ID: <D422GD.D3D@ritz.mordor.com> In article <ja50nD41Bn8.sF@netcom.com>, Jason Tudisco <ja50n@netcom.com> wrote: > >Hi, > > My name is Jason Tudisco. I am 18 years old and have decided to go back >to school to try to get my life back on track. I am in the process of >getting my G.E.D now. I would like to go to M.I.T. blah blah blah send cash The David Rhodes Institute is extremely generous to needy students. Mr. Rhodes is quite prominent here on the net and I'm sure he could solve your financial problems. _steve -- Steven Borrelli borrelli@ritz.mordor.com NeXT, MIME mail formats, finger for PGP key, blah blah blah
From: cs@kau1.kodak.com (Craig Smith) Newsgroups: comp.sys.next.programmer Subject: Re: Who distributes NEXT in Australia Date: 17 Feb 1995 09:19:10 +1100 Organization: Kodak Australasia Pty Ltd Message-ID: <3i0j0u$nvh@bud.kau2.kodak.com> References: <3h4sq3$od0@sleipnir.iaccess.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Trans#################################################################### From: celam@radiomail.net (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: EOFault question Date: 15 Feb 1995 03:01:10 GMT Organization: MCI Communications Distribution: world Message-ID: <3hrqpm$ncd@hermes.dna.mci.com> I have a setup of master_1->detail_1->detail_2 and I have the master object from the database thanks to a user selecting something from a on-screen panel. So, now the join between master_1 and detail_1 is some sort of an EOFault object, or at least I think I it is :0( My code looks like this: theJoinFaultArray = [anEORecord objectForKey: @"toDetail_1"] Examining the object under gdb I see: (gdb) po theJoinFaultArray <_EOArrayFault: 0x142070, entity: detail_1, qualifier: (foo = 1)> Hmm, well I'm willing to assume that an EOArrayFault is sort of like an EOFault, so I try some of the stuff in the documentation for EOFault: (gdb) po [theJoinFaultArray class] NSConcreteMutableArray Well, though I am embarassed by reading the documentation (:-) I plunge on and try to cause the fault to fetch (disregarding warnings about database channel contention): (gdb) po [theJoinFaultArray self] Target does not respond to selector. Yikes. Okay, I'm thinking that perhaps this is just some sort of terrible mistake (or just an instance of the EOPain object) so I reluctantly type in the code just below the advice "Forcing a fetch on an array fault is best done by replacing the array fault with one that has a different database channel, and then causing the new fault to fetch itself." Of course the only problem is that neither NSConcreteMutableArray nor _ _EOArrayFault respond to either "qualifier" or "fetchOrder". So, the example code fails. Hmmm again, so I thought that mabye the example was just a little (lot?) wrong and they really meant "qualifierForFault:" and "fetchOrderForFault:". Bzzzt. I'd really like to avoid having to take a code-hammer to this problem and just fetch the damn objects my self! Any thoughts? -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office (rare) Airedales and polar bears!
From: mckelvey@suite.com Newsgroups: comp.sys.next.programmer Subject: gdb "view" - fail to connect Date: 17 Feb 1995 02:13:42 GMT Organization: Suite Software Message-ID: <3i10om$j5p@bilbo.suite.com> Several users have experienced a problem when running gdb on one NeXT and bringing up Edit.app on another NeXT using the gdb "view host" command. They get an error like: "Cannot connect to Edit.app on host". The error comes back very quickly. Trying the same thing from the other direction works. Public window server is enabled on both hosts (if that matters). Edit.app is already launched on both hosts (which shouldn't matter). I can use -NXHost to bring up Edit.app. These are all black boxes running 3.2. It's a machine-specific problem, and seems to have nothing to do with permissions. I'm stumped. -- The only thing necessary for the triumph of good is for evil men to do nothing. mckelvey@suite.com
Newsgroups: comp.sys.next.programmer From: smb3u@kiptron.psyc.virginia.edu (Steven M. Boker) Subject: Re: Mixing colors Message-ID: <D46F9q.23z@murdoch.acc.Virginia.EDU> Sender: usenet@murdoch.acc.Virginia.EDU Organization: University of Virginia, Department of Psychology References: <abellD44rEI.Lu4@netcom.com> Distribution: na Date: Sat, 18 Feb 1995 03:34:38 GMT In article <abellD44rEI.Lu4@netcom.com> abell@netcom.com (Steven T. Abell) writes: >I'm writing a little program for my daughter, who's always asking >what you get when you mix colorX with colorY. I thought it would be >a five-minute hack, but a little analysis shows at least three >different and reasonable ways to mix colors numerically: > >1) take the maximum of each pair of components; >2) take the average of each pair of components; >3) add each pair of components, saturating at a maximum value. > >Then the questions arise, >"How is color subtraction performed?" and >"How do you mix alpha?" > >Are there standard answers to these questions? >Can someone point me to a reference? > It seems so simple, doesn't it. However, color perception is much more complex than you might think. What you want is some ordering of the perceptual space of colors which is linear, so that you can perform some operation which is analagous to addition and subtraction. The first attempts at this were by Hermann Grassman, Clerk Maxwell and von Helmoltz in the mid nineteenth century. The more-or-less accepted standard these days is the CIE color space. Hans Irtel has worked out a pretty good linearization of color space which he describes in @ARTICLE{Irtel92a, AUTHOR = {Irtel, Hans}, TITLE = {Computing data for color vision modeling}, JOURNAL = {Behavior Research Methods, Instruments \& Computers}, VOLUME = {24}, NUMBER = {3}, PAGES = {397--401}, YEAR = {1992} } He has a program available for ftp (in echh FORTRAN) which is basically a set of lookup tables. A quick and dirty approach can be made by using the tensor sum of the RGB values. If you're interested in color vision, I invite you to take a look at a paper on my WWW homepage: http://kiptron.psyc.virginia.edu/steve_boker/ Happy color mixing! Steve -- #====#====#====#====#====#====#====#====#====#====#====#====#====# # Steven M. Boker # "Two's bifurcation # # boker@virginia.edu # but three's chaotic" # #====#====#====#====#====#====#====#====#====#====#====#====#====#
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Thu, 16 Feb 95 18:56:52 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9502161756.AA02648@flexus> Subject: Re: A basic question about subclasses of NSObject FYIO, The full extent of my confusion about how autorelease is implemented was an earlier message from Ken Anderson in which he states: >>>>> c.s.n.p 1994-12-26 NeXT has complicated this problem by the fact that -autorelease actually decrements the use count, rather than placing the object in the autorelease pool and that object being sent -release at the end of the event (or when the pool is freed). If you desired to implement a resolution to the circular freeing problem, you'd have to implement it in both -release AND -autorelease. <<<<< Art Isbell has sent me a transcript of a gdb session indicating that this seems not to be true, at least from the perspective of using the -retainCount message (which, strictly speaking, might still be hiding an optimisation trick). So if nobody else wants to delve into this for the fun of it, if there are no further problems, and if Ken Anderson does not provide proof for his assertion (possibly in an earlier version of the FoundationKit), I'm letting this go. Happy FoundationKit'ing, Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: jgomezr@neptune.uucp (JL Gomez) Newsgroups: comp.sys.next.programmer Subject: Precompiled headers how? Date: 16 Feb 1995 20:12:15 GMT Organization: Information Resources and Technology Message-ID: <3i0biv$8hg@nic-nac.CSU.net> I accidently wrote out label_t.h as root on my system. Now, when I use Project Builder, I now get the annoying message that it can't use the precompiled header label_t.h because the one in the machine directory was changed. How do I fix this problem? Thanks for the answer! -- jgomezr@neptune.calstatela.edu
From: ckminer@LANCE.ColoState.Edu (Chris Miner) Newsgroups: comp.sys.next.programmer Subject: EOF source snippets Date: 18 Feb 1995 02:10:18 GMT Organization: Colorado State U. Engineering College Distribution: world Message-ID: <3i3kua$1cio@yuma.ACNS.ColoState.EDU> This might be a repeat I am having trouble with my news connection Sorry Could anyone with an inkling to do so send me snippets of EOF source which they have used in an app or an example which does something usefull. I am not neccessarily looking for complete examples, but perhaps a just a method of a custom EO class, or perhaps something used in a delegate. Or maybe a description of how several of the EOF classes were used together to accomplish some task. Thanks in advance, Chris chris@opensource.com
From: (Avatar) Newsgroups: comp.sys.next.programmer Subject: Re: NEXTSTEP Career Positions Date: 17 Feb 1995 19:11:24 GMT Organization: NeXT, Inc. Message-ID: <3i2scs$sj@rosie.next.com> References: <3hm3ur$rtm@brog.omnigroup.com> In article <3hm3ur$rtm@brog.omnigroup.com> wjs@brog.omnigroup.com (William Shipley) writes: $E. Hutchinson writes: $ $> The OMNI GROUP currently has several excellent positions $>in the NEXTSTEP arena. Most, but not all of these positions $>are in the Midwest. These are career positions that require $>previous commercial NEXTSTEP experience. $ $>ehutch@norden1.com (419) 893-6367 [fax] $>The Omni Group (419) 893-6334 [voice] $>1310 Craig $>Maumee, Ohio 43537 $ $ $Please note that this OMNI GROUP has nothing to do with The Omni Group $in Seattle; that is the Seattle guys who did the William Morris $project, the Frame port, worked on Concurrence, wrote OmniImage and $OmniWeb, and consult for McCaw. These also aren't the guys with the THX $system. This is some other OMNI GROUP. I don't actually know a thing $about them except they aren't me and seem to have my company's name. $ $-Wil Shipley $President, Omni Development, Inc. $D/B/A The Omni Group $ $DISCLAIMER: I went back to Ohio, but my city was gone. Sounds like those guys are a bunch of poseur headhunters looking for some instance credibility. I say SUE THE BASTARDS :) -- jonathan_kolyer@next.com My thoughts, opinions, and experiences are my own.
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: some confusion over OpenStep Message-ID: <1995Feb14.224438.8130@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3hqnu4$gdi@hermes.dna.mci.com> Date: Tue, 14 Feb 1995 22:44:38 GMT Alex Nghiem writes > Folks: > > I have the following questions about NS 3.3 and the upcoming 4.0 release: > > 1. Will EOApplication eventually become NSApplication? > I think there is actually EOF-specific code in the EOApplication class. However, the NSAutoreleasePool management functions will be moved into NSApplication. However, I don't think NSApplication will be available until NS 4.0. > 2. Does NSArray replace NSList? > Yes > 4. There's a new Foundation header called ObjCRuntime. However, this only > includes five declarations: NSStringFromSelector, NSSelectorFromString, > NSClassFromString, and NSStringFromClass. Where are the equivalent for things > such as sel_getName and other runtime functions? Or will this file be rounded > out eventually? > All of the functions prototyped in ObjcRuntime just augment the normal objc related functions. They add a measure of Foundation functionality to the exiting objc functions. I believe there are more of these type of functions planned, but I don't have my OpenStep ref handy. -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: Re: HELP: Keyword highlighting in Text Object Date: 16 Feb 1995 05:36:04 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3huo84$8st@solaris.cc.vt.edu> References: <3htogj$17h@ucsbuxb.ucsb.edu> In article <3htogj$17h@ucsbuxb.ucsb.edu> rain@beauty.ucsb.edu (John Wadleigh) writes: ->I am trying to create an editor that will highlight keywords (tokens from ->a programming language) as the user types and edits the document. I have ->tried to use the delegate method "textDidChange" (where I set docEdited) ->to highlight the current word/token near the insert cursor. (this is after ->marking the word from use of the text filter which checks if the token is ->in the language). -> ->The problem seems to be that in the method "textDidChange" I have to save ->the selection and mark the token selected, then set the color for it using ->setSelColor and then reset the selection back. This whole process happens ->every time a key is entered. This is not looking to be smooth enough. ->Therefore!! -> ->Does someone know a better way? Perhaps by creating my own Text class and ->replacing the default one? But can someone show me how to do that please? ->Or if it's something else please show how to do it in detail because I'm ->just a beginner. -> Sorry to post this, but my email to John Wadleigh bounced. I started the same thing, but got fed up trying to keep track of everything, if you like, I can send ypu the code. It uses some stuff from the MiscKit, MiscString and MiscTextExtensions. BTW, my code will highlight words no problem, it just that I couldn't figure out a nice way to handle multi-line or multi-word things in a nice clean way. John
From: mike_zemina@wiltel.com (Mike Zemina) Newsgroups: comp.sys.next.programmer Subject: Problems with gprof Date: 14 Feb 1995 23:32:47 GMT Organization: WilTel Message-ID: <3hreiv$lei@gateway.wiltel.com> Has anyone found a way to get GPROF to work for ObjC? I get the following output when I run gprof gmon.out gprof: file: gmon.out is unknown type (arch_flag to ofile_map() can't be specified to be other than NULL) [nllookup] binary search fails for address 0x3c50 [nllookup] binary search fails for address 0x3cc4 bad arc from 0x3c50 to 0x3cc4, count 1 (ignored). I get the "binary search fails" and the "bad arc" line quite a number of times before the "call graph profile:" which gives nothing. Any clues? I'm trying this out on a small sample program before tackling the big program. --- Proverb: "Sensible people will see trouble coming and avoid it, but an unthinking person will walk right into it and regret it later." Mike Zemina WilTel, Inc. One Williams Center Mail Drop D-2 Tulsa, OK 74172 USA phone: +1-918-588-3073 fax: +1-918-588-3719 email: mike_zemina@wiltel.com
From: blanford@gemstone.com (Ron Blanford) Newsgroups: comp.sys.next.programmer Subject: Re: EOF source snippets Date: 18 Feb 1995 05:06:28 GMT Organization: Nicholas|Applegate Capital Management, San Diego, CA Distribution: world Message-ID: <3i3v8k$dgi@nacm.com> References: <3i3kua$1cio@yuma.ACNS.ColoState.EDU> In article <3i3kua$1cio@yuma.ACNS.ColoState.EDU> ckminer@LANCE.ColoState.Edu (Chris Miner) writes: > > Could anyone with an inkling to do so send me snippets of EOF source > which they have used in an app or an example which does something > usefull. I am not neccessarily looking for complete examples, but > perhaps a just a method of a custom EO class, or perhaps something > used in a delegate. Or maybe a description of how several of the EOF > classes were used together to accomplish some task. Here's a triplet of methods that implement a -description method for an arbitrary EO. Very convenient for gdb's po command when debugging. Rather than print out the class name and id in hex, it pretty-prints the values of the instance variables. -- Ron - (NSArray *)attributeNames { struct objc_ivar_list *ivars = self->isa->ivars; struct objc_ivar *ivar_list = ivars->ivar_list; int i, count = ivars->ivar_count; NSMutableArray *attributeNames = [NSMutableArray arrayWithCapacity:count]; for (i=0; i<count; i++) { [attributeNames addObject: [NSString stringWithCString:ivar_list[i].ivar_name]]; } return attributeNames; } - (NSString *)descriptionWithIndent:(unsigned)level { if (level > 2) { return [super description]; } return [[self valuesForKeys:[self attributeNames]] descriptionWithIndent:level]; } - (NSString *)description { return [self descriptionWithIndent:0]; }
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: Info wanted on: Voice recognition Objects Date: Sat, 18 Feb 1995 19:52:16 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950218195216.702AACUG.malc@daneel> References: <3hkue8$66i@news.xs4all.nl> <3hmmjl$30p@matlock.mindspring.com> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII Keywords: voice > Has anybody done anything with voice recognition objects or is > there any NeXT software available which actually works ? > I think VISUS would consider porting SpeechKit to other platforms if you asked them: contact Rob Brennan <rab@cs.cmu.edu> I've also mentioned before that a couple of us here are considering porting some of the ABBOT (up to 64,000 word speaker-independent continuous speech recognition) system (developed by Tony Robinson at Cambridge and Steve Renals, now at Sheffield) to NEXTSTEP: I've had some expressions of interest already... if there are others around who might give us a bit more incentive please let me know. Have fun, mmalc. posn. research facilitator where institute for language speech and hearing sheffield university c/o department of computer science regent court 211 portobello street sheffield s1 4dp england vox (+44) 114 282 5594 fax (+44) 114 278 0972 email m.crawford@dcs.shef.ac.uk NeXTMail, SunMail, MIME welcome http://www.dcs.shef.ac.uk/
From: taweil@skat.usc.edu (Ta-Wei Li) Newsgroups: comp.sys.next.programmer Subject: Compiling Tcl/Tk in NeXTSTEP 3.3 Date: 18 Feb 1995 00:21:31 -0800 Organization: University of Southern California, Los Angeles, CA Sender: taweil@skat.usc.edu Distribution: world Message-ID: <TAWEIL.95Feb18002128@skat.usc.edu> Hi, I am trying to compile Tcl 7.3 and Tk 3.6 on NeXTSTEP/Intel 3.3 with co-Xist. So far, the programs compiled with a lot of warrning message about the header files. I found the following in the Tcl FAQ. (setenv CC `cc -E` ; ./configure) However, when I run the test, the tcltest return Tcl_AppInit failed: error in reading file "/usr/local/lib/tcl/init.tcl": Error 0 When I trace the source code, the error was because the fstat return the wrong file size. The init.tcl file is about 8,000 bytes but the st_size says it is about 7 MB. However, when I test the fstat function in a small program, it works correctly. So, I wonder if error has to do with the header files warning. So, if you have successfully compile Tcl 7.3/Tk 3.6, please send me your patch. Thanks in advance. By the way, Tcl7.4 Beta 2 compiled just fine. David -- Ta-Wei "David" Li UNIX Consultant, University of Southern California Member, League for Programming Freedom "Innovate, don't litigate."
Newsgroups: comp.sys.next.programmer From: freeband@netcom.com (Nick Porcaro) Subject: Help with the Damn HelpPanel Message-ID: <freebandD44vCp.Do2@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Fri, 17 Feb 1995 07:26:49 GMT Sender: freeband@netcom17.netcom.com Folks, Is there a way to resize the NXHelpPanel?? - Nick
Newsgroups: comp.sys.next.programmer,comp.lang.objective-c From: scratch@sundance.sce.carleton.ca (Craig Scratchley) Subject: Using the GNU Objective-C Class Library under NeXTSTEP Message-ID: <scratch.793052099@sundance.sce.carleton.ca> Summary: libobjects can (mostly) compile under NeXTSTEP (FIP) Keywords: FSF GNU Objective-c Class Library libobjects nested Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University Date: Fri, 17 Feb 1995 20:14:59 GMT Having been spoiled by the rather mature Smalltalk class library, I have been keen to use the GNU Objective-c Class Library (libobjects). libobjects makes use of the nested functions feature of gcc, and this adds quite a lot of flexibility when, for example, enumerating collections. However, in the FAQ part 2 on comp.lang.objective-c, it is written that the library does not compile with the 3.2 version of the NEXTSTEP compiler because the compiler does not support nested functions. The FAQ also says that the library does not work with the NeXT Objective C runtime library. Recently I e-mailed ask_next@NeXT.COM and asked them about nested functions. NeXT replied very quickly that nested functions can work by using the -traditional-cpp compiler option. They also warned me that I might have trouble with header pre-compilation. I have tried this with NeXT cc-430.8 (from the 3.2 HP distribution -- available by anonymous ftp from usual sites) and it seems to work on my Intel-based computer. I'm not sure about the Motorola/Intel release of the 3.2 compiler. With this knowledge, I am now using (much of) libobjects. However, I had to do a few tricky things to make it compile with the above compiler and my version of the NeXTSTEP runtime library (3.2 developer, 3.3 user). 1. To configure prior to using make: > sh $ CC='cc -traditional-cpp' ./configure > exit 2. Some of the files #included a file called <objc/hash.h>, so I (as root): > echo > /usr/include/objc/hash.h 3. I couldn't compile the file Connection.m, so I changed the Makefile to not compile it. (Doesn't matter too much for me: I am, at least initially, just using the collection objects) It is something to do with the hash.h file from step 2, I think. That should be about right. I actually ended up with version 0.1.3 of libobjects on my computer, so I am just reasoning what should be necessary for version 0.1.0. Anyways, the above steps should point you in the right direction. As an added bonus, the LAMBDA macro seems to work with the above setup. (the LAMBDA macro apparently has not worked with many gcc configurations) The LAMBDA macro allows the compilation of code like the following based on a libobjects example: #include <objects/stdobjects.h> #include <objects/Dictionary.h> int main() { id d; /* Create a Dictionary object that will store int's with string keys */ d = [[Dictionary alloc] initWithType:@encode(int) keyType:@encode(char*)]; /* Load the dictionary with some items */ [d putElement:1 atKey:"one"]; [d putElement:2 atKey:"two"]; [d putElement:6 atKey:"six"]; [d withElementsCall: LAMBDA (void, (elt i), { printf ("One element is %d \n", i.int_u); }) ]; exit(0); } -- W. Craig Scratchley | internet: scratch@sce.carleton.ca Dept. of Systems and Computer Engineering | phone: (613) 788-5740 (Dept.) Carleton University | (613) 241-6952 (Home) Ottawa, ON, CANADA K1S 5B6 | fax: (613) 788-5727 (Dept.)
From: gmecchia@cc.colorado.edu Newsgroups: comp.sys.next.programmer Subject: [Q] in which class define this class method: Account or Portfolio? Date: 18 Feb 1995 14:30:52 GMT Organization: The Colorado College, Colorado Springs, CO Message-ID: <3i50as$mns@lace.Colorado.EDU> Hi, I have two class objects, Portfolio and Account. An instance of Portfolio "owns" many instances of Account. If I want the accounts that are owned by portfolio 'xyz', I've implemented the class method: using OMT notation, $accountsInPortfolio (aPortfolioName: String) : Set of Accounts in both the Account and Portfolio classes. As an argument, it takes a string that uniquely identifies a portfolio, and it returns a collection of instances of Account. In the implementation of the method, a database would be queried for those accounts being "owned" by portfolio "xyz" and for every item found, instantiate an account and set its value. The method returns the collection of those instances. What is a source of confusion, is in which class should this method be implemented: the Account, or, the Portfolio class. Since the method instantiates Account objects, it seems natural to implement this "factory" method in Account. But since portfolios "own" accounts, why not ask the Portfolio class for the list of accounts that are "owned" by one of its portfolios. Any thought or suggestions? your comments are greatly appreciated. - Alexis gmecchia@cc.colorado.edu
Date: 15 Feb 1995 15:43:22 GMT Newsgroups: comp.sys.next.programmer From: ja50n@netcom.com (Jason Tudisco) Message-ID: <cancel.ja50nD41Bn8.sF@netcom.com> Control: cancel <ja50nD41Bn8.sF@netcom.com> Sender: ja50n@netcom9.netcom.com Subject: cmsg cancel <ja50nD41Bn8.sF@netcom.com> Spam cancelled by news@bnr.ca
From: object@crl.com (Robert Smith) Newsgroups: comp.sys.next.programmer Subject: Zinc anyone? Date: 18 Feb 1995 23:05:43 -0800 Organization: CRL Dialup Internet Access (415) 705-6060 [Login: guest] Message-ID: <3i6qk7$fmd@crl8.crl.com> Has anyone out there done anything with the Zinc class library for writing NeXTStep apps. I heard there was a recent article in Infoworld (don't know when) on it. How well does it handle the unique NS interface objects?
From: rhm@oclc.org (Robin Hermance-Moore) Newsgroups: comp.sys.next.programmer Subject: Re: HELP: how install Mac font for NeXT? Date: 17 Feb 1995 09:01:38 -0500 Organization: OCLC Online Computer Library Center, Inc. Distribution: world Message-ID: <3i2a82$96@oclc.org> References: <3hb2k3$a60@cismsun.univ-lyon1.fr> <3hrkho$18p@rzsun02.rrz.uni-hamburg.de> Lars Immisch (limmisch@t42.ppp.de) wrote: : In article <3hb2k3$a60@cismsun.univ-lyon1.fr> Kwang-Bo Shim, : shim@grasp.insa-lyon.fr writes: : >Bonjour!!! : > : >I've downloaded a McIntosh font "sonata.sit" from site (ftp.funet.fi), : but : >could not install it sucessfully for my NeXT(040/NS3.2). : > : >Merci beaucoup for any info. : >K. SHIM : You need to convert it. Metamorphosis (on a Mac) does that job. If you're : positive you need only Sonata, : send me an email (to remind me) and I can mail you a tar file of Sonata. : I did the same thing you are trying to do, but I happen to have a Mac also : Lars There's an article on this topic in NEXT IN LINE #3 (I just got hold of a sample copy - very nice!!!) Robin -- Robin Hermance-Moore, Manager, Telecomm Facilities Development Section OCLC Online Computer Library Center, Mail Stop 468 6565 Frantz Road, Dublin OH 43017-0702 rhm@oclc.org (NeXT MaIL WeLCOME!) 614-764-6215
Newsgroups: comp.sys.next.programmer From: pavneet@cyantic.com (Pavneet Arora) Subject: Being notified which form is active Organization: CYANTIC Systems Date: Sat, 18 Feb 1995 18:37:15 GMT Message-ID: <1995Feb18.183715.2322@cyantic.com> Hi, I am trying to figure out how to be notified which of a number of forms in a window has been made active. Since Forms are subclassed from Matrix I tried to set target and action approriately, but there didn't seem to be any effect. Setting target and action for each FormCell does initiate the notification, but only on exit from the FormCell. advTHANKSance. -- Cheers, - pavneet ................................................................. Pavneet Arora -- pavneet@cyantic.com ------------ Cyantic Systems
From: dcl@panix.com (David Lambert) Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.sys.next.misc Subject: Obscurely documented feature of Fiend v1.3 - toggling window tier Date: 17 Feb 1995 09:17:44 -0500 Organization: PANIX Public Access Internet and Unix, NYC Message-ID: <3i2b68$ojg@panix.com> Hi. Stephen Perkins just made me aware that a certain feature of Fiend v1.3 is very obscurely documented. It is only mentioned in the "Incompatibilities" section of the Release Notes: * Toggling the Fiend Dock's window tier is now performed by alt-clicking the Fiend Dock icon, rather than from the Preferences panel This is, of course, just like the Workspace dock, so some people will have discovered it by themselves, no doubt. (This lets you have the Fiend Dock above all windows or below them.) Just in case you hadn't discovered it, now you know. - David C. Lambert dcl@homer.uu.panix.com
From: chris@opensource.com Newsgroups: comp.sys.next.programmer Subject: Re: EOFault question Date: 19 Feb 1995 00:31:19 GMT Organization: Rocky Mountain Internet Inc. Distribution: world Message-ID: <3i63gn$29t@potogold.rmii.com> References: <3hrqpm$ncd@hermes.dna.mci.com> Cliff Elam writes > I have a setup of master_1->detail_1->detail_2 and I have the master object > from the database thanks to a user selecting something from a on-screen > panel. > > So, now the join between master_1 and detail_1 is some sort of an EOFault > object, or at least I think I it is :0( Sure it is. EOFault is a class cluster which sets up a fault array for to many relationships and a single object fault for to one relationships. > > My code looks like this: > theJoinFaultArray = [anEORecord objectForKey: @"toDetail_1"] > > Examining the object under gdb I see: > (gdb) po theJoinFaultArray > <_EOArrayFault: 0x142070, entity: detail_1, qualifier: (foo = 1)> > > Hmm, well I'm willing to assume that an EOArrayFault is sort of like an > EOFault, so I try some of the stuff in the documentation for EOFault: > (gdb) po [theJoinFaultArray class] > NSConcreteMutableArray > looks good, the fault should respond to this message as the object for which it is masquarading. > Well, though I am embarassed by reading the documentation (:-) I plunge on > and try to cause the fault to fetch (disregarding warnings about database > channel contention): > (gdb) po [theJoinFaultArray self] > Target does not respond to selector. > objectAtIndex: and count are two other examples from the documentation which should cause this array fault to fetch. Have you tried sending this same message in source, or using [NSBundle stripAfterLoading:NO] from the appDidInit: method in your apps delegate, then trying the same trick in gdb? This really is for nothing if your channel isn't free though. > Yikes. Okay, I'm thinking that perhaps this is just some sort of terrible > mistake (or just an instance of the EOPain object) so I reluctantly type in > the code just below the advice "Forcing a fetch on an array fault is best > done by replacing the array fault with one that has a different database > channel, and then causing the new fault to fetch itself." > > Of course the only problem is that neither NSConcreteMutableArray nor _ > _EOArrayFault respond to either "qualifier" or "fetchOrder". So, the example > code fails. > > Hmmm again, so I thought that mabye the example was just a little (lot?) > wrong and they really meant "qualifierForFault:" and "fetchOrderForFault:". > Bzzzt. > The mesages you are looking for are probably: + (EOQualifier *)qualifierForFault:fault; + (NSArray *)fetchOrderForFault:fault; Have a look at the header <eoaccess/EOFault.h>. I wouldn't count on the documentation being correct for EOF. There are alot of places where the docs and the headers are out of sync. Is this from with in gdb, or in compiled code? Chris chris@opensource.com
From: chris@iastate.edu (Chris Wong) Newsgroups: comp.sys.next.programmer Subject: Matrix & rightMouseDown Date: 19 Feb 1995 01:53:18 GMT Organization: Iowa State University, Ames, Iowa (USA) Message-ID: <3i68ae$sr@news.iastate.edu> Keywords: Matrix, mouse, right, appkit Someone please shade some light for me. The following is what I did to make the Matrix class response to the right mouse button, but no button cell in the matrix get SELECTED. Querying the selectedCell returns the selected cell last clicked with the LEFT button. How do I correct this? Huge thanks for any help. #import "Matrix.h" @implementation Matrix(MatrixCat) - rightMouseDown:(NXEvent *)theEvent { NXBeep(); // DEBUG: to indicate that this method get invoked. return [self sendAction:@selector(mark:) to:nil]; } @end Chris -- MIME welcomed, NeXTMail Ok. Chris Wong | "Hardware is supposed to serve Software." chris@iastate.edu | Computer Engineering & Computer Science <:)>:)<:)>:)<:)>:)<:) | Iowa State University of Science and Technology
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: NSThread documentation weirdness... Date: 19 Feb 1995 13:37:11 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Feb19143711@python.es.ele.tue.nl> References: <3ho43a$4d9@engnews2.Eng.Sun.COM> <3i2f8t$6gc@sator.eric.on.ca> In-reply-to: vchi@visgen.com's message of 17 Feb 1995 15:27:25 GMT In article <3i2f8t$6gc@sator.eric.on.ca> vchi@visgen.com (Vrijmoed Chi) writes: 2. Is it possible to use autoreleased object in threads other than the main thread? Of course. --Tiggr
Newsgroups: comp.sys.next.programmer From: abell@netcom.com (Steven T. Abell) Subject: Mixing colors Message-ID: <abellD44rEI.Lu4@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Distribution: na Date: Fri, 17 Feb 1995 06:01:29 GMT Sender: abell@netcom20.netcom.com I'm writing a little program for my daughter, who's always asking what you get when you mix colorX with colorY. I thought it would be a five-minute hack, but a little analysis shows at least three different and reasonable ways to mix colors numerically: 1) take the maximum of each pair of components; 2) take the average of each pair of components; 3) add each pair of components, saturating at a maximum value. Then the questions arise, "How is color subtraction performed?" and "How do you mix alpha?" Are there standard answers to these questions? Can someone point me to a reference? Steve
From: manzara@salab1.psych.ucalgary.ca (Leonard Manzara) Newsgroups: comp.sys.next.programmer Subject: Re: Info wanted on: Voice recognition Objects Date: 17 Feb 1995 18:55:40 GMT Organization: Paranoids United Message-ID: <3i2rfc$ksf@ra.lib.ucalgary.ca> Alex Nghiem <alexn@fdcsrvr.cs.mci.com> wrote: :In article <3hmmjl$30p@matlock.mindspring.com>, :Jeffrey A. Sickel <jsickel@sickel.com> wrote: :>In article <3hkue8$66i@news.xs4all.nl> "Teele H. Horstra" :><teeleh@xs4all.nl> writes: :>> Hi there, :>> :>> Has anybody done anything with voice recognition objects or is :>> there any NeXT software available which actually works ? :>> :>> The software should work on Intel or PA-RISC, we don't have any :>> old black boxes. :>> :>> Thanks for your reactions. :> :>Please, keep me posted as well. I definately know of some projects :>where I could use this kind of technology. In fact, is there anyone :>out there interested in making (helping with) a small device? :> :>Jeff Sickel :>jsickel@sickel.com : :Folks: : :I seem to recall that there was a company in Canada called Trillitium :Software (or something like that). Find an old copy of NeXTWorld and check :out the ads in the back of the magazines; the ad is distintive b/c it shows :the head of a statue on top of a piano with a gag on it. : :It's been a while so I don't know if they're still around. : :Hope this helps.... : :- Alex - That's Trillium Sound Research Inc., and yes we are still around. However, we sell the TextToSpeech Kit, which does speech synthesis, not speech recognition. Applied Speech Technologies sells the "SpeechKit" for NeXT and Intel computers. A brochure from November 1993 gives a list price of $2495, including A/D hardware and microphone. I don't know if this company is still selling, and the latest contact information I have is: Applied Speech Technologies 122 Oakdale Drive Zelienople, PA 16063 (412) 452-1101 FAX (412) 452-6763 By the way, Trillium Sound Research will soon be releasing version 2.0 of the TextToSpeech Kits. It features much-improved speech synthesis quality, based on a new articulatory real-time speech synthesizer. Email TTSInfo@trillium.ab.ca for more details. Leonard Manzara manzara@trillium.ab.ca manzara@salab1.psych.ucalgary.ca
From: ufink@ba-stuttgart.de (Udo Fink) Newsgroups: comp.sys.next.programmer Subject: HP27250 probs Date: 19 Feb 1995 19:11:21 GMT Organization: Berufsakademie Stuttgart Message-ID: <3i854p$kic@news.belwue.de> Summary: HP27250 Network Probs Keywords: HP27250, Ethernet, Network Hi, I tried to use a HP27250 Ethernet card with nextstep. I was happy to find a driver for this card, but it does not work. At boot time the system shows the following error message: _hpReset8390 did not complete timeout occured It seems as if next skips trying after a few times. When I ping to my IP adress everything seems fine, but I`m not able to reach any other system. Can anybody help me? Thanks Udo Fink
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Sat, 18 Feb 95 20:37:44 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9502181937.AA01879@flexus> Subject: Is anyone managing identifier prefixes? LS, Imagine: You have created an object or a set of objects (a kit...), and when you or somebody else deploys it/them, a conflict arises. Somebody else has used the same name for a class, and the project won't link, or give errors when some code in a bundle is loaded. Someone has to give in, but who? And even so, there is bound to be some sorrow for some developer(s) and/or user(s). Maybe some code that is already in established use has to be adapted as a result. Suppose you're called Ervin Oldfield, so you're using the prefix EO, and suddenly some software company comes trampling all over you... We're in the objects business, folks! What authority should I consult to make sure such a conflict will never happen to my code (``I want to use such-and-such a prefix, is it still free, and if so, would you register it for my exclusive use?'')? If there's no such authority, I volunteer to maintain a NextAnswer at least for a while (send me your requests, also for established code that you know of, NEXTSTEP related or not; please use ``Re: Is anyone managing identifier prefixes?''). (I'm supposing NeXT will cooperate.) >>>>> It is good style to occupy as few slots as is feasible. Conversely, it is bad style... prefix owner/description _/__/etc. Only authorised personnel allowed! bootstrap Mach class Objective-C runtime condition Mach cthread Mach DB NeXT Database Kit DPS PostScript EO NeXT Enterprise Objects Framework Architecture exc Mach FREE FREE.h (Raf_Schietekat, MiscKit) host Mach IB NeXT Interface Builder IO NeXT Driver Kit IX NeXT Indexing Kit mach Mach method Objective-C runtime Misc MiscKit msg Mach mutex Mach N3D NeXT 3-D Kit netname Mach ni/NI NeXT NetInfo functions/objects NS NeXT OpenStep NX NeXT (most of NEXTSTEP) objc Objective-C runtime object Objective-C runtime port Mach processor Mach PS PostScript RS Raf_Schietekat sel Objective-C runtime task Mach thread Mach vm Mach WM NeXT Workspace Manager yy/YY yacc, bison, lex, flex alias e-mail last contact at this address Raf_Schietekat RfSchtkt@maze.ruca.ua.ac.be 1995-02-18 <<<<< Hoping this is useful, Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Paletteized Matrix subclasses... Avoid them :-) Date: 19 Feb 1995 15:02:39 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Feb19150239@steffi.dircon.co.uk> CC: andrew@stone.com,caslawa@gb.swissbank.com,next-prog@omnigroup.com Well that's a bit strong but if you want your cell size to be determined at run time by your Cell subclass then I think you have to avoid statically defining the size in IB. (Unless you want other objects performing disgusting hacks to achieve this. Perhaps one could add optional behaviour via awake) This is fair enough because it is assumed that when you define your cell`s size in IB via a paletted object, it's not going to change. That's largely what defining an object's state in IB is all about. However, I feel that a Cell that contains images should, if written correctly, dynamically determine the Cell's height. I guess a compromise would be to just use a CustomView because then the Matrix's initFrame..... method will be called and consequently your Cell's subclass's calcCellSize: has an opportunity to specify the cell's height. Personally, I detest paletted _graphical_ objects for reasons observed above. However, I guess this is mostly because of my incorrect use of paletted object in this case. Ideally I'd like the best of both worlds but that appears to be a conflict of paradigms. I think it's fair though to want to be able to define a matrix's state in IB but yet also have the cellSize defined at runtime. -- "Oh no, actually darling I don't have time for games." (PGP key: send email with Subject: request pgp key) (ASCII for text only messages)
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Paletteized Matrix subclasses... Avoid them :-) Date: 19 Feb 1995 15:21:58 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Feb19152158@steffi.dircon.co.uk> References: <ROBERT.95Feb19150239@steffi.dircon.co.uk> To: robert@steffi.dircon.co.uk (Robert Nicholson) In-reply-to: robert@steffi.dircon.co.uk's message of 19 Feb 1995 15:02:39 GMT CC: andrew@stone.com,caslawa@gb.swissbank.com,next-prog@omnigroup.com Obviously, the workaround for this is to do something like - awakeFromNib { SortCell *protoCell; NXSize cellSize; DPRINTF((stderr,"%s:%s\n",[[self class] name],sel_getName(_cmd))); if (nibLoaded) { protoCell = [[SortCell alloc] init]; [protoCell setTitle:""]; [protoCell setType:NX_MOMENTARYPUSH]; [protoCell setBordered:NO]; [availableMatrix setPrototype:protoCell]; ! [protoCell calcCellSize:&cellSize]; ! [availableMatrix setCellSize:&cellSize]; [availableMatrix removeRowAt:0 andFree:NO]; popupList = [copyFromButton target]; [[TKWidePopupManager allocFromZone:[copyFromButton zone]] initForButton:copyFromButton andList:popupList]; [popupList setTarget:self]; [popupList setAction:@selector(copyColumns:)]; } return self; } Which I guess isn't too bad :-) -- "Oh no, actually darling I don't have time for games." (PGP key: send email with Subject: request pgp key) (ASCII for text only messages)
From: chris@opensource.com Newsgroups: comp.sys.next.programmer Subject: Re: [Q] in which class define this class method: Account or Portfolio? Date: 19 Feb 1995 21:12:11 GMT Organization: Rocky Mountain Internet Inc. Distribution: world Message-ID: <3i8c7b$qfp@potogold.rmii.com> References: <3i50as$mns@lace.Colorado.EDU> In comp.sys.next.programmer article <3i50as$mns@lace.Colorado.EDU> you wrote: > Hi, > > I have two class objects, Portfolio and Account. An instance of > Portfolio "owns" many instances of Account. > > If I want the accounts that are owned by portfolio 'xyz', I've > implemented the class method: > > using OMT notation, > $accountsInPortfolio (aPortfolioName: String) : Set of Accounts > in both the Account and Portfolio classes. As an argument, it takes > a string that uniquely identifies a portfolio, and it returns a > collection of instances of Account. In the implementation of the > method, a database would be queried for those accounts being "owned" > by portfolio "xyz" and for every item found, instantiate an account > and set its value. The method returns the collection of those > instances. > > What is a source of confusion, is in which class should this method > be implemented: the Account, or, the Portfolio class. > Since the method instantiates Account objects, it seems natural to > implement this "factory" method in Account. The thing is, it instantiates an array of Account objects, so a factory method of Account doesn't make sense IMHO. > But since portfolios > "own" accounts, why not ask the Portfolio class for the list of accounts > that are "owned" by one of its portfolios. > I like this better. > Any thought or suggestions? your comments are greatly appreciated. > The method you want to create is IMO definitly an instance method of portfolio. Just think what might be meant by: [[Account alloc] initWithPortfolioNumber:aNumber] Does this return an account or a collection of accounts? If it is a collection, then shouldn't this be something like: [[AccountArray alloc] initWithPortfolioNumber:aNumber] but then this is a gratuitous class 'AccountArray'. One should use an NSArray or a List. I think it would be cleaner to do [[[Portfolio alloc] initWithNumber:aNumber] accounts] and have accounts be @interface Portfolio - (NSArray*)accounts; @end Just for the sake of completeness I guess you could add a catagory to NSArray; something like initWithAccountsForPortfolio:, but I think catagories lead to a lack of clarity wrt the boundries of class definitions. > - Alexis > gmecchia@cc.colorado.edu > >
Newsgroups: comp.sys.next.programmer,comp.lang.objective-c From: scratch@sundance.sce.carleton.ca (Craig Scratchley) Subject: Re: Using the GNU Objective-C Class Library under NeXTSTEP Message-ID: <scratch.793321075@sundance.sce.carleton.ca> Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University References: <scratch.793052099@sundance.sce.carleton.ca> <Y90NIEMO.95Feb20201733@freya.isy.liu.se> Date: Mon, 20 Feb 1995 22:57:55 GMT y90niemo@freya.isy.liu.se (NIELS MOLLER) writes: >About the LAMBDA macro: >The problem is that on some machines (at least on m68k based, like the >Sun3:s and the Amiga:s I have tried) nested functions, that references >variables that are local to the function in which they are defined, >requires some special magic. This magic is usually triggered when the >address of such a function is taken. >The LAMBDA macro in >int y; >some_function( LAMBDA(id, (int x) , { return x+y; }) ); >expands into something like >int y; >some function( { int _lambda(int x) { return x+y; } ; _lambda; } ); > ^^^^^^^ >Here, the address of _lambda is taken, and this address is the value >of the expression (GNU C extension), so one might think that the magic >that makes the y reference to be handled properly is triggered. *BUT* >this code is illegal, as one can not return a pointer from a block, if >the object pointed to goes out of scope when the block ends, and >therefore no magic is done here. Instead, a plain pointer to the >address of the *code* of the _lambda function is returned. (IMO it's >bad that gcc, at least the 2.5.8 version I'm using, does not warn >about this). When this pointer is used to call the _lambda function, >it will fail to find the variable y (which is located on the parent >function's stack, which _lambda(), when called from some_function(), >has no way to find), and all kind of strange things can happen. Hmm. Upon further testing I have found that the LAMBDA macro does cause some problems on my Intel hardware running NeXTSTEP. I tried a program like the above and it caused a bus error on my computer. > .... >I really like the LAMBDA macro, and I hope that there is a >solution. It's not technically difficult to make it work on any >machine once ordinary nested functions work. I also really like the LAMBDA macro, or at least its funcionality, and hope that a solution is worked out. The functionality the LAMBDA macro provides is so sensible and useful. There should be some reasonable way, perhaps different, to achieve it. > ... -- W. Craig Scratchley | internet: scratch@sce.carleton.ca Dept. of Systems and Computer Engineering | phone: (613) 788-5740 (Dept.) Carleton University | (613) 241-6952 (Home) Ottawa, ON, CANADA K1S 5B6 | fax: (613) 788-5727 (Dept.)
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: NXPlayStream help needed... Date: 21 Feb 1995 07:03:12 GMT Organization: School of Computer Science, McGill Univ. Distribution: world Message-ID: <SAMURAI.95Feb21020312@marge.cs.mcgill.ca> Sigh... I'm trying to build a PC sound emulator under NEXTSTEP. So far, I've been pretty successful. I can support raw PC sounds no problem, and I'm using NXPlayStreams to mix them as needed. I need to play as many as four simultaneous sounds. NXPlayStream does this very nicely, with one small problem. If there is one sound already playing, the next sound will be delayed about 3 seconds between the time that I asked for it, and when I actually hear it. Now, it was hell trying to get the streams to play 22kHz data with one channel. Trying to change the NXSoundParameters object each stream owns (note: to whomever thought up NXSoundParameters, "bad idea") doesn't give you all that much. In order to make the channel changing effective, you have to combine it with old API method calls, which explicitly state the channel count. I was never totally successful, unless I chose 'initOnDevice:withParameters:' which then solved this problem (but shouldn't have been necessary). Anyway, enough with that... I got it working, and have traced the time-lag problem to this theory: When I ask the NXSoundOut object for the count and size of the DMA buffer it's using, it reports 16 buffers of 4096 bytes. This represents 64k total. The documents say that the default is 4 buffers. Anyway, when I try to use another one of those damn NXSoundParameters objects (arg) to change these values, they either fail (if I access the protocol in NXSoundOut) or succeed only to be reset (if I access the NXSoundParameter object directly). I'm assuming that the delay is because this set of buffers is so big (64k) that it has to drain before the second stream can be mixed in with the first. This suspicion seems to be confirmed when I try to quantize the sound by loading them into individual 16k buffers, and stringing them along when I get notification that the previous buffer has been played. When this happens, I get excellent response time when loading the second sound, but I can hear the cuts in-between buffer services. Now, I think life would be much more happy for me if I could cut down that massive 64k buffer, which would then make the sound output much more responsive (basically, I'm looping a background sound, and need to play the other sounds in response to keypresses on the keyboard). I can't live with the one or two second delay. I'm at wits end. The functionality presented by the sound streams is really quite nice other than this. Someone help me! - darcy -- For he today that sheds his blood with me shall be my brother; be he ne'er so vile, this day shall gentle his condition. Gentlemen in England now abed shall think themselves accursed they were not here, and hold their manhoods cheap whiles any speaks that fought with us upon Saint Crispin's day.
Newsgroups: comp.sys.next.programmer From: ehutch@norden1.com (E. Hutchinson) Subject: Jr p/a-NEXT-Career-N.Car- Message-ID: <1995Feb18.214202.20151@norden1.com> Organization: Norden 1 Communications Date: Sat, 18 Feb 1995 21:42:02 GMT Position---------------------Programmer/analyst/developer Platform---------------------NEXTSTEP--some commercial experience Language---------------------Objective C--some commercial experience. Type of position-------------Career position Opportunity------------------Opportunity Benefits---------------------Excellent Area-------------------------N. Carolina To be considered-------------Fax resume or mail a hard copy. ... * ATP/qwk 1.42 * Who put the "arse" in Arsenio? -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/Career Position/ILL Date: 20 Feb 1995 09:33:03 GMT Organization: Norden 1 Communications Message-ID: <3i9nkf$r20@ns.oar.net> POSITION---------------------Programmer/analyst/developer PLATFORM---------------------NEXTSTEP--commercial experience LANGUAGE---------------------Objective C--commercial experience A PLUS-----------------------DB Kit or EOF A PLUS-----------------------Sybase or Oracle TYPE OF POSITION-------------Career position OPPORTUNITY------------------Excellent BENEFITS---------------------Outstanding RELOCATION-------------------Company assistance AREA-------------------------Greater Chicago TO BE CONSIDERED-------------Fax resume or mail a hard copy. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: hyongsop@dip.eecs.umich.edu (Hyong Sop Shim) Newsgroups: comp.sys.next.programmer Subject: Making Custom Window Palette -- HELP!!! Date: 21 Feb 1995 17:54:25 GMT Organization: University of Michigan EECS Dept. Message-ID: <3id9ch$2ev@zip.eecs.umich.edu> Hi NeXTSTEP Gurus, The title indicates what I've been trying to do for the last week or two. I've been working on custom window palette object, which is an instance of a subclass (myWindow) of the Window class. This palette object always has a delegate (myDelegate) so that it can receive such messages as windowDidResize:: etc. In order to have this delegate, I need to override a couple of methods in the Window class, essentially the delegate and setDelegate methods. They are defined as follows: - delegate { return realDelegate; } - setDelegate:anObject { [super setDelegate:myDelegate]; realDelegate = anObject; return self; } MyWindow also has write: and read: methods, for it is sometimes necessary to write and read myWindow. The problem is that when reading myWindow, the "superview" message is sent to myDelegate, which of course the myWindow class does not implement and thus crashes the system. I tried to get around the problem by having the myWindow class implement the "superview" method. But the problem persists in the sense that when a myWindow has a textfield, the messages like "removeFrom- Superview," "setDelegate:," and "textLength" are sent to myDelegate when I click in the textfield after reading myWindow. Does anyone have any idea what's going on here? I suspect that some messages find their way up the responder chain to myWindow which then forward the messages to myDelegate. Also, the field editor for myWindow seems strange, to say the least, also. Does anyone know what's the difference between the "normal" situation and the situation described above. Any comment would be greatly appreciated. Thanks much. --Hyong (hyongsop@eecs.umich.edu)
Newsgroups: comp.sys.next.programmer From: rp9@unix.york.ac.uk (R Peppe) Subject: Re: Further problems w/gprof Message-ID: <1995Feb20.163647.20517@leeds.ac.uk> Date: Mon, 20 Feb 1995 16:36:46 +0000 (GMT) References: <3hvokm$io3@gateway.wiltel.com> Mike Zemina (mike_zemina@wiltel.com) wrote: > Now my problem is in my app - I cannot get a gmon.out file. I've tried many > methods to stop the process in order to produce the gmon.out file with no sucess. > The app is non gui and it runs continously so it has no method to stop it > normally. gprof works fine for me. my Makefile.preamble includes this line : OTHER_CFLAGS=-pg the program automatically produces a gmon.out file on exit. use 'gprof <executable_name>' to look at it. oh yes, unless you want the gmon.out file in your home directory, it's best to run the executable directly within the app directory from a shell window. hope this helps, cheers, rog.
From: pcu@umich.edu Newsgroups: comp.sys.next.programmer Subject: Re: button problem - help sought Date: 20 Feb 1995 18:11:52 GMT Organization: University of Michigan Distribution: world Message-ID: <3iam18$ftv@lastactionhero.rs.itd.umich.edu> References: <3i5je7$qbk@lastactionhero.rs.itd.umich.edu> pcu@umich.edu writes > Program generated(1): Memory access exception on address 0x32343040 (invalid > address). > 0x50069cc in objc_msgSend () > 1: ({int ()} 0x5057c06 <NXMallocCheck>) () = 0 > (gdb) bt > Reading in symbols for Nuts_main.m...done. > #0 0x50069cc in objc_msgSend () > #1 0x3fff724 in ?? () > #2 0x600df5c in -[Cell calcCellSize:inRect:] () Nevermind. Uh, if you find an error like this, it means you are leaving a local variable behind on the stack. Blush. {Sigh} -- Peter Urka <pcu@umich.edu> Dept. of Chemistry, Univ. of Michigan Newt-thought is right-thought. Go Newt!
From: hyongsop@dip.eecs.umich.edu (Hyong Sop Shim) Newsgroups: comp.sys.next.programmer Subject: IB Palette --- PLEASE HELP!!! Date: 20 Feb 1995 18:12:54 GMT Organization: University of Michigan EECS Dept. Message-ID: <3iam36$slt@zip.eecs.umich.edu> Hi, A strange problem with a custom palette I'm building. The palette contains only a single object, which is a subclass of Object. The problem is that the "cover" for this object doesn't show in the palette window in IB. The "cover" is there in the sense that when I click on it, a white rectangle shows, outlining the "cover, and when I drag the rectangle to the file window, a object appears; in short, everything else about the palette object works, except that the "cover" or the image for the palette object doesn't show in the palette window. The method, finishInstantiate, is implemented as follows. - finishInstantiate { [self associateObject:paletteObject type:IBObjectPboardType with:paletteCover]; return self; } paletteObject is the object that is instantiated when the cover is dragged to the file window, and paletteCover is the cover object. The cover object is a disabled button whose associated icon is a tiff image built in IconBuilder.app. Does anyone know what the problem is? Should I export the tiff image as well in the file, palette.table? Thanks for any help on this matter. Please email your comments directly to me. Thanks again. --Hyong (hyongsop@eecs.umich.edu)
Newsgroups: comp.sys.next.programmer Subject: Re: Anyone using C++ with XDR? Message-ID: <1995Feb21.125502.929@ittpub> From: miked@ittpub.nl (Mike Davis) Date: 21 Feb 95 12:55:02 WET References: <1995Feb20.185109.448@Radical.Com> Mark_Tarbell@Radical.Com wrote: >A .c or .m program with XDR references links okay, but a .cpp program will >result in linker errors of this variety for each XDR call: >ld: Undefined symbols: >_xdrmem_create__FP3XDRPcUii >_xdr_u_long__FP3XDRPUl > . . >These references do not get resolved in libsys_s.a due to the suffixes >("__FP3XDRPcUii") added to the symbols when compiling a program with >extension .cpp. This appears to be the case only with C++. >Thanks for your help. >Mark It sounds like the C++ compiler is treating the external library as C++ code where infact it's actually 'C'. Try something like this where you include/import the header file for the library. #ifdef __cplusplus extern "C" { #endif /* #include/#import 'C' or Obj-C header files here */ #include <myCHeader.h> #import <appkit/appkit.h> #ifdef __cplusplus }; #endif Hopefully this'll stop the name mangling. -- Mike Davis. miked@ittpub.nl
From: ivor@cs.mcgill.ca (Ivo ROTHSCHILD) Newsgroups: comp.sys.next.programmer Subject: Window running modal? Date: 21 Feb 1995 18:53:03 GMT Organization: Hutchison Avenue Software Corp. Distribution: world Message-ID: <3idcqf$m29@sifon.cc.mcgill.ca> Does anyone have any ideas about how I can tell whether a window is currently running modally? -ivo ivo@hasc.ca
From: y90niemo@freya.isy.liu.se (NIELS MOLLER) Newsgroups: comp.sys.next.programmer,comp.lang.objective-c Subject: Re: Using the GNU Objective-C Class Library under NeXTSTEP Date: 20 Feb 1995 19:17:33 GMT Message-ID: <Y90NIEMO.95Feb20201733@freya.isy.liu.se> References: <scratch.793052099@sundance.sce.carleton.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In-reply-to: scratch@sundance.sce.carleton.ca's message of Fri, 17 Feb 1995 20:14:59 GMT About the LAMBDA macro: The problem is that on some machines (at least on m68k based, like the Sun3:s and the Amiga:s I have tried) nested functions, that references variables that are local to the function in which they are defined, requires some special magic. This magic is usually triggered when the address of such a function is taken. The LAMBDA macro in int y; some_function( LAMBDA(id, (int x) , { return x+y; }) ); expands into something like int y; some function( { int _lambda(int x) { return x+y; } ; _lambda; } ); ^^^^^^^ Here, the address of _lambda is taken, and this address is the value of the expression (GNU C extension), so one might think that the magic that makes the y reference to be handled properly is triggered. *BUT* this code is illegal, as one can not return a pointer from a block, if the object pointed to goes out of scope when the block ends, and therefore no magic is done here. Instead, a plain pointer to the address of the *code* of the _lambda function is returned. (IMO it's bad that gcc, at least the 2.5.8 version I'm using, does not warn about this). When this pointer is used to call the _lambda function, it will fail to find the variable y (which is located on the parent function's stack, which _lambda(), when called from some_function(), has no way to find), and all kind of strange things can happen. I sent a bug report to the gcc-bug mailing list some time ago. I was enlightened that it was not really a bug, as the code using LAMBDA is illegal, for the reason described above, but nevertheless I was sent a simple patch that would make the magic be performed in the above code. Unfortunately, I don't have the resources to rebuild gcc, but I sent the "bug"-report and patch to mccallum back then, if I remember correctly. I really like the LAMBDA macro, and I hope that there is a solution. It's not technically difficult to make it work on any machine once ordinary nested functions work. In the documentation of GNU C I have not been able to find a definition of the storage class for nested functions; perhaps it is possible to define the nested functions extension in such a way that pointers to nested functions may be returned from blocks, provided that the functions in question are declared static? (Of course, such pointers can not be returned form the *function* in which they are declard, at least not if they reference variables that are local to that function). /Regards, Niels
From: armitage@u.washington.edu (Armitage) Newsgroups: comp.sys.next.programmer Subject: aggregate `wstatus' has incomplete type Date: 22 Feb 1995 07:34:21 GMT Organization: University of Washington Message-ID: <3iepdt$rsi@nntp1.u.washington.edu> Keywords: gcc I can't help but feel that I'm missing something fairly important about how deals with some standard Unix development issues. I have the following fragment (NS3.3/3.2Dev, White): #include<sys/wait.h> void fireman() { union wait wstatus; while(wait3(&wstatus,WNOHANG,NULL) >0); } The compiler gives me the following errors: main.C: In function `void fireman ()': main.C:39: aggregate `wstatus' has incomplete type and cannot be initialized main.C:39: storage size of `wstatus' isn't known main.C:40: `wstatus' undeclared (first use this function) main.C:40: (Each undeclared identifier is reported only once main.C:40: for each function it appears in.) main.C:40: `WNOHANG' undeclared (first use this function) Weird. This code works fine elsewhere. Upon further investigation, the header (wait.h) looks O.K., but the parts that are breaking (namely a definition of union wait and WNOHANG) are inside of #ifdefs. Do I need to supply some sort of a flag to cc to get it to adopt the proper defines? Sort of disturbing is that the definition for union wait is inside of "#if defined(_NEXT_SOURCE)"... If I manually define union wait (or copy the stuff inside the #ifdef) into my source, that part compiles fine. Am I missing something fundamental here? I'd appreciate any help! -- =========================================================================== | Peter (Z-Man) Zatloukal | Power is knowledge. | | <armitage@u.washington.edu> | (Hacker motto) | ===========================================================================
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Help w/NXEvent Date: 21 Feb 1995 16:03:25 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3id2sd$m95@darkstar.UCSC.EDU> References: <3ibbdk$gkj@nntp.interaccess.com> In article <3ibbdk$gkj@nntp.interaccess.com> aconti@interaccess (Aaron Conti) writes: > I am trying to use NXEvents to determine if the user is leaving the > computer idle for a given period of time. The "time" value of the > NXEvent structure seems to contain zero for most events, and I am not > sure why. > > Am I going about this in the right manner or just being a programming dork? > > If this field contained the correct time of the last event, I could keep > checking any new events to see if their have been any new events since > the last time that I checked. Seems simple enough. > The time value in NXEvent is based on the video refresh rate, or some such (who knows what it is now that all sorts of video refresh rates are supported). Anyway, using this time doesn't seem to be a very good way to implement an inactivity time-out. One way to do this is to subclass Application and override sendEvent:. For each type of event that you want to use to indicate activity, perform a delayed selector cancelling the previous one. This delayed selector represents a method that quits the app. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: pcu@umich.edu Newsgroups: comp.sys.next.programmer Subject: button problem - help sought Date: 18 Feb 1995 19:56:55 GMT Organization: University of Michigan Distribution: world Message-ID: <3i5je7$qbk@lastactionhero.rs.itd.umich.edu> Ok, I give up. After exhaustive testing, reading, experimentation, this one has got me. I have a button (momentary push, text-only), connected in IB to a method. When the button is pressed... The method operates a on a socket, some NXStreams, and a few character strings. No GUI stuff is touched (I'm assuming this is some sort of modal problem). (Oh, and none of the DPS {DPSAddfd, etc} stuff is touching the socket either, straight unix calls on that bit). When the method returns (with NXMallocCheck() == 0! and having done it's little task perfectly!), this crapola comes up (I assume as the button attempts to 'unclick' itself). This reminds me of a unlockfocus view problem, but I am just *not* touching the bloody appkit aiiighhh! Any clue, however remote, as to why one would get a button unclicking problem for a non-appkit method, I would be most appreciative. Peter. Program generated(1): Memory access exception on address 0x32343040 (invalid address). 0x50069cc in objc_msgSend () 1: ({int ()} 0x5057c06 <NXMallocCheck>) () = 0 (gdb) bt Reading in symbols for Nuts_main.m...done. #0 0x50069cc in objc_msgSend () #1 0x3fff724 in ?? () #2 0x600df5c in -[Cell calcCellSize:inRect:] () #3 0x60132de in -[ButtonCell _getTitleSize:inRect:] () #4 0x601410a in -[ButtonCell _getIconRect:andTitleRect:flipped:] () #5 0x6014556 in -[ButtonCell drawInside:inView:] () #6 0x6015726 in -[ButtonCell drawSelf:inView:] () #7 0x606803c in -[ButtonCell highlight:inView:lit:] () #8 0x606a1c0 in -[Control mouseDown:] () #9 0x606177c in -[Window sendEvent:] () #10 0x6029772 in -[Application sendEvent:] () #11 0x602ffd2 in -[Application run] () #12 0x10548 in main (argc=1, argv=0x3fffd14) at Nuts_main.m:79 -- Peter Urka <pcu@umich.edu> Dept. of Chemistry, Univ. of Michigan Newt-thought is right-thought. Go Newt!
From: aconti@interaccess (Aaron Conti) Newsgroups: comp.sys.next.programmer Subject: Help w/NXEvent Date: 21 Feb 1995 00:16:52 GMT Organization: InterAccess Message-ID: <3ibbdk$gkj@nntp.interaccess.com> I am trying to use NXEvents to determine if the user is leaving the computer idle for a given period of time. The "time" value of the NXEvent structure seems to contain zero for most events, and I am not sure why. Am I going about this in the right manner or just being a programming dork? If this field contained the correct time of the last event, I could keep checking any new events to see if their have been any new events since the last time that I checked. Seems simple enough. Suggestions?
Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer From: sowa@netcom.com (Erik Sowa) Subject: NS33 loginwindow.app Custom Screen Saver Message-ID: <SOWA.95Feb20133621@netcom5.netcom.com> Sender: sowa@netcom5.netcom.com Organization: Wahoo 5 Date: Mon, 20 Feb 1995 21:36:20 GMT Anyone know anything about what makes a screensaver compatible with 3.3's loginwindow.app as advertised by the new loginwindow Preferences panel? I suppose one could ask the same question about the Custom Authenticator and the Custom Login UI... -- Erik Sowa (sowa@netcom.com)
From: ivor@cs.mcgill.ca (Ivo ROTHSCHILD) Newsgroups: comp.sys.next.programmer Subject: Joystick Driver? Date: 21 Feb 1995 18:50:05 GMT Organization: Hutch. Ave. Software Distribution: world Message-ID: <3idckt$lbd@sifon.cc.mcgill.ca> Are there any Joystick drivers for NS Intel out there? For instance, one for the joystick port on the SoundBlaster card. -ivo ivo@hasc.ca
From: krause@math.tu-berlin.de (Martin Krause) Newsgroups: comp.sys.next.programmer Subject: How to print in "drawPageBorder:"? Date: 19 Feb 1995 22:26:41 GMT Organization: Technical University Berlin, Germany Distribution: world Message-ID: <3i8gj1$9u@brachio.zrz.TU-Berlin.DE> Hello, does anybody know how to print an eps-file as background to any printed page in an application. The hook in the printing machinery is "drawPageBorder:", but I don't know how to print the eps-file in this method. I other word I don't know how to put an NXImage on the page, since "composite:NX_COPY toPoint:" don't seem to work. Any help appreciated. Thanks. Martin krause@math.tu-berlin.de
From: mike_zemina@wiltel.com (Mike Zemina) Newsgroups: comp.sys.next.programmer Subject: Further problems w/gprof Date: 16 Feb 1995 14:48:54 GMT Organization: WilTel Message-ID: <3hvokm$io3@gateway.wiltel.com> Well I got the syntax correct so I get output from the sample app I created for gprof testing. Now my problem is in my app - I cannot get a gmon.out file. I've tried many methods to stop the process in order to produce the gmon.out file with no sucess. The app is non gui and it runs continously so it has no method to stop it normally. Has anyone who has done quite a bit of testing have any clues or a path that I can try in order for me to get the output file? --- Proverb: "Sensible people will see trouble coming and avoid it, but an unthinking person will walk right into it and regret it later." Mike Zemina WilTel, Inc. One Williams Center Mail Drop D-2 Tulsa, OK 74172 USA phone: +1-918-588-3073 fax: +1-918-588-3719 email: mike_zemina@wiltel.com
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: Profiling and disk performance Date: 22 Feb 1995 19:36:38 GMT Organization: none Distribution: world Message-ID: <3ig3o6$430@seymour.sfu.ca> Hi. I am trying to port a database engine to NEXTSTEP/I and am running into some big performance problems. I have allready been bitten by the memcmp() and flock() bugs and am getting quite discouraged. I get about one fifth the performance as on SCO Unix, and want to profile the code to see what what is going on. I compiled with the -pg option and then ran gprof on the executable. What I get is a profile of only the application function calls: no system/library calls like read() and write(). Unfortunately, as the app is disk bound, I am really only interested in these calls and my functions that call them. How do I get NEXTSTEP to give me an execution profile including library and system calls? Thanks in advance for any pointers. - Ken
From: mwozniew@hermes.gac.edu (Marc B Wozniewski) Newsgroups: comp.sys.next.programmer Subject: music Date: 22 Feb 1995 03:54:06 GMT Organization: Gustavus Adolphus College Message-ID: <3iecgu$87g@news.gac.edu> Summary: straight form the slums of sloalin wu-tang clan comes with a Keywords: wutang clan
Newsgroups: comp.sys.next.programmer From: Mark_Tarbell@Radical.Com Subject: Anyone using C++ with XDR? Message-ID: <1995Feb20.185109.448@Radical.Com> Sender: news@Radical.Com Organization: Radical System Solutions, Inc. Date: Mon, 20 Feb 1995 18:51:09 GMT A .c or .m program with XDR references links okay, but a .cpp program will result in linker errors of this variety for each XDR call: ld: Undefined symbols: _xdrmem_create__FP3XDRPcUii _xdr_u_long__FP3XDRPUl . . These references do not get resolved in libsys_s.a due to the suffixes ("__FP3XDRPcUii") added to the symbols when compiling a program with extension .cpp. This appears to be the case only with C++. Thanks for your help. Mark
From: Christopher_Lane@Med.Stanford.EDU Newsgroups: comp.sys.next.programmer Subject: Re: NS33 loginwindow.app Custom Screen Saver Date: 22 Feb 1995 01:14:37 GMT Organization: Stanford University Message-ID: <3ie35t$v0j@nntp.Stanford.EDU> References: <SOWA.95Feb20133621@netcom5.netcom.com> Erik Sowa writes > Anyone know anything about what makes a screensaver compatible with > 3.3's loginwindow.app as advertised by the new loginwindow > Preferences panel? As best as I can reverse engineer, it requires the primary object in a *.loginbundle to implement three methods: - oneStep; - didStopScreenSaver; - didStartScreenSaver; I just got SpaceSaver (which runs BackSpace modules while logged out) running under NEXTSTEP 3.3 and will release the new version shortly. - Christopher
From: lars@cognition.iig.uni-freiburg.de (Lars Konieczny) Newsgroups: comp.sys.next.programmer Subject: Horizontal NXSplitView Date: 22 Feb 1995 12:10:24 GMT Organization: Rechenzentrum der Universitaet Freiburg, Germany Message-ID: <3if9jg$5qq@n.ruf.uni-freiburg.de> Sorry if this is a FAQ. Is there an easy way to get a horizontal NXSplitView, i.e. a splitView that positions each successive subview to the right and which has vertical dividers? Has anyone written such an object? Thanx in advance, Lars --- Lars Konieczny Center for Cognitive Science Institute of Computer Science and Social Research University of Freiburg, Germany lars@cognition.iig.uni-freiburg.de
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn) Newsgroups: comp.sys.next.programmer Subject: Is anyone managing identifier prefixes? Date: 21 Feb 1995 16:48:39 GMT Organization: Rensselaer Polytechnic Institute, Troy NY, USA Distribution: world Message-ID: <3id5h7$h00@usenet.rpi.edu> References: <9502181937.AA01879@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: > Imagine: You have created an object or a set of objects (a kit...), > and when you or somebody else deploys it/them, a conflict arises. > Somebody else has used the same name for a class, and the project > won't link, or give errors when some code in a bundle is loaded. > Someone has to give in, but who? And even so, there is bound to > be some sorrow for some developer(s) and/or user(s). > We're in the objects business, folks! What authority should I > consult to make sure such a conflict will never happen to my code > (``I want to use such-and-such a prefix, is it still free, and > if so, would you register it for my exclusive use?'')? Just as an aside, this is one of the reasons I wish we were programming in something other than an offshoot of C. Eiffel (the computer language) seems to have ways to deal with this problem, built right into the language. Such conflicts are bound to arise, and it's nice to see a language that has a way to handle them. -- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu ITS Systems Programmer (handles NeXT-type mail) Rensselaer Polytechnic Institute; Troy NY USA
Newsgroups: comp.lang.c++,comp.realtime,comp.std.c++,comp.sys.next.programmer,comp.theory From: rdl@world.std.com (Robert La Ferla) Subject: Re: Real Time OOPS? In-Reply-To: ron deangelis's message of 16 Feb 1995 00:55:30 GMT Message-ID: <RDL.95Feb21234512@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3hu7q2$6k0$2@mhadf.production.compuserve.com> Distribution: inet Date: Wed, 22 Feb 1995 04:45:12 GMT There is at least one book on the subject. It's advertised in Object magazine. Robert La Ferla HTI Registered NEXTSTEP Consultant / Developer / Trainer
From: trunz@inf.ethz.ch (Paul Martin Trunz) Newsgroups: comp.sys.next.programmer Subject: Strange errors with EOF-IB and 3.3 Edit Date: 20 Feb 1995 00:05:52 +0100 Organization: Dept. Informatik, Swiss Federal Institute of Technology Message-ID: <3i8isg$qtm@brain11.inf.ethz.ch> Hi everybody, After installing EOF and 3.3 I had some problems with Edit and IB In the new IB (quite nice besides this) I get a strange error message if I click on the lowest outlet when in outline-mode of Instances: Runtime error: IBWindowEditor : does not recognize selector -getItemRepresentationSize:for:. It is nice to see a program *not* crash on an error of this kind ... The new Edit regularly crashes if I leave gdb with the Quit-Button. A bit drastic for making me use update-files ... If someone knows workarounds for these problems please send me a e-mail. Sorry if this has come up already, but I do not read this list regularly. Greetings Patru
Newsgroups: comp.sys.next.programmer From: jimrob@sybase.com (James Robertson) Subject: Getting started with EOF Message-ID: <D49HLr.5Ez@sybase.com> Keywords: EOF, Sybase, interface file Sender: usenet@sybase.com Organization: Sybase, Inc. Date: Sun, 19 Feb 1995 19:17:51 GMT Greetings: To anybody that hasn't used EOF, but is contemplating doing so, using Sybase servers, this may save you a bit of grief: I just did a virgin installation of NeXTStep and EOF, fired up EOModeler, and couldn't connect to a database because of "missing interfaces." NeXT's EOF documentation was not very helpful regarding where the interfaces info goes. Here's what to do... Go to /usr/sybase If the "interfaces" file is missing, add one, using "interfaces.old" as a template. Edit "interfaces" to add a new entry for each server you will connect to. For example, to add the SQL Server named "SPIES" running on the host "mi6" at port 1007, you might add the following lines to /usr/sybase/interfaces: SPIES query tcp next-ether mi6 1007 master tcp next-ether mi6 1007 Regards, Jim Robertson Sybase, Inc.
From: celam@radiomail.net (Cliff Elam) Newsgroups: comp.sys.next.programmer Subject: Re: EOFault question Date: 21 Feb 1995 19:52:52 GMT Organization: MCI Communications Distribution: world Message-ID: <3idgak$j17@hermes.dna.mci.com> References: <3i63gn$29t@potogold.rmii.com> In article <3i63gn$29t@potogold.rmii.com> chris@opensource.com writes: > Cliff Elam writes > > > > Hmm, well I'm willing to assume that an EOArrayFault is sort of like an > > EOFault, so I try some of the stuff in the documentation for EOFault: > > (gdb) po [theJoinFaultArray class] > > NSConcreteMutableArray > > The answer is, this works, but not from gdb. You can only mangulate EOFaults from compiled code. ;-( Well, it sort of makes sense to me since we're working on run-time behavior.... > > Have a look at the header <eoaccess/EOFault.h>. I wouldn't count on the > documentation being correct for EOF. There are alot of places where the > docs and the headers are out of sync. > Well, actually, yes, now that you mention it, they are out of sync. I can understand printed documentation being incorrect, but on-line? -- Cliff Elam celam@radiomail.net (text only) <<-- always works celam@bou.shl.com (NEXTMail) <<-- only when I'm in the office (rare) Airedales and polar bears!
From: object@crl.com (Robert Smith) Newsgroups: comp.sys.next.programmer Subject: Zinc anyone? Date: 21 Feb 1995 17:07:09 -0800 Organization: CRL Dialup Internet Access (415) 705-6060 [Login: guest] Message-ID: <3ie2nt$5ki@crl5.crl.com> Anyone out there ever use Zinc?
From: jbf@mitre.org (James B. Frazer) Newsgroups: comp.sys.next.programmer Subject: Re: HELP: how install Mac font for NeXT? Date: Wed, 22 Feb 1995 02:26:24 -0500 Organization: Mitre Message-ID: <jbf-2202950226240001@mbppp2.mitre.org> References: <3hb2k3$a60@cismsun.univ-lyon1.fr> <3hrkho$18p@rzsun02.rrz.uni-hamburg.de> <BYER.95Feb21111532@ductwork.mv.us.adobe.com> In article <BYER.95Feb21111532@ductwork.mv.us.adobe.com>, byer@mv.us.adobe.com (Scott Byer) wrote: > Lars Immisch writes: > > Lars> In article <3hb2k3$a60@cismsun.univ-lyon1.fr> Kwang-Bo Shim, > Lars> shim@grasp.insa-lyon.fr writes: > >> Bonjour!!! > >> > >> I've downloaded a McIntosh font "sonata.sit" from site (ftp.funet.fi), > Lars> but > >> could not install it sucessfully for my NeXT(040/NS3.2). > Don't. > > One of two things is going on here, both illegal: > > 1) That is the original Adobe Sonata, which a copyrighted font program. I was curious so I checked; it's a big collection of screen fonts with the associated readme: "These fonts are copyrighted by Adobe, Inc. They may not be redistributed by you without express written permission from Adobe. However, you may download them for your own use. The Info-Mac Moderators info-mac-request@sumex-aim.stanford.edu" Since they lack the Postscript rasterizing file they are only usable for viewing a document or printing a bitmap image on a Mac. No use at all on a NeXT. I doubt Info-Mac would post them without Adobe's consent. Barney
Newsgroups: comp.sys.next.programmer From: byer@mv.us.adobe.com (Scott Byer) Subject: Re: HELP: how install Mac font for NeXT? In-Reply-To: Lars Immisch's message of 15 Feb 1995 01:14:31 GMT Message-ID: <BYER.95Feb21111532@ductwork.mv.us.adobe.com> Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Incorporated, Mountain View, CA References: <3hb2k3$a60@cismsun.univ-lyon1.fr> <3hrkho$18p@rzsun02.rrz.uni-hamburg.de> Date: Tue, 21 Feb 1995 19:15:32 GMT Lars Immisch writes: Lars> In article <3hb2k3$a60@cismsun.univ-lyon1.fr> Kwang-Bo Shim, Lars> shim@grasp.insa-lyon.fr writes: >> Bonjour!!! >> >> I've downloaded a McIntosh font "sonata.sit" from site (ftp.funet.fi), Lars> but >> could not install it sucessfully for my NeXT(040/NS3.2). >> >> Merci beaucoup for any info. K. SHIM Lars> You need to convert it. Metamorphosis (on a Mac) does that job. If Lars> you're positive you need only Sonata, send me an email (to remind me) Lars> and I can mail you a tar file of Sonata. I did the same thing you are Lars> trying to do, but I happen to have a Mac also Don't. One of two things is going on here, both illegal: 1) That is the original Adobe Sonata, which a copyrighted font program. 2) That is somebody's scan-and-digitize clone, which will be of poor quality, and is using a trademarked font name illegally. If you want the Sonata font, Trilithon Software is the Adobe Authorized Reseller for fonts in the NeXT marketplace. Contact info@trilithon.com for more information. -- Scott Byer E-Mail: byer@mv.us.adobe.com Adobe Systems Incorporated These are my opinions, and 1585 Charleston Road, P.O. Box 7900 do not necessarily reflect Mountain View, CA 94039-7900 the opinions of my employer. === === Don't exhume the 70's - they looked bad then, and they didn't age well.
From: faizel@mail.utexas.edu (Faizel Dakri) Newsgroups: comp.sys.next.programmer,comp.sys.next.misc Subject: MiniSQL DBKit Adaptor problems Date: 23 Feb 1995 05:46:58 GMT Organization: The University of Texas at Austin, Austin, Texas Distribution: world Message-ID: <3ih7gi$l92@geraldo.cc.utexas.edu> Keywords: MiniSQL Has anybody successfully used the MiniSQL DBKit adaptor (9/30/94 version found on ftp.informatik.uni-muenchen.de) on MiniSQL version 1.0.5? I'm having problems logging into the database; whenever the login panel comes up and I fill in the Database field, one of two things happens: 1) Nothing happens, and the panel stays on the screen, or 2) the mouse ponter changes to the spinning disc, and stays that way. I've exported the MINERVA_DEBUG variable with all the possible debug flags, and when I start the msqld daemon, I get the following messages: [msqld] IP Socket is 1112 [msqld] UNIX Socket is /dev/msql [msqld] miniSQL debug mode. Waiting for connections. Then, when the login panel comes up, I get the following messages: [msqld] IP Socket is 1112 [msqld] UNIX Socket is /dev/msql [msqld] miniSQL debug mode. Waiting for connections. [msqld] New connection received on 10 [msqld] Host = localhost At this point, after I fill in the Database field and hit the OK button, nothing happens and the panel stays on screen. Any help would be greatly appreciated. Thanks, --Faizel -- Faizel Dakri faizel@mail.utexas.edu (NeXTmail *friendly*)
Newsgroups: comp.sys.next.programmer,comp.lang.objective-c From: scratch@arcturus.sce.carleton.ca (Craig Scratchley) Subject: LAMBDA functionality Message-ID: <scratch.793397090@arcturus.sce.carleton.ca> Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University References: <scratch.793052099@sundance.sce.carleton.ca> <Y90NIEMO.95Feb20201733@freya.isy.liu.se> Date: Tue, 21 Feb 1995 20:04:50 GMT y90niemo@freya.isy.liu.se (NIELS MOLLER) writes: >About the LAMBDA macro: > .... >The LAMBDA macro in >int y; >some_function( LAMBDA(id, (int x) , { return x+y; }) ); >expands into something like >int y; >some function( { int _lambda(int x) { return x+y; } ; _lambda; } ); > ^^^^^^ > .... >I sent a bug report to the gcc-bug mailing list some time ago. I was >enlightened that it was not really a bug, as the code using LAMBDA is >illegal, for the reason described above, but nevertheless I was sent a >simple patch that would make the magic be performed in the above >code. > ... >I really like the LAMBDA macro, and I hope that there is a >solution. It's not technically difficult to make it work on any >machine once ordinary nested functions work. What's so nice about the LAMBDA macro (over and beyond what is possible with nested functions), is that it allows code to be placed where it is used. This makes reading code much easier, and also makes programming an easier task. Imagine if the code for each while loop had to be placed at the top of its enclosing function! Anyways, another solution to achieve the functionality of the LAMBDA macro is to have the code moved to the top of the block by pre-processing activity. -- W. Craig Scratchley | internet: scratch@sce.carleton.ca Dept. of Systems and Computer Engineering | phone: (613) 788-5740 (Dept.) Carleton University | (613) 241-6952 (Home) Ottawa, ON, CANADA K1S 5B6 | fax: (613) 788-5727 (Dept.)
From: jalon@bireme.ens.fr (Julien) Newsgroups: comp.sys.next.programmer Subject: Renderman Date: 22 Feb 1995 19:01:11 GMT Organization: Ecole Normale Superieure, PARIS, France Message-ID: <3ig1ln$ga7@nef.ens.fr> I have got some problems with renderman on NeXTStep (PC). I compile this code (from Renderman Companion, first example) : % cat test.c #include <ri/ri.h> RtPoint Square[4] = {{.5,.5,.5},{.5,-.5,.5},{-.5,-.5,.5},{-.5,.5,.5}}; main() { RiBegin(RI_NULL); RiWorldBegin(); RiSurface("constant", RI_NULL); RiPolygon(4, RI_P, (RtPointer) Square, RI_NULL); RiWorldEnd(); RiEnd; } I compile with : % cc test.c -lMedia_s -lNeXT_s no errors => cool but when I execute a.out, I get : % ./a.out Warning in context <none> in command RiBegin: UnrecognizedToken: '' in parameter list zsh: bus error ./a.out groumpf, what's the solution ? --Julien (jalon@clipper.ens.fr)
From: nicholr@heaphy.gb.swissbank.com (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Some strange "defaults" behaviour. Followup-To: comp.sys.next.programmer Date: 21 Feb 1995 14:10:50 GMT Organization: me organized? That's a joke! Distribution: world Message-ID: <NICHOLR.95Feb21141050@heaphy.gb.swissbank.com> My app uses a subclass of Application that overrides -appName the long and short of it is that strcmp([NXApp appName],PREFIXPARTOFAPPSNIB) != 0 When this scenario exists I get. Couldn't find default font for default (null pointer) Invalid default font size: (null pointer) to the console and gdb Now this occurs when it attempts to load my App's nib. So it appears that something relating to the loading of the nib wants -appName to be returning the same string as the prefix part of my App's nib. Why?
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Help w/NXEvent Date: 23 Feb 1995 16:18:49 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3iich9$ajh@darkstar.UCSC.EDU> References: <3ig3b7$s6@rosie.next.com> In article <3ig3b7$s6@rosie.next.com> Ralph_Zazula@next.com (Ralph Zazula) writes: > Aaron Conti writes > > I am trying to use NXEvents to determine if the user is leaving the > > computer idle for a given period of time. The "time" value of the > > NXEvent structure seems to contain zero for most events, and I am not > > sure why. > > > > Here's another way to do it: > [ Ralph's (-DHOOD :-) method deleted ] Thanks, Ralph, for contributing your approach that I would have never figured out on my own :-) However, in our multitasking environment, we don't want our app to continue running while the user is actively working in another app because this may potentially block another user due to network licensing restrictions. Your approach is excellent for detecting any activity in any app, but we need to detect activity in just our app. For this approach, we have chosen to subclass Application, override sendEvent:, and as certain selected events are received by NXApp, perform:aMethodThatQuitsOurApp with:nil afterDelay:theInactivityTimeOutPeriod cancelPrevious:YES. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: Next Developer/Ex Opp/N.Car Date: 21 Feb 1995 23:27:05 GMT Organization: Norden 1 Communications Message-ID: <3idss9$ifv@ns.oar.net> -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: un032371@wvnvms.wvnet.edu Newsgroups: comp.sys.next.programmer Subject: Image softwar3e Message-ID: <1995Feb23.093440.13468@wvnvms> Date: 23 Feb 95 09:34:40 EST Organization: West Virginia Network for Educational Telecomputing I am looking for some Image Proccesing and maintanence software for the Next. Any one having any info on manufactures or where i might this type of software please send me an email. bbaisden@mrj.com Thanks In advance Bryan Baisden
From: schellenbg_s@fhrz10.fh-frankfurt.de Newsgroups: comp.sys.next.programmer Subject: gethostbyaddr() and NeXTSTEP/Objective-C Message-ID: <1995Feb23.225017.58@fhrz10.fh-frankfurt.de> Date: 23 Feb 95 22:50:17 TCPWA Organization: Fachhochschule Frankfurt am Main My problem is the following: I have written a program that opens a socket and waits for clients to connect to the machine via TCP/IP. On every new connection a new cthread is forked which handels the client's requests. I have written that in pure ANSI C and I use only UNIX system calls except for the cthread and mutex things. This works pretty well. Now I have put it into Objective C with the Project Builder so that it can send messages to distributed objects. The socket and TCP/IPs stuff is exactly the same as before, but now the call to gethostbyaddr() returns a NULL pointer and the h_errno variable is set to HOST_NOT_FOUND. Can anyone think of why this happens? The parameters to gethostbyaddr() are ok and the same code works still well when it's not in Objective C. Sonja Schellenberg, Schellenberg@rz.fh-frankfurt.d400.de
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: Re: A basic question about subclasses of NSObject Date: 11 Feb 1995 22:39:55 GMT Organization: NeXT, Inc. Distribution: world Message-ID: <3hjebr$1bt@rosie.next.com> References: <SHESS.95Feb9175002@subzero.winternet.com> In article <SHESS.95Feb9175002@subzero.winternet.com> shess@subzero.winternet.com (Scott Hess) writes: > IMHO, one should use -release wherever possible, and only use > -autorelease when it is simply not possible to use -release. > [...] I find code like the following confusing: > -(unsigned)doSomething { > MyObject *oo=[[[MyObject alloc] init] autorelease]; > ... > // Operate on oo. > ... > return ret; > } > > Better to code it like: > -(unsigned)doSomething { > MyObject *oo=[[MyObject alloc] init]; > ... > // Operate on oo. > ... > [oo release]; > oo=nil; > ... > return ret; > } > > There is really no functional difference between these pieces of > code [...] Actually, there *is* a subtle difference (other than oo simply existing for a little while longer in the first example). oo may be leaked in the second example. If an exception is raised (that you don't catch) between the time you allocate oo and the time you release it (as, in your operations with oo), the pointer to oo will be lost and the memory will never be freed. If you autorelease oo when you allocate it, the top NSAutoreleasePool is now responsible for deallocating that object, not you. You can choose to surround "intermediate" code with an exception handler when ever you allocate and use a local object, or you can autorelease (assuming a pool has been created before your method), or you can choose to ignore memory leaks like this. Because exceptions are more common in the Foundation than ever before, the third option doesn't seem very palatable (though, since people writing code are going to forget, it's probably the option that'll be "implemented" most often). > [I think that it is very important to code things as explicitly > as possible in order to leave maintainers no question as to what > you intended. Never assume knowledge on the part of the maintainer.] Generally good advice. However, a little safety may be the price of a little obfuscation. Christopher Kane NeXT Software Quality: OpenStep Compliance
From: suckow@uropax.contrib.de (Ralf Suckow) Newsgroups: comp.sys.next.programmer Subject: MiscString vs. NSString Date: 23 Feb 1995 22:30:32 +0100 Organization: Internationale Stadt e.V. Message-ID: <3iiupo$258@uropax.contrib.de> Dear netters, if I would start to use an ObjC string object instead of char * in a new larger commercial project, what should I use? I'm impressed with the functionality of MiscString and the stuff around it, but I don't know anything about NSString of FoundationKit. If I use MiscString, will I have problems with EOF and NEXTSTEP 4.0? Or is a transition easy? Where can I get a FoundationKit if I don't have EOF? Is it contained in NS 3.3? Well, lots of questions... Could anyone help, please? Yours, Ralf -- melonSoft Ralf Suckow Berlin |-------------------------------| suckow@contrib.de | Developer of MusicBuilder (R) | fax: +4930 9321901 |-------------------------------|
Newsgroups: comp.sys.next.programmer From: gerben@rna.nl (Gerben Wierda) Subject: Re: Should I get NS 3.2 or 3.3 black?? Message-ID: <D4H2H5.269@rna.nl> Sender: gerben@rna.nl (Gerben Wierda) Organization: G.R.O.S.S. References: <3ig6eg$lnd@mark.ucdavis.edu> Date: Thu, 23 Feb 1995 21:31:53 GMT Kenneth Robert Sheppard writes > I have been using NS 3.1 for a while now but due to a HD failure > I am being forced to upgrade. NeXT has both 3.2 and 3.3 available for > the same price. What are the pros and cons of with each one. I just > read that NS 3.3 doesn'y have the literature package. What else is it missing? > This would be a user version only. If you have a 25MHz 040 there is a chance that 3.3 will have severe problems with the serial driver. Some sort of contention problem. It made me downgrade back to 3.2 again. -- gerben@rna.nl (Gerben Wierda) NEXTSTEP RD242 "If you don't know where you're going, any road will take you there" Paraphrased in Alice in Wonderland, originally from the Talmud.
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Horizontal NXSplitView Date: 23 Feb 1995 20:18:53 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Feb23201853@steffi.dircon.co.uk> References: <3if9jg$5qq@n.ruf.uni-freiburg.de> To: lars@cognition.iig.uni-freiburg.de (Lars Konieczny) In-reply-to: lars@cognition.iig.uni-freiburg.de's message of 22 Feb 1995 12:10:24 GMT <lars@cognition.iig.uni-freiburg.de> writes: >Sorry if this is a FAQ. Is there an easy way to get a horizontal NXSplitView, >i.e. a splitView that positions each successive subview to the right and which >has vertical dividers? Has anyone written such an object? >Thanx in advance, >Lars Good get the MiniExample ZooView -- "If you think it's expensive to hire experts - imagine how expensive it would be to hire _amatuers_!" (PGP key: send email with Subject: request pgp key)
From: jalon@bireme.ens.fr (Julien) Newsgroups: comp.sys.next.programmer Subject: intercepting keys Date: 24 Feb 1995 00:37:31 GMT Organization: Ecole Normale Superieure, PARIS, France Message-ID: <3ij9ob$aup@nef.ens.fr> I'm trying to make an application which can intercept some key events even if this application isn't active... Any idea ? Thanks in advance, --Julien (jalon@clipper.ens.fr)
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: sound input Date: Thu, 23 Feb 1995 22:52:12 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Distribution: world Message-ID: <950223225212.1738AACUT.malc@daneel> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII I'm just about to start writing an app which needs at least to pretend to be able to take in sound at 16kHz, for arbitrarily long periods. From a quick look at the docs it seems as if I'm going to have to use an NXSoundIn device and pass the recorded data to another part of the program in suitably-sized chunks to process (up-sampling mainly...) If anyone has done this sort of thing before and has either code of advice they can share, I'd be most grateful... Have fun, mmalc. posn. research facilitator where institute for language speech and hearing sheffield university c/o department of computer science regent court 211 portobello street sheffield s1 4dp england vox (+44) 114 282 5594 fax (+44) 114 278 0972 email m.crawford@dcs.shef.ac.uk NeXTMail, SunMail, MIME welcome http://www.dcs.shef.ac.uk/
From: don@darth.byu.edu (Don Yacktman) Newsgroups: comp.sys.next.programmer Subject: Re: MiscString vs. NSString Date: 24 Feb 1995 04:48:17 GMT Distribution: world Message-ID: <3ijoeh$dkh@bones.et.byu.edu> References: <3iiupo$258@uropax.contrib.de> Ralf Suckow writes ) Dear netters, ) if I would start to use an ObjC string object instead of char * ) in a new larger commercial project, what should I use? ) I'm impressed with the functionality of MiscString and the stuff ) around it, but I don't know anything about NSString of FoundationKit. ) If I use MiscString, will I have problems with EOF and NEXTSTEP 4.0? ) Or is a transition easy? Where can I get a FoundationKit if I don't have ) EOF? Is it contained in NS 3.3? ) ) Well, lots of questions... ) Could anyone help, please? As the original author of the MiscString, my suggestion is this: If you have access to the FK, use the NSString. Eventually the extra functionality around the MiscString will become categories on the NSString, so that's the best long term choice. But if you don't have the FK (which is in 3.3 Dev, as well as EOF), then the MiscString isn't a bad second choice. If you need specific functionality from the MiscString, then you may want to use it for now anyway. MiscString should work OK for most EOF and 4.0 situations, but then you'd have a mixed paradigm since EOF wants to hand you NSStrings. So, if you are using EOF now, definitely use the NSString! Hope that helps... And, hopefully, pretty soon some of those NSString categories will be ready for public use so that the functionality will be there. :-) -- Later, -Don Yacktman Don_Yacktman@byu.edu
From: sheppard@cs.ucdavis.edu (Kenneth Robert Sheppard) Newsgroups: comp.sys.next.programmer Subject: Should I get NS 3.2 or 3.3 black?? Date: 22 Feb 1995 20:22:40 GMT Organization: University of California, Davis Message-ID: <3ig6eg$lnd@mark.ucdavis.edu> I have been using NS 3.1 for a while now but due to a HD failure I am being forced to upgrade. NeXT has both 3.2 and 3.3 available for the same price. What are the pros and cons of with each one. I just read that NS 3.3 doesn'y have the literature package. What else is it missing? This would be a user version only. thanks Ken Sheppard sheppard@cs.ucdavis.edu
Newsgroups: comp.sys.next.programmer,comp.lang.objective-c From: scratch@sundance.sce.carleton.ca (Craig Scratchley) Subject: Re: LAMBDA functionality Message-ID: <scratch.793484177@sundance.sce.carleton.ca> Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University References: <scratch.793052099@sundance.sce.carleton.ca> <Y90NIEMO.95Feb20201733@freya.isy.liu.se> <scratch.793397090@arcturus.sce.carleton.ca> Date: Wed, 22 Feb 1995 20:16:17 GMT scratch@arcturus.sce.carleton.ca (Craig Scratchley) writes: >y90niemo@freya.isy.liu.se (NIELS MOLLER) writes: >> ... >>I really like the LAMBDA macro, and I hope that there is a >>solution. It's not technically difficult to make it work on any >>machine once ordinary nested functions work. >What's so nice about the LAMBDA macro (over and beyond what is >possible with nested functions), is that it allows code to be >placed where it is used. This makes reading code much easier, >and also makes programming an easier task. Imagine if the code >for each while loop had to be placed at the top of its enclosing >function! >Anyways, another solution to achieve the functionality of the >LAMBDA macro is to have the code moved to the top of the block by >pre-processing activity. I intended to use the LAMBDA macro when I was calling a function for each element of a collection. (Using a protocol from the GNU Objective C Class Library). Thus, the following macro would remove the need for the LAMBDA macro. The LAMBDA macro looks more elegant but, unless I am wrong, this following macro produces legal code. #define MSG_WITH_CALL(RECEIVER_SELECTOR, RETTYPE, ARGS, BODY) \ {RETTYPE __call_msg_func ARGS BODY [ RECEIVER_SELECTOR __call_msg_func ];} I am not that experienced writing macros. Please tell me if I can improve this macro. An example program, based on one from libobjects, that uses this macro follows: ------ CUT HERE ------ /* A simple demonstration of the GNU Dictionary object. In this example the Dictionary holds int's which are keyed by strings. */ #include <objects/stdobjects.h> #include <objects/Dictionary.h> int main() { id d; int y = 3; /* Create a Dictionary object that will store int's with string keys */ d = [[Dictionary alloc] initWithType:@encode(int) keyType:@encode(char*)]; /* Load the dictionary with some items */ [d putElement:1 atKey:"one"]; [d putElement:5 atKey:"five"]; [d putElement:6 atKey:"six"]; /* use the new macro */ MSG_WITH_CALL (d withElementsCall:,void, (elt i), { int z=2; printf ("One augmented element is %d \n", i.int_u + y); MSG_WITH_CALL (d withElementsCall:,void, (elt i), { printf ("A doubly augmented element is %d \n", i.int_u + y + z); }); }) exit(0); } -- W. Craig Scratchley | internet: scratch@sce.carleton.ca Dept. of Systems and Computer Engineering | phone: (613) 788-5740 (Dept.) Carleton University | (613) 241-6952 (Home) Ottawa, ON, CANADA K1S 5B6 | fax: (613) 788-5727 (Dept.)
From: vchi@visgen.com (Vrijmoed Chi) Newsgroups: comp.sys.next.programmer Subject: Question about NSThread Date: 22 Feb 1995 22:30:51 GMT Organization: The Eye Research Institute of Canada Message-ID: <3igdur$jfu@sator.eric.on.ca> Keywords: NSThread Hi, I'm looking for some examples using NSThread. Especially on how to commnicate between a background thread and the UI thread. (Do we still using or can we use notification center across two threads?) Thanks much in advance!
Newsgroups: comp.sys.next.programmer From: hsloong@srgcentre (Loong Ho Sang) Subject: HELP:jpeg for NeXT Message-ID: <D4Hpxn.B8p@hkuxb.hku.hk> Sender: usenet@hkuxb.hku.hk (USENET News System) Organization: The University of Hong Kong Date: Fri, 24 Feb 1995 05:58:34 GMT Does anybody know where I can get the jpeg and tiff2jpeg program for NeXT? Thanks in advance. - Anthony Loong (HKU)
From: schellenbg_s@fhrz07.fh-frankfurt.de Newsgroups: comp.sys.next.programmer Subject: distributed objects and cthreads Message-ID: <1995Feb24.174857.59@fhrz07.fh-frankfurt.de> Date: 24 Feb 95 17:48:57 TCPWA Organization: Fachhochschule Frankfurt am Main I have a NEXTSTEP client task that makes a connection to a NEXTSTEP server task and sends strings via the distributed objects mechanism (Objective-C message). How can I make the connection back from the server task to send strings to the client which is a cthread. The server task wants an id descriptor to make up a proxy to the client, but the cthread id is not working (bus error). What can I do? Sonja Schellenberg, Schellenberg@rz.fh-frankfurt.d400.de
From: rao@news.uh.edu (Jagannatha Rao) Newsgroups: comp.sys.next.programmer Subject: problems compiling readline lib Date: 24 Feb 1995 19:15:01 GMT Organization: University of Houston Message-ID: <3ilb7l$3a9@masala.cc.uh.edu> I am trying to compile the latest version of the GNU readline library but I get the following error. Is there an easy fix? sysmod 136$ make cc -c -DHAVE_CONFIG_H -I. -I. -g complete.c complete.c:1146: undefined type, found `DIR' complete.c:1238: illegal expression, found `)' make: *** [complete.o] Error 1 sysmod 137$ Thanks. -- Jagannatha Rao E-mail:rao@uh.edu Department of Mechanical Engineering Tel :(713) 743-4535 University of Houston Fax :(713) 743-4503 Houston, TX 77204-4792
Newsgroups: comp.lang.c++,comp.realtime,comp.std.c++,comp.sys.next.programmer,comp.theory From: rdl@world.std.com (Robert La Ferla) Subject: Re: Real Time OOPS? In-Reply-To: rdl@world.std.com's message of Wed, 22 Feb 1995 04:45:12 GMT Message-ID: <RDL.95Feb23224434@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3hu7q2$6k0$2@mhadf.production.compuserve.com> <RDL.95Feb21234512@world.std.com> Distribution: inet Date: Fri, 24 Feb 1995 03:44:34 GMT Here is the book I was referring to: Real-Time Object-Oriented Modeling ISBN 0-471-59917-4 ObjecTime (800) 567-8463 Robert La Ferla HTI
Newsgroups: comp.sys.next.programmer From: guy@dilemma.ho.att.com (ed.comp.literacy) Subject: Version control for palettes Message-ID: <D4Ipo8.H1F@nntpa.cb.att.com> Sender: news@nntpa.cb.att.com (Netnews Administration) Organization: AT&T Date: Fri, 24 Feb 1995 18:50:32 GMT Does anyone know how I can do some type of version control for custom palettes. My problem is that I have a palette that contains a custom textfield that has constraints for lengths, dates, times etc. This palettes was completed, and then subsequently used by others in certain applications. Later I get a request to add Upper and Lower case contraints. Simple enough. I make the changes to the palette, and the Inspector, and then recompile. Now the interfaces that used the old palette no longer load with the new palette loaded. The custom textfield instances taken from the old palette do not work with the new custom palette. I get an "unable to load nib file" error when I try to open the old nib files. To get around this I created a new palette that had the old custom textfield, and now the new custom textfield. This becomes a big pain as new versions of the text palette get created. Does anyone now how to get around this problem? (short of removing all of the old instances and dragging the new ones of the new palette!) Any help will be greatly appreciated. -Guy
From: dicosmo@verveine.ens.fr (Roberto DiCosmo) Newsgroups: comp.sys.next.programmer Subject: Distributed Objects: how to stop an object's event loop. Date: 23 Feb 1995 09:17:42 GMT Organization: Ecole Normale Superieure Distribution: world Message-ID: <DICOSMO.95Feb23101742@verveine.ens.fr> PROBLEM: once a distributed object has started its event loop, like in /* * register as a server */ ourServer = [NXConnection registerRoot: self withName:"MyName"]; [ourServer run]; /* rest_of_the_code */ *how* is it possible to cleanly stop the event loop and resume normal program execution (i.e. continue with rest_of_the_code) ? Is it possible to have a behaviour like the one in the Application object, that accepts successive stop and start messages? Also, what is the blessed way to definitely stop the loop, close the NXConnection without trashing objects that used it, and continue with the usual program? APPLICATION: I am trying to implement an extended rendez-vous communication between two different processes: a NeXTSTEP application and a unix program. I do it by registering the application as a server, then when the unix program needs to wait for some user event via the application, it should set up a distributed object acting like a listener, that waits for the application to send a gotEvent message, before resuming normal execution. I prefer this solution to pipes/sockets, as it is portable across OpenStep implementations and should work seamelessly also with program and application on different systems/machines. Thank you for any hint/help/solutions/suggestions. (Please, also send a copy of your answer by e-mail: thank you!) -- Roberto Di Cosmo <dicosmo@dmi.ens.fr>, http://www.ens.fr/users/dicosmo/index.html LIENS Ecole Normale Superieure 45, Rue d'Ulm 75005 Paris FRANCE
From: rds4@po.CWRU.Edu (Rahul D. Sethi) Newsgroups: comp.sys.next.programmer Subject: "net-library" for the Microsoft SQL server Date: 24 Feb 1995 19:23:52 GMT Organization: Case Western Reserve University, Cleveland, Ohio (USA) Message-ID: <3ilbo8$r8i@usenet.INS.CWRU.Edu> Hi, We are exploring the possibility of using the Microsoft SQL server for our Practice Management software. The last time we called Microsoft, they had told us that we need to buy "net-library" from SYBASE. Does anybody know what exactly is this net-library? Is anybody using the Microsoft SQL server for a NEXTSTEP application? Would appreciate any input. please reply on net or send e-mail to rds4@po.cwru.edu -- Rahul D. Sethi Dept. of Computer Engineering Case Western Reserve University
Newsgroups: comp.sys.next.programmer From: gerald@kurt.in-berlin.de (Gerald Erdmann) Subject: ProjectBuilder: How to add another language Message-ID: <1995Feb23.194157.2621@kurt.in-berlin.de> Sender: news@kurt.in-berlin.de Date: Thu, 23 Feb 1995 19:41:57 GMT Hi, I've a litte problem. How can I add another language to a project? ProjectBuilder doesn't copy the .lproj directory into the result .app directory. Thanx --------------------------------------------------------------------- | GERALD ERDMANN | email: gerald @ kurt.in-berlin.de (NeXTmail welcome) | voice: +49 30 372 43 10 (Germany - Berlin) | crypt: pgp2 puplic key available
From: Lee_Robert_Willis@cup.portal.com Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: 3DKit port to Open-GL anyone? Date: 24 Feb 1995 20:20:12 -0800 Organization: The Portal System (TM) Sender: pccop@unix.portal.com Distribution: world Message-ID: <133549@cup.portal.com> Hello Net, I've just started working at a firm which uses SGIs, and as such have started learning OpenGL. Which got me thinking... Has anyone looked at / done any work toward a 3DKit port to OpenGL? (Maybe on top of ObjCX?) At first glance there looks to be a good correspondance between QuickRenderMan functionality and OpenGL functionality. (You couldn't do Photo-Realistic Renderman shader stuff, but I'm only interested in the interactive stuff.) If anyone's done any work toward this (or vice-versa, knows why it can't be done) I'd love to hear about it. --Lee lee_robert_willis@cup.portal.com
From: jwishnie@gb.swissbank.com ( (Jeff Wishnie) Newsgroups: comp.sys.next.programmer Subject: setValues:forObject: TOO DAMN SLOW! Date: 22 Feb 1995 15:48:00 GMT Organization: Swiss Bank Corporation, High Timber St, London, UK Distribution: world Message-ID: <3ifmbg$nf0@gpo.gb.swissbank.com> Hello, I'm writting a simple EOF app that edits objects held in an EOController and then notifies the controller with: setValues:forObject: (EOController) Problem is: on a small table (like under 50 entries) you can COUNT the seconds this takes. I have buffered operations on so this isn't even hitting the DB. Any suggestions? Why is this so slow? - Jeff
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: Help w/NXEvent Date: 22 Feb 1995 19:29:42 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3ig3b7$s6@rosie.next.com> References: <3ibbdk$gkj@nntp.interaccess.com> Aaron Conti writes > I am trying to use NXEvents to determine if the user is leaving the > computer idle for a given period of time. The "time" value of the > NXEvent structure seems to contain zero for most events, and I am not > sure why. > > Am I going about this in the right manner or just being a programming dork? > > If this field contained the correct time of the last event, I could keep > checking any new events to see if their have been any new events since > the last time that I checked. Seems simple enough. > > Suggestions? Here's another way to do it: #include <drivers/event_status_driver.h> double userIdleTime() /* returns the time (in seconds) since the * last user generated event */ { NXEventHandle eventHandle = NXOpenEventStatus(); double dimThreshold, dimRemain, idleTime; /* find out what the autodim time is */ dimThreshold = NXAutoDimThreshold(eventHandle); /* find out how much time is left before dimming * NOTE: if the screen is dimmed, the time returned * is NEGATIVE and indicates the time since the * screen was dimmed (which is just fine) */ dimRemain = NXAutoDimTime(eventHandle); /* see how long the user has been sleeping */ idleTime = dimThreshold - dimRemain; /* clean up */ NXCloseEventStatus(eventHandle); return idleTime; } -- Ralph Zazula '-DHOOD' NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
Newsgroups: comp.sys.next.programmer From: dekorte@unh.bos.marble.edu (Steve Dekorte) Subject: Window Palettes Message-ID: <D4J3qw.KEq@marble.com> Sender: news@marble.com Organization: Marble Associates, Inc. Date: Fri, 24 Feb 1995 23:54:31 GMT Could someone with experience making palettes for windows please post a message descibing how to do it? I can't seem to find any docs on it. Thanks in advance, -- Steve Dekorte dekorte@marble.com (NeXTmail welcome) http://www.symnet.net/~dekorte
From: jwishnie@gb.swissbank.com ( (Jeff Wishnie) Newsgroups: comp.sys.next.programmer Subject: Re: setValues:forObject: OOPS Date: 23 Feb 1995 13:46:26 GMT Organization: Swiss Bank Corporation, High Timber St, London, UK Distribution: world Message-ID: <3ii3ji$52p@gpo.gb.swissbank.com> References: <3ifmbg$nf0@gpo.gb.swissbank.com> Per my recenet post: The problem was with my GUI update code, not the EOController which is in fact very fast. Sorry! Is there anyway to get an EOController to provide larger-granularity notification than an attirbute-by-attribute basis? For example, on an EO, or datasource level? it doesn't look like I can. - Jeff (Jeff Wishnie writes > Hello, > > I'm writting a simple EOF app that edits objects held in an EOController > and then notifies the controller with: > > setValues:forObject: (EOController) > > Problem is: > > on a small table (like under 50 entries) you can COUNT the seconds this > takes. I have buffered operations on so this isn't even hitting the DB. > > Any suggestions? Why is this so slow? > > - Jeff
From: jmack@skye.phys.ualberta.ca Newsgroups: comp.sys.next.programmer Subject: Re: problems compiling readline lib Date: 25 Feb 1995 06:51:19 GMT Organization: Computing and Network Services, U of Alberta, Edmonton, Canada Message-ID: <3imk17$qr2@rover.ucs.ualberta.ca> References: <3ilcan$43v@masala.cc.uh.edu> In article <3ilcan$43v@masala.cc.uh.edu> rao@news.uh.edu (Jagannatha Rao) writes: > Jagannatha Rao (rao@news.uh.edu) wrote: > > : I am trying to compile the latest version of the GNU readline > : library but I get the following error. Is there an easy fix? > > : sysmod 136$ make > : cc -c -DHAVE_CONFIG_H -I. -I. -g complete.c > : complete.c:1146: undefined type, found `DIR' > : complete.c:1238: illegal expression, found `)' > : make: *** [complete.o] Error 1 > : sysmod 137$ complete.c:1146: undefined type, found `DIR' indicates a missing include. add the following line in the include section of compete.c (or a common local .h file if ther are other occurances in other .c files) #include <sys/dir.h> (this is where DIR is defined as an instance of typedef struct _dirdesc...) -- James S. MacKinnon Office: P-139 Avahd-Bhatia Physics Lab Computing/Networking Phone : (403) 492-8226 Department of Physics email : jmack@phys.ualberta.ca University of Alberta uucp : uofaphys!jmack iskye!jmack Edmonton, Canada T6G 2N5 bitnet: jmack@triumfcl jsm1@ualtamts
From: rgc@jujube.cs.umd.edu (Ross Garrett Cutler) Newsgroups: comp.sys.next.programmer Subject: Re: How to get destructor under ObjC++? Date: 25 Feb 1995 09:04:49 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Distribution: world Message-ID: <3imrrh$pnu@mimsy.cs.umd.edu> References: <3ilqvv$r6c@hptemp1.cc.umr.edu> Cheng-Chin Huang (huang@kwainx.isc.umr.edu) wrote: : Since the ObjC++ compiler does not like the destructor in one of my C++ : class header file, I comment it out. Now the destructor method is never : being called even though I compiled the C++ library with that destructor : member function. Is destructor supported under ObjC++ mode? Could someone Yes. : tell me how to get it to work? Post your header for the destructor the computer "doesn't like". I've used ObjC++ extensively, and haven't seen anything like this. -- Ross Cutler University of Maryland, College Park Internet: rgc@cs.umd.edu Home page: http://www.cs.umd.edu/~rgc
From: doyle@zeke.lanl.gov (Mark D. Doyle) Newsgroups: comp.sys.next.programmer Subject: varargs.h on HP Date: 25 Feb 1995 07:51:04 GMT Organization: Los Alamos National Laboratory Distribution: world Message-ID: <3imnh8$r6a@newshost.lanl.gov> Hi, I am trying to get popper running on my HP (I have been able to do it on Motorola), but it keeps dying with a segmentation fault. I believe the problem is with the functions for printing out various messages that take a variable length arguments list using the macros in varargs.h (actually, the relevant files are /usr/include/bsd/hppa/varargs.h and /usr/include/bsd/m68k/varargs.h). I am unable to really unravel the HP header file and understand what it is doing. So, has anyone else encountered this problem, and more importantly, does anyone have a simple work-around? In the end, I guess I can always redo all the function calls so that only a fixed number of arguments are used, but I would like to avoid that. Thanks, Mark
From: dengliu@solar.csie.ntu.edu.tw (Deng Liu) Newsgroups: comp.sys.next.programmer Subject: Possibility? NeXTSTEP as a color seperation processor Date: 24 Feb 1995 17:43:13 GMT Organization: The Dept. of Computer Science and Information Engineering of NTU Message-ID: <3il5rh$h7f@debbie.cc.nctu.edu.tw> [ Article crossposted from comp.lang.postscript ] [ Author was Deng Liu ] [ Posted on 24 Feb 1995 17:42:29 GMT ] Some of my friends (who are freelance designers) are tired of dealing with print bureau, yet they can't afford a high-end typesetter on their own (as most of us do.) They noticed there are certain kinds of low-end substitudes, though not all of them are PostScript-tounged, and of course there is no color seperation. I wonder, if it is possible to make use of NeXTSTEP's (Display) PostScript ability, to have .EPS file interpreted and produce a (exactly, four) bitmaps that's sent to the printers? (they work on that OS) I guess color seperation would be a problem. Should we hand-code a color-seperation procedure, as one of the examples in books like "Real-world PostScript" do? Or can we simply call apps that's suitable for this job (e.g. Illustrator, FreeHand)? So far as I am concerned, drawing apps that do color seperations make some use of .EPS itself. That is, they place a color seperation code by their own in head of the outputing .EPS file. Any idea or "pointers" to reference or existing products (hope they won't be too expensive :) is greatly appreciated, we're dreadfuuly looking for an alternative for outputing! thanks, Deng Liu ======================================================================== Happy is the Life, Merry be the Night; Hack upon Bugs, And programming with Pride. --- to the Souls wandering in the cyberspace -- ======================================================================== Happy is the Life, Merry be the Night; Hack upon Bugs, And programming with Pride. --- to the Souls wandering in the cyberspace
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: Is anyone managing identifier prefixes? Message-ID: <D4HK7y.HoD@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems References: <3id5h7$h00@usenet.rpi.edu> Date: Fri, 24 Feb 1995 03:55:09 GMT [justified griping about Objective C's flat name space for classes deleted] Garance A. Drosehn writes > Just as an aside, this is one of the reasons I wish we were > programming in something other than an offshoot of C. Eiffel > (the computer language) seems to have ways to deal with this > problem, built right into the language. Such conflicts are > bound to arise, and it's nice to see a language that has a way > to handle them. Absolutely. I don't know about Eiffel's solution, but Ada95 also has a hierarchical name space that I sorely miss in Objective-C Objective-C is really nice in many ways, but it has some weaknesses that really begine to show on large projects: flat global name space kludgey support for exceptions no class invariant, pre-post condition support typing just a little too weak -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
From: jkolyer@next.com Newsgroups: comp.sys.next.programmer Subject: Re: Horizontal NXSplitView Date: 24 Feb 1995 18:41:26 GMT Organization: NeXT Computer, Inc. Message-ID: <3il98m$k7@rosie.next.com> References: <3if9jg$5qq@n.ruf.uni-freiburg.de> In article <3if9jg$5qq@n.ruf.uni-freiburg.de> lars@cognition.iig.uni-freiburg.de (Lars Konieczny) writes: $Sorry if this is a FAQ. Is there an easy way to get a horizontal NXSplitView, $i.e. a splitView that positions each successive subview to the right and which $has vertical dividers? Has anyone written such an object? $ $Thanx in advance, $ $Lars $ $--- $Lars Konieczny $Center for Cognitive Science $Institute of Computer Science and Social Research $University of Freiburg, Germany $lars@cognition.iig.uni-freiburg.de Check out MiniExamples/ZooView -- jonathan_kolyer@next.com My thoughts, opinions, and experiences are my own.
From: cc100aa@news.gatech.edu (Internal Services Admin Account) Newsgroups: comp.sys.next.programmer Subject: Re: curses on NeXT Date: 24 Feb 1995 14:36:25 -0500 Organization: Georgia Institute of Technology Message-ID: <3ilcfp$q9e@mordred.gatech.edu> References: <3ij3g6$b6c@news.acns.nwu.edu> <1995Feb24.091945.44515@yogi.urz.unibas.ch> In article <1995Feb24.091945.44515@yogi.urz.unibas.ch>, Robert Frank <frank@woodstock> wrote: >estima <estima@merle.acns.nwu.edu> wrote: >>I am tryng to port a curses application under HP-UX to NeXT. >>It fails at linking and complains that >> _tputs, _tgetent, _tgetnum, _tgoto, _tgetflag, and _tgetstr >>are not found. I use GNU C compiler. Am I missing anything? >NeXT supplies a really old verions of curses. You'll have to look >around for an implementation of the newer version if you >need these functions. I believe, though, that these particular functions are in the distributed termcap library. Try linking with the "-ltermcap" option. -- Ray Spalding, Office of Information Technology Georgia Institute of Technology, Atlanta Georgia, 30332-0715 Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
From: rao@news.uh.edu (Jagannatha Rao) Newsgroups: comp.sys.next.programmer Subject: Re: problems compiling readline lib Date: 24 Feb 1995 19:33:43 GMT Organization: University of Houston Message-ID: <3ilcan$43v@masala.cc.uh.edu> References: <3ilb7l$3a9@masala.cc.uh.edu> Jagannatha Rao (rao@news.uh.edu) wrote: : I am trying to compile the latest version of the GNU readline : library but I get the following error. Is there an easy fix? : sysmod 136$ make : cc -c -DHAVE_CONFIG_H -I. -I. -g complete.c : complete.c:1146: undefined type, found `DIR' : complete.c:1238: illegal expression, found `)' : make: *** [complete.o] Error 1 : sysmod 137$ : Thanks. I forgot to mention that I am trying this in NS 3.2 on a black machine. : -- : Jagannatha Rao E-mail:rao@uh.edu : Department of Mechanical Engineering Tel :(713) 743-4535 : University of Houston Fax :(713) 743-4503 : Houston, TX 77204-4792 -- Jagannatha Rao E-mail:rao@uh.edu Department of Mechanical Engineering Tel :(713) 743-4535 University of Houston Fax :(713) 743-4503 Houston, TX 77204-4792
From: rmyers@dec5200.acs.uci.edu (Richard Myers) Newsgroups: comp.sys.next.programmer Subject: Re: curses on NeXT Date: 24 Feb 1995 20:05:52 GMT Organization: University of California, Irvine Message-ID: <3ile70$rur@news.service.uci.edu> References: <3ij3g6$b6c@news.acns.nwu.edu> You're looking for ncurses. I believe there's a version on ftp.cs.orst.edu. Kurt
From: mike@ceramics.cmpe.ubc.ca (Michael C. Cam) Newsgroups: comp.sys.next.programmer Subject: Re: HELP:jpeg for NeXT Date: 24 Feb 1995 20:13:20 GMT Organization: The University of British Columbia Distribution: world Message-ID: <3ilel0$feh@nntp.ucs.ubc.ca> References: <D4Hpxn.B8p@hkuxb.hku.hk> In article <D4Hpxn.B8p@hkuxb.hku.hk> hsloong@srgcentre (Loong Ho Sang) writes: > Does anybody know where I can get the jpeg and tiff2jpeg program > for NeXT? > > Thanks in advance. > > - Anthony Loong (HKU) -- Hi, I posted something similar to this some time ago and got a response from (I'm embarassed to say have forgotten ...). To convert from a variety of formats to other formats you need the program image written by Lennart Lovstrand utilizing routines written by Jef Poskanzer in what is called the pbmplus package. Below is an excerpt of image's man page showing what files it can read or write. atkras Andrew Rasterfiles (binary and ascii) read gif Graphics Interchange Format read itex ITEX Framegrabber Files read write pbm Jef Poskanzer's Portable Bitmaps (binary) read write pgm Jef Poskanzer's Portable Graymaps (binary) read write ppm Jef Poskanzer's Portable Pixmaps (binary) read write jpg3 JPEG File Interchange Format (JFIF) read write macp1 MacPaint Documents read write mtek Mikrotek Scanner Files read eps PostScript Encapsulated Files read ps PostScript (plain) write ras2 Sun Rasterfiles read write rle UTAH Run-length Encoded Rasterfiles read icon Sun Icon Files (old and new format) read write tiff Tagged Image File Format read write face USENET Face Files read write xbm X11 Bitmaps read write ilisp Xerox Interlisp-D Source read brush Xerox Brush/Press Files read ais Xerox Array of Intensity Samples read Image does not support jpeg conversion directly but through two other programs cjpeg (code jpeg) and djpeg (decode jpeg). Now I am not quite sure what the distribution rights are for image nor where one can get the source but you can email me directly if you want the binary. The pbmplus package can be obtained from ee.utah.edu in /pbmplus but you do not need these if you have image. The source for *jpeg can be obtained from ftp.cs.columbia.edu in /jpeg, better yet you can get the binaries from inside ImageViewer.app. ..Mike. ___________________________________________________________________ | | | ___ ^ ... /\ BEAUTIFUL | | _|_::| ___o '|`^ .. o_ . .. /\ / \ BRITISH | | |:::|:| \ \, ^ '|`|` (`_|/____') / / /\ COLUMBIA | | |:::|:| (o)/ (o) '|`'|`|`` ,,/ . ... . .. / \ | |-------------------------------------------------------------------| | Michael C. Cam E-MAIL (NeXT Mail OK) HOME 604-263-7609 | | UBC Materials Eng. mike@ceramics.cmpe.ubc.ca WORK 604-822-3122 | |___________________________________________________________________|
Newsgroups: comp.sys.next.hardware,comp.sys.next.sysadmin,comp.sys.next.programmer From: magnan@brise.ERE.UMontreal.CA (Magnan Francois) Subject: Re: sample fax modem driver (mythical?) In-Reply-To: scott@geom.umn.edu's message of Thu, 23 Feb 1995 23:57:10 GMT Message-ID: <MAGNAN.95Feb24120411@brise.ERE.UMontreal.CA> Sender: news@cc.umontreal.ca (Administration de Cnews) Organization: Universite de Montreal References: <D4H994.719@news.cis.umn.edu> Date: Fri, 24 Feb 1995 17:04:10 GMT >>>>> "Scott" == Scott S Bertilson <scott@geom.umn.edu> writes: Scott> I have periodically seen notes which mention fax modem Scott> driver sample code and I think I've sent notes to the Scott> people who've mentioned it, but I've never heard anything Scott> back. Is this one of those things that died when NeXT sold Scott> off a software package (in this case NXFax)? Thanks, Scott Scott> S. Bertilson -- There is a PD fax driver that supports more modems than NXFax and it can also support voicemail. It is called mgetty+sendfax and you can get info on it at: http://www.leo.org/~doering/mgetty/index.html This program is designed for a general unix context (so it works from the command line) but you can also make it work with the printmanager. If you want this last thing ask me and I will send you instructions. Francois Magnan -- ______________________________________________________ Francois Magnan Departement de Mathematique & Statistiques Universite de Montreal email: magnan@mathcn.umontreal.ca (MIME, NeXTMail Ok!)
From: Peter Urka <pcu@umich.edu> Newsgroups: comp.sys.next.programmer Subject: Re: Matrix & rightMouseDown Date: Fri, 24 Feb 95 21:24:13 GMT Organization: Squirrel Bin Sender: preston@urkabox.chem.lsa.umich.edu Distribution: world Message-ID: <24Feb21241386094321@urkabox.chem.lsa.umich.edu> References: <3i68ae$sr@news.iastate.edu> > The following is what I did to make the Matrix class response to the > right mouse button, but no button cell in the matrix get SELECTED. > Querying the selectedCell returns the selected cell last clicked with > the LEFT button. I believe that you have to set the eventMask for the Window to accept NX_RMouse* masks (dpsclient/event.h). Or, I could be totally wrong. :) Luck, Peter.
Newsgroups: comp.sys.next.programmer From: jsafar@lehman.com (jean safar) Subject: [PDO and C++] Message-ID: <D4Iv23.Ar9@lehman.com> Sender: news@lehman.com (News) Organization: Lehman Brothers, Inc. References: <jbf-2202950226240001@mbppp2.mitre.org> Date: Fri, 24 Feb 1995 20:46:50 GMT HI, Has anybody used the gnu compiler of PDO with some C++ in and has been able to compile it. I would be interested in any experience. Maybe, also, someone knows why Next is lagging behind in terms of release, and why the compilers don't behave similarely? Regards, --- ----------------------------------------------------------------- | Jean B. Safar email:jsafar (Next Mail OK!) | | | "riverrun, past Eve and Adam's, from swerve of shore to bend | | of bay, brings us by a commodius vicus of recirculation back | | to Howth Castle ad Environs", does it make sens to you ? | | | | Applied Derivative Products Technology | | | | | | Lehman Brothers phone:(212) 526-1679 | | American Express Tower, | | 21th Floor FAX: (212) 526-0205 | | New York, NY 10285 uucp:jsafar@lehman.com | -----------------------------------------------------------------
Newsgroups: comp.sys.next.programmer From: precipi!neekibo (Hugues RICHARD) Subject: EOF adaptator for AS400 databases available ? Message-ID: <1995Feb24.184603.6440@precipice.fdntytruyu.fr> Sender: neekibo@precipice.fdntytruyu.fr Organization: Individual - Dijon, France. Date: Fri, 24 Feb 1995 18:46:03 GMT Hi, does anybody knows if there's an EOF adaptator for AS400 since OS/400 now speaks TCP/IP ? Thanks. H ugues anybody knows if there's an EOF adaptator for AS400 since OS/400 now speaks TCP/IP ? Thanks. H$B54(J -- -------------------------------------------------------------------- neekibo@precipice.fdn.fr - France (small NeXTMail OK) ------------ NS3.2 ------------ NS3.0J ------------ :-) ------------
Newsgroups: comp.sys.next.programmer Subject: Re: curses on NeXT Message-ID: <1995Feb24.091945.44515@yogi.urz.unibas.ch> From: frank@woodstock (Robert Frank) Date: 24 Feb 95 09:19:45 MET References: <3ij3g6$b6c@news.acns.nwu.edu> estima <estima@merle.acns.nwu.edu> wrote: >Hi, >I am tryng to port a curses application under HP-UX to NeXT. >It fails at linking and complains that > _tputs, _tgetent, _tgetnum, _tgoto, _tgetflag, and _tgetstr >are not found. I use GNU C compiler. Am I missing anything? >Any suggestion is greatly appreciated. >Thanks in advance. >Tony Ku >Estima NeXT supplies a really old verions of curses. You'll have to look around for an implementation of the newer version if you need these functions. I can recall that some one did an implementation for NEXTSTEP, but I can't recall who. -Robert
Newsgroups: comp.sys.next.programmer From: damonc@damonc.tor.hookup.net (Damon F. Cooper) Subject: Re: MiniSQL DBKit Adaptor problems Message-ID: <D4I5yM.ts@tor.hookup.net> Sender: damonc@tor.hookup.net (Damon F. Cooper) Organization: Damon F. Cooper References: <3ih7gi$l92@geraldo.cc.utexas.edu> Date: Fri, 24 Feb 1995 11:44:45 GMT In article <3ih7gi$l92@geraldo.cc.utexas.edu> faizel@mail.utexas.edu (Faizel Dakri) writes: > Has anybody successfully used the MiniSQL DBKit adaptor (9/30/94 version > found on ftp.informatik.uni-muenchen.de) on MiniSQL version 1.0.5? I'm > having problems logging into the database; whenever the login panel comes > up and I fill in the Database field, one of two things happens: 1) Nothing > happens, and the panel stays on the screen, or 2) the mouse ponter changes > to the spinning disc, and stays that way. > > I've exported the MINERVA_DEBUG variable with all the possible debug > flags, and when I start the msqld daemon, I get the following messages: > > [msqld] IP Socket is 1112 > [msqld] UNIX Socket is /dev/msql > [msqld] miniSQL debug mode. Waiting for connections. > > Then, when the login panel comes up, I get the following messages: > > [msqld] IP Socket is 1112 > [msqld] UNIX Socket is /dev/msql > [msqld] miniSQL debug mode. Waiting for connections. > [msqld] New connection received on 10 > [msqld] Host = localhost > > At this point, after I fill in the Database field and hit the OK button, > nothing happens and the panel stays on screen. > > Any help would be greatly appreciated. > > Thanks, > > --Faizel > > -- > Faizel Dakri > faizel@mail.utexas.edu (NeXTmail *friendly*) I fear that there is NO DBKit adaptor for MiniSQL...I have the version you have and it in fact an EOF adaptor as far as I can tell... If there exists a REAL MiniSQL DBKit adaptor, I'd like to get a hold of it... Reagards, -- Damon F. Cooper damonc@damonc.tor.hookup.net [NEXTMAIL: OK]
From: dkoski@sun34.cs.wisc.edu (David Koski) Newsgroups: comp.sys.next.programmer Subject: Re: HELP:jpeg for NeXT Date: 24 Feb 1995 18:20:01 GMT Organization: U of Wisconsin CS Dept Message-ID: <3il80h$vm@spool.cs.wisc.edu> References: <D4Hpxn.B8p@hkuxb.hku.hk> In article <D4Hpxn.B8p@hkuxb.hku.hk>, Loong Ho Sang <hsloong@srgcentre> wrote: >Does anybody know where I can get the jpeg and tiff2jpeg program >for NeXT? You can get the jpeg library from ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v5a.tar.gz It should compile without problems on a NS system. Here is a short tiff2jpeg program that I wrote. Feel free to modify it if you want. Note: it assumes that the tiff files are 24 bit color, no alpha, meshed. Also, this does not take any jpeg creation options, they are all hard coded (to the values that I wanted). David /***************************************************************************** * FILE: tifftojpeg.m * AUTHOR: David Koski * PURPOSE: convert tiff to jpeg * *****************************************************************************/ #import <appkit/appkit.h> #import "cdjpeg.h" static char *gstart; static int glen; static jmp_buf env; static void memorySkip(j_decompress_ptr cinfo, long num_bytes) { cinfo->src->next_input_byte += num_bytes; } static void initSrc(j_decompress_ptr cinfo) { cinfo->src->bytes_in_buffer = glen; cinfo->src->next_input_byte = gstart; } static void nothing() { } static void fatalError(j_common_ptr cinfo) { (*cinfo->err->output_message)(cinfo); longjmp(env, 1); } static void sigHandler(int s) { fputs("fatal signal in jpeg library", stderr); longjmp(env, 1); } int main(int argc, char *argv[]) { const char *infile = argv[1]; char *outfile; FILE *fp; char buf[MAXPATHLEN]; struct jpeg_compress_struct cinfo; struct jpeg_error_mgr jerr; NXBitmapImageRep *im; JSAMPROW row_pointer[1]; /* pointer to JSAMPLE row[s] */ strcpy(buf, infile); outfile = strrchr(buf, '.'); *outfile = '\0'; strcat(buf, ".jpg"); outfile = buf; /* Initialize the JPEG decompression object with default error handling. */ cinfo.err = jpeg_std_error(&jerr); jerr.error_exit = fatalError; jpeg_create_compress(&cinfo); if ((fp = fopen(outfile, "w")) == NULL) { fprintf(stderr, "can't open %s\n", outfile); exit(1); } jpeg_stdio_dest(&cinfo, fp); im = [[NXBitmapImageRep alloc] initFromFile: infile]; cinfo.image_width = [im pixelsWide]; cinfo.image_height = [im pixelsHigh]; cinfo.input_components = 3; cinfo.in_color_space = JCS_RGB; jpeg_set_defaults(&cinfo); jpeg_set_quality(&cinfo, 60, TRUE); jpeg_start_compress(&cinfo, TRUE); while (cinfo.next_scanline < cinfo.image_height) { row_pointer[0] = [im data] + cinfo.next_scanline * [im bytesPerRow]; (void) jpeg_write_scanlines(&cinfo, row_pointer, 1); } jpeg_finish_compress(&cinfo); jpeg_destroy_compress(&cinfo); return 0; }
From: doyle@zeke.lanl.gov (Mark D. Doyle) Newsgroups: comp.sys.next.programmer Subject: Re: varargs.h on HP (SOLVED) Date: 25 Feb 1995 19:14:49 GMT Organization: Los Alamos National Laboratory Distribution: world Message-ID: <3invj9$i1e@newshost.lanl.gov> References: <3imnh8$r6a@newshost.lanl.gov> In article <3imnh8$r6a@newshost.lanl.gov> doyle@zeke.lanl.gov (Mark D. Doyle) writes: > Hi, > > I am trying to get popper running on my HP (I have been able to do > it on Motorola), but it keeps dying with a segmentation fault. I > believe the problem is with .... using the macros in varargs.h Turns out there was a problem with the code in popper 1.831 beta that I tracked down. Needed to move the position of the va_end macro in pop_msg.c (analogously to how it was done in pop_log.c). Cheers, Mark
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Help on .keymapping files Date: 25 Feb 1995 16:53:12 GMT Organization: University of Heidelberg, Germany Message-ID: <3inn9o$a9u@sun0.urz.uni-heidelberg.de> Hello NeXTers! Is there any doc on *.keymapping and *.keyboerd file formats available? I can use them (switching from one keyboard type to another from within my app) but I'm curious to learn a little bit more about them. I want to use this for my HebrewEdit.app ;-) Shalom -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
From: fischer@fokus.gmd.de (Robert Fischer) Newsgroups: comp.sys.next.programmer Subject: Re: Renderman Message-ID: <3ik8gs$as@stern.fokus.gmd.de> Date: 24 Feb 95 09:22:36 GMT References: <3ig1ln$ga7@nef.ens.fr> Organization: GMD-FOKUS Julien writes > I have got some problems with renderman on NeXTStep (PC). > I compile this code (from Renderman Companion, first example) : > > % cat test.c > #include <ri/ri.h> > RtPoint Square[4] = {{.5,.5,.5},{.5,-.5,.5},{-.5,-.5,.5},{-.5,.5,.5}}; > > main() > { > RiBegin(RI_NULL); > RiWorldBegin(); > ... Hi, for my understanding this pure RenderMan code has to be surrounded more 'NeXTish' as you could see in the Examples of NeXTSTEP developer. Take a look at '/NextDeveloper/Examples/3Dkit/Simple'. Hope that helps. (Sorry, I'm no RenderMan speci. ) Robert. -- ----------------------------------------------------------------------- Robert Fischer @ GMD-Fokus -------- __o ------- _`\<,_ fischer@fokus.gmd.de ------- (*)/ (*) ## NeXT-Mail welcome ## -----------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <gbacklin@marizack.com> Message-ID: <9502251930.AA00309@marizack> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Gene Backlin <gbacklin@marizack.com> Date: Sat, 25 Feb 95 13:30:14 -0600 Subject: NEW Book "Developing NeXTSTEP Applications" coming in April Cc: gbacklin@marizack.com Hello fellow developers, This is a note to inform you that there will be a new book coming in April filled with step-by-step instructions to help you design NeXTSTEP applications. I am the author and it will be published by Sams Publishing. Within the pages of this book you will be instructed on how to build over 50 applications from scratch. There will be an attached diskette that will have all the applications that are explained in the book. Topics include Delegate, Panel, Menu, Browser processing; View, Image, Pasteboard manipulation, Drag and Drop; and Distributed Object applications both on the Client as well as the Server end. For a more detailed summary feel free to contact me. gbacklin@MariZack.com Thank you for your time to read this. Gene PS. Please let me know if you can receive NeXT Mail, Thanks again !
Newsgroups: comp.sys.next.hardware,comp.sys.next.sysadmin,comp.sys.next.programmer From: magnan@brise.ERE.UMontreal.CA (Magnan Francois) Subject: Re: sample fax modem driver (mythical?) In-Reply-To: magnan@brise.ERE.UMontreal.CA's message of Fri, 24 Feb 1995 17:04:10 GMT Message-ID: <MAGNAN.95Feb25205715@brise.ERE.UMontreal.CA> Sender: news@cc.umontreal.ca (Administration de Cnews) Organization: Universite de Montreal References: <D4H994.719@news.cis.umn.edu> <MAGNAN.95Feb24120411@brise.ERE.UMontreal.CA> Date: Sun, 26 Feb 1995 01:57:14 GMT >>>>> "Magnan" == Magnan Francois <magnan@brise.ERE.UMontreal.CA> writes: >>>>> "Scott" == Scott S Bertilson <scott@geom.umn.edu> writes: Scott> I have periodically seen notes which mention fax modem Scott> driver sample code and I think I've sent notes to the Scott> people who've mentioned it, but I've never heard anything Scott> back. Is this one of those things that died when NeXT sold Scott> off a software package (in this case NXFax)? Thanks, Scott Scott> S. Bertilson -- Magnan> There is a PD fax driver that supports more modems than Magnan> NXFax and it can also support voicemail. It is called Magnan> mgetty+sendfax and you can get info on it at: Magnan> http://www.leo.org/~doering/mgetty/index.html Magnan> This program is designed for a general unix context (so it Magnan> works from the command line) but you can also make it work Magnan> with the printmanager. If you want this last thing ask me Magnan> and I will send you instructions. Since I cannot reach Rob Caljouw by email (his address is not working) I decided to post to instructions. Here is how to make mgetty+sendfax with the print manager. This was written by Mark Gregory Salyzyn. Francois Magnan ---------------------------------------------------------------------- From: mark@ve6mgs.ampr.ab.ca (Mark Gregory Salyzyn) Subject: mgetty+sendfax 0.22 *works* great! Date: Mon, 21 Nov 1994 08:12:54 GMT Organization: UNIX drivers'R'Us I recently compiled mgetty+sendfax, and along with the pbm and ghostscript support I have had for some time, and find that it works great with my USR Courier Class 2.0 Triple standard modem for sending FAXes. I have not set up mgetty to receive faxes yet. The only hack I did was to have NetInfoManager.app redirect the `if' hander to the following script and this allowed me to be integrated into the Print Panel. I also hacked up smail (which replaced sendmail more than a year ago on my machine) to perform an email to FAX gateway. I would be interested in any comments about ensuring a level of security to the programs. For instance, any additional checks on the phone numbers? Ciao -- Mark Salyzyn -------------- /usr/lib/NextPrinter/Server/FAX.psif --------- #! /bin/sh # Name: FAX.psif # Description: lpd printer interface script for postscript files. # trap `rm -f /tmp/FAX.psif.$$.ps ; exit` 1 2 3 15 cat - >/tmp/FAX.psif.$$.ps ARGUMENTS="`fgrep '%%NXFax %%For:' /tmp/FAX.psif.$$.ps`" FaxNumber="`echo \"$ARGUMENTS\" | sed -n 's/^%%NXFaxNumber:[ ]*\(.*\)/\1/p'`" FaxTo="`echo \"$ARGUMENTS\" | sed -n 's/^%%NXFaxTo:[ ]*\(.*\)/\1/p'`" FaxFrom="`echo \"$ARGUMENTS\" | sed -n 's/^%%For:[ ]*\(.*\)/\1/p' | head -1`" FaxName="`nidump passwd / | sed -n \"s/^$FaxFrom:[^:]*:[0-9]*:[0-9]*:\([^:]*\):.*/\1/p\"`" LOGNAME=root export LOGNAME chmod 644 /tmp/FAX.psif.$$.ps /usr/local/bin/faxspool -q -f "$FaxFrom" -F "$FaxName" -D "$FaxTo" $FaxNumber /tmp/FAX.psif.$$.ps status=$? rm -f /tmp/FAX.psif.$$.ps exit $status ---------------- /usr/lib/smail/transports ------------- # @(#)samples/generic/transports 1.11 9/6/92 04:41:55 obscure: driver=pipe, # pipe message to another program return_path, # include a Return-Path: field from, # supply a From_ envelope line unix_from_hack, # insert > before From in body # comment out the above line for # use with the Content-Length # header fields. # SVR4 mailbox format: uncomment the below 3 lines # remove_header="Content-Length", # append_header="${if !header:Content-Type :Content-Type: text}", # append_header="Content-Length: $body_size", local; # use local forms for delivery cmd="/usr/lib/smail/obscure.sh $user", parent_env, # environment info from parent addr pipe_as_user, # use user-id associated with address # ignore_status, # ignore a non-zero exit status ignore_write_errors, # ignore write errors, i.e., broken pipe umask=0022, # umask for child process log_output, # do not log stdout/stderr ---------------- /usr/lib/smail/routers ---------- # @(#)samples/generic/routers 1.3 8/8/92 16:40:26 . . . . . obscure_neighbors: driver=uuname, transport=obscure; cmd="echo obscure", . . . . . -------------- /usr/lib/mail/aliases ---------- . . . . . fax: obscure!fax . . . . . -------------- /usr/lib/smail/directors -------------- # @(#)samples/generic/directors 1.6 9/6/92 04:41:29 . . . . . # smart_user - a partially specified smartuser director # # If the config file attribute smart_user is defined as a string such as # "$user@domain-gateway" then users not matched otherwise will be sent # off to the host "domain-gateway". # # If the smart_user attribute is not defined, this director is ignored. smart_user: driver=smartuser; # special-case driver new_user="obscure!${lc:user}", # do not match addresses which cannot be made into valid # RFC822 local addresses without the use of double quotes. well_formed_only, -------------- /usr/lib/smail/obscure.sh ------------- #! /bin/sh # Name: obscure # Description: This shell script is used to programatically handle any # users that are unknown to this system, and process the messages so # that they may be handled correctly. The following actions may be taken: # user.name - mail to news gateway # phone number(s) - mail to fax gateway # user name - mail to packet gateway # Only the fax support is in here at the moment. # trap 'rm -f /tmp/obscure$$.t ; exit' 1 2 3 15 awk "BEGIN { in_hdr=1 in_rec=0 } /^[ ]/ && (in_hdr == 1) && (in_rec == 1) { next } { in_rec=0 } /^[A-Z][-a-z][^ :]*:[ ]/ && (in_hdr == 2) { in_hdr=1 } /^[ ]*\$/ && (in_hdr == 2) { next } (in_hdr == 2) { print \"\" in_hdr=0 } /^[ ]*\$/ && (in_hdr == 1) { in_hdr=2 next } /^Apparently-To:/ && (in_hdr == 1) { next } /^Message-I[Dd]:/ && (in_hdr == 1) { next } /^Status:/ && (in_hdr == 1) { next } /^Content-Type:/ && (in_hdr == 1) { next } /^Content-Length:/ && (in_hdr == 1) { next } /^Content-Transfer-Encoding:/ && (in_hdr == 1) { next } /^Expires: +1 month/ && (in_hdr == 1) { next } /^M[iI][mM][eE]-Version:/ && (in_hdr == 1) { next } /^Encoding:/ && (in_hdr == 1) { next } /^X-[-a-zA-Z]*:/ && (in_hdr == 1) { next } /^Lines:/ && (in_hdr == 1) { next } /^Path:/ && (in_hdr == 1) { next } /^N[nN][Tt][Pp]-Posting-Host:/ && (in_hdr == 1) { next } /^Originator:/ && (in_hdr == 1) { next } /^Resent-To:/ && (in_hdr == 1) { next } /^Originally-To:/ && (in_hdr == 1) { next } /^Received:/ && (in_hdr == 1) { in_rec=1 next } /^In-Reply-To:/ { in_rec=1 next } /^Precedence:/ { in_rec=1 next } /^Errors-To:/ { in_rec=1 next } /^X-Mailer:/ && (in_hdr == 1) { next } /^X-Newsreader:/ && (in_hder == 1) { next } { print }" > /tmp/obscure$$.t if test $# -lt 1 -o "X$1" = "Xfax" ; then return="`sed 's/obscure!//' /tmp/obscure$$.t | sed -n 's/^To:[ ]*\(.*\)/\1/p'`" if test ! -z "$return" ; then set $return fi if test $# -lt 1 -o "X$1" = "Xfax" ; then return="`sed -n 's/^X*-*[Ff]ax:[ ]*\(.*\)/\1/p' /tmp/obscure$$.t`" if test ! -z "$return" ; then set $return else rm -f /tmp/obscure$$.t exit 2 fi fi fi return="`sed -n 's/^From:[ ]*\(.*\)/\1/p' /tmp/obscure$$.t`" if test -z "$return" ; then return="`sed -n 's/^Reply-To:[ ]*\(.*\)/\1/p' /tmp/obscure$$.t`" fi name="`echo $return | sed -n -e 's/.*(\(.*\))/\1/p' -e 's/\(.*\)<[^>]*>/\1/p'`" return="`echo $return | sed -e 's/\([^ ]*\)[ ]*(.*)/\1/' -e 's/.*<\([^>]*\)>/\1/'`" if test ! -z "$name" ; then name="-F \"$name\"" fi # check out the phone number, restrict it to a `name' or 7 digit number. numbers= bad_numbers= multi_bad=no multi=no description= for i in $* ; do i="`echo $i | sed -e 's/obscure!//' -e 's/@obscure//'`" case $i in [a-zA-Z]*) if test ! -z "`grep \"^$i[ ]\" /usr/local/lib/mgetty+sendfax/aliases`" ; then if test -z "$numbers" ; then numbers=$i else numbers="$numbers $i" multi=yes fi if test ! -z "$description" ; then description="$description, " fi description="$description`sed -n \"s/^$i[ ][ ]*[^ ][^ ]*[ ][ ]*\(.*\)/\1/p\" /usr/local/lib/mgetty+sendfax/aliases`" else if test -z "$bad_numbers" ; then bad_numbers=$i else bad_numbers="$bad_numbers $i" multi_bad=yes fi fi ;; [0-9][0-9][0-9][0-9][0-9][0-9][0-9]|[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]) if test -z "$numbers" ; then numbers=$i else numbers="$numbers $i" multi=yes fi ;; *) if test -z "$bad_numbers" ; then bad_numbers=$i else bad_numbers="$bad_numbers $i" multi_bad=yes fi ;; esac done if test ! -z "$bad_numbers" -a ! -z "$return" ; then ( echo "Will not send fax to $bad_numbers" echo if test "yes" = "$multi_bad" ; then echo "This fax server considers the following numbers as not being local calls or to" echo "be unknown by the system, and will not send the following faxes:" echo " $bad_numbers" else echo "This fax server considers $bad_numbers a long distance call, or unknown to the" echo "system, and will not send the fax." fi echo "please contact postmaster@`sed -n 's/^HOSTNAME=\(.*\)/\1/p' /etc/hostconfig` if you think this is in error" echo sed "s/^/} /" /tmp/obscure$$.t ) | mail $return fi if test ! -z "$return" ; then return="-f $return" fi if test "yes" = "$multi" ; then numbers="-m $numbers --" fi if test ! -z "$description" ; then description="-D \"$description\"" fi LOGNAME=root export LOGNAME chmod 644 /tmp/obscure$$.t /usr/local/bin/faxspool -q -f "$return" -F "$name" -D "$description" $numbers /tmp/obscure$$.t status=$? rm -f /tmp/obscure$$.t exit $status ---------------------------------------------------------------------- -- ______________________________________________________ Francois Magnan Departement de Mathematique & Statistiques Universite de Montreal email: magnan@mathcn.umontreal.ca (MIME, NeXTMail Ok!)
From: mikef@hillres22.cc.purdue.edu (Mike Fleming) Newsgroups: comp.sys.next.programmer Subject: Re: distributed objects and cthreads Date: 26 Feb 1995 00:36:39 GMT Organization: Purdue University Message-ID: <3ioien$luu@mozo.cc.purdue.edu> References: <1995Feb24.174857.59@fhrz07.fh-frankfurt.de> In article <1995Feb24.174857.59@fhrz07.fh-frankfurt.de> schellenbg_s@fhrz07.fh-frankfurt.de writes: > I have a NEXTSTEP client task that makes a connection to a NEXTSTEP > server task and sends strings via the distributed objects mechanism > (Objective-C message). How can I make the connection back from the > server task to send strings to the client which is a cthread. The server > task wants an id descriptor to make up a proxy to the client, but the > cthread id is not working (bus error). > What can I do? > > Sonja Schellenberg, Schellenberg@rz.fh-frankfurt.d400.de Well, first you should ask yourself: should you actually use DO's to communicate between two threads in the same process? My experience with this question has been that the answer is invariably "no" since a mutex-locked data structure provides a more efficient and more straight-forward means of communicating between these two tasks. It's pretty wasteful to have proxies to objects that are in your same address space! As for why it's crashing on you...I'm a little confused as to what you're actually doing. Exactly how are you trying to start the connection? I don't think the cthread ID ever enters into the equation... -- Mike Fleming, Undergrad, CEE, Purdue "I'll get the pencils mikef@ecn.purdue.edu We'll draw ourselves a new world" http://hillres22.cc.purdue.edu/~mikef --Kitchens of Distinction
From: faizel@mail.utexas.edu (Faizel Dakri) Newsgroups: comp.sys.next.programmer Subject: Re: MiniSQL DBKit Adaptor problems Date: 26 Feb 1995 03:46:09 GMT Organization: The University of Texas at Austin, Austin, Texas Distribution: world Message-ID: <3ioti1$q33@geraldo.cc.utexas.edu> References: <D4I5yM.ts@tor.hookup.net> In article <D4I5yM.ts@tor.hookup.net> damonc@damonc.tor.hookup.net (Damon F. Cooper) writes: > > I fear that there is NO DBKit adaptor for MiniSQL...I have the version you have > and it in fact an EOF adaptor as far as I can tell... > > If there exists a REAL MiniSQL DBKit adaptor, I'd like to get a hold of it... > > > Reagards, > > -- > Damon F. Cooper > damonc@damonc.tor.hookup.net > [NEXTMAIL: OK] Actually, the README file that was there says that it is a Database Kit adaptor. I don't know if that's a typo or not though. There is also an EOF adaptor in the same directory. This is the file that I was using: ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/ Developer/resources/adaptors/MSQLAdaptor.940930.NI.b.tar.gz The EOF adaptor was MiniSQLEOFAdaptor.941223.s.tar.gz Oh well... --Faizel -- Faizel Dakri faizel@mail.utexas.edu (NeXTmail *friendly*)
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <gbacklin@marizack.com> Message-ID: <9502261829.AA00636@marizack> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Gene Backlin <gbacklin@marizack.com> Date: Sun, 26 Feb 95 12:29:39 -0600 Subject: NEW Book "Developing NeXTSTEP Applications" coming in April References: <9502251930.AA00309@marizack> Hello fellow developers, This is a note to inform you that there will be a new book coming in April filled with step-by-step instructions to help you design NeXTSTEP applications. I am the author and it will be published by Sams Publishing. Within the pages of this book you will be instructed on how to build over 50 applications from scratch. There will be an attached diskette that will have all the applications that are explained in the book. Topics include Delegate, Panel, Menu, Browser processing; View, Image, Pasteboard manipulation, Drag and Drop; and Distributed Object applications both on the Client as well as the Server end. For a more detailed summary feel free to contact me. gbacklin@MariZack.com Thank you for your time to read this. Gene PS. Please let me know if you can receive NeXT Mail, Thanks again !
From: estima <estima@merle.acns.nwu.edu> Newsgroups: comp.sys.next.programmer Subject: curses on NeXT Date: 23 Feb 1995 22:50:46 GMT Organization: Northwestern University, Evanston, IL, US Message-ID: <3ij3g6$b6c@news.acns.nwu.edu> Hi, I am tryng to port a curses application under HP-UX to NeXT. It fails at linking and complains that _tputs, _tgetent, _tgetnum, _tgoto, _tgetflag, and _tgetstr are not found. I use GNU C compiler. Am I missing anything? Any suggestion is greatly appreciated. Thanks in advance. Tony Ku Estima
Newsgroups: comp.sys.next.programmer From: karl@trapac.com (Karl Kraft) Subject: Re: Profiling and disk performance Message-ID: <D4J7sD.Cpt@trapac.com> Organization: Trans Pacific Container Service Corporation References: <3ig3o6$430@seymour.sfu.ca> Date: Sat, 25 Feb 1995 01:21:49 GMT In article <3ig3o6$430@seymour.sfu.ca> ken@darwin.mbb.sfu.ca (Ken Clark) writes: >How do I get NEXTSTEP to give me an execution profile including library >and system calls? > Make sure that you are linking against libsys_p and/or libNeXT_p as appropriate. -- Karl Kraft Karl_Kraft@trapac.com Karl_Kraft@ensuing.com [My opinions are my own]
From: falkman@hegel2.cs.chalmers.se.u.cs.chalmers.se (G|ran Falkman) Newsgroups: comp.sys.next.misc,comp.sys.next.programmer Subject: Help!! Cannot start IB Date: 27 Feb 1995 08:49:19 GMT Organization: Chalmers University of Technology Message-ID: <3is3mf$j45@nyheter.chalmers.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, Yesterday when I was trying to start IB an alert panel with the following message appeared on the screen: Runtime error: NXReadOnlyString: does not recognize selector -replaceWith: The console said: InterfaceBuilder[201]: An uncaught exeption was raised InterfaceBuilder[201]: Unknown error code 314159 in NXReportError Since then I cannot start IB; the message continues to appear. So far as I know, I haven4t done anything unusual. Does anyone knows what's the problem, and what to do about it? --- Gvran Falkman Email: falkman@cs.chalmers.se Department of Computing Science Tel: + 46 31 772 5412 Chalmers University of Technology Fax: + 46 31 16 56 55 S-412 96 Gvteborg, Sweden
From: hoff@pluto.darmstadt.gmd.de (Holger Hoffstaette) Newsgroups: comp.sys.next.misc,comp.sys.next.programmer Subject: Re: Help!! Cannot start IB Followup-To: comp.sys.next.misc,comp.sys.next.programmer Date: 27 Feb 1995 14:25:11 GMT Organization: German Research Center for Information Technology Message-ID: <3isnc7$6lr@rs18.hrz.th-darmstadt.de> References: <3is3mf$j45@nyheter.chalmers.se> G|ran Falkman (falkman@hegel2.cs.chalmers.se.u.cs.chalmers.se) wrote: >Yesterday when I was trying to start IB an alert panel with >the following message appeared on the screen: > Runtime error: NXReadOnlyString: does not recognize selector > -replaceWith: >The console said: > InterfaceBuilder[201]: An uncaught exeption was raised > InterfaceBuilder[201]: Unknown error code 314159 in NXReportError >Since then I cannot start IB; the message continues to appear. >So far as I know, I haven4t done anything unusual. >Does anyone knows what's the problem, and what to do about it? Yes. Interface Builder 3.2 seems to have a bug in that it stores the path for all the loaded pallettes in a fixed-length string (!!). If the path exceeds the string length, IB won't start anymore; delete ~/.NeXT/defaults.nibd and everything will be well again. Boundary checks? what's that? :-] NeXT tech support said that this really embarrassing bug has been fixed in the newer versions of IB that ship with EOF and 3.3 Developer (and it is, indeed). Holger -- Holger Hoffstaette // [eMail sendTo: @"hoff@darmstadt.gmd.de" NeXTMail: YES];
Newsgroups: comp.sys.next.programmer From: ian.stephenson@insignia.com Subject: Re: Possibility? NeXTSTEP as a color seperation processor Message-ID: <D4nz2I.Dyz@isltd.insignia.com> Sender: news@isltd.insignia.com (Usenet News) Organization: Insignia Solutions Ltd References: <3il5rh$h7f@debbie.cc.nctu.edu.tw> Date: Mon, 27 Feb 1995 15:01:30 GMT In article <3il5rh$h7f@debbie.cc.nctu.edu.tw> dengliu@solar.csie.ntu.edu.tw (Deng Liu) writes: > I wonder, if it is possible to make use of NeXTSTEP's (Display) > PostScript ability, to have .EPS file interpreted and produce > a (exactly, four) bitmaps that's sent to the printers? > (they work on that OS) > > Any idea or "pointers" to reference or existing products (hope > they won't be too expensive :) is greatly appreciated, we're > dreadfuuly looking for an alternative for outputing! Adobe Seperator does the job (though I've never need to use it for real). I think it comes bundled with Illustrator. Ian
From: huang@kwainx.isc.umr.edu (Cheng-Chin Huang) Newsgroups: comp.sys.next.programmer Subject: Re: How to get destructor under ObjC++? Date: 27 Feb 1995 17:34:39 GMT Organization: UMR Missouri's Technological University Distribution: world Message-ID: <3it2ff$9h2@hptemp1.cc.umr.edu> References: <3imrrh$pnu@mimsy.cs.umd.edu> In article <3imrrh$pnu@mimsy.cs.umd.edu> rgc@jujube.cs.umd.edu (Ross Garrett Cutler) writes: > > Post your header for the destructor the computer "doesn't like". > I've used ObjC++ extensively, and haven't seen anything like this. > -- > Ross Cutler > University of Maryland, College Park > Internet: rgc@cs.umd.edu > Home page: http://www.cs.umd.edu/~rgc Hi Ross, The header is enclosed as follows. As you can see, MathMatrix is a C++ class. Controller is an ObjC++ class. The error message I got is. ./MathCPP/MathMatrix.h:24: parse error before `MathMatrix' ./MathCPP/MathMatrix.h:24: `MathMatrix::MathMatrix ()' already defined in aggregate scope Thanks for your helps. --Tony Huang Email: thuang@umr.isc.edu --------------------------------------------------------- #if !defined(MATHMATRIX_H) #define MATHMATRIX_H extern "C" { #include <stdio.h> #include <math.h> } class MathMatrix { public: MathMatrix(); MathMatrix(int rows,int cols,double *data=0L); MathMatrix(MathMatrix &copy); MathMatrix(char *fileName); MathMatrix(FILE *file); ~MathMatrix(); void Clean(); .... }; #endif /* MATHMATRIX_H */ --------------------------------------------------------- --------------------------------------------------------- #import <appkit/appkit.h> @class MathMatrix; @interface Controller:Object { id dynCal; MathMatrix *a; } - go:sender; @end ---------------------------------------------------------
Newsgroups: comp.sys.next.programmer From: chuston@dudley.com (Chris Huston) Subject: SimpleTableView - where's it from? Message-ID: <D4Iy4n.LFB@dudley.com> Sender: news@dudley.com Organization: D.C. Dudley & Associates, Denver, Colorado Distribution: usa Date: Fri, 24 Feb 1995 21:53:11 GMT I've been playing with the SimpleTableView example from: ftp://ftp.cs.orst.edu/pub/next/sources/programming/SimpleTableView-1.tar.Z Is this an example from NeXT? In the DataTableView.m they add a catagory to DBTableView: @interface DBTableView(Private) - mouseDownAt:(u_int)row :(u_int)column inView:aView onEvent:(NXEvent*) e; - mouseStartedDragAt:(u_int)row :(u_int)column inView:aView onEvent:(NXEvent*)e; - mouseDraggedTo:(u_int)row :(u_int)column inView:aView onEvent:(NXEvent*)e; - mouseEndedDragAt:(u_int)row :(u_int)column inView:aView onEvent:(NXEvent*)e; - mouseUpAt:(u_int)row :(u_int)column inView:aView onEvent:(NXEvent*)e; @end and then in the implementation there is the comment: // mouse method overrides /* mouse up */ - mouseUpAt:(u_int)row :(u_int)column inView:aView onEvent:(NXEvent*)e I can find any description of these methods anywhere - they are not called explicitly from anywhere in the application - the comment suggests they exist privately in DBTableView - but if they do - why the category? The method mouseUpAt::inView:onEvent: gets called after the Window sends a mouseUp event to the DataTableView - I imagine the DBTableView (superclass of DataTableView) - rewrites this into the mouseUpAt::inView:onEvent: ... Ideas? The DBTableView is really a sweet object - is anyone else using it outside of the DBKit context? Thanks, -Chris ============================================================================= Chris Huston | If you can't go there on a mountain bike Manager of Information Systems | it ain't worth goin'. D.C. Dudley & Associates | It's either NEXTSTEP or pushin' a broom ================================ 'cuz homie don't play Windows. =============
Newsgroups: comp.sys.next.programmer From: shayman@Objectario.com (Steve Hayman) Subject: Re: Terminal.app question (vi) Message-ID: <1995Feb28.045838.13369@objectario.com> Sender: news@objectario.com Organization: Steve Hayman + Associates / NeXTSTEP Consulting / Toronto References: <3ituo8$45o@pulm1.accessone.com> Date: Tue, 28 Feb 1995 04:58:38 GMT In article <3ituo8$45o@pulm1.accessone.com> rb@pulm1.accessone.com (Rick Bidlack) writes: > I want a shell script called "vi" which will open a new Terminal > window, put the name of the file up in the Terminal window's > title bar, and begin running /usr/ucb/vi on the filename I > give as the argument to my shellscript "vi". If you have 3.3, use the "terminal" program, which asks Terminal.app to open a new window running a particular command. F'rinstance terminal vi /etc/hosts gives you "vi /etc/hosts" running in a new Terminal window. so you might make your fancy "nxvi" script look like this #!/bin/sh # nxvi file1 file2 ... # launch Terminal running "vi" on the named file(s) # shayman@objectario.com feb 2 1995 PATH=/usr/ucb:/bin:/usr/bin export PATH # launch a new "vi" window for each file named on # the command line. Of course we could do # terminal vi $* here but that would give us only # one vi window editing multiple files. Not quite # what we want. case "$#" in 0) # no file specified terminal vi ;; *) for file do terminal vi $file done ;; esac Also in case you didn't know, in 3.3, you can use alt-leftarrow and alt-rightarrow to move between all your various Terminal windows, and alt-up/downarrow to scroll up and down a line. There are some other new features too; be sure to check the 3.3 release notes. Hope this is useful, Steve
From: df@watershed.ultranet.com (Dirk P. Fromhein) Newsgroups: comp.sys.next.programmer Subject: EOF/Foundation Kit and Threads Date: 28 Feb 1995 04:20:39 GMT Organization: UltraNet Communications, Inc. Message-ID: <3iu8an$1ut@caesar.ultra.net> I'm having some interesting issues with a DO server (Console, not a Workspace App) that receives an event and then spawns off a thread to handle the event. In this thread an "Event Object" is created and persisted to a Sybase database via EOF. Unfortunately when I create the connection to Sybase I get an error something like "NSAutoreleasePool not found" and then a crash when I point it at a Model (I don't have the code here, sorry). So I create a NSAutoreleasePool for each thread now... no fix, it still crashes and complains that there is no NSAutoreleasePool. Also separately when I create a copy of an NSDate and then use it in the new thread it also crashes (NSString with the exact same code works just great). So bottom line is can I use EOF in a multi-threaded environment? (Or do a need to go back to vfork?) -- Dirk Fromhein df@watershed.com Watershed Technologies, Inc. (508)-460-9612 Voice (508)-481-3955 Fax
From: edwardb Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3isgcf$s3v@crl4.crl.com> Message-ID: <cancel.3isgcf$s3v@crl4.crl.com> Date: 27 Feb 1995 17:34:33 GMT Control: cancel <3isgcf$s3v@crl4.crl.com> spam
From: rb@pulm1.accessone.com (Rick Bidlack) Newsgroups: comp.sys.next.programmer Subject: Terminal.app question (vi) Date: 27 Feb 1995 17:37:12 -0800 Organization: AccessOne Distribution: world Message-ID: <3ituo8$45o@pulm1.accessone.com> I am a die-hard vi user (sorry, I ain't gonna change) and I'd like to customize the way it runs under nextstep, to whit: I want a shell script called "vi" which will open a new Terminal window, put the name of the file up in the Terminal window's title bar, and begin running /usr/ucb/vi on the filename I give as the argument to my shellscript "vi". I've tried the open command as per the man page: open -a /NextApps/Terminal.app/Terminal foo but that doesn't work (is this a bug??). I can also do a script that starts up a new Terminal app for each file I want open under vi, but that's messy -- I'd rather just have one terminal app running with multiple open windows (fewer icon proliferation on the screen). I did this on SGI's under X windows and it was pretty nice, and shows the file names on the icons when the windows are miniaturized as well. anybody know any elegant way to do this? thanks.... =========================================================== Rick Bidlack 703 Bellevue Ave. East / Apt E21 / Seattle, WA 98102 USA (206) 328-6142 / rb@accessone.com ===========================================================
From: tregan@srd.bt.co.uk (Dr Timothy Regan) Newsgroups: comp.sys.next.programmer Subject: Documentation Error? Date: 28 Feb 1995 11:32:02 GMT Organization: BT Labs, Martlesham Heath, Ipswich, UK Message-ID: <3iv1ji$186@pheidippides.axion.bt.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi All, I'm not sure if this is right or the right place to send this to! In the NeXTStep "Object-Oriented Programming and the Objective C Language" book that comes with Developer 3.2 it says (p. 135): stream = NXOpenStreamForFile("/home/archive", NX_READWRITE); This seems to give the console error "NXOpenTypedStream: invalid mode" which is exactly what we'd expect following NeXTStep General Reference Volume 1 3-69. Am I missing something or is the Objective-C book wrong? If wrong, has it been noted by NeXT for future releases. Cheers Tim.
From: pete@ohm.york.ac.uk (pete french) Newsgroups: comp.sys.next.programmer Subject: Re: curses on NeXT Date: 28 Feb 1995 13:28:47 GMT Organization: The University of York, UK Message-ID: <3iv8ef$4at@castle.york.ac.uk> References: <1995Feb24.091945.44515@yogi.urz.unibas.ch> estima <estima@merle.acns.nwu.edu> wrote: > _tputs, _tgetent, _tgetnum, _tgoto, _tgetflag, and _tgetstr Sigh, how quickly we forget :-) Put -ltermcap onto your link line. Curses uses it to talk to the terminal. Curses libraries that do all their own work seem to be a horrible SysVism as far ass I can make out. -bat.
From: warnerr@beethoven.cs.colostate.edu ( richard warner) Newsgroups: comp.sys.next.programmer Subject: Probs communicating linked lists betw objects Date: 28 Feb 1995 13:48:58 GMT Organization: Colorado State University, Fort Collins, CO 80523 Message-ID: <3iv9ka$qjv@yuma.ACNS.ColoState.EDU> Hi there - I've been wrestling with one stupid bug for several days and thought it about time to post. I know how to do this in C++ but not Objective-C. I have an object that creates a huge linked list (graphics software). I simply want to be able to provide that linked list to other objects without copying it in any way. I want to give other objects a pointer to that list. All of the nodes are created inside the "source" object and there appears to be a scope issue. I can print out the list fine in the "source" object, but it is thoroughly flaky when control returns to the "target" object. What I do is NX_MALLOC my node in the "target" object. Then I use the address of that pointer as an argument in the selector: [sourceObject giveMeList:&node]; The source object receives a ptr to a ptr and sets it to its list: *node = list; And I get all sorts of memory exception errors, but sometimes it works fine. In C++ this strategy works fine. Another way to do it would be to make one object a friend of the other so it could read the list directly. Is there a similar mechanism in Objective-C? Another way would be to make the list a global structure. I haven't tried this yet. I'm puzzled why my approach doesn't work. Any help would be appreciated. Rich
Newsgroups: comp.sys.next.programmer From: djc@vnp.com (Dan Crimmins) Subject: parsing defaults database Message-ID: <DJC.95Feb27141841@nwk118_ocachi.vnp.com> Sender: root@il.us.swissbank.com (Operator) Organization: VNP Software, Inc. Date: Mon, 27 Feb 1995 20:18:41 GMT hi, i have a situation where an application needs to programmatically read all of the defaults registered in the defaults database for a particular user. it's the programmatic equivalent of 'dread -o AppName' from the command line. there is no supplied function to read the database in this manner. i can tell the database is constructed and read/written using the database calls prototyped in <db/db.h>. before i try and decode the format of the records in the DB, has anyone already done this, and have code they want to share? :-) and, no, NXRegisterDefaults() is not appropriate in this situation... thanks! --dan. -- dan crimmins vnp software chicago
From: huang@kwainx.isc.umr.edu (Cheng-Chin Huang) Newsgroups: comp.sys.next.programmer Subject: How to get destructor under ObjC++? Date: 24 Feb 1995 23:43:59 GMT Organization: UMR Missouri's Technological University Distribution: world Message-ID: <3ilqvv$r6c@hptemp1.cc.umr.edu> Since the ObjC++ compiler does not like the destructor in one of my C++ class header file, I comment it out. Now the destructor method is never being called even though I compiled the C++ library with that destructor member function. Is destructor supported under ObjC++ mode? Could someone tell me how to get it to work? Thanks in advance. --Tony Huang Email: thuang.isc.umr.edu
From: jharding@thor.tjhsst.edu (John Harding) Newsgroups: comp.sys.next.programmer Subject: Re: NeXT C Sound routines Date: 28 Feb 1995 07:53:30 -0500 Organization: The Thomas Jefferson High School for Science and Technology Distribution: world Message-ID: <3iv6ca$vee@thor.tjhsst.edu> References: <3isspc$dto@thor.tjhsst.edu> <SAMURAI.95Feb27182650@marge.cs.mcgill.ca> In article <SAMURAI.95Feb27182650@marge.cs.mcgill.ca>, Darcy BROCKBANK <samurai@marge.cs.mcgill.ca> wrote: ><jharding@thor.tjhsst.edu> writes: >Post the code... Ok, here it is: SNDSoundStruct *MuLaw2Linear(SNDSoundStruct *s) { SNDSoundStruct *NewSND; printf("Alloc error:%d\n", SNDAlloc(&NewSND,0,SND_FORMAT_LINEAR_8,SND_RATE_CODEC,1,4)); printf("Error: %d\n",SNDConvertSound(s,&NewSND)); /* Other stuff munched */ return(NewSND); } The output is: Alloc error:0 Error: 21 The sound pointed to by s which is passed to the function contains an 8 bit Mulaw sound sampled at SND_RATE_CODEC. Error 21 is listed as "SND_ERR_NOT_IMPLEMENTED". I know there are other problems with this release (ie, no documentation on Objective C :(), could it be just another bug?
From: oly@emerson.physics.ubc.ca (B.Olav Anderson) Newsgroups: comp.sys.next.programmer Subject: RS-423 to RS-422 cable pin outs Date: 28 Feb 1995 19:01:48 GMT Organization: The University of British Columbia Distribution: world Message-ID: <3ivrus$jo1@nntp.ucs.ubc.ca> Hi, I need to interface a serial cable that is from a 422 device to a next cube which is a 423. Does anyone know the corresponding pinouts? Thanks in advance. --- B.Olav Anderson e-mail <olav@emerson.physics.ubc.ca> Web Page http://nietzsche.physics.ubc.ca/ "listen: there's a hell of a good universe next door; let's go." e. e.c
From: dcl@panix.com (David Lambert) Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.sys.next.sysadmin Subject: PROBLEM with freeWAIS-0.4 on NS/I 3.2 Date: 28 Feb 1995 15:08:07 -0500 Organization: PANIX Public Access Internet and Unix, NYC Message-ID: <3ivvr7$3tu@panix.com> Hi. Has anyone managed to get freeWAIS-0.4 working properly on NS/I 3.2? A few tweaks to the Makefile, and it compiles more or less cleanly, but I get bus errors during the testing phase of the build. (This is freeWAIS-0.4.tar.gz pulled from ftp.cnidr.com). Any pointers appreciated, and actual test log output available on request. - David C. Lambert dcl@homer.uu.panix.com
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Programmatically monitoring file copy progress Message-ID: <jpanicoD4qw7z.E90@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 1 Mar 1995 04:52:47 GMT Sender: jpanico@netcom8.netcom.com I'm trying to write a method for displaying file copy progress as it is working-- something like the file copy/move progress pie chart that shows up in tools under WorkspaceManager. Looks like I can use the MiscProgressPieView from the MiscKit for the actualyh display, but how do I dynamically get some kind of indication of how far the file copy has progressed? Are there any examples or mini-examples of how this could be done? Does progress have to be measured in terms of number of files copied, or is it possible to monitor how much of a single file has been copied? Any information much appreciated. Thanks. Joe Panico jpanico@netcom.com
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Compresshelp Problems Date: 27 Feb 1995 05:12:29 GMT Organization: Stanford University Message-ID: <3irmvt$9qj@nntp.Stanford.EDU> Hello, when I use Compresshelp to create a help file, the help in the Help Panel behaves differently from the one in Edit. When in Edit, all links work perfectly. However, once compressed, some entries jus lead to nowhere. Others, when selected, point to wrong entries; finally, some point to the right ones, but the Help browser selects a completely different line in TOC... Anyone a clue what this could cause? The help directory is rather large (14MB compressed, with some subfolders) Thanks for any help, - Stan -- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss Guy | | | SU Computer Science | When you find yourself | | Box 2642, Stanford, CA (415) 497 HEXO | in a hole, stop digging | | stanj@cs.stanford.edu NeXTmail / MIME | | +-------------------------------------------+-------------------------+
From: jcorey@unm.edu (James M Corey) Newsgroups: comp.sys.next.programmer Subject: problem: cin cout not found linking c++ program Date: 28 Feb 1995 22:31:44 -0700 Organization: University of New Mexico, Albuquerque Distribution: usa Message-ID: <3j10s0$6o0@hydra.unm.edu> I realize this is pretty ignorant question. Not that I'm a fan of C++, but I need to write programs in it. The following simplistic example compiles fine w/ xlC on AIX... #include <iostream.h> main() { char ch; for (int i=0;i<20;i++) { cin>>ch; cout<<ch; } } However, here's what happens when I try to compile from NS 3.2 developer... localhost> cc -ObjC++ main.C ld: Undefined symbols: _cin istream::operator>>(char &) _cout ostream::operator<<(char) Well, I looked around for a library with cin or cout, but didn't find one. Can anyone help me compile C++ on my host? I have a project that I am waiting to start until I know whether C++ is an option. -- -------- (The End) ---------------- from the keycaps of: jcorey@unm.edu
From: herve@cs.mcgill.ca (Herve AVRIL) Newsgroups: comp.sys.next.programmer Subject: forwardInvocation: Date: 28 Feb 1995 20:53:04 GMT Organization: SOCS, McGill University, Montreal, Canada Distribution: world Message-ID: <3j02fg$6oo@homer.cs.mcgill.ca> Dear NEXTSTEP Wizards, I'm trying to catch the forwardInvocation: method but it seems that it never gets called. When I step through my program and look at what the runtime system is doing, it appears that forward:: gets called even for an instance of a subclass of NSObject. This is frustrating because I've been using extensively forward:: for Objects without any problem in the past, and the mechanism for NSObjects (according to the doc) is basically the same: one should use forwardInvocation: instead of forward:: ... but it does not seem to work. Any kind of help would be greatly appreciated. Thanks. Herve.
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: setValues: forObject: TOO DAMN SLOW! Message-ID: <1995Feb28.204300.6375@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3itfel$3el@cerberus.wsc.com> Date: Tue, 28 Feb 1995 20:43:00 GMT writes > > setValues:forObject: (EOController) > > > > Problem is: > > > > on a small table (like under 50 entries) you can COUNT the seconds this > > takes. I have buffered operations on so this isn't even hitting the DB. > > > > Any suggestions? Why is this so slow? > > Please correct me if I'm wrong, but my understanding of the EOF and > Foundation kits is that NeXT (almost) never sets the value for an object. > > I believe that instead EOF replaces values by new ones. So each > time you want to change the value of an NSString from "Hello" to > "Hello!", EOF/Foundation will instanciate a new NSString object with > the new value, and it will free (release) the old value. This > makes for an awful lot of allocation/deallocationof memory, a process > known to be an app killer. > > My belief is that NeXT decided a long time ago to throw performance > out the window, and to focus on functionality. This is why the > programs I developed on my Apple IIe seem to execute much faster > than the applications I develop today using EOF on a 100 MHz Pentium. > First of all, check out the original author's response to his post. It was his mistake, not an EOF performance problem. At first glance, it would seem that your complaint about the practice of retaining new values and releasing old ones instead of just changing the contents of the current value is valid. However, in practice, using retain/release makes good sense. I'll use NSString's as an example. Let's say we have an ivar containing an NSString that we want to set. The -set...: method takes another NSString as a parameter. In your case, you would have to set the contents of your NSString ivar (assuming it's a NSMutableString) from the contents of the NSString passed in. At best, this would require the copying of each character of the string. At worst, this would required that memory be re-allocated to allow for the size of the string. In the case of NeXT's recommended method, the reference count on the old NSString is decremented, and the reference count on the new NSString is incremented. In both cases you are left over with a NSString the might be dealloc'ed. It is clear that changing two ref counts is much preferable to copying (and possibly re-allocating) memory. One additional benefit is that by using this mechanism universally, there is a smaller chance that the NSString will be dealloc'ed and copying non-mutable objects (i.e. the NSString ivar instead of the NSMutableString ivar) is much cheaper. -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: EOF/Foundation Kit and Threads Message-ID: <1995Feb28.205141.6716@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3iu8an$1ut@caesar.ultra.net> Date: Tue, 28 Feb 1995 20:51:41 GMT Dirk P. Fromhein writes > > I'm having some interesting issues with a DO server (Console, not a > Workspace App) that receives an event and then spawns off a thread to > handle the event. In this thread an "Event Object" is created and > persisted to a Sybase database via EOF. > > Unfortunately when I create the connection to Sybase I get an error > something like "NSAutoreleasePool not found" and then a crash when I point > it at a Model (I don't have the code here, sorry). So I create a > NSAutoreleasePool for each thread now... no fix, it still crashes and > complains that there is no NSAutoreleasePool. > > Also separately when I create a copy of an NSDate and then use it in the > new thread it also crashes (NSString with the exact same code works just > great). > > So bottom line is can I use EOF in a multi-threaded environment? > (Or do a need to go back to vfork?) > > -- Use NSThread's... It is my understanding that the NSAutoreleasePool mechanism keeps a distinct NSAutoreleasePool for each NSThread that is in existance. If no NSThread exists for your thread, then neither does a NSAutoreleasePool. -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Newsgroups: comp.sys.next.programmer From: djc@vnp.com (Dan Crimmins) Subject: Re: parsing defaults database In-Reply-To: djc@vnp.com's message of Mon, 27 Feb 1995 20: 18:41 GMT Message-ID: <DJC.95Feb28151709@nwk118_ocachi.vnp.com> Sender: root@il.us.swissbank.com (Operator) Organization: VNP Software, Inc. References: <DJC.95Feb27141841@nwk118_ocachi.vnp.com> Date: Tue, 28 Feb 1995 21:17:09 GMT i wrote: > i have a situation where an application needs to programmatically read all > of the defaults registered in the defaults database for a particular user. > it's the programmatic equivalent of 'dread -o AppName' from the command line. well, i've written some code to do this, making use of the functions prototyped in <db/db.h>. if anyone is interested in the results, drop me a line. --d. -- dan crimmins vnp software chicago
From: estraff@tori.next.com (Ethan Straffin) Newsgroups: comp.sys.next.programmer Subject: Re: Help!! Cannot start IB Date: 1 Mar 1995 00:48:32 GMT Organization: NeXT Computer, Inc. Message-ID: <3j0g90$1r2@news.next.com> In article <3is3mf$j45@nyheter.chalmers.se> falkman@hegel2.cs.chalmers.se.u.cs.chalmers.se (G|ran Falkman) writes: :Hi, : :Yesterday when I was trying to start IB an alert panel with :the following message appeared on the screen: : : Runtime error: NXReadOnlyString: does not recognize selector : -replaceWith: : :The console said: : : InterfaceBuilder[201]: An uncaught exeption was raised : InterfaceBuilder[201]: Unknown error code 314159 in NXReportError : :Since then I cannot start IB; the message continues to appear. How many palettes are you loading? Check the .NeXT/defaults.nidb file in your home directory. If the "Palettes" line has a value longer than 1024 characters, you'll run into this bug. The workaround is to remove some of the palettes, or at least provide shorter paths for them. This has been fixed for 3.3 Developer. Ethan Straffin NEXTSTEP Technical Support
From: premise@jupiter.eecs.umich.edu (Sean Willson) Newsgroups: comp.sys.next.programmer Subject: MIME translation layer Date: 1 Mar 1995 01:39:36 GMT Organization: University of Michigan Engineering, Ann Arbor Message-ID: <3j0j8o$o32@srvr1.engin.umich.edu> Can anyone direct me to any applications or object frameworks, developed under NeXTStep or any other language, that I could use as a basis for converting the contents of the NeXT text object to MIME formatting and then back again? ANY help would be greatly appreciated. If additional info is needed please contact me at premise@pluto.eecs.umich.edu. Thanks in advance. I will post a summary later. Sean Willson -- _________________________________________________________________________ | Sean M. Willson "Chance favors a prepaired mind.." | | University of Michigan College of Engineering | | ASCII: premise@umich.edu NeXTMail: premise@pluto.eecs.umich.edu | | http://www.engin.umich.edu/~premise/ WWW Page (NeXT Stuff) | | NeXT Programmer (Artist) in training! |
Newsgroups: comp.sys.next.programmer From: precipi!neekibo (Hugues RICHARD) Subject: Re: Possibility? NeXTSTEP as a color seperation processor Message-ID: <1995Feb28.174233.4310@precipice.fdntytruyu.fr> Sender: neekibo@precipice.fdntytruyu.fr Organization: Individual - Dijon, France. References: <D4nz2I.Dyz@isltd.insignia.com> Date: Tue, 28 Feb 1995 17:42:33 GMT In article <D4nz2I.Dyz@isltd.insignia.com> ian.stephenson@insignia.com writes: > In article <3il5rh$h7f@debbie.cc.nctu.edu.tw> > dengliu@solar.csie.ntu.edu.tw (Deng Liu) writes: > > I wonder, if it is possible to make use of NeXTSTEP's (Display) > > PostScript ability, to have .EPS file interpreted and produce > > a (exactly, four) bitmaps that's sent to the printers? > > (they work on that OS) > > > > Any idea or "pointers" to reference or existing products (hope > > they won't be too expensive :) is greatly appreciated, we're > > dreadfuuly looking for an alternative for outputing! > > > Adobe Seperator does the job (though I've never need to use it for > real). I think it comes bundled with Illustrator. > seriously buggy under NS3.0 and broken under NS3.2. Hugues. ossible to make use of NeXTSTEP's (Display) > > PostScript ability, to have .EPS file interpreted and produce > > a (exactly, four) bitmaps that's sent to the printers? > > (they work on that OS) > > > > Any idea or "pointers" to reference or existing products (hope > > they won't be too expensive :) is greatly appreciated, we're > > dreadfuuly looking for an alternative for outputing! > > > Adobe Seperator does the job (though I've never need t -- -------------------------------------------------------------------- neekibo@precipice.fdn.fr - France (small NeXTMail OK) ------------ NS3.2 ------------ NS3.0J ------------ :-) ------------
From: df@watershed.com (Dirk P. Fromhein) Newsgroups: comp.sys.next.programmer Subject: Re: EOF/Foundation Kit and Threads Date: 1 Mar 1995 02:17:49 GMT Organization: UltraNet Communications, Inc. Message-ID: <3j0lgd$1on@caesar.ultra.net> References: <1995Feb28.205141.6716@il.us.swissbank.com> In article <1995Feb28.205141.6716@il.us.swissbank.com> ericb@il.us.swissbank.com (Eric_Brown) writes: > Dirk P. Fromhein writes > > > > Unfortunately when I create the connection to Sybase I get an error > > something like "NSAutoreleasePool not found" and then a crash when I point > > it at a Model (I don't have the code here, sorry). So I create a > > NSAutoreleasePool for each thread now... no fix, it still crashes and > > complains that there is no NSAutoreleasePool. > > > > Also separately when I create a copy of an NSDate and then use it in the > > new thread it also crashes (NSString with the exact same code works just > > great). > > > > So bottom line is can I use EOF in a multi-threaded environment? > > (Or do a need to go back to vfork?) > > > > -- > > Use NSThread's... It is my understanding that the NSAutoreleasePool mechanism > keeps a distinct NSAutoreleasePool for each NSThread that is in existance. If > no NSThread exists for your thread, then neither does a NSAutoreleasePool. Thanks, but I don't think NSThreads are available yet (Only OpenStep?). I figured out the problem... I was just not creating the autorelease pool early enough. It all seems to work fine now (I have not gotten to actually persisting the objects, but I do seem to be able to fetch from a new thread) Thanks, -- Dirk Fromhein df@watershed.com Watershed Technologies, Inc. (508)-460-9612 Voice (508)-481-3955 Fax
From: df@watershed.com (Dirk P. Fromhein) Newsgroups: comp.sys.next.programmer Subject: Re: EOF/Foundation Kit and Threads Date: 1 Mar 1995 02:18:24 GMT Organization: UltraNet Communications, Inc. Message-ID: <3j0lhg$1nm@caesar.ultra.net> References: <1995Feb28.205141.6716@il.us.swissbank.com> In article <1995Feb28.205141.6716@il.us.swissbank.com> ericb@il.us.swissbank.com (Eric_Brown) writes: > Dirk P. Fromhein writes > > > > Also separately when I create a copy of an NSDate and then use it in the > > new thread it also crashes (NSString with the exact same code works just > > great). > > > > So bottom line is can I use EOF in a multi-threaded environment? > > (Or do a need to go back to vfork?) > > Use NSThread's... It is my understanding that the NSAutoreleasePool mechanism > keeps a distinct NSAutoreleasePool for each NSThread that is in existance. If > no NSThread exists for your thread, then neither does a NSAutoreleasePool. Thanks, but I don't think NSThreads are available yet (Only OpenStep?). I figured out the problem... I was just not creating the autorelease pool early enough. It all seems to work fine now (I have not gotten to actually persisting the objects, but I do seem to be able to fetch from a new thread) Thanks, -- Dirk Fromhein df@watershed.com Watershed Technologies, Inc. (508)-460-9612 Voice (508)-481-3955 Fax
From: df@watershed.com (Dirk P. Fromhein) Newsgroups: comp.sys.next.programmer Subject: Re: EOF/Foundation Kit and Threads Date: 1 Mar 1995 02:19:00 GMT Organization: UltraNet Communications, Inc. Message-ID: <3j0lik$1p0@caesar.ultra.net> References: <1995Feb28.205141.6716@il.us.swissbank.com> In article <1995Feb28.205141.6716@il.us.swissbank.com> ericb@il.us.swissbank.com (Eric_Brown) writes: > Dirk P. Fromhein writes > > > > Also separately when I create a copy of an NSDate and then use it in the > > new thread it also crashes (NSString with the exact same code works just > > great). > > > > So bottom line is can I use EOF in a multi-threaded environment? > > (Or do a need to go back to vfork?) > > Use NSThread's... It is my understanding that the NSAutoreleasePool mechanism > keeps a distinct NSAutoreleasePool for each NSThread that is in existance. If > no NSThread exists for your thread, then neither does a NSAutoreleasePool. Thanks, but I don't think NSThreads are available yet (Only OpenStep?). I figured out the problem... I was just not creating the autorelease pool early enough. It all seems to work fine now (I have not gotten to actually persisting the objects, but I do seem to be able to fetch from a new thread) Thanks, -- Dirk Fromhein df@watershed.com Watershed Technologies, Inc. (508)-460-9612 Voice (508)-481-3955 Fax
Newsgroups: comp.sys.next.programmer From: armin@kd.fh-hannover.de (Armin Retzko) Subject: shell prog for previewing RIBs (QuickRenderMan) ? Message-ID: <armin.794069956@master> Keywords: RenderMan, QuickRenderMan, RIB, qrman, prman Sender: news@newsserver.rrzn.uni-hannover.de (News Service) Organization: RRZN Date: Wed, 1 Mar 1995 14:59:16 GMT Hi everybody. I need a command line utility, which produces preview images from a RIB file. I've read about the QuickRenderMan in the NeXT Developer Release Notes (QRMSpec.rtf), but i'm not able to use this info, because i'm no programmer. Has anybody heard of an existing command line utility? Thanx a lot. --- Armin Retzko, Schumannstr.5, D-30823 Garbsen, Germany e-mail: armin@kd.fh-hannover.de (NeXTmail & MIME OK!) -- Armin Retzko e-mail: armin@kd.fh-hannover.de
From: buzz@marvin.FB10.TU-Berlin.DE (Bastian Schlueter) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: SysV Streams for NS? Date: 1 Mar 1995 11:06:01 +0100 Organization: Marvins Home, a small place in Universe Sender: buzz@marvin.isdn.cs.tu-berlin.de Message-ID: <3j1gu9$29i@marvin.isdn.cs.tu-berlin.de> Hello Netters, does anybody know of a SystemV Streams implementation/emulation for Nextstep? Ciao Bastian
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: MiscString vs. NSString Date: 25 Feb 1995 16:40:39 GMT Organization: University of Heidelberg, Germany Message-ID: <3inmi7$9u0@sun0.urz.uni-heidelberg.de> References: <3iiupo$258@uropax.contrib.de> In article <3iiupo$258@uropax.contrib.de> suckow@uropax.contrib.de (Ralf Suckow) writes: > Dear netters, > if I would start to use an ObjC string object instead of char * > in a new larger commercial project, what should I use? > I'm impressed with the functionality of MiscString and the stuff > around it, but I don't know anything about NSString of FoundationKit. > If I use MiscString, will I have problems with EOF and NEXTSTEP 4.0? > Or is a transition easy? Where can I get a FoundationKit if I don't have > EOF? Is it contained in NS 3.3? Well, MiscString is definitely one very impressive class. Nevertheless, if you are planning to write an App for NS 4.0 better use NSSting, because: - NSSting supports unicode; - MiscString in the form it exists today will disappear and in the new version of MiscKit (2.0...) will be a collection of NSSting categories. - To use MiscString, you have to link the entire libMiscKit, and the latest version is really huge! - It's better to spend your time in a software, that will be supported in the future, not in the past.... -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Where are the mini-examples? Message-ID: <jpanicoD4rnFJ.32t@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 1 Mar 1995 14:40:31 GMT Sender: jpanico@netcom10.netcom.com Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer From: dino@blackmaus.com (Dino Bagdadi) Subject: Defaults database problems Message-ID: <D4n8FI.107@blackmaus.com> Sender: dino@blackmaus.com (Dino Bagdadi) Organization: Blackmaus Design, Inc. References: <D4n7Gx.ts@blackmaus.com> Date: Mon, 27 Feb 1995 05:26:05 GMT Folks, What can cause a user's default database to be trashed? I don't know what happened that now none of my defaults are being saved. Unluckily for me it happens to be root's defaults! I've tried copying the defaults files: ~/.NeXT/.NeXTdefaults.D ~/NeXT/.NeXTdefaults.L from my own user account into root's but it doesn't work. When I log in as root I get the standard new-user look. When I issue a dread -l from a terminal window, I get the following message: dread: Can't open defaults database I've checked the permissions against mine but they seem to be fine. These are the permissions on the (corrupted?) files: -rw-r--r-- 1 root 20 Feb 26 23:31 .NeXTdefaults.D -rw-r--r-- 1 root 8192 Feb 26 23:41 .NeXTdefaults.L I've tried deleting the 2 files mentioned above, to allow WM to make new ones and start from scratch, but as soon as I log out, everything is lost again. I also noticed that no services are getting registered either since this happened! In other words, my Services menu is empty in every app! I've checked the online help to no avail :( I have no clue how to fix this. Any of your ideas are better than any of mine right now. Please email me and I'll summarize for the benefit of others. Thank you in advance. --- Dino Bagdadi Blackmaus Design dino@blackmaus.com (ASCII, NeXTmail and MIME) Public PGP key available via `finger -l dbagdadi@shadow.net'
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: How do I copy a NXAtom * into something else ?? Date: 27 Feb 1995 05:31:00 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3iro2k$l10@solaris.cc.vt.edu> Ok, I know I am an idiot but I spent about 2 hours trying to do this but I just can't get there. Here's what I have so far char **destinationTypes; - setDraggingDestinationTypes:(NXAtom *)types { NXAtom *orig = types; if (types) { NXAtom type = *types; int i = 0; NX_MALLOC(destinationTypes, int, 1); while (type != NULL) { NX_MALLOC(destinationTypes[i], char, strlen(type)+1); strcpy(destinationTypes[i], type); type = types[++i]; } destinationTypes[i] = '\0'; /* * Works up until here. AFter blah[i] = '\0' the item * at destinationTypes[0] becomes "". Why? */ draggingDestination = YES; [self registerForDraggedTypes:orig count:countTypes(orig)]; } return self; } It works ok up until destinationTypes[i] = '\0'; then it goes nuts and reassigns destinationTypes[0] from whatever types[0] was to "". What gives?? Thanks Jehu
From: macrae@geo.ucalgary.ca (Andrew MacRae) Newsgroups: comp.sys.next.programmer Subject: Re: 3DKit port to Open-GL anyone? Date: 27 Feb 1995 21:35:35 GMT Organization: The University of Calgary Distribution: world Message-ID: <3itgj7$ua1@ra.lib.ucalgary.ca> References: <133549@cup.portal.com> In article <133549@cup.portal.com> Lee_Robert_Willis@cup.portal.com writes: > Hello Net, > > I've just started working at a firm which uses SGIs, and as > such have started learning OpenGL. Which got me thinking... > > Has anyone looked at / done any work toward a 3DKit port to OpenGL? > (Maybe on top of ObjCX?) At first glance there looks to be a good ... Dunno. I do not know in what way you mean to interface the two. But if I was interested in starting an attempt, the first place to look would be VOGL, a free GL-like implementation. I did compile it a couple of years ago, and it worked fine. It even has a Postscript output device option. Unfortunately, I can not remember the ftp site. Somewhere in Australia. -- -Andrew macrae@geo.ucalgary.ca home page: "http://geo.ucalgary.ca/~macrae/current_projects.html"
From: macrae@geo.ucalgary.ca (Andrew MacRae) Newsgroups: comp.sys.next.programmer Subject: Re: 3DKit port to Open-GL anyone? Date: 27 Feb 1995 21:42:49 GMT Organization: The University of Calgary Distribution: world Message-ID: <3ith0p$etr@ra.lib.ucalgary.ca> References: <133549@cup.portal.com> In article <133549@cup.portal.com> Lee_Robert_Willis@cup.portal.com writes: > Hello Net, > > I've just started working at a firm which uses SGIs, and as > such have started learning OpenGL. Which got me thinking... > > Has anyone looked at / done any work toward a 3DKit port to OpenGL? > (Maybe on top of ObjCX?) At first glance there looks to be a good ... Dunno. I do not know in what way you mean to interface the two. But if I was interested in starting an attempt, the first place to look would be VOGL, a free GL-like implementation. I did compile it a couple of years ago, and it worked fine. It even has a Postscript output device option. Unfortunately, I can not remember the ftp site. Somewhere in Australia. -- -Andrew macrae@geo.ucalgary.ca home page: "http://geo.ucalgary.ca/~macrae/current_projects.html"
Newsgroups: comp.sys.next.programmer From: 9120092@news.ul.ie ( P O'Brien ) Subject: DSP 56001 code Message-ID: <D4rvCp.182@ul.ie> Sender: usenet@ul.ie Organization: University of Limerick Date: Wed, 1 Mar 1995 17:31:37 GMT Hi, Some time ago while on my net travels I came across some sample code for programming the DSP 56001, Jean_Laroche I think was the guy who did it. I found it in stanford ( I think, it was a while ago ). The problem that I have is that it was (a) written for NeXTstep 2.0, and (b) the DSP code is in assembler. I understand that the MusicKit can convert DSP code into some kind of subclass. But does anyone know if this covertion is to Obj-C code? Soon I'll be running NeXTstep 3.3 on a 486 using a TurtleBeach Multisound so I presume that the code is no good for that, but if I can get something from the code it would help. By the way, the reason why I'm doing this is that I want to implement an effects box in real-time. I also have some files in mathematica format that I want to at least take a look at to see if they'll help me at all. However i don't have mathematica, does anyone know of an application that can read mathematica files and mabe convert them to some other format? Thanks in advance. Peter 9120092@ul.ie http://skynet.ul.ie/~woppi
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: Documentation Error? Date: 28 Feb 1995 23:39:36 GMT Organization: Total System Software Distribution: world Message-ID: <3j0c7o$44t@tssslab.TotSysSoft.com> References: <3iv1ji$186@pheidippides.axion.bt.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <3iv1ji$186@pheidippides.axion.bt.co.uk> tregan@srd.bt.co.uk (Dr Timothy Regan) writes: }~ Hi All, }~ }~ I'm not sure if this is right or the right place to send this to! }~ }~ In the NeXTStep "Object-Oriented Programming and the Objective C }~ Language" book that comes with Developer 3.2 it says (p. 135): }~ }~ stream = NXOpenStreamForFile("/home/archive", NX_READWRITE); Tim, I don't have the book, but an NXTypedStream must be opened for read OR write, not both. Bruce Gingery
Newsgroups: comp.sys.next.programmer From: peisch@cfa.org (Peter Eisch) Subject: Re: un-DO Objects Message-ID: <D4rsvn.Lpw@cfa.org> Organization: Communicating For America, Networking Services References: <3j1pln$e64@news.service.uci.edu> Date: Wed, 1 Mar 1995 16:38:09 GMT If you archive the object to a NXStream, you can pass the buffer & len of the stream to the other side and then have NXImage init from the stream. Ditto for the panel. You'll have to be careful how you handle the target/action objects on the panel. peter Richard Myers (rmyers@dec5200.acs.uci.edu) wrote: : Under NS 3.2: : I am trying to distribute an image from one app to another I figure : that the best way to do this is using an NXImage. So App1 creates the : image and passes it to App2. App2 then tries to composite the image : to a view of it's own. The composite message is passed through the : proxy to App1's NXImage, and it tries to composite to the currently : lockFocus'd view in App1 (wherever that happens to be). I'd try to : encode it and use bycopy, but I don't know how to encode an NXImage. : I tried to pass back a stream with the image in it (writeTIFF:), but : you can't pass structures with pointers (mostly). -- -- Always looking for a handy place to nap... peisch@cans.cfa.org (Peter Eisch) peter@etude.com
From: thomas@zippy.sonoma.edu (Thomas Poff) Newsgroups: comp.sys.next.programmer Subject: Re: Dynamic Loading (NXApp vol. 1 iss. 1, NextAnswer 1503) Date: 2 Mar 1995 06:41:48 GMT Organization: Sonoma State University, Rohnert Park, Ca. Message-ID: <3j3pbc$7ti@nic-nac.CSU.net> References: <9502281820.AA04038@flexus> Ah this a big part of the importance of dynamic binding or dynamic interpretive languages. If you have an application that is WAY big, you can segment it into smaller portions that load on demand. This is cool because you can initially load, say, a 50kb application that is responsible for loading larger portions of itself into RAM incrementally. Very cool. Taken one step further, you could design a paradigm for distributing object-code that is dynamically loaded into an application at runtime. This object-code could be distributed something like what clip-art is distributed today (don't take that _too_ seriously). In fact, you could be running a program, say to yourself, "oh I need this program to provide me some functionality like say, playing Quicktime movies." You could then drag and drop an object into your application wrapper _while_ the program is running. Then you could dynamically load it into your application. I shouldn't talk so much. This is dynamic binding taken one small step further than what most folks are willing to think about even in the NeXTStep (and other) communities at the moment. The NXApp article on dynamic loading was very useful to me just because it told me once again some things I already knew but hadn't thought deeply enough about. Thanks, NeXT! Hope this helps, --thomas-- thomas@groucho.sonoma.edu thomas@goldleaf.com
Newsgroups: comp.sys.next.programmer From: Jacob Gore <jacob@blackbox.enmu.edu> Subject: Can exceptions be made to die immediately? Sender: news@math.enmu.edu (The Garbage Heap) Message-ID: <1995Mar2.014335.26521@math.enmu.edu> Date: Thu, 2 Mar 1995 01:43:35 GMT Organization: Eastern New Mexico University, Department of Mathematical Sciences When an error happens while I'm in gdb, I would much rather have the program die with an IOT trap or some such than unwrap to the default handler and exit. (For example, "Mar 1 18:24:57 [6882] *** Uncaught exception: *** Foo doesNotRecognizeSelector: -bar:" is not particularly useful if you can't ask gdb "where".) Is there a prescribed way to tell exceptions to just die where they are? Jacob
Newsgroups: comp.sys.next.programmer From: karl@trapac.com (Karl Kraft) Subject: EOF Adaptor for AS/400 Message-ID: <D4Mv6E.10F@trapac.com> Organization: Trans Pacific Container Service Corporation Date: Mon, 27 Feb 1995 00:39:49 GMT Has anyone written an EOF adaptor for the AS/400? Is there anyone out there interested in writing such an adaptor? -- Karl Kraft Karl_Kraft@trapac.com Karl_Kraft@ensuing.com [My opinions are my own]
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Tue, 28 Feb 95 19:20:38 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9502281820.AA04038@flexus> Subject: Dynamic Loading (NXApp vol. 1 iss. 1, NextAnswer 1503) LS, I've fetched and read NXApp's Dynamic Loading, and there are some things I do not understand/agree with. Specifically, I don't understand the claim that such a program will launch faster, and a few other things. If you are interested, please ask me for the message I sent to the author of the article (who has not replied). Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <rochelle@pdh.com> Message-ID: <9503011813.AA05570@snowbird.pdh.com> Content-Type: application/x-nextmail Mime-Version: 1.0 (NeXT Mail 3.3 v113) Next-Attachment: .tar.489.Problem_loading_pale.attach, 0, 1/1, 0, 0 From: Rochelle Raccah <rochelle@pdh.com> Date: Wed, 1 Mar 95 10:13:32 -0800 Subject: Problem loading palette in IB begin 600 .tar.489.Problem_loading_pale.attach M'YV0+EX`&$BPH,&#"!,J7,BPH4.$("+>N%$#!("((&+8@&$18T2.%SV*Y`BB MQ@T9-6+,H)&R8D0:*FM<?$BSILV;.'/JW,FSI\^?0(,*;1@PC1LR9?"XD$/' MS-"G03':L$&C8T2-($=:%2D#Q@R2)E&J9!G#)8B-,&="7<NVK=NW<./*?;J' M"U,S,+B$<3,G35TS;]S0H2.&#1>\A]VD80."2IHV9>:TD/*FS=X=AV,<;O,& MJ1PW((:\J2,G31DY._HHX&)9SADV,;JN;GU&3FP8J^&$D4.&"QT\-3;ZQA/C M]G"-./+^EB&#AG(\,I(_GS%#^.\9.;H.IT$C^?`:,)Q_WY@7L9B\:?+68>,F M<)G#<Z(?'I-W#%X05\J`0!/&COXP()A1QAT@Z,9&&8-%!@(=_-$!`AMOA($4 M&2"@L!>%<]"Q&&,02IA"@$;I5\=1IRV(AGYOL$%A$D)4*$49!X8QAWXSN,"1 M'3/4D(.-'XI1AX-GI.&?B?H!Q@:$=QAU!@B0S3%'&&?H9Q21((P1V!PIOJ?` M:F9HE@9\S8&0!!1#0"''&W"<1D<>3*21H0X@D.'F&+M-"()1</P(0A@.LA$B M"#.`\(89(!X(0A-Y0!'&@0FZ8"""=)3QPJ.-TA%&85IRB5YY\>$``A<*"*$G M@_JY,:"8+:+P8HPS`FHC"':P=,.'=+K17I\14DAJ@8M"^M]15%K)5Y8@/)G' M'*!RZ2685:G@+`B*RM'J:6?*\>"?50%F[8AIT#$'G"BD@)D"10`[Z)UNY.E@ M4FF.$6EO"CB1E(-TO+%&&:"Y"<()*)P`ZA5OR+'&'+J-40:<0^QUJZ!I@C;% M:'(8_`*BBC(:J:.])ICL89N"Z>F_^O$W)!VEE4&A'",JYL:2W0H*&H!RFB&@ M'/@Z:-D8:/PY)9VML@C"'3)6&3#*<+Q;;&5EH/'&'2R`X".]#?X<],*[\ER& M"Z""BD30>^7A7K%EX&NBO@'OU]^O>53)1AWZW1'UKG"<B6D;=\[Q0]8*4,&? M&P.S`"IE.,-HJ!1AC$$G&J"VH#C>@)]XI'Z$&QX&X@J48=EB<"9P9N"/`P$' M&6BX8"7=$:$@+Q94-!'&8B`\L40*H$)!!!)BNC&&"R#(8$..(#B!NQ%I2.O@ M%'3@3KQ^S-'0]!1[@:#$&S,V/400$>60DGP*P*&TJ>`ZA\.'-$0'0@L@6)^# M#0F8$08>W</P/0CA>TJ^^3DHH-I<^.>O__[\]^___P`,H``'2,`"&O"`"$R@ 6`A?(P`8Z\($0C*`$)TC!"EKP@AB<(.>O ` end
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: RS-423 to RS-422 cable pin outs Date: 1 Mar 1995 19:35:00 GMT Organization: Total System Software Distribution: world Message-ID: <3j2i94$21u@tssslab.TotSysSoft.com> References: <3ivrus$jo1@nntp.ucs.ubc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <3ivrus$jo1@nntp.ucs.ubc.ca> oly@emerson.physics.ubc.ca (B.Olav Anderson) writes: }~ Hi, }~ I need to interface a serial cable that is from a 422 device to a }~ next cube which is a 423. Does anyone know the corresponding pinouts? }~ }~ Thanks in advance. See man zs(4) [ I think this was a hardware question... not programmer ] It should have all the pinouts you need. +-+ Bruce Gingery Total System Software Cheyenne, WY USA We do consulting over Internet. E-Mail tss@TotSysSoft.com for quotes or more info. NEXT IN LINE magazine staff technical writer Bruce Gingery <bgingery@Wyoming.COM> OR <bruce@TotSysSoft.com> Multimedia: NeXTmail(tm) preferred MIME-mail welcome
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Re: Multiple threads in AppKit app? Date: 2 Mar 1995 11:30:07 GMT Organization: Stanford University Message-ID: <3j4a7v$8j8@nntp.Stanford.EDU> References: <jpanicoD4sFrF.GGu@netcom.com> Joe Panico writes > Hi, > > The Garfinkle and Mahoney book states that NS 3.2 Appkit is NOT > thread safe. What exactly does this mean? Does it mean that any > application that uses appKit objects should not attempt to spin > off more threads at all? Or does it mean that an appKit app should > not attempt to spin off another thread that will manipulate other > appKit objects? Is NS 3.3 appKit thread safe? > Nope, and even 4.0 won't be. The overhead is just impressive. What this means is that you can well have several threads, yet only one may handle AppKit stuff. As the events are usually handled by the main thread, also the output must be done by this thread. You can use NXConnections etc so that the other thread can call the main thread. Or, for your purpose, maybe NXTimedEntries would do... There should be examples for both approaches. > I have an application that does a large (time intensive) file > copy, and am building into it a view that displays the copy > progress. I want to monitor copy progress by measuring file sizes > while the copy is proceeding. Do I have to spawn a new process > for the routine that measures the file sizes (even though it uses > no appKit objects) or can I spin off a new thread to do this? Oh god, don't do that. This should be really doable within normal bounds of overhead etc. You may want to look at the Subprocess class, yet from what I read it may not be the right thing for you to use. Dunno whether monitoring the file size is the cleanest approach, too... Good luck, - Stan -- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss Guy | | | SU Computer Science | When you find yourself | | Box 2642, Stanford, CA (415) 497 HEXO | in a hole, stop digging | | stanj@cs.stanford.edu NeXTmail / MIME | | +-------------------------------------------+-------------------------+
From: dcoyle@kakapo.mpi-hd.mpg.de (David A. Coyle) Newsgroups: comp.sys.next.programmer Subject: DO trouble Date: 2 Mar 1995 13:27:23 GMT Organization: University of Heidelberg, Germany Message-ID: <3j4h3r$21b@sun0.urz.uni-heidelberg.de> I'm having trouble getting DO to work. I keep getting this message on the console: Mar 2 09:55:19 kakapo Annealer[670]: encodeData:ofType: unencodable type (v12@-4:-8I-12) Mar 2 09:55:34 kakapo Annealer[670]: Unknown error code 11013 in NXReportError The thing is, I'm not encoding anything (that I know of!). The objects I pass should go by proxy (the default, right?). Here an annotated code chunk: #import <appkit/appkit.h> #import <remote/NXConnection.h> #import <remote/NXProxy.h> #import "TestControl.h" /* this object's header */ #import "MyObject.h" /* my remote object's header */ @implementation TestControl - init { theObject = [NXConnection connectToName:"OBJECT_SERVER" onHost:"*"]; if(theObject){ NXRunAlertPanel("Remote","Got Object","Good",NULL,NULL); /* This worked */ if([theObject isKindOf:[MyObject class]]) NXRunAlertPanel("Remote","Really got Object","Even better",NULL,NULL); /* This DIDN'T */ }; [theObject debugCheck]; /* This DID (theObject prints a string to stderr) */ /* ..uninteresting stuff removed */ return self; } From here on none of the other methods to theObject function (passing or receiving objects by proxy, simple numbers & BOOLs, &c) I read in the DO literature that the remote object can't return structures (except by reference). Eventually, my object would have, but it never reaches that point. Is it possible that the NXConnection has looked over all the object's methods and said to itself "uh-uh, that's not going to work", whether that method is actually called or not? I don't think that even NeXT would be that clever. ;-) thanks in advance, David A. Coyle dcoyle@goanna.mpi-hd.mpg.de
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <rene@frodo.ped.muni.cz> Date: Thu, 2 Mar 95 15:21:49 +0100 From: Rene Michalek <rene@frodo.ped.muni.cz> Message-ID: <9503021421.AA00303@frodo.ped.muni.cz> Subject: Re: parsing d#################################################################### From: huang@kwainx.isc.umr.edu (Cheng-Chin Huang) Newsgroups: comp.sys.next.programmer Subject: Re: How to get destructor under ObjC++? Date: 27 Feb 1995 17:40:52 GMT Organization: UMR Missouri's Technological University Distribution: world Message-ID: <3it2r4$9pp@hptemp1.cc.umr.edu> References: <3it2ff$9h2@hptemp1.cc.umr.edu> In article <3it2ff$9h2@hptemp1.cc.umr.edu> huang@kwainx.isc.umr.edu (Cheng-Chin Huang) writes: > --Tony Huang > Email: thuang@umr.isc.edu Oop. Sorry. Please change the email addr to huang@kwainx.isc.umr.edu. Thanks.
From: jharding@thor.tjhsst.edu (John Harding) Newsgroups: comp.sys.next.programmer Subject: NeXT C Sound routines Date: 27 Feb 1995 10:57:32 -0500 Organization: The Thomas Jefferson High School for Science and Technology Distribution: world Message-ID: <3isspc$dto@thor.tjhsst.edu> I'm working on writing a speech recognition system for the NeXT, and have run into a bit of a snag. I use the NeXT's sound routines (SNDStartRecording, etc) that are in my NextStep 2.1 release. The problem is that I need to convert from the Mulaw format that it records in. However, there is apparently something VERY wrong with the SNDConvertSound() routine, in that A) It doesn't do any conversion, and B) Returns the error SND_ERR_NOT_IMPLEMENTED. I've tried it with a bunch of different formats, including SND_FORMAT_MULAW_8, which is what it records in, so it had BETTER support that, but I keep getting the same error. Any ideas on the problem and/or fix?
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer Subject: Re: Multiple threads in AppKit app? Date: 2 Mar 1995 21:12:37 GMT Organization: MCI Message-ID: <3j5cc5$hvu@hermes.dna.mci.com> References: <jpanicoD4sFrF.GGu@netcom.com> In article <jpanicoD4sFrF.GGu@netcom.com>, Joe Panico <jpanico@netcom.com> wrote: >Hi, > >The Garfinkle and Mahoney book states that NS 3.2 Appkit is NOT thread safe. >What exactly does this mean? Does it mean that any application that uses >appKit objects should not attempt to spin off more threads at all? Or does >it mean that an appKit app should not attempt to spin off another thread >that will manipulate other appKit objects? Is NS 3.3 appKit thread safe? > >I have an application that does a large (time intensive) file copy, and >am building into it a view that displays the copy progress. I want to >monitor copy progress by measuring file sizes while the copy is proceeding. >Do I have to spawn a new process for the routine that measures the file sizes >(even though it uses no appKit objects) or can I spin off a new thread to >do this? > >Any help much appreciate. >Thanks. > >Joe Panico >jpanico@netcom.com > > Joe: You can "spin off" new threads but you should only in the main thread. For a good example of this, see the bundled example SortingInAction. - Alex -
From: matthews@farside (David Matthews) Newsgroups: comp.sys.next.marketplace,comp.sys.next.hardware,comp.sys.next.programmer Subject: HELP -- Looking for Adaptor for NeXT Monitor to PC Style Video Connector Date: 2 Mar 1995 20:32:32 GMT Organization: Abbott Laboratories Message-ID: <3j5a10$nq5@kelso.abbott.com> I am looking for an adaptor which will convert the NeXT color monitor (17") to a standard PC type video connector. I have heard in the past that people have done this successfully. Does anyone know the limitations, difficulties (such as refresh rate support/video signal support) or where I could buy or rig up such a connector? I have recently bought a laptop PC, and would like to use my NeXT monitor as an external monitor. The laptop only requires 1024 X 768, and may not generate a high refresh rate (I'm not sure on the specs for the video out). Thanks in Advance, Dave Email: matthews@woodstock.abbott.com
From: Greg.Titus@mccaw.com (Greg Titus) Newsgroups: comp.sys.next.programmer Subject: Re: Can exceptions be made to die immediately? Date: 2 Mar 1995 20:20:11 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3j599r$5hm@ftp-p.mccaw.com> References: <1995Mar2.014335.26521@math.enmu.edu> In article <1995Mar2.014335.26521@math.enmu.edu> Jacob Gore <jacob@blackbox.enmu.edu> writes: > When an error happens while I'm in gdb, I would much rather have the > program die with an IOT trap or some such than unwrap to the default > handler and exit. (For example, "Mar 1 18:24:57 [6882] *** Uncaught > exception: *** > Foo doesNotRecognizeSelector: -bar:" is not > particularly useful if you can't ask gdb "where".) > > Is there a prescribed way to tell exceptions to just die where they are? > > Jacob What you really want to do is just break on [NSException raise] in gdb, and you'll be at the point you want. I don't think you'll find a way to turn exception handling off. Greg --------------------- Greg Titus Omni Development Inc. toon@omnigroup.com
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: IXKit Unix file directory example? Message-ID: <jpanicoD4tL0F.Gr8@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Thu, 2 Mar 1995 15:43:27 GMT Sender: jpanico@netcom12.netcom.com Hi, Anyone know where I can find a simple example ap in which IXKit is used to query the Unix filesystem for a list of files and their attributes? Thanks for any help. Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.programmer,comp.sys.next.bugs From: fozztexx@nvc.cc.ca.us (Chris Osborn) Subject: gdb and 3.3 keeps causing Memory access exception Message-ID: <D4u1yC.Gxy@nvc.cc.ca.us> Sender: news@nvc.cc.ca.us Organization: Napa Valley College Date: Thu, 2 Mar 1995 21:49:24 GMT Sometimes when I run a program under gdb, I get an error like: Program generated(1): Memory access exception on address 0x411ffff4 (invalid address). 0x5008c28 in nxzonefreenolock () However, if I run the program outside of gdb, it runs quite fine. This is annoying because it makes it rather difficult to debug my programs. If bring up gdb under 3.2 and do the same thing, I don't have the problem. -- Chris Osborn, Network Administrator Voice: 707 253 3130 Napa Valley College Fax: 707 253 3063 2277 Napa-Vallejo Hwy., Napa, CA, 94558 <fozztexx@nvc.cc.ca.us> MIME ok, NeXTMail tolerated
From: paul@pth.com (Paul Tognato-Haddad) Newsgroups: comp.sys.next.programmer Subject: Re: DO trouble Date: 3 Mar 1995 05:02:44 GMT Organization: Primenet Message-ID: <3j67tk$3ba@news.primenet.com> References: <3j4h3r$21b@sun0.urz.uni-heidelberg.de> Howdy, In article <3j4h3r$21b@sun0.urz.uni-heidelberg.de> dcoyle@kakapo.mpi-hd.mpg.de (David A. Coyle) writes: > Mar 2 09:55:19 kakapo Annealer[670]: encodeData:ofType: > unencodable type (v12@-4:-8I-12) @ is an id (probably the sender of the message). : is a SEL (the message). I is an unsigned int, which doesn't seemed to be listed as one of the types supported by encodeData... Try using a signed int (i)... > Mar 2 09:55:34 kakapo Annealer[670]: Unknown error code > 11013 in NXReportError 11013 is a receive time out... Probably because of above.. > if([theObject isKindOf:[MyObject class]]) > NXRunAlertPanel("Remote","Really got > Object","Even better",NULL,NULL); > /* This DIDN'T */ > > }; I think that theObject isKindOf:[Proxy class]... Anyways the code that generates the above errors doesn't seem to be here... > From here on none of the other methods to theObject > function (passing or receiving objects by proxy, simple > numbers & BOOLs, &c) When you get an 11013 or any other exception you get kicked out of the current method (I think). You can stick error handlers with all your DO method calls in case you want to catch such errors and continue on.. Something like NX_DURING [theObject someMessage]; NX_HANDLER handle the error... NX_ENDHANDLER Good luck, -- Paul (NeXTmail preferred) # Paul R. Tognato-Haddad (paul@pth.com) (Home) 602-690-7982 (Fax) 602-690-7991
From: object@crl.com (Robert Smith) Newsgroups: comp.sys.next.programmer Subject: SunOS server, NeXT client Date: 2 Mar 1995 21:22:00 -0800 Organization: CRL Dialup Internet Access (415) 705-6060 [Login: guest] Message-ID: <3j691o$mor@crl3.crl.com> Help! I am trying to access SunOS API's that access data on a Sun box. The API's, I'm told, can only run on SunOS or Solaris. I need to use these API's to return data to my NeXT program, and I need to call them from my NeXT program. Any suggestions.
From: grio@next.com (Dan Grillo) Newsgroups: comp.sys.next.programmer Subject: Re: Where are the mini-examples? Date: 3 Mar 1995 00:48:55 GMT Organization: Technical Support, NeXT Computer, Inc. Message-ID: <3j5p1n$ej9@news.next.com> References: <jpanicoD4rnFJ.32t@netcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Versions: makemail 2.6 In article <jpanicoD4rnFJ.32t@netcom.com>, Joe Panico <jpanico@netcom.com> wrote: > >Joe Panico >jpanico@netcom.com > http://www.next.com/NeXTanswers/ ftp://ftp.next.com/NeXTanswers/ mailto: nextanswers@next.com --Dan -- Dan Grillo dan_grillo@next.com (415) 780-2963 now in Bld1, back, Rside
From: atlas@alpha.bin-sixx.com (Atlas Computer Systems) Newsgroups: comp.sys.next.programmer Subject: WD_1_GIG_DRIVE Date: 2 Mar 1995 17:09:37 -0500 Organization: Binary Sixx Systems, Inc. Message-ID: <3j5fn1$d6b@alpha.bin-sixx.com> *********************************ADVERTISEMENT******************************** Atlas Computer Systems is pleased to announce the arrival of the Western Digital Caviar AC31000 1.08 GB EIDE hard drive for the unbelievably low price of $389 plus $10 shipping and handling. Call Atlas Computer Systems at (904) 694-2900 Monday through Friday 9 a.m. to 6 p.m. EST with your credit card ready to place an order. All orders placed within the continental United States will be shipped via UPS Second Day Air. Ask your ACS sales representative for information on international shipping. If you're interested in having our current price list e-mailed to you, send a request to us001663@interramp.com. We look forward to hearing from you. *********************************ADVERTISEMENT********************************
From: Randy_Tidd@next.com (Randy Tidd) Newsgroups: comp.sys.next.programmer Subject: Re: setValues:forObject: TOO DAMN SLOW! Date: 1 Mar 1995 23:55:40 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3j31hs$15t@rosie.next.com> References: <3itfel$3el@cerberus.wsc.com> In article <3itfel$3el@cerberus.wsc.com> pascal@wsc.com () writes: > > setValues:forObject: (EOController) > > > > Problem is: > > > > on a small table (like under 50 entries) you can COUNT the seconds this > > takes. I have buffered operations on so this isn't even hitting the DB. > > > > Any suggestions? Why is this so slow? > > My belief is that NeXT decided a long time ago to throw performance > out the window, and to focus on functionality. This is why the > programs I developed on my Apple IIe seem to execute much faster > than the applications I develop today using EOF on a 100 MHz Pentium. Note that the original poster posted soon after his original posting to say that he was mistaken, it was his own GUI code that was causing thes lowdown and that EOController's setValues:forObject: is "quite fast". Indeed EOF 1.0 is quite fast, and for 1.1 we are making serious performance enhancements that increase fetch speed and object allocation among other things, while at the same time decreasing memory usage. It is true that objects are used more in Foundation and EOF with the new NSNumber, NSString, NSData and other small value-holding objects. But please don't jump to the conclusion that this causes a huge performance problem because as we have demonstrated with EOF, it doesn't. Randy
From: kc@ocelot (Ken Case) Newsgroups: comp.sys.next.programmer Subject: Re: Joystick Driver? Date: 1 Mar 1995 23:41:28 GMT Organization: Omni Development, Inc. Distribution: world Message-ID: <3j30n8$b7r@gaea.titan.org> References: <3idckt$lbd@sifon.cc.mcgill.ca> Ivo ROTHSCHILD (ivor@cs.mcgill.ca) wrote: : Are there any Joystick drivers for NS Intel out there? For : instance, one for the joystick port on the SoundBlaster card. : : -ivo : ivo@hasc.ca I've written one, but haven't had time to actually integrate it with any games yet (say, Doom II or Xox)--so the only testing I've done is with a printf() loop. It supports any number of joysticks on arbitrary ports (it works fine with the SoundBlaster, and also with our dual game port card with joystick, throttle, and rudder pedals attached). I'd like to polish it up some more, and as soon as I get some time to do so I'll make it available on the software page at our web site (http://www.omnigroup.com/Software). If anyone would like more information, feel free to contact me by e-mail (kc@omnigroup.com). I'll try to watch this thread, too, but no guarantees... -- Ken Case Omni Development, Inc.
From: afied1@pblea.uni-paderborn.de (Alfred Fiedler) Newsgroups: comp.sys.next.programmer Subject: Basic Question about Compiling C++ Date: 3 Mar 1995 09:18:01 GMT Organization: Universitaet Paderborn, Germany Message-ID: <3j6ms9$jnp@news.uni-paderborn.de> Hello All, here we have some NeXTstations 040 running NS 3.2. After lots of programming in ANSI-C I tried C++ and start with a simple example given below: // begin of "test.cc" ------------ #include <iostream.h> main() { int n; cout << "Number ? :"; cin >> n; cout << "Number " << n << " was given"; } // end of "test.cc" ------------ Every time I try to compile I get the following messages: afied1> cc -O -Wall Test_C++.cc -o exe.t ld: Undefined symbols: _cout ___ls__7ostreamPCc _cin ___rs__7istreamRi ___ls__7ostreami afied1> I guess the linker is missing something. Any suggestions??? !!! Thanks for help !!! _______________________________________________________ _______ /| Salto ergo sum ! / | /__|____ <afied1@pblea.uni-paderborn.de> / | / | * NeXT Mail ok
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Multiple threads in AppKit app? Message-ID: <jpanicoD4sFrF.GGu@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Thu, 2 Mar 1995 00:52:26 GMT Sender: jpanico@netcom20.netcom.com Hi, The Garfinkle and Mahoney book states that NS 3.2 Appkit is NOT thread safe. What exactly does this mean? Does it mean that any application that uses appKit objects should not attempt to spin off more threads at all? Or does it mean that an appKit app should not attempt to spin off another thread that will manipulate other appKit objects? Is NS 3.3 appKit thread safe? I have an application that does a large (time intensive) file copy, and am building into it a view that displays the copy progress. I want to monitor copy progress by measuring file sizes while the copy is proceeding. Do I have to spawn a new process for the routine that measures the file sizes (even though it uses no appKit objects) or can I spin off a new thread to do this? Any help much appreciate. Thanks. Joe Panico jpanico@netcom.com
From: alvin@cse.ucsc.edu (Alvin Jee) Newsgroups: comp.sys.next.programmer Subject: Re: Distributed Objects real slow? Date: 3 Mar 1995 10:20:14 GMT Organization: University of California, Santa Cruz Message-ID: <3j6qgu$rmi@darkstar.UCSC.EDU> References: <MICHAEL.95Feb26160037@tar> Michael Brouwer writes: > This is flaim bait, right? I'll try to behave, but doesn't it seem a bit > odd to compare local variable assignments with IPC? Try comparing DO with > mach messages and TCP sockets for some more interesting results. You will > then notice that DO is a bit slower than using bare mach messages or TCP, > but it provides a extra layer of abstraction that makes the performance > penalty acceptable in most cases. No, this is not flame bait--nor is it flaim bait :) I was surprised to see such a large difference in run times and I thought I'd bounce it off fellow netters. Was I the only one who did not know that DO was supposed to be on the slow side? Anyways, taking your suggestion, I tried doing the integer thing using Mach messages. Here's what I got: Using Mach messages : 155.603192 system and 14.416440 user Here are the original numbers I posted: Straight C code : 0.000000 system and 0.189984 user Using C functions to set the int: 0.000000 system and 0.569976 user Using C++ object for the int : 0.000000 system and 0.579944 user Using ObjC object for the int : 0.000000 system and 1.159961 user Using DO with protocols : 230.583732 system and 512.727327 user Using DO without protocols : 237.339423 system and 517.345028 user Ok, so DO is only about 5 times slower straight Mach messages. Still, I would not expect DO to be that much slower than Mach messaging. Now, my TCP and UDP programming skills are virtually nil, so I won't be doing that experiment anytime soon. Anybody else want to try? Also, I find it interesting that using DO uses about the same amount of time with or without protocols. -- Alvin Jee alvin@cse.ucsc.edu NeXTMail gleefully accepted! Using the Internet since 1984
From: gshaw@zeta.org.au (Greg Shaw) Newsgroups: comp.sys.next.programmer Subject: printing out nib files. Date: 2 Mar 1995 13:05:54 +1100 Organization: Kralizec Dialup Unix Sydney, +61-2-837-1183 V.32bis Message-ID: <3j3962$h18@godzilla.zeta.org.au> In using IB I am becoming aware of the need to print out or at least display the contents of the nib file. Now before you go WHAT?? let me explain. With all the examples supplied and other pieces of code that show me how to do something in IB I would like to KNOW that I have set up my app in the same way. Also I have been caught many times with missing one critical connection in IB and then spend an inordinate amount of time working out what I've missed. Yes that is a product of inexperience but wouldn't it be nice to be able to look at a nib file and compare it to one's own implementation and be able to note any variations. I know the data.nib file in the .nib directory is not that big. Does any have the layout of it or something that does what I am describing. Any help appreciated. Regards, Greg Shaw.
From: ivan@mario.sbi.com (Ivan Leung) Newsgroups: comp.sys.next.programmer Subject: Re: [PDO and C++] Date: 02 Mar 1995 16:41:39 GMT Organization: Salomon Brothers, Inc. Message-ID: <IVAN.95Mar2114139@mario.sbi.com> References: <jbf-2202950226240001@mbppp2.mitre.org> <D4Iv23.Ar9@lehman.com> In-reply-to: jsafar@lehman.com's message of Fri, 24 Feb 1995 20:46:50 GMT In article <D4Iv23.Ar9@lehman.com> jsafar@lehman.com (jean safar) writes: > Has anybody used the gnu compiler of PDO with some C++ in > and has been able to compile it. I would be interested in > any experience. > > Maybe, also, someone knows why Next is lagging behind in > terms of release, and why the compilers don't behave > similarely? I tried to compile some ObjC++ programs with PDO 2.0's compiler without any success despite the release note claims that ObjC++ is supported. Our NeXT rep told us that we should be able to get the beta version of PDO 3.0 anytime now and I hope it will fix the problem. -- Ivan Leung <ivan@fulcrum.sbi.com>
From: jacobsen@arundel.cs.wisc.edu Newsgroups: comp.sys.next.programmer Subject: Re: Basic Question about Compiling C++ Date: 3 Mar 1995 13:57:24 GMT Organization: Division of Information Technology Message-ID: <3j7784$sh9@news.doit.wisc.edu> References: <3j6ms9$jnp@news.uni-paderborn.de> In article <3j6ms9$jnp@news.uni-paderborn.de> afied1@pblea.uni-paderborn.de (Alfred Fiedler) writes: >Hello All, > >here we have some NeXTstations 040 running NS 3.2. <<MUNCH>> > >After lots of programming in ANSI-C I tried C++ and start with a simple >example given below: > afied1> cc -O -Wall Test_C++.cc -o exe.t > ld: Undefined symbols: <<MUNCH>> Try adding "-lg++" to your command line so you link with the appropriate libraries. >I guess the linker is missing something. Any suggestions??? > >!!! Thanks for help !!! You are welcome. Erik > >_______________________________________________________ > > _______ > /| Salto ergo sum ! > / | > /__|____ <afied1@pblea.uni-paderborn.de> > / | >/ | * NeXT Mail ok
Newsgroups: comp.sys.next.programmer From: as@asci.fdn.fr (Antoine Schmitt) Subject: Re: Can exceptions be made to die immediately? Message-ID: <1995Mar3.114503.667@asci.fdn.fr> Sender: as@asci.fdn.fr Organization: Antoine Schmitt - Paris, France. References: <ROBERT.95Mar2193820@steffi.dircon.co.uk> Date: Fri, 3 Mar 1995 11:45:03 GMT In article <ROBERT.95Mar2193820@steffi.dircon.co.uk> robert@steffi.dircon.co.uk (Robert Nicholson) writes: > <jacob@blackbox.enmu.edu> writes: > > >When an error happens while I'm in gdb, I would much rather have the program > >die with an IOT trap or some such than unwrap to the default handler and > >exit. (For example, "Mar 1 18:24:57 [6882] *** Uncaught exception: *** Foo > >doesNotRecognizeSelector: -bar:" is not particularly useful if you can't ask > >gdb "where".) > > >Is there a prescribed way to tell exceptions to just die where they are? > > >Jacob > > Well, is this FK? > > If so what does > > break [NSException raise] do you for you? If you're not on FoundationKit (FK), try "break _NXRaiseError". Antoine -- ________________________________________________________ Antoine Schmitt Consultant Informatique - Paris - France as@asci.fdn.fr - (33 1) 44 62 97 77 - NeXT mail welcome
From: rog@maekong.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: mmap Date: 3 Mar 1995 14:40:08 GMT Organization: The University of York, UK Distribution: world Message-ID: <3j79o8$jid@castle.york.ac.uk> References: <AJS.95Feb18114657@fulvius.fulcrum.co.uk> Andrew Stevenson (ajs@fulcrum.co.uk) wrote: > Can someone tell me if there is an mmap equivalent for NeXTstep, this > might be a silly question. from /NextLibrary/NextDev/OSSoftware/Part1_Mach/04_MachFunctions/MachFunctions.rtf : map_fd() SUMMARY Map a file into virtual memory SYNOPSIS #import <mach/mach.h> kern_return_t map_fd(int fd, vm_offset_t offset, vm_offset_t *address, boolean_t find_space, vm_size_t size) DESCRIPTION The function map_fd() is a UNIX extension that's technically not part of Mach. This function causes size bytes of data starting at offset in the file specified by fd to be mapped into the virtual memory at the address specified by address. [...] this is probably what you're looking for. rog.
Newsgroups: comp.sys.next.programmer From: (Raul Alvarez) Subject: Re: Can exceptions be made to die immediately? Message-ID: <1995Mar3.143153.2999@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3j599r$5hm@ftp-p.mccaw.com> Date: Fri, 3 Mar 1995 14:31:53 GMT I don't think you can turn exceptions off, but you can make them do something useful. Here is some code that will give you a start. void MyErrorHandler(NXHandler *es) { if(es->code >= NSExceptionBase && es->code <= NSLastException) { char buffer[1024]; NSException *ex = (id)es->data1; sprintf(buffer, "%s\n%s", [[ex exceptionName] cString], [[ex exceptionReason] cString]); NXRunAlertPanel([NXApp appName], buffer, 0, 0, 0); } } Instead of running an alert panel, you could call abort() to kill your program. In gdb you can break in the error handler, and look at the stack. Somewhere in your initialization code you will want to tell the exception handler to call your function: NXSetTopLevelErrorHandler(MyErrorHandler); I think this will help.
From: atlas@alpha.bin-sixx.com (Atlas Computer Systems) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3j5fn1$d6b@alpha.bin-sixx.com> Message-ID: <cancel.3j5fn1$d6b@alpha.bin-sixx.com> Date: 3 Mar 1995 16:06:15 GMT Control: cancel <3j5fn1$d6b@alpha.bin-sixx.com> spam
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Can exceptions be made to die immediately? Date: 02 Mar 1995 19:38:20 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Mar2193820@steffi.dircon.co.uk> References: <1995Mar2.014335.26521@math.enmu.edu> To: Jacob Gore <jacob@blackbox.enmu.edu> In-reply-to: Jacob Gore's message of Thu, 2 Mar 1995 01:43:35 GMT <jacob@blackbox.enmu.edu> writes: >When an error happens while I'm in gdb, I would much rather have the program >die with an IOT trap or some such than unwrap to the default handler and >exit. (For example, "Mar 1 18:24:57 [6882] *** Uncaught exception: *** Foo >doesNotRecognizeSelector: -bar:" is not particularly useful if you can't ask >gdb "where".) >Is there a prescribed way to tell exceptions to just die where they are? >Jacob Well, is this FK? If so what does break [NSException raise] do you for you? -- "Mary had a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
From: rxa9735@bonsai.egr.uh.edu (Rajat Aggarwal) Newsgroups: comp.sys.next.programmer Subject: LogicSim: Help! Start building Application Date: 3 Mar 1995 00:03:15 GMT Organization: University of Houston Message-ID: <3j5mc3$sc2@masala.cc.uh.edu> Hi, We are about to start a major project for our Computer Engineering Design class. Our project is going to be called Logic Simulator. Basically, the idea of our project is to provide the user with a choice of digital devices (Ex. AND,OR,NOR,...). The user will then use these devices to build their virtual circuit. Once the circuit is build, the user will click on a button called "Analyze." This button will launch a special tool called the plot analyzer. The plot analyzer will show the user a graphical display of all the input signals and the final output signal. Also, we will provide the user with another speciality tool called the probe. The probe will let user select any node in the user's virtual circuit and see the plot for that point. So, if anyone as any suggestion about how to start this project or any additional features they recommend to be included in this project, please email me. (If someone as already done something similar, please send me a copy of that program) Thanks, Rajat Aggarwal E-mail:rxa9735@tree.egr.uh.edu Department of Computer Engineering University of Houston
From: alexn@fdcsrvr.cs.mci.com (Alex Nghiem) Newsgroups: comp.sys.next.programmer Subject: Re: NSMutableString vs NSString Date: 3 Mar 1995 17:11:42 GMT Organization: MCI Message-ID: <3j7ike$3cd@hermes.dna.mci.com> References: <3j257i$8hf@cerberus.wsc.com> Keywords: Foundation, EOF, NSString In article <3j257i$8hf@cerberus.wsc.com>, <pascal@wsc.com> wrote: >Is there a price to pay (memory consumption, speed) when using >NSMutableStrings instead of NSStrings? > >Thanks, > >Pascal Forget Pascal: The only thing that comes to mind is if you do a copy. For a non-mutable string, the copy doesn't make a copy; it simply returns the same id. For example: aCopy = [original copy]; aCopy will be identical to original after the statement is executed if original is non-mutable. That is, it's an assignment statement which is much quicker than having to allocate a new object. - Alex -
From: sdavenpo@vaxc.stevens-tech.edu Newsgroups: comp.sys.next.programmer Subject: newbie DBKit question Date: 28 Feb 95 23:20:38 EST Organization: Stevens Institute of Technology Message-ID: <1995Feb28.232038.1@vaxc.stevens-tech.edu> When using ObjC calls to do database transactions, what should be used as the sender for discardChanges, saveChanges, deleteRecord, etc. Since I don't know what to use as the sender, I've been using nil (also tried sender).. I've been using the following code (thru mSQL's adaptor running on mSQL 0.2 - the adapter doesn't seem to like the mSQL 1.05): - NewRec:sender { [DB appendNewRecord: nil]; [MyWin makeKeyAndOrderFront: nil]; } /* MyWin form called to accept input into new record */ - AddOK:sender { [DB saveChanges: nil]; [MyWin orderOut: nil]; return self; } /* new record data saved */ The code compiles, but with warnings such as: cannot find method AddOK: return type for 'saveChanges:' defaults to id AddOK: When this code executes, I get an error 'Error occurred during transaction'. I'm new to the DBKit (probably obvious) - am I missing the boat somewhere? What am I doing wrong? Thanks for any ideas. Scott Davenport / sdavenpo@vaxc.stevens-tech.edu / NeXTMail OK!
From: bff@csn.net (Brendan Forsyth) Newsgroups: comp.sys.next.programmer Subject: NeXTStep Developer Training Date: 28 Feb 1995 14:46:55 GMT Organization: Colorado Supernet Message-ID: <3ivd0v$n1t@news-2.csn.net> Does anyone in the Denver-Boulder-Fort Collins area do NeXTStep developer training? Thanks Brendan
From: ricardo@Pencom.COM (Ricardo Parada) Newsgroups: comp.sys.next.programmer,comp.sys.next.misc,comp.software-eng,comp.lang.objective-c,comp.object Subject: Books on Objects and transactions ? Date: 2 Mar 1995 04:42:57 GMT Organization: Pencom Sofware Message-ID: <3j3ich$iff@digdug.pencom.com> Keywords: book, object, transaction, theory, NeXT, OpenStep, SUN Hi - I've seen lots of little articles about objects and transactions but nobody talks about them in great detail. Are there any good books out there that talk about these topics in "greater detail." ? Thanks, ricardo +-------------------------------------------------------------------+ | Ricardo J. Parada 9050 Capital of Texas Hwy #300 | | Software Engineer Austin, Texas 78759 | | Email: ricardo@pencom.com Phone: 512-343-6666 | | WWW: http://www.pencom.com/ Fax: 512-343-9650 | +-------------------------------------------------------------------+
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: NeXT C Sound routines Date: 27 Feb 1995 23:26:50 GMT Organization: School of Computer Science, McGill Univ. Distribution: world Message-ID: <SAMURAI.95Feb27182650@marge.cs.mcgill.ca> References: <3isspc$dto@thor.tjhsst.edu> In-reply-to: jharding@thor.tjhsst.edu's message of 27 Feb 1995 10:57:32 -0500 <jharding@thor.tjhsst.edu> writes: >I'm working on writing a speech recognition system for the NeXT, and have run >into a bit of a snag. I use the NeXT's sound routines (SNDStartRecording, etc) >that are in my NextStep 2.1 release. The problem is that I need to convert from >the Mulaw format that it records in. However, there is apparently something >VERY wrong with the SNDConvertSound() routine, in that A) It doesn't do any >conversion, and B) Returns the error SND_ERR_NOT_IMPLEMENTED. I've tried it >with a bunch of different formats, including SND_FORMAT_MULAW_8, which is what >it records in, so it had BETTER support that, but I keep getting the same error. >Any ideas on the problem and/or fix? Post the code... It should look something like this: SNDSoundStruct * SAlloc(void) { SNDSoundStruct * snd; check(SNDAlloc(&snd,0,NS_SOUND_FORMAT,NS_SOUND_RATE,NS_SOUND_CHANNELS,4)); return snd; } ... /* Make a new, empty 22kHz sound */ SNDSoundStruct *new = SAlloc(); /* Do the conversion source is 11kHz, mono */ SNDConvertSound(source,&new); ... Works fine for me... though I'm ensuring that everything is a 22kHz linear stereo sound, at 8 bits. I was doing mulaw stuff for a while though... - db -- For he today that sheds his blood with me shall be my brother; be he ne'er so vile, this day shall gentle his condition. Gentlemen in England now abed shall think themselves accursed they were not here, and hold their manhoods cheap whiles any speaks that fought with us upon Saint Crispin's day.
From: object@crl.com (Robert Smith) Newsgroups: comp.sys.next.programmer Subject: Templates? Date: 27 Feb 1995 14:55:39 -0800 Organization: CRL Dialup Internet Access (415) 705-6060 [Login: guest] Message-ID: <3itl9b$af7@crl4.crl.com> Does the latest gnu c++ compiler support templates? I'm running NS 3.2. Where can I get the new gnu compiler?
From: warnerr@beethoven.cs.colostate.edu ( richard warner) Newsgroups: comp.sys.next.programmer Subject: Using custom views Date: 28 Feb 1995 15:21:20 GMT Organization: Colorado State University, Fort Collins, CO 80523 Message-ID: <3ivf1g$2cva@yuma.ACNS.ColoState.EDU> Hi there - I have one custom view in an app and am just learning how to use them. I have several objects that need to draw to the same instance of a view. I know how to link the view to one object by highlighting it and then choosing the object name in the list that appears in the inspector. How do I link to multiple objects? Also, would each object then do a "lockFocus" in its drawSelf method to indicate that it has the focus? Each of my objects represent various superquadric equations for drawing. Rich
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <taylorn@penshurst.com> Message-ID: <9503031645.AA02840@penshurst.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Nigel Taylor <taylorn@penshurst.com> Date: Fri, 3 Mar 95 11:45:26 -0500 Subject: Re: Multiple threads in AppKit app? Stan Jirman writes: > Joe Panico writes > > Hi, > > > > The Garfinkle and Mahoney book states that NS 3.2 Appkit is NOT > > thread safe. What exactly does this mean? Does it mean that any > > application that uses appKit objects should not attempt to spin > > off more threads at all? Or does it mean that an appKit app should > > not attempt to spin off another thread that will manipulate other > > appKit objects? Is NS 3.3 appKit thread safe? > > > Nope, and even 4.0 won't be. The overhead is just impressive. > > What this means is that you can well have several threads, yet only one > may handle AppKit stuff. As the events are usually handled by the main > thread, also the output must be done by this thread. You can use > NXConnections etc so that the other thread can call the main thread. Or, > for your purpose, maybe NXTimedEntries would do... There should be > examples for both approaches. > My understanding of this is that the thing that is not threadsafe is the Objective-C runtime system. Apparently the objc_setMultithreaded(YES) function call causes the runtime system to lock the method dispatch table so other threads don't screw with it during a method call. This imposes some performance penalty. This implies that you cannot safely use Objective-C objects, (or at least their methods), in a subthread without first calling the objc_setMultithreaded(YES) function. Given that the Distributed Object system positively encourages the use of threads, I'm puzzled by the lack of warnings about this problem in the documentation. I'm also puzzled by the apparent resilience of programs that make extensive use of D.O. subthreads but never call the objc_setMultithreaded(YES) function. I invite anyone with a deep (and preferably informed) understanding of this whole problem to explain it, in detail, here! --- -------------------------- Nigel Taylor Penshurst Inc. Nigel_Taylor@Penshurst.com (NeXTmail OK) --------------------------
From: m.crawford@dcs.shef.ac.uk (mmalcolm Crawford) Newsgroups: comp.sys.next.bugs,comp.sys.next.programmer Subject: SoundView in SplitView in ScrollView Date: 3 Mar 1995 13:02:08 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <950303190107.217AACUX.malc@daneel> Has anybody ever put a Sound View in an NXSplitView in a ScrollView before?! I'm sure I have and it worked fine: I just tried it now and find that, whilst the other custom View displays correctly, the Sound view messes up and seems to think that it still occupies just the visible Rect and mis- displays accordingly -- with lots of PS errors (scrolling through it some parts don't show properly at all). It's possible I've overlooked something silly, but... Suggestions would be most welcome. Have fun, mmalc.
Newsgroups: comp.sys.next.programmer From: Mark_Tarbell@Radical.Com (Mark Tarbell ) Subject: Re: problem: cin cout not found linking c++ program Message-ID: <1995Mar3.173756.20475@Radical.Com> Sender: news@Radical.Com Organization: Radical System Solutions, Inc. References: <3j10s0$6o0@hydra.unm.edu> Distribution: usa Date: Fri, 3 Mar 1995 17:37:56 GMT In article <3j10s0$6o0@hydra.unm.edu> jcorey@unm.edu (James M Corey) writes: > localhost> cc -ObjC++ main.C > ld: Undefined symbols: 1. You should name your source files with .cpp extension 2. You should add -lg++ to your cc command if you're referencing the C++ libraries Mark
From: dwagner@cs.sunysb.edu (David Wagner) Newsgroups: comp.sys.next.programmer Subject: Inserting into HashTable and Storage. Date: 3 Mar 1995 01:38:20 GMT Organization: State University of New York at Stony Brook Message-ID: <3j5ruc$8cd@newsserv.cs.sunysb.edu> Hi, I am developing a program that involves extensive use of the HashTable object and Storage object. The insert methods for for these classes take (void *) as the paramter, and the element:at: and valueforKey: methods return (void *) values. I am wondering what type should be passed for these parameters if I want to store integers, strings or classes. Should I pass the actual value (which results in a type cast warning) or should I dereference the value before passing it. In other words, is int i,j; [aStorage addElement: i]; [aHashTable insertKey: j value: i]; or int i,j; [aStorage addElement: &i]; [aHashTable insertKey: &j value: &i]; the correct way to store i in the storage and hash table. What if i were a string or an id? Also I noticed that the types allowed in the description of a hash table are more restricted than those allowed in the storage. Does that restriction only apply to the key or the value as well? Any help anyone could give would be greatly appreciated. Thanks a lot, Dave Wagner
Newsgroups: comp.sys.next.hardware,comp.sys.next.sysadmin,comp.sys.next.programmer From: mark@ve6mgs.ampr.ab.ca (Mark Gregory Salyzyn) Subject: Re: sample fax modem driver (mythical?) NOT!!!! Message-ID: <D4wrDC.LL6@ve6mgs.ampr.ab.ca> Organization: UNIX drivers'R'Us References: <D4H994.719@news.cis.umn.edu> <MAGNAN.95Feb24120411@brise.ERE.UMontreal.CA> <MAGNAN.95Feb25205715@brise.ERE.UMontreal.CA> Date: Sat, 4 Mar 1995 08:53:35 GMT There has been some recent postings and mailings requesting additional information on the mgetty+sendfax V0.22 server I have compiled on my machine. I do hope this resolves most of the questions and allows many of you to integrate the package into their machine. This is *no* NXFax package, but for those cheap bastards amoungst us, it is close enough for jazz. I recently compiled mgetty+sendfax, and along with the pbm and ghostscript support I have had for some time, and find that it works great with my USR Courier Class 2.0 Triple standard modem for sending and receiving FAXes. The received FAXes are sent to the postmaster (which is me on my machine), but can be changed in the new_fax file. I have not tried to integrate this package into the FaxReader yet, but Christian Starkjohann <cs@ecs.co.at> has started some work on this, I believe (I have not even unpacked some of his work yet to integrate it into mine). The only hack I did was to have NetInfoManager.app redirect the `if' hander to the FAX.psif script and this allowed me to be integrated into the Print Panel. I also hacked up smail (which replaced sendmail more than a year ago on my machine) to perform an email to FAX gateway. I would be interested in any comments about ensuring a level of security to the programs. For instance, any additional checks on the phone numbers? Ciao -- Mark Salyzyn ---- Cut Here and feed the following to sh ---- #!/bin/sh # This is a shell archive, produced by shar 3.49. # To extract the files from this archive, save it to a file, remove # everything above the "!/bin/sh" line above, and type "sh file_name". # # made 03/04/1995 08:48 UTC by mark@ve6mgs.ampr.ab.ca # Source directory /User/tmp/k # # existing files will NOT be overwritten unless -c is specified # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 749 -rw-r----- FAX.psif # 428 -rw-r----- Manifest # 962 -rw-r----- README # 39 -rw-r----- aliases # 599 -rw-r----- directors # 2553 -rwxr-x--- faxq # 1943 -rwxr-x--- faxrm # 6835 -rwxr-x--- faxrunq # 18800 -rwxr-x--- faxspool # 10973 -rw-r----- mgetty.patch # 3955 -rwxr-x--- new_fax # 2954 -rwxr-x--- obscure.MIME.sh # 681 -rwxr-x--- obscure.NEXTMAIL.sh # 378 -rwxr-x--- obscure.PS.sh # 586 -rwxr-x--- obscure.UUENCODE.sh # 7907 -rw-r----- obscure.sh # 149 -rw-r----- routers # 930 -rw-r----- transports # # ============= FAX.psif ============== if test -f 'FAX.psif' -a X"$1" != X"-c"; then echo 'x - skipping FAX.psif (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'FAX.psif' && #! /bin/sh trap `rm -f /tmp/FAX.psif.$$.ps ; exit` 1 2 3 15 cat - >/tmp/FAX.psif.$$.ps # cp /tmp/FAX.psif.$$.ps /tmp/FAX.psif.input # echo $* >/tmp/FAX.psif.arguments ARGUMENTS="`fgrep '%%NXFax %%For:' /tmp/FAX.psif.$$.ps`" FaxNumber="`echo \"$ARGUMENTS\" | sed -n 's/^%%NXFaxNumber:[ ]*\(.*\)/\1/p'`" FaxTo="`echo \"$ARGUMENTS\" | sed -n 's/^%%NXFaxTo:[ ]*\(.*\)/\1/p'`" FaxFrom="`echo \"$ARGUMENTS\" | sed -n 's/^%%For:[ ]*\(.*\)/\1/p' | head -1`" FaxName="`nidump passwd / | sed -n \"s/^$FaxFrom:[^:]*:[0-9]*:[0-9]*:\([^:]*\):.*/\1/p\"`" LOGNAME=root export LOGNAME chmod 644 /tmp/FAX.psif.$$.ps /usr/local/bin/faxspool -q -f "$FaxFrom" -F "$FaxName" -D "$FaxTo" $FaxNumber /tmp/FAX.psif.$$.ps status=$? rm -f /tmp/FAX.psif.$$.ps exit $status SHAR_EOF chmod 0640 FAX.psif || echo 'restore of FAX.psif failed' Wc_c="`wc -c < 'FAX.psif'`" test 749 -eq "$Wc_c" || echo 'FAX.psif: original size 749, current size' "$Wc_c" fi # ============= Manifest ============== if test -f 'Manifest' -a X"$1" != X"-c"; then echo 'x - skipping Manifest (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'Manifest' && /usr/lib/NextPrinter/Server/FAX.psif /usr/lib/mail/aliases /usr/lib/smail/directors /usr/lib/smail/obscure.MIME.sh /usr/lib/smail/obscure.NEXTMAIL.sh /usr/lib/smail/obscure.PS.sh /usr/lib/smail/obscure.UUENCODE.sh /usr/lib/smail/obscure.sh /usr/lib/smail/routers /usr/lib/smail/transports /usr/local/bin/faxq /usr/local/bin/faxrm /usr/local/bin/faxrunq /usr/local/bin/faxspool /usr/local/lib/mgetty+sendfax/new_fax mgetty.patch SHAR_EOF chmod 0640 Manifest || echo 'restore of Manifest failed' Wc_c="`wc -c < 'Manifest'`" test 428 -eq "$Wc_c" || echo 'Manifest: original size 428, current size' "$Wc_c" fi # ============= README ============== if test -f 'README' -a X"$1" != X"-c"; then echo 'x - skipping README (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'README' && I recently compiled mgetty+sendfax, and along with the pbm and ghostscript support I have had for some time, and find that it works great with my USR Courier Class 2.0 Triple standard modem for sending and receiving FAXes. X The received FAXes are sent to the postmaster (which is me on my machine), but can be changed in the new_fax file. I have not tried to integrate this package into the FaxReader yet, but Christian Starkjohann <cs@ecs.co.at> has started some work on this, I believe. X The only hack I did was to have NetInfoManager.app redirect the `if' hander to the FAX.psif script and this allowed me to be integrated into the Print Panel. I also hacked up smail (which replaced sendmail more than a year ago on my machine) to perform an email to FAX gateway. X I would be interested in any comments about ensuring a level of security to the programs. For instance, any additional checks on the phone numbers? X Ciao -- Mark Salyzyn mark@ve6mgs.ampr.ab.ca SHAR_EOF chmod 0640 README || echo 'restore of README failed' Wc_c="`wc -c < 'README'`" test 962 -eq "$Wc_c" || echo 'README: original size 962, current size' "$Wc_c" fi # ============= aliases ============== if test -f 'aliases' -a X"$1" != X"-c"; then echo 'x - skipping aliases (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'aliases' && X . . . . . fax: obscure!fax X . . . . . SHAR_EOF chmod 0640 aliases || echo 'restore of aliases failed' Wc_c="`wc -c < 'aliases'`" test 39 -eq "$Wc_c" || echo 'aliases: original size 39, current size' "$Wc_c" fi # ============= directors ============== if test -f 'directors' -a X"$1" != X"-c"; then echo 'x - skipping directors (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'directors' && # @(#)samples/generic/directors 1.6 9/6/92 04:41:29 X . . . . . # smart_user - a partially specified smartuser director # # If the config file attribute smart_user is defined as a string such as # "$user@domain-gateway" then users not matched otherwise will be sent # off to the host "domain-gateway". # # If the smart_user attribute is not defined, this director is ignored. smart_user: X driver=smartuser; # special-case driver X X new_user="obscure!${lc:user}", X # do not match addresses which cannot be made into valid X # RFC822 local addresses without the use of double quotes. X well_formed_only, SHAR_EOF chmod 0640 directors || echo 'restore of directors failed' Wc_c="`wc -c < 'directors'`" test 599 -eq "$Wc_c" || echo 'directors: original size 599, current size' "$Wc_c" fi # ============= faxq ============== if test -f 'faxq' -a X"$1" != X"-c"; then echo 'x - skipping faxq (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'faxq' && #! /bin/sh # # faxq program # # like "lpq" or "mailq", show jobs waiting in the output queue # # SCCS: @(#)faxq.in 1.10 94/10/02 Copyright (C) 1994 Gert Doering # FAX_SPOOL=/usr/spool/NeXTFaxes FAX_SPOOL_OUT=/usr/spool/NeXTFaxes/outgoing X # # echo program that will accept escapes (bash: "echo -e", sun: /usr/5bin/echo) # echo="echo" X # # an awk that is not stone-old-brain-dead (that is, not oawk...) # AWK=awk X if cd $FAX_SPOOL_OUT then : else X $echo "cannot chdir to $FAX_SPOOL_OUT..." >&2 X exit 1 fi X jobs="*/JOB */JOB.locked" X for flag do X case $flag in X -v) verbose="true" ;; X -o|-a) jobs="*/JOB*" ;; X *) for i in *$flag* ; do X for j in $i/*.g3 ; do X name="/tmp/`basename $j .g3`.pbm" X g3topbm <$j >$name X chmod 666 $name X done X for j in /tmp/*.pbm ; do X size=`wc -c $j | sed 's/^ *\([0-9]*\).*/\1/'` X if [ $size -eq 7 ] ; then X rm $j X fi X done X wait X if [ ! -z "$verbose" ] ; then X echo opening /tmp/*.pbm X fi X open /tmp/*.pbm X ( sleep 15 ; rm /tmp/*.pbm )& X done ;; X esac done X jobs=`ls $jobs 2>/dev/null` [ -z "$jobs" ] && $echo "no jobs." for i in $jobs do X USER=""; PHONE=""; PAGES=""; MAILTO=""; VERBTO=""; INPUT="" X X if [ -z "$verbose" ] X then X eval `$AWK '$1=="user" { printf "USER=%s;", $2 } X $1=="phone" { printf "PHONE=%s;", $2 } X $1=="pages" { printf "PAGES=%d;", NF-1 }' $i` X $echo "$i: queued by $USER. $PAGES page(s) to $PHONE" X else X eval `$AWK '$1=="user" { printf "USER=%s;", $2 } X $1=="mail" { printf "MAILTO=\"%s\";", substr( $0, 6 ) } X $1=="phone" { printf "PHONE=%s;", $2 } X $1=="verbose_to" \ X { printf "VERBTO=\"%s\";", substr( $0, 12 ) } X $1=="input" { printf "INPUT=\"%s\";", substr( $0, 7 ) } X $1=="time" { printf "TIME=\"%s:%s\";", X substr( $0, 6, 2 ), substr( $0, 8,2 ) } X $1=="pages" { if ( NF==2 ) printf "PAGES=\"%s\";", $2 X else if ( NF==3 ) X printf "PAGES=\"%s %s\";", $2, $3 X else X printf "PAGES=\"%s ... %s\";", $2, $NF X }' $i` X $echo "$i:" X $echo "\tQueued by: $USER" X if [ -z "$VERBTO" ] X then X $echo "\t to: $PHONE" X else X $echo "\t to: $VERBTO ($PHONE)" X fi X test ! -z "$MAILTO" && \ X $echo "\t E-Mail: $MAILTO" X test ! -z "$INPUT" && \ X $echo "\t Input: $INPUT" X $echo "\t Pages: $PAGES" X $echo "\tSend time: $TIME" X sed -e '/Status/!d' -e 's/Status/ Status:/' $i X expr $i : ".*done$" >/dev/null || X $echo "\t Status: not sent yet" X fi done X SHAR_EOF chmod 0750 faxq || echo 'restore of faxq failed' Wc_c="`wc -c < 'faxq'`" test 2553 -eq "$Wc_c" || echo 'faxq: original size 2553, current size' "$Wc_c" fi # ============= faxrm ============== if test -f 'faxrm' -a X"$1" != X"-c"; then echo 'x - skipping faxrm (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'faxrm' && #!/bin/sh # # faxrm <job ids> # # remove faxes with job_id passed on the command line (if writable) # # There are still a lot rough edges - but it works, and should give you an # idea how to improve it # # SCCS: @(#)faxrm.in 1.5 94/08/24 Copyright (C) 1994 Gert Doering X FAX_SPOOL=/usr/spool/NeXTFaxes FAX_SPOOL_OUT=/usr/spool/NeXTFaxes/outgoing # # echo program that will accept escapes (bash: "echo -e", sun: /usr/5bin/echo) # echo="echo" X if [ ! -d $FAX_SPOOL_OUT ] then X echo "$FAX_SPOOL_OUT does not exist" >&2 X exit 1 fi X cd $FAX_SPOOL_OUT X interactive="" if [ "X$1" = "X-i" ] then X interactive="i" X shift fi X if [ $# -eq 0 ] then X echo "usage: faxrm [-i] file ..." X exit 1 fi X for jobid do X if [ ! -d "$jobid" ] X then X echo "$jobid: no such job found." >&2 X continue X fi # # check directory permissions # X if [ ! -w $jobid ] X then X echo "$jobid: permission denied, job not removed." >&2 X continue X fi # # old job? # X if [ -f $jobid/JOB.done ] X then X echo "$jobid: job already sent." >&2 X continue X fi X # # check for suspended jobs # X if [ -f $jobid/JOB.suspended ] X then X if [ ! -w $jobid/JOB.suspended ] X then X echo "$jobid: permission denied, job not removed." >&2 X continue X fi X rm -f $jobid/* X rmdir $jobid X continue X fi # # not an old / suspended job # X # # lock it # X if mv $jobid/JOB $jobid/JOB.locked 2>/dev/null X then X trap "mv -f $jobid/JOB.locked $jobid/JOB" 0 # # it's locked, now remove it # X if [ ! -w $jobid/JOB.locked ] X then X echo "$jobid: permission denied, job not removed." >&2 X continue X fi X rm -f $jobid/* X rmdir $jobid X else # # locking didn't work # X if [ -f $jobid/JOB.locked ] X then X echo "$jobid: job is locked, try again later." >&2 X continue X fi X if [ ! -f $jobid/JOB ] X then X echo "$jobid: no JOB file, job already clean." >&2 X rmdir $jobid X fi X fi # # end for (all jobs) done X trap "" 0 X SHAR_EOF chmod 0750 faxrm || echo 'restore of faxrm failed' Wc_c="`wc -c < 'faxrm'`" test 1943 -eq "$Wc_c" || echo 'faxrm: original size 1943, current size' "$Wc_c" fi # ============= faxrunq ============== if test -f 'faxrunq' -a X"$1" != X"-c"; then echo 'x - skipping faxrunq (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'faxrunq' && #! /bin/sh # # faxrunq # # look for outgoing fax jobs, send them via sendfax, if succesful, remove # them from the outgoing queue (and send a mail to the originator of the # job) # # There are still a lot rough edges - but it works, and should give you an # idea how to improve it # # SCCS: @(#)faxrunq.in 1.15 94/10/21 Copyright (C) 1994 Gert Doering #sleep 30 X BASH=/usr/local/bin/bash BASH_VERSION=1.12.1 CFLAGS="-O -Wall" EUID=0 EXINIT="set ai aw" HISTFILE=/User/mark/.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=/usr/spool/uucppublic HOSTTYPE=NeXT IFS=" " MAILCHECK=60 MAILPATH=/usr/spool/mail/root OLDPWD=/tmp OPTERR=1 OPTIND=1 PAGER=less PATH=/User/mark/bin:/usr/local/bin:/etc:/usr/etc:/usr/ucb:/bin:/usr/bin:/usr/local/bin:/usr/sybase/bin:/LocalApps:/NextApps:/NextAdmin:/NextDeveloper/Demos:/usr/games:. PPID=1367 PS1=root: PS2="> " PWD=/tmp SHELL=/usr/local/bin/bash SHLVL=1 TERM=vt100 TERMCAP="d0|vt100|vt100-am|vt100am|dec vt100: :do=^J:co#80:li#24:cl=\E[;H\E[2J:sf=2*\ED: :le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A: :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m: :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r: :rf=/usr/lib/tabset/vt100: :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>: :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H: :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn: :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:" TERM_PROGRAM=NeXT_Terminal TERM_PROGRAM_VERSION=66 UID=0 USER=root _=JOB X FAX_SPOOL=/usr/spool/NeXTFaxes FAX_TTY=cudfc FAX_SPOOL_OUT=/usr/spool/NeXTFaxes/outgoing FAX_SENDER="/usr/local/bin/sendfax -x 0 -l $FAX_TTY" FAX_CLOSE="stty 0" FAX_ACCT=$FAX_SPOOL/acct.log X MAILER="/usr/lib/sendmail" X # # echo program that will accept escapes (bash: "echo -e", sun: /usr/5bin/echo) # echo="echo" X # # awk program that is not stone-old-brain-dead (that is, not oawk...) # AWK=awk X # # command line arguments # usage="usage: $0 [-q]" X while : do X case "$1" in # quiet operation X -q) exec >/dev/null ; shift ;; X -*) $echo "$0: unknown option: $1" >&2 X $echo "$usage" >&2 X exit 1 X ;; X *) break X esac done X if [ $# -gt 0 ] ; then X $echo "$usage" >&2 X exit 1 fi X # # go to fax spool directory, process all JOB files # X cd $FAX_SPOOL_OUT || exit 1 X jobs=`ls */JOB 2>/dev/null` for job in $jobs do X cd $FAX_SPOOL_OUT/`dirname $job` X $echo "processing $job..." # # lock JOB file (by 'mv'ing it to JOB.locked) # X # make sure it will get moved back in case the shell aborts X trap "mv -f JOB.locked JOB 2>/dev/null" 0 X trap "mv -f JOB.locked JOB 2>/dev/null ; exit 20" 1 2 3 15 X X mv -f JOB JOB.locked 2>/dev/null X if [ $? -ne 0 ] ; then X $echo "already locked" X trap 0 1 2 3 15 X continue X fi # # get user to notify (->$MAIL_TO), phone number (->$PHONE) and # earliest send time (->$TIME) # X eval `$AWK 'BEGIN { user=""; mail=""; verbto=""; time=""; } X $1=="user" { user=$2 } X $1=="mail" { mail=substr( $0, 6) } X $1=="phone" { printf "PHONE=%s;", $2 } X $1=="time" { time=$2 } X $1=="verbose_to" { verbto=substr($0,12) } X END { if ( mail != "" ) printf "MAIL_TO=\"%s\";", mail X else printf "MAIL_TO=\"%s\";", user X printf "TIME=\"%s\";", time X printf "VERBOSE_TO=\"%s\"", verbto }' JOB.locked` X # # check whether send time is reached # X if [ ! -z "$TIME" ] ; then X if [ `date +10/21/94M` -lt $TIME ] ; then X echo "...send time not reached, postponing job" X mv JOB.locked JOB X continue X fi X fi X # # construct command line to execute # X command=`$AWK 'BEGIN { phone="-"; flags=""; pages="" } X $1=="phone" { phone=$2 } X $1=="header" { flags=flags" -h "$2 } X $1=="poll" { flags=flags" -p" } X $1=="normal_res" { flags=flags" -n" } X $1=="pages" { for( i=2; i<=NF; i++) pages=pages$i" " } X END { printf "'"$FAX_SENDER"' -v%s %s %s", \ X flags, phone, pages }' JOB.locked` X # # execute faxsend command # X $echo "$command" X eval $command # # handle return values # X status=$? X $FAX_CLOSE > /dev/$FAX_TTY X if [ $status -ne 0 ] ; then X $echo "command exited with status $status" X fi X # # string to include in subject line # X if [ -z "$VERBOSE_TO" ] ; then X subject="your fax to $PHONE" X else X subject="your fax to $VERBOSE_TO ($PHONE)" X fi X # # evaluate return codes, if success, remove fax job from queue # X if [ $status -eq 0 ] ; then X # transmission successful X $echo "Status "`date`" successfully sent" >>JOB.locked X ( $echo "To: $MAIL_TO" X $echo "Subject: $subject" X $echo "From: root (Fax Subsystem)\n" X $echo "Your fax has been sent successfully at: \c" X date X $echo "\n\nJob / Log file:" X cat JOB.locked X tries=`grep Status JOB.locked | sed -e '1d' | wc -l` X $echo "\nSending succeeded after" $tries "unsuccessful tries." X ) | X $MAILER "$MAIL_TO" X X # update accounting log X $echo "$MAIL_TO $PHONE "`date`" success" >>$FAX_ACCT X X # job is done -> remove it from the queue X mv JOB.locked JOB.done X X # if you want to delete the job directory that has just been X # processed, uncomment the following two lines. X # X # cd $FAX_SPOOL_OUT X # rm -rf `dirname $job` X X elif [ $status -lt 10 ] ; then X # error before starting to transmit (try again) X why="unknown" ; case $status in X 1) why="errors in command line" ;; X 2) why="cannot open fax device (locked?)" ;; X 3) why="modem initialization error" ;; X 4) why="dial failed - BUSY" ;; X esac X $echo "Status "`date`" failed, exit($status): $why" >>JOB.locked X else X # error while transmitting, considered fatal X why="unknown" ; case $status in X 10) why="dial failed - NO CARRIER" ;; X 11) why="protocol failure, waiting for XON" ;; X 12) why="protocol failure sending page" ;; X esac X $echo "Status "`date`" FATAL FAILURE, exit($status): $why" >>JOB.locked X X # update accounting log X $echo "$MAIL_TO $PHONE "`date`" fail: $why" >>$FAX_ACCT X X # if failed five times, supend job X if [ `grep "FATAL FAILURE" JOB.locked | wc -l` -gt 4 ] ; then X $echo "Status "`date`" job suspended: too many FATAL errors" >>JOB.locked X ( $echo "To: $MAIL_TO" X $echo "Subject: $subject failed" X $echo "From: root (Fax Subsystem)\n" X $echo "It was not possible to send your fax to $PHONE!\n" X $echo "The fax job is suspended, you can requeue it with the command:" X $echo " cd $FAX_SPOOL_OUT/"`dirname $job` X $echo " mv JOB.suspended JOB\n" X $echo "log file follows:" X cat JOB.locked ) | X $MAILER "$MAIL_TO" X # X # suspend job (but do not delete it) X # X mv JOB.locked JOB.suspended X fi X fi # # unlock job (ignore errors, the JOB.locked file may have been moved # to JOB.suspended or JOB.done) # X mv -f JOB.locked JOB 2>/dev/null done X trap 0 1 2 3 15 X # # touch the time stamp, to make faxspool happy # date >$FAX_SPOOL_OUT/.last_run SHAR_EOF chmod 0750 faxrunq || echo 'restore of faxrunq failed' Wc_c="`wc -c < 'faxrunq'`" test 6835 -eq "$Wc_c" || echo 'faxrunq: original size 6835, current size' "$Wc_c" fi # ============= faxspool ============== if test -f 'faxspool' -a X"$1" != X"-c"; then echo 'x - skipping faxspool (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'faxspool' && #!/bin/sh # # faxspool - sample script how to spool fax input data to a spool # directory, creating jobs to be run by faxrunq # # sccsid: @(#)faxspool.in 2.11 94/11/02 (c) Gert Doering # # syntax: faxspool [flags] <phone-number> <job(s)> # # <job(s)> may be any number of files. The file type has to be guessed - # for now, the following file extensions are recognized: # # .ps -> PostScript # .t -> plain ascii text # .dvi -> TeX device independent output file (use dvips, then like .ps) # .pbm -> PortableBitMap (use pbmtog3) # .pgm -> PortableGrayMap (use pgmtopbm | pbmtog3) # .ppm -> PortablePixMap (use ppmtopgm | pgmtopbm | pbmtog3) # .g3 -> raw G3 fax data # .lj -> HP Laserjet PCL4 (use hp2pbm) # .xwd -> xwindow-dump (by xwd program, use xwdtopnm) # .gif -> Graphics Interchange Format (use gif2oppm | ppmtopgm | pgmtopbm # | pbmtog3) # .pcx -> (use pcxtoppm | ppmtopgm | pgmtopbm | pbmtog3) # .tif # .tiff # # ChangeLog: # 3.6.93: use dvips instead of dvialw now (GD) # 15.9.93: use g3cat to concatenate header and page (GD) # 3.10.93: use "hp2hig3" for hp-pcl4-files (cl) # 19.10.93: phone directories (caz) X PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin FAX_SPOOL=/usr/spool/NeXTFaxes FAX_SPOOL_OUT=/usr/spool/NeXTFaxes/outgoing FAX_SEQ=$FAX_SPOOL_OUT/.Sequence X # fax phone directories - format: <alias> <fax phone number> GLOBAL_PHONE_DIR=/usr/local/lib/mgetty+sendfax/aliases PRIVATE_PHONE_DIR=$HOME/.faxnrs X # permissions - see the "crontab" or "faxspool" manual page for a # description how the files have to be set up # FAX_ALLOW=/usr/local/lib/mgetty+sendfax/fax.allow FAX_DENY=/usr/local/lib/mgetty+sendfax/fax.deny X # you have to adapt this to your local system! # # this is the file with the fax header - @T@ / @P@ / @M@ / @U@ stand for # telephone / page number / maximum page number / user name, respectively FAX_HEADER=/usr/local/lib/mgetty+sendfax/faxheader # # for creating the fax page header, pbmtext is used, and this specifies # the font file to use (fine/normal res.) PBMFONT_HEADER_F=/usr/local/lib/mgetty+sendfax/cour25.pbm PBMFONT_HEADER_N=/usr/local/lib/mgetty+sendfax/cour25n.pbm # # if you want to use pbmtext for converting ASCII texts, use these fonts: PBMFONT_BODY_F=/usr/local/lib/mgetty+sendfax/cour25.pbm PBMFONT_BODY_N=/usr/local/lib/mgetty+sendfax/cour25n.pbm X # # program that will generate fax coverpage (see "man coverpg") # MAKE_COVER_PG=/usr/local/lib/mgetty+sendfax/make.coverpg X # # local fax number # FAX_STATION_ID="1 403 437 0494" X # # echo program that will accept escapes (bash: "echo -e", sun: /usr/5bin/echo) # echo="echo" X AWK=awk X #### end of configuration section X # #### shell functions for conversions # X # naming scheme: fs_cvt_$type() # converts a $type file ($1) to g3 file(s), named $2.$i, where "i" # should be the page number. Can be omitted if $1 has only one page. # $3 can be a flag argument, "-n" for normal resolution X # # convert portable bitmap (not scaled) - see pbm(5), pbmtog3(1) # fs_cvt_pbm() { X pbmtog3 $1 >$2.1 } X # # convert portable greymap (not scaled) - see pgm(5) # fs_cvt_pgm() { X pgmtopbm $1 | pbmtog3 >$2.1 } X # # convert portable pixmap (no scaling) - see ppm(5) # fs_cvt_ppm() { X ppmtopgm $1 | pgmtopbm | pbmtog3 >$2.1 } X # # convert PCX # fs_cvt_pcx() { X pcxtoppm $1 | ppmtopgm | pgmtopbm | pbmtog3 >$2.1 } X # # "convert" G3 file # actually, it's just copied, but I want the interface to be the same # later on, one could do page resizing, resolution changing, ... here # fs_cvt_g3() { X g3cat $1 >$2.1 } X # # convert a X11 xwd file - scaled to fill the whole page width # since we do not know whether it's colour or grey or what, we have # to do *all* the conversions *all* the time - ugly. FIXME. # X fs_cvt_xwd() { X REDUCE="cat" X test X$3 = X-n && REDUCE="pnmscale -yscale 0.5" X X xwdtopnm $1 |\ X pnmscale -xysize 1728 2000 |\ X $REDUCE |\ X ppmtopgm |\ X pgmtopbm |\ X pbmtog3 >$2.1 } X # # convert a CompuServe GIF file, also properly scaled # problem: a GIF file can contain multiple images - FIXME # X fs_cvt_gif() { X REDUCE="cat" X test X$3 = X-n && REDUCE="pnmscale -yscale 0.5" X X giftoppm $1 |\ X pnmscale -xysize 1728 2000 |\ X $REDUCE |\ X ppmtopgm |\ X pgmtopbm |\ X pbmtog3 >$2.1 } X # # convert TIFF file # problem1: conversion always via ppm, pgm # problem2: multipage TIFFs # fs_cvt_tif() { X REDUCE="cat" X test X$3 = X-n && REDUCE="pnmscale -yscale 0.5" X X tifftopnm $1 |\ X pnmscale -xysize 1728 2000 |\ X $REDUCE |\ X ppmtopgm |\ X pgmtopbm |\ X pbmtog3 >$2.1 } X # # convert HP laserjet input files # needs Chris Lewis' hp2pbm package (ftp.uunet.ca) # fs_cvt_lj() { X if [ X$3 = X-n ] X then X hp2log3 -r$2 <$1 X else X hp2hig3 -r$2 <$1 X fi } X # # convert postscript data # needs GNU GhostScript installed, with the "dfaxhigh" driver compiled in # (for normal resolution, the "dfaxlow" driver is used) # fs_cvt_ps() { X driver=dfaxhigh X test X$3 = X-n && driver=dfaxlow X X cat $1 | gs -sDEVICE=$driver -sOutputFile=$2%02d -dNOPAUSE -q -dSAFER - } X # # convert ASCII text files # go via GhostScript and gslp.ps # (could also used hp2hig3 or nenscript -> gs or pbmtext) # fs_cvt_ascii() { ##### # via Ghostscript: X # driver=dfaxhigh # test X$3 = X-n && driver=dfaxlow # # gs -sDEVICE=$driver -sOutputFile=$2%02d -dNOPAUSE \ # -dSAFER -- gslp.ps $1 X ##### # via hp2pbm: # (convert "LF" to "CR+LF" via awk) X # pgm=hp2hig3 # test X$3 = X-n && pgm=hp2log3 # # $AWK '{ printf "%s\r\n", $0 }' $1 | $pgm -r$2 X ##### # via pbmtext (not really recommended): # use the "pgx" program in contrib/ to split pages X ## Select appropriate font X font=$PBMFONT_BODY_F X test X$3 = X-n && font=$PBMFONT_BODY_N # Determine how many pages text will be split in to. Uses default pagelen. X nr=`pgx -80 < $1` # Convert each page into a separate G3 file. Uses default pagelen (60). X page=1 X while [ "$page" -le "$nr" ]; do X pgx -80 $page < $1 | pbmtext -font $font | pbmtog3 >$2.$page X page=`expr $page + 1` X done } X # # convert TeX DVI files # needs GhostScript and dvips installed. # alternatively, one could use dvialw. # fs_cvt_dvi() { X if [ X$3 = X-n ] X then X driver=dfaxlow ; dvipscfg="-P dfaxlow" X else X driver=dfaxhigh ; dvipscfg="-P dfaxhigh" X fi X X driver=dfaxhigh X test X$3 = X-n && driver=dfaxlow X # if you have the dfaxlow/dfaxhigh dvips modes configured, call # dvips as "dvips $dvipscfg $1 ..." instead. X X dvips $1 -o \ X !"gs -sDEVICE=$driver -sOutputFile=$2%02d -dNOPAUSE -dSAFER -q -" # # dvialw <$file | # gs -sDEVICE=$driver -sOutputFile=$target%02d -dNOPAUSE \ # -dSAFER - X } X # #### "main" function # X # # setup defaults / get values # X # user name (for authentification) ########## X user=`logname 2>/dev/null` if test -z "$user" ; then X id=`id` X user=`expr "$id" : "[^( ]*(\([^)]*\)"` fi test -z "$user" && user=$LOGNAME test -z "$user" && user=$USER X if [ -z "$user" ] then X $echo "cannot determine user id. fix program." >&2 X exit 1 fi X # email (for return mail) ########## X test -z "$USER" && USER=$LOGNAME test -z "$USER" && USER=$user X # everything else is initialized empty ########## poll_req="" verbose_to="" normal_res="" TIME="" X # # get command line arguments (overriding some of the values above) ########## # usage="Usage: $0 [options] [faxphone] [page data] Options: \t-p\t\tpoll request \t-n\t\tnormal resolution \t-C <pgm>\tset cover page program (\"-\" for none) \t-D <dest>\tset verbose destination name \t-F <full name>\tset full name of sender \t-h <file>\ttext file for page header \t-f <email>\tset address for status mail \t-t <hh:mm>\tset earliest possible send time \t-q\t\tshut up" X while : do X case "$1" in # enable polling X -p) poll_req=true ; shift X ;; # use normal resolution (as opposed to fine resolution) X -n) normal_res="-n" ; shift X ;; # set cover page program to use X -C) case "$2" in X '') $echo "$usage" >&2 ; exit 2 ;; X "-") MAKE_COVER_PG="" ;; X /*) MAKE_COVER_PG="$2" ;; X *) MAKE_COVER_PG=`pwd`/"$2" ;; X esac X shift ; shift X ;; # set verbose destination address X -D) case "$2" in X '') $echo "$usage" >&2 ; exit 2 ;; X esac X verbose_to="$2" X shift ; shift X ;; # set verbose origination address ("fullname") X -F) case "$2" in X '') $echo "$usage" >&2 ; exit 2 ;; X esac X FULLNAME="$2" X shift ; shift X ;; # set page header text file X -h) case "$2" in X '') $echo "$usage" >&2 ; exit 2 ;; X /*) FAX_HEADER="$2" ;; X *) FAX_HEADER=`pwd`/"$2" ;; X esac X if [ ! -f "$FAX_HEADER" ] ; then X echo "$0: no such file: '$2'" >&2 X exit 2; X fi X shift ; shift X ;; # set e-mail return address X -f) case "$2" in X '') $echo "$usage" >&2 ; exit 2 ;; X esac X USER="$2" X shift ; shift X ;; # set user name for authorization purposes (only allowed for ``trusted'' users X -u) case "$2" in X '') $echo "$usage" >&2 ; exit 2 ;; X esac X if [ "$user" = "root" -o "$user" = "fax" -o \ X "$user" = "lp" -o "$user" = "daemon" ] X then X user="$2" X else X $echo "not authorized to use \`\`-u $2'' switch." >&2 X exit 3 X fi X shift ; shift X ;; # set first time to send fax X -t) if expr "$2" : "[0-2][0-9]:[0-9][0-9]$" >/dev/null X then X h=`expr "$2" : "\(..\)"` X m=`expr "$2" : "..:\(..\)"` X if [ "$h" -gt 23 -o "$m" -gt 60 ] X then X $echo "Invalid time specified: $h:$m" >&2; exit 2 X fi X TIME="$h$m" X else X $echo "Time must be in <hh:mm> format." >&2; exit 2 X fi X shift ; shift X ;; # shut up X -q) exec >/dev/null ; shift X ;; # unknown options X -*) $echo "unknown option: $1" >&2 X $echo "$usage" >&2 X exit 1 X ;; # anything else: leave loop X *) break X esac done X # # if not yet set, get full name from /etc/passwd # if [ -z "$FULLNAME" ] then X FULLNAME=`grep "^$user:" /etc/passwd | cut -f5 -d:` fi X # # validate user # if [ -r $FAX_ALLOW ] then X if cut -d" " -f1 $FAX_ALLOW | grep "^$user$" >/dev/null X then : X else X $echo "You ($user) are not allowed to use the fax service. Sorry." >&2 X exit 1 X fi elif [ -r $FAX_DENY ] then X if grep "^$user$" $FAX_DENY >/dev/null X then X $echo "You ($user) are not allowed to use the fax service. Sorry." >&2 X exit 2 X fi elif [ "$user" != "root" ] then X $echo "Neither $FAX_ALLOW nor $FAX_DENY exist," >&2 X $echo "so only root may use the fax service. Sorry." >&2 X exit 2 fi X # # check syntax # X if [ $# -eq 0 ] ; then X $echo "$0: phone number missing" >&2 X $echo "$usage" >&2 X exit 3 fi X phone=$1 ; shift if expr "$phone" : "[-0-9TtPpW,;]*$" >/dev/null ; then : else X alias="$phone" X phone="" X awkpgm='$1 == "'"$alias"'" { printf "phone=\"%s\"; vto=\"", $2; X for ( i=3; i<=NF-1; i++ ) printf "%s ",$i; X printf "%s\"\n", $i; exit }' X if [ -r $PRIVATE_PHONE_DIR ] X then X eval `$AWK "$awkpgm" $PRIVATE_PHONE_DIR` X fi X if [ -z "$phone" -a -r $GLOBAL_PHONE_DIR ] X then X eval `$AWK "$awkpgm" $GLOBAL_PHONE_DIR` X fi X if [ -z "$phone" ] X then X $echo "$0:\nNon-numeric characters in phone number and" >&2 X $echo "'$alias' not found in fax directories\n$usage" >&2 X exit 4 X fi X X [ -z "$verbose_to" ] && verbose_to="$vto" X [ -z "$verbose_to" ] && verbose_to="$alias" X X $echo "sending fax to '$verbose_to' using phone number '$phone'..." fi X # # check, if all the files exist & are readable # X for file do X if [ ! -r $file -a x$file != x- ] X then X $echo "$0: cannot open '$file'!" >&2 ; exit 5 X fi done X # # if no file specified on command line, use stdin # (only if not polling and no cover page) # X if [ $# -eq 0 -a -z "$poll_req" -a -z "$MAKE_COVER_PG" ] then X # if stdin is connected to a tty, notify user X # X tty -s && \ X $echo "spooling text from standard input. End typing with ^D" >&2 X set -- - fi X X # # check spool directory permissions # X if [ ! -d $FAX_SPOOL_OUT ] ; then X if mkdir $FAX_SPOOL_OUT ; then : X else X $echo "cannot create $FAX_SPOOL_OUT" >&2 ; exit 6 X fi X chmod 1777 $FAX_SPOOL_OUT X chgrp 0 $FAX_SPOOL_OUT 2>/dev/null X chown 0 $FAX_SPOOL_OUT 2>/dev/null fi X if [ ! -w $FAX_SPOOL_OUT ] ; then X $echo "cannot write to $FAX_SPOOL_OUT!" >&2 ; exit 6 ; fi X if [ ! -f $FAX_SEQ ] ; then $echo 000000 > $FAX_SEQ ; chmod 666 $FAX_SEQ ; fi X if [ -f $FAX_SEQ -a ! -w $FAX_SEQ ] ; then X $echo "cannot write to $FAX_SEQ!" >&2 ; exit 6 ; fi X # # get unique directory name (well, at least: try to) # FIXME: one should worry about concurrent processes here! This is a clear # race condition! # X new_seq=`$AWK '{ printf "%06d", $1 + 1 >"'$FAX_SEQ'"; X printf "%06d", $1 + 1 }' $FAX_SEQ ` X spooldir=$FAX_SPOOL_OUT/F$new_seq.$$ X if [ -d $spooldir ] ; then X $echo "Ummm, strange - $spooldir exists (FIX THE SOURCE!)" >&2 ; exit 6 fi X umask 022 if mkdir $spooldir ; then : else $echo "Cannot make $spooldir" >&2 ; exit 6 ; fi X # # now: spool all the files to $spooldir # $echo "spooling to $spooldir..." X # # remember input files (to be put in JOB file) # input_data="$*" X # # process all input files # for file do # # if filename is "-", use stdin # X if [ x$file = x- ] X then X $echo "spooling $file (stdin)..." X trap "rm /tmp/faxsp.$$" 0 X cat - >/tmp/faxsp.$$ X file=/tmp/faxsp.$$ X else X $echo "spooling $file..." X fi X X format="" X base=`basename $file` X # # try to determine file type by extention (won't work for print spooler!) # X case $file in X *.g3) format="g3" ; base=`basename $file .g3` ;; X *.ps) format="ps" ; base=`basename $file .ps` ;; X *alw) format="ps" ; base=`basename $file alw` ;; X *.dvi) format="dvi"; base=`basename $file .dvi`;; X *.pbm) format="pbm"; base=`basename $file .pbm`;; X *.pgm) format="pgm"; base=`basename $file .pgm`;; X *.ppm) format="ppm"; base=`basename $file .ppm`;; X *.t) format="ascii"; base=`basename $file .t`;; X *.txt) format="ascii"; base=`basename $file .txt`;; X *.lj) format="lj"; base=`basename $file .lj`;; X *.xwd) format="xwd"; base=`basename $file .xwd`;; X *.gif) format="gif"; base=`basename $file .gif`;; X *.tif) format="tif"; base=`basename $file .tif`;; X *.tiff) format="tif"; base=`basename $file .tiff`;; X *.pcx) format="pcx"; base=`basename $file .pcx`;; X esac X # if we don't know the file type now, let's try something more esoteric X X if [ -z "$format" ] X then # # ask "file" # (extend /etc/magic if necessary!) # X case "`file $file`" in X *"English text"*) format="ascii" ;; X *"ascii text"*) format="ascii" ;; X *"News text"*) format="ascii" ;; X *"commands text"*) format="ascii" ;; X *"c program text"*) format="ascii" ;; X *"script text"*) format="ascii" ;; X *PBM*) format="pbm" ;; X *PGM*) format="pgm" ;; X *PPM*) format="ppm" ;; X *GIF*) format="gif" ;; X *Digifax*) format="g3" ;; X *DVI*) format="dvi" ;; X *postscript*) format="ps" ;; X *PostScript*) format="ps" ;; X *TIF*) format="tif" ;; X esac X # if file told us, it's an ascii text, or if we still don't know, try # looking at the first few bytes (do not use "head", it may break on # binary data) X X if [ -z "$format" -o "$format" = "ascii" ] X then X case "`dd if=$file bs=1 count=4 2>/dev/null`" in X %!*) format="ps" ;; X P1*|P4*) format="pbm" ;; X P2*|P5*) format="pgm" ;; X P3*|P6*) format="ppm" ;; X GIF*) format="gif" ;; # hmmm. X II*) format="tif" ;; X MM*) format="tif" ;; X esac X fi # # detect dvi by directly looking at bytes 16...25 # X if [ -z "$format" ] X then X if [ "`dd if=$file bs=1 skip=16 count=11 2>/dev/null`" \ X = "TeX output " ] X then X format="dvi" X fi X fi X fi X # # ok, now we should *really* know what the file type is. # X if [ -z "$format" ] ; then X $echo "$file: cannot determine file format (extend source)" >&2 # # if stdin is a tty, ask the user for the file type # X if tty -s X then X $echo "$file: please enter type: " >&2 X read format X else X exit 7 X fi X fi X X $echo "$file is format: $format" X X target=$spooldir/$base X X if X case $format in X ps | ascii | pbm | pgm | ppm |\ X g3 | dvi | lj | xwd | gif | tif |\ X pcx ) X fs_cvt_$format $file $target $normal_res X ;; X *) $echo "$0: unknown format: $format!" >&2 ; exit 8 ;; X esac X then : ; else X $echo "\n$0: error spooling \"$file\" - aborting!" >&2 ; exit 8 X fi X done X # # OK, all files are done now. # # Now let's create the work file # X job=$spooldir/JOB X # # conversion complete. Post-process G3 files # X pages=`ls -rt $spooldir` # # get list / number of pages # cd $spooldir X nr=0 maxnr=`ls | wc -l | tr -d " "` X # # generate cover page # # dispose arguments (-C "pgm args") PGM=`expr "$MAKE_COVER_PG" : "\([^ ]*\)"` # if [ ! -z "$PGM" ] X then X if [ -x "$PGM" ] X then X $echo "\nGenerating cover page..." X export normal_res X X maxnr=`expr $maxnr + 1` X $MAKE_COVER_PG $maxnr "$FAX_STATION_ID" "$FULLNAME" \ X "$phone" "$verbose_to" "`date +%D`" "`date +%T`" >cover.g3 X if [ -s cover.g3 ] X then X pages="cover.g3 $pages" X else X echo "generating cover page failed!" >&2 X maxnr=`expr $maxnr - 1` X fi X fi fi X # # concatenate header with pages # $echo "\nPutting Header lines on top of pages..." X hdrfont=$PBMFONT_HEADER_F test -z "$normal_res" || hdrfont=$PBMFONT_HEADER_N X finalpg="" for f in $pages do X nr=`expr $nr + 1` X X cat $FAX_HEADER | sed -e "s;@T@;$phone;g" -e "s;@P@;$nr;g" \ X -e "s;@M@;$maxnr;g" -e "s;@U@;$USER;g" \ X -e "s;@N@;$FULLNAME;g" \ X -e "s;@D@;$verbose_to;g" \ X -e "s;@ID@;$FAX_STATION_ID;g" \ X -e "s;@DATE@;`date`;g" \ X | pbmtext -font $hdrfont | pbmtog3 \ X | g3cat - $f > f$nr.g3 \ X && rm $f X finalpg="$finalpg f$nr.g3" done X if [ -z "$finalpg" -a -z "$poll_req" ] then X $echo "\nnothing to do (no cover page, no data)." >&2 X cd $FAX_SPOOL_OUT X rmdir $spooldir X exit 52 fi X $echo "phone $phone" >$job.q $echo "user $user" >>$job.q [ "$user" != "$USER" ] && X $echo "mail $USER" >>$job.q X $echo "input $input_data" >>$job.q $echo "pages " $finalpg >>$job.q X [ -z "$verbose_to" ] || \ X $echo "verbose_to $verbose_to" >>$job.q X [ -z "$poll_req" ] || \ X $echo "poll" >>$job.q X [ -z "$normal_res" ] || \ X $echo "normal_res" >>$job.q X [ -z "$TIME" ] || \ X $echo "time $TIME" >>$job.q X mv $job.q $job X if [ -z "`find $FAX_SPOOL_OUT/.last_run -ctime -1 -print 2>/dev/null`" ] then X cat <<HERE X Fax queued successfully. X WARNING: faxrunq hasn't been run in the last 24 hours. X Faxes only get sent out when faxrunq runs! Contact Fax administrator. X HERE else X $echo "\nFax queued successfully. Will be sent at next \`\`faxrunq'' run.\n" fi SHAR_EOF chmod 0750 faxspool || echo 'restore of faxspool failed' Wc_c="`wc -c < 'faxspool'`" test 18800 -eq "$Wc_c" || echo 'faxspool: original size 18800, current size' "$Wc_c" fi # ============= mgetty.patch ============== if test -f 'mgetty.patch' -a X"$1" != X"-c"; then echo 'x - skipping mgetty.patch (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'mgetty.patch' && *** mgetty-0.22/Makefile Sun Nov 13 05:56:16 1994 --- mgetty-0.22.patched/Makefile Fri Nov 25 14:13:21 1994 *************** *** 94,100 **** X # USTAT - ustat(), no statfs etc. X # X #CFLAGS=-Wall -O2 -pipe -DSECUREWARE -DUSE_POLL ! CFLAGS=-O2 -Wall -pipe X #CFLAGS=-O -DSVR4 X #CFLAGS=-O -DSVR4 -DSVR42 X #CFLAGS=-O -DUSE_POLL --- 94,100 ---- X # USTAT - ustat(), no statfs etc. X # X #CFLAGS=-Wall -O2 -pipe -DSECUREWARE -DUSE_POLL ! # CFLAGS=-O2 -Wall -pipe X #CFLAGS=-O -DSVR4 X #CFLAGS=-O -DSVR4 -DSVR42 X #CFLAGS=-O -DUSE_POLL *************** *** 103,109 **** X # networking library and gcc. X #CFLAGS=-D_3B1_ -D_NOSTDLIB_H -DUSE_READ -DSHORT_FILENAMES X #CFLAGS=-std -DPOSIX_TERMIOS -O2 -D_BSD -DBSD # for OSF/1 (w/ /bin/cc) ! #CFLAGS=-posix -DBSD # for NeXT X X # X # LDFLAGS specify flags to pass to the linker. You could specify --- 103,109 ---- X # networking library and gcc. X #CFLAGS=-D_3B1_ -D_NOSTDLIB_H -DUSE_READ -DSHORT_FILENAMES X #CFLAGS=-std -DPOSIX_TERMIOS -O2 -D_BSD -DBSD # for OSF/1 (w/ /bin/cc) ! CFLAGS=-O -posix -D_POSIX_SOURCE -DBSD # for NeXT X X # X # LDFLAGS specify flags to pass to the linker. You could specify *************** *** 127,138 **** X # For FreeBSD, add "-lutil" if the linker complains about X # "utmp.o: unresolved symbod _login" X # ! LDFLAGS= X #LDFLAGS=-lprot -lsocket X #LDFLAGS=-s -shlib X #LDFLAGS=-lsocket X #LDFLAGS=-lbsd # OSF/1 ! #LDFLAGS=-posix # NeXT X # X # X # the following things are mainly used for ``make install'' --- 127,138 ---- X # For FreeBSD, add "-lutil" if the linker complains about X # "utmp.o: unresolved symbod _login" X # ! #LDFLAGS= X #LDFLAGS=-lprot -lsocket X #LDFLAGS=-s -shlib X #LDFLAGS=-lsocket X #LDFLAGS=-lbsd # OSF/1 ! LDFLAGS=-s -posix # NeXT X # X # X # the following things are mainly used for ``make install'' *************** *** 168,174 **** X # X # the fax spool directory X # ! FAX_SPOOL=$(spool)/fax X FAX_SPOOL_IN=$(FAX_SPOOL)/incoming X FAX_SPOOL_OUT=$(FAX_SPOOL)/outgoing X # --- 168,174 ---- X # X # the fax spool directory X # ! FAX_SPOOL=$(spool)/NeXTFaxes X FAX_SPOOL_IN=$(FAX_SPOOL)/incoming X FAX_SPOOL_OUT=$(FAX_SPOOL)/outgoing X # *** mgetty-0.22/locks.c Sun Aug 21 08:48:30 1994 --- mgetty-0.22.patched/locks.c Sat Nov 26 14:34:02 1994 *************** *** 173,180 **** --- 173,210 ---- X * X * if lockfile found, return PID of process holding it, 0 otherwise X */ + #ifdef NeXT + int checklock _P1( (device), char * device) + { + char name[8] ; + char *names[] = { + "ttydf%c", "ttyd%c", "ttyf%c", "tty%c", + "cudf%c", "cuf%c", "cud%c", "cu%c", (char *)0 + } ; + register int i ; + char c ; + char ** cp ; X + /* + * Try each type of lock name in case we are using another. + */ + if ((i = do_checklock (device)) != NO_LOCK) + return (i) ; + for (cp = names; *cp; ++cp) + if (sscanf (device, *cp, &c) == 1) + break ; + for (cp = names; *cp; ++cp) { + (void)sprintf (name, *cp, c) ; + if ((i = do_checklock (name)) != NO_LOCK) + return (i) ; + } + return (NO_LOCK) ; + } + + int do_checklock _P1( (device), char * device) + #else X int checklock _P1( (device), char * device) + #endif X { X int pid; X struct stat st; *** mgetty-0.22/login.c Fri Nov 4 15:39:54 1994 --- mgetty-0.22.patched/login.c Sat Nov 26 00:30:01 1994 *************** *** 23,28 **** --- 23,32 ---- X #include "policy.h" X #include "mg_utmp.h" X + #ifdef NeXT + # include <sys/ioctl.h> + #endif + X #ifdef SECUREWARE X extern int setluid(); X #endif *************** *** 284,289 **** --- 288,301 ---- X Device, getpid(), CallerId, Connect, CallName, X cmd, user ); X + # ifdef NeXT + { struct sgttyb t ; + + (void)ioctl (0, TIOCGETP, &t) ; + t.sg_flags |= EVENP | ODDP ; + (void)ioctl (0, TIOCSETN, &t) ; + } + # endif X /* execute login */ X execv( cmd, argv ); X *** mgetty-0.22/mgetty.c Wed Nov 2 11:21:44 1994 --- mgetty-0.22.patched/mgetty.c Wed Nov 23 08:03:24 1994 *************** *** 16,21 **** --- 16,22 ---- X #include <pwd.h> X #include <sys/types.h> X #include <sys/times.h> + #include <sys/fcntl.h> X X #include <sys/stat.h> X #include <signal.h> *** mgetty-0.22/sendfax.c Tue Oct 4 03:35:21 1994 --- mgetty-0.22.patched/sendfax.c Sun Dec 18 10:48:30 1994 *************** *** 51,56 **** --- 51,57 ---- X char * fax_tty, boolean use_stdin ) X { X char device[MAXPATH]; + extern char *ttyname() ; X int fd; X X if ( use_stdin ) /* fax modem on stdin */ *** mgetty-0.22/tio.c Sat Oct 22 09:27:41 1994 --- mgetty-0.22.patched/tio.c Sat Nov 26 00:21:44 1994 *************** *** 9,15 **** X #include <unistd.h> X #include <sys/types.h> X ! #ifdef _AIX X #include <sys/ioctl.h> X #endif X --- 9,15 ---- X #include <unistd.h> X #include <sys/types.h> X ! #if (defined(_AIX) || defined(NeXT)) X #include <sys/ioctl.h> X #endif X *************** *** 32,38 **** X # include <sys/modem.h> X #endif X ! #if defined( M_UNIX ) && defined( MAM_BUG ) X #include <fcntl.h> X #endif X --- 32,38 ---- X # include <sys/modem.h> X #endif X ! #if (defined( M_UNIX ) && defined( MAM_BUG )) || defined(NeXT) X #include <fcntl.h> X #endif X *************** *** 152,158 **** X X int tio_set _P2( (fd, t), int fd, TIO * t) /*!! FIXME: flags, wait */ X { ! #ifdef sunos4 X int modem_lines; X #endif X #ifdef SYSV_TERMIO --- 152,158 ---- X X int tio_set _P2( (fd, t), int fd, TIO * t) /*!! FIXME: flags, wait */ X { ! #if (defined(sunos4) || defined(NeXT)) X int modem_lines; X #endif X #ifdef SYSV_TERMIO *************** *** 178,183 **** --- 178,202 ---- X ioctl(STDIN, TIOCMSET, &modem_lines); X } X #endif /* sunos4 */ + #ifdef NeXT + /* + * Search out device types, if it is flow style device then we are on + * the money ... + */ + { char buffer[30] ; + extern char * ttyname (); + + strcpy (buffer, ttyname (STDIN)) ; + buffer[strlen(buffer) - 1] = '\0' ; + if (index (buffer, 'f')) + { + /* make sure RTS is asserted!!!!!! */ + ioctl(STDIN, TIOCMGET, &modem_lines); + modem_lines |= (TIOCM_RTS | TIOCM_DTR); + ioctl(STDIN, TIOCMSET, &modem_lines); + } + } + #endif X #endif /* posix_termios */ X X #ifdef BSD_SGTTY *************** *** 292,299 **** X | LOBLK X #endif X ); ! t->c_cflag|= CS8 | CREAD | HUPCL | ( local? CLOCAL:0 ); ! t->c_lflag = ECHOK | ECHOE | ECHO | ISIG | ICANON; X X #if !defined(POSIX_TERMIOS) X t->c_line = 0; --- 311,326 ---- X | LOBLK X #endif X ); ! t->c_cflag|= CS8 | CREAD | HUPCL | ( local? CLOCAL:0 ) ! #ifdef PAR1 ! | PAR1 ! #endif ! ; ! t->c_lflag = ECHOK | ECHOE | ECHO | ISIG | ICANON ! #ifdef IEXTEN ! | IEXTEN ! #endif ! ; X X #if !defined(POSIX_TERMIOS) X t->c_line = 0; *************** *** 387,393 **** X t->c_oflag &= ~ONLCR; X } X #else ! #include "not implemented yet" X #endif X } X --- 414,427 ---- X t->c_oflag &= ~ONLCR; X } X #else ! if ( perform_mapping ) ! { ! t->sg_flags |= CRMOD ; ! } ! else ! { ! t->sg_flags &= ~CRMOD ; ! } X #endif X } X *************** *** 413,419 **** X t->c_lflag &= ~XCASE; X } X # else ! # include "not implemented yet" X # endif X #endif /* BSDI */ X } --- 447,460 ---- X t->c_lflag &= ~XCASE; X } X # else ! if ( perform_mapping ) ! { ! t->sg_flags |= LCASE ; ! } ! else ! { ! t->sg_flags &= ~LCASE ; ! } X # endif X #endif /* BSDI */ X } *************** *** 434,440 **** X t->c_cflag |= CLOCAL; X } X #else ! #include "not implemented yet" X #endif X } X --- 475,481 ---- X t->c_cflag |= CLOCAL; X } X #else ! # include "not implemented yet" X #endif X } X *************** *** 507,513 **** X if ( type & FLOW_XON_OUT ) X t->c_iflag |= IXON | IXANY; X #else ! #include "not yet implemented" X #endif X /* SVR4 came up with a new method of setting h/w flow control */ X /* unfortunately, it's broken in 4.2 and Solaris2! */ --- 548,554 ---- X if ( type & FLOW_XON_OUT ) X t->c_iflag |= IXON | IXANY; X #else ! # include "not yet implemented" X #endif X /* SVR4 came up with a new method of setting h/w flow control */ X /* unfortunately, it's broken in 4.2 and Solaris2! */ *************** *** 606,612 **** X #if defined(SVR4) && defined(TIOCMBIS) /* SVR4 special */ X int mctl = TIOCM_DTR; X ! #ifdef sun X if ( ioctl( fd, TIOCMBIC, &mctl ) < 0 ) X #else X if ( ioctl( fd, TIOCMBIC, (char *) mctl ) < 0 ) --- 647,653 ---- X #if defined(SVR4) && defined(TIOCMBIS) /* SVR4 special */ X int mctl = TIOCM_DTR; X ! #if (defined(sun) || defined(NeXT)) X if ( ioctl( fd, TIOCMBIC, &mctl ) < 0 ) X #else X if ( ioctl( fd, TIOCMBIC, (char *) mctl ) < 0 ) *************** *** 615,621 **** X lprintf( L_ERROR, "TIOCMBIC failed" ); return ERROR; X } X delay( msec_wait ); ! #ifdef sun X if ( ioctl( fd, TIOCMBIS, &mctl ) < 0 ) X #else X if ( ioctl( fd, TIOCMBIS, (char *) mctl ) < 0 ) --- 656,662 ---- X lprintf( L_ERROR, "TIOCMBIC failed" ); return ERROR; X } X delay( msec_wait ); ! #if (defined(sun) || defined(NeXT)) X if ( ioctl( fd, TIOCMBIS, &mctl ) < 0 ) X #else X if ( ioctl( fd, TIOCMBIS, (char *) mctl ) < 0 ) *************** *** 653,659 **** X /* The "standard" way of doing things - via speed = B0 X */ X TIO t, save_t; ! #ifdef sunos4 X int modem_lines; X #endif X int result; --- 694,700 ---- X /* The "standard" way of doing things - via speed = B0 X */ X TIO t, save_t; ! #if (defined(sunos4) || defined(NeXT)) X int modem_lines; X #endif X int result; *************** *** 670,682 **** X cfsetispeed( &t, B0 ); X #endif X #ifdef BSD_SGTTY ! t.sg_ispeed = t.sg_ospeed = B0 X #endif X X tio_set( fd, &t ); X delay( msec_wait ); X ! #ifdef sunos4 X /* on SunOS, if you hangup via B0, the DTR line will *stay* low. X * So: enable it manually again. X */ --- 711,723 ---- X cfsetispeed( &t, B0 ); X #endif X #ifdef BSD_SGTTY ! t.sg_ispeed = t.sg_ospeed = B0 ; X #endif X X tio_set( fd, &t ); X delay( msec_wait ); X ! #if (defined(sunos4) || defined(NeXT)) X /* on SunOS, if you hangup via B0, the DTR line will *stay* low. X * So: enable it manually again. X */ *************** *** 686,692 **** X #endif X result = tio_set( fd, &save_t ); X ! #if (defined(M_UNIX) && defined(MAM_BUG)) || defined (sysV68) X /* some Unix variants apparently forget to raise DTR again X * after lowering it. Reopening the port fixes it. Crude, but works. X */ --- 727,733 ---- X #endif X result = tio_set( fd, &save_t ); X ! #if (defined(M_UNIX) && defined(MAM_BUG)) X /* some Unix variants apparently forget to raise DTR again X * after lowering it. Reopening the port fixes it. Crude, but works. X */ SHAR_EOF chmod 0640 mgetty.patch || echo 'restore of mgetty.patch failed' Wc_c="`wc -c < 'mgetty.patch'`" test 10973 -eq "$Wc_c" || echo 'mgetty.patch: original size 10973, current size' "$Wc_c" fi # ============= new_fax ============== if test -f 'new_fax' -a X"$1" != X"-c"; then echo 'x - skipping new_fax (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'new_fax' && #! /bin/sh # Description: The following arguments are placed in the command line: # hangup code 0 successful # non-zero for failure # sender id Fax identification string # number of pages The number of file name pages that follow # file name page The file that resulted from this reception # #echo $* >/tmp/new_fax.arguments # # Now that looks really like a problem for a shell, not C. Look at my # faxnotifier, it does almost the same thing you want, but I think a # little easier.... AREACODE=403 COUNTRYCODE=1 ID="`/bin/sh -c \"echo $2\" | sed -e 's/[\"- ()]*\([0-9]\)[\" ]*/\1/g' -e \"s/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9]\$/$AREACODE&/\" -e \"s/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]\$/$COUNTRYCODE&/\"`" X SHORT_ID="`echo $ID | sed \"s/$COUNTRYCODE$AREACODE//\"`" VERBOSE_ID="`( grep \"[ ]$ID[ ]\" /usr/local/lib/mgetty+sendfax/aliases ; grep \"[ ]$SHORT_ID[ ]\" /usr/local/lib/mgetty+sendfax/aliases ) | head -1 | sed 's/^[^ ][^ ]*[ ][ ]*[^ ][^ ]*[ ][ ]*\([^ ][^ ]*\)/\1/'`" if [ ! -z "$VERBOSE_ID" ] ; then X VERBOSE_ID=" $VERBOSE_ID" fi X # # we could, based on the ID, find out where to send the message to, these are # the defaults. # WHO=postmaster TYPE=NeXTMail # if [ "$ID" = "14034393036" ] ; then # WHO=4393036 # TYPE=uuencode.tiff # fi X # first notify some people directly.... for i in $WHO; do X { echo "A new fax has been received..." X echo "Hangup Code: " $1 X echo "Remote Id: " $ID$VERBOSE_ID X echo "Pages: " $3 X echo "1st Filename:" $4 X } |write $i 2>/dev/null # ignore errors if someone is not logged on done X shift 3 X cd /tmp X if [ "$TYPE" = "NeXTMail" ] ; then X FILES= X for i in $@ ; do X # find out resolution X case $i in X */faxn|faxn*|*/fn*|fn*) STRETCH= ;; X *) STRETCH="-yscale 0.50" X esac X X # convert fax files to tiff X name=`basename $i` X if [ -s $i ] ; then X /usr/local/bin/g3topbm $i | /usr/local/bin/pnmscale -xscale 0.50 $STRETCH | /usr/local/bin/pnmtotiff > $name X [ $? -eq 0 -a -s $name ] && gzip -9 $i X X # X # The following increases the size of the `NeXTMail' but decreases it once X # it is justified in the mailbox. X # X /usr/local/bin/tiffcp -lzw $name $name.tiff X [ $? -eq 0 -a -s $name.tiff ] && /bin/rm -f $name X FILES="$FILES $name.tiff" X fi X done X if [ ! -z "$FILES" ] ; then X ( echo "From fax_server `date`" X echo "`/usr/lib/news/bin/RFC1036.date`" X echo "To: $WHO" X echo "From: fax_server@ve6mgs.ampr.ab.ca ($ID$VERBOSE_ID)" X echo "Subject: Received Fax ($ID$VERBOSE_ID)" X echo "Next-Attachment: .tar.$name.attach, 99713, 1/1, 137148, 0" X echo X ( /bin/echo "{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}" X /bin/echo "\margl120" X /bin/echo "\margr120" X /bin/echo -n "{" X j=0 X for i in $FILES ; do X /bin/echo "{\attachment$j $i" X /bin/echo "}" X j=`expr $j + 1` X done X /bin/echo "}" X ) >index.rtf X tar cf - index.rtf $FILES | compress -c | uuencode .tar.$name.attach X rm -f index.rtf $FILES X ) | rmail $WHO X fi elif [ "$TYPE" = "uuencode.tiff" ] ; then X if test ! -z $@ ; then X ( echo "From fax_server `date`" X echo "`/usr/lib/news/bin/RFC1036.date`" X echo "To: $WHO" X echo "From: fax_server@ve6mgs.ampr.ab.ca ($ID$VERBOSE_ID)" X echo "Subject: Received Fax ($ID$VERBOSE_ID)" X echo X for i in $@ ; do X # find out resolution X case $i in X */faxn|faxn*|*/fn*|fn*) STRETCH= ;; X *) STRETCH="-yscale 0.50" X esac X X # convert fax files to tiff X name=`basename $i` X /usr/local/bin/g3topbm $i | /usr/local/bin/pnmscale -xscale 0.50 $STRETCH | /usr/local/bin/pnmtotiff > $name X [ $? -eq 0 -a -s $name ] && gzip -9 $i X X /usr/local/bin/tiffcp -lzw $name $name.tiff X [ $? -eq 0 -a -s $name.tiff ] && /bin/rm -f $name X uuencode $name.tiff < $name.tiff X rm -f $name.tiff X done X ) | rmail $WHO X fi else X # Do nothing X echo mama fi SHAR_EOF chmod 0750 new_fax || echo 'restore of new_fax failed' Wc_c="`wc -c < 'new_fax'`" test 3955 -eq "$Wc_c" || echo 'new_fax: original size 3955, current size' "$Wc_c" fi # ============= obscure.MIME.sh ============== if test -f 'obscure.MIME.sh' -a X"$1" != X"-c"; then echo 'x - skipping obscure.MIME.sh (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'obscure.MIME.sh' && #! /bin/sh # # Name: obscure.MIME.sh # Description: Check for MIME encoding, and extract the pieces. The # standard input is the mail file, the output is the filenames # collected. If this is not `MIME' mail, then nothing should be # output. # FILES="" awk "BEGIN { X ContentType=\"\" X ContentTransferEncoding=\"\" X ContentID=\"\" X ContentDescription=\"\" X MimeVersion=\"1.0\" X FileNum=1 X FileName=\"/tmp/obscure$$.1\" X Boundary=\"\" X printf (\"%s \", FileName) } /^Content-Type: / { X ContentType=\$2 X j=length(ContentType) - 1 X String=substr(ContentType, 1, j) X print String X for (i = 3; i <= NF; i++) { X ContentType=ContentType \" \" \$(i) X String=substr(\$(i), 1, 9) X if (\"BOUNDARY=\" == String) { X j=length(\$(i)) - 11 X Boundary=\"--\" substr(\$(i), 11, j) X } X } X print \"Mime-Version: \" MimeVersion >> FileName } (Boundary == \$0) { X close FileName X ++FileNum X FileName=\"/tmp/obscure$$.\" FileNum X printf (\"%s \", FileName) X next } /^Content-Transfer-Encoding: / && (inhdr == 1) { X ContentTransferEncoding=\$2 } /^Content-ID: / && (inhdr == 1) { X ContentID=\$2 } /^Content-Description: / && (inhdr == 1) { X ContentDescription=\$2 } /^$/ && (inhdr == 1) { X ++inhdr } /^Mime-Version: / && (inhdr == 1) { X MimeVersion=\$2 X next } X { X print >> FileName } END { X close FileName }" | ( while read FileName Content ; do X awk 'BEGIN { X inhdr=1 X } X /^$/ && (inhdr == 1) { X ++inhdr X next X } X (inhdr == 1) { X next X } X { X print X }' $FileName | if grep -s -i base64 $FileName ; then X /usr/local/bin/base64tobinary X else X cat - X fi > $FileName.1 X rm -f $FileName X case `echo $Content | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` in X multipart*) rm -f $FileName.1 ;; X text/plain) mv $FileName.1 $FileName.t X FILES="$FILES $FileName.t" ;; X message/rfc822) mv $FileName.1 $FileName.t X FILES="$FILES $FileName.t" ;; X application/postscript) X mv $FileName.1 $FileName.ps X FILES="$FILES $FileName.ps" ;; X application/remote-printing) X mv $FileName.1 $FileName.t X FILES="$FileName.t $FILES" ;; X image/tiff) mv $FileName.1 $FileName.tiff X FILES="$FILES $FileName.tiff" ;; X image/x-tiff) mv $FileName.1 $FileName.tiff X FILES="$FILES $FileName.tiff" ;; X image/gif87) mv $FileName.1 $FileName.gif X FILES="$FILES $FileName.gif" ;; X image/pcx) mv $FileName.1 $FileName.pcx X FILES="$FILES $FileName.pcx" ;; X image/pbm) mv $FileName.1 $FileName.pbm X FILES="$FILES $FileName.pbm" ;; X image/pgm) mv $FileName.1 $FileName.pgm X FILES="$FILES $FileName.pgm" ;; X image/ppm) mv $FileName.1 $FileName.ppm X FILES="$FILES $FileName.ppm" ;; X image/g3) mv $FileName.1 $FileName.g3 X FILES="$FILES $FileName.g3" ;; X image/xwd) mv $FileName.1 $FileName.xwd X FILES="$FILES $FileName.xwd" ;; X *) mv $FileName.1 $FileName.t X FILES="$FILES $FileName.t" ;; X esac done if test -z "$FILES" ; then X rm -f /tmp/obscure$$.[0-9] /tmp/obscure$$.[0-9][0-9] else X echo $FILES fi ) SHAR_EOF chmod 0750 obscure.MIME.sh || echo 'restore of obscure.MIME.sh failed' Wc_c="`wc -c < 'obscure.MIME.sh'`" test 2954 -eq "$Wc_c" || echo 'obscure.MIME.sh: original size 2954, current size' "$Wc_c" fi # ============= obscure.NEXTMAIL.sh ============== if test -f 'obscure.NEXTMAIL.sh' -a X"$1" != X"-c"; then echo 'x - skipping obscure.NEXTMAIL.sh (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'obscure.NEXTMAIL.sh' && #! /bin/sh # # Name: obscure.NEXTMAIL.sh # Description: Check for NEXTMAIL encoding, and extract the pieces. The # standard input is the mail file, the output is the filenames # collected. If this is not `NEXTMAIL' mail, then nothing should be # output. # Xexit 0 TARFILE="`tee /tmp/obscure$$.t | sed -n 's/Next-Attachment: \([^,]*\),.*/\1/p'`" if test -z "$TARFILE" ; then X exit 0 fi cd /tmp mkdir NeXTMail.$$.rtfd cd NeXTMail.$$.rtfd uudecode </tmp/obscure$$.t rm /tmp/obscure$$.t compress -d < .*.compressed >obscure$$.tar rm -f .*.compressed tar -xvf obscure$$.tar 2>/dev/null >/dev/null rm -f obscure$$.tar # Core dump ... rtf2ps *.rtf /tmp/obscure$$.ps echo /tmp/obscure$$.ps SHAR_EOF chmod 0750 obscure.NEXTMAIL.sh || echo 'restore of obscure.NEXTMAIL.sh failed' Wc_c="`wc -c < 'obscure.NEXTMAIL.sh'`" test 681 -eq "$Wc_c" || echo 'obscure.NEXTMAIL.sh: original size 681, current size' "$Wc_c" fi # ============= obscure.PS.sh ============== if test -f 'obscure.PS.sh' -a X"$1" != X"-c"; then echo 'x - skipping obscure.PS.sh (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'obscure.PS.sh' && #! /bin/sh # # Name: obscure.PS.sh # Description: Check for PS encoding, and extract the piece. The # standard input is the mail file, the output is the filenames # collected. If this is not `PS' mail, then nothing should be # output. # sed -n '/%!PS-Adobe-3.0/,$p' >/tmp/obscure$$.ps if test -s /tmp/obscure$$.ps ; then X echo /tmp/obscure$$.ps else X rm -f /tmp/obscure$$.ps fi SHAR_EOF chmod 0750 obscure.PS.sh || echo 'restore of obscure.PS.sh failed' Wc_c="`wc -c < 'obscure.PS.sh'`" test 378 -eq "$Wc_c" || echo 'obscure.PS.sh: original size 378, current size' "$Wc_c" fi # ============= obscure.UUENCODE.sh ============== if test -f 'obscure.UUENCODE.sh' -a X"$1" != X"-c"; then echo 'x - skipping obscure.UUENCODE.sh (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'obscure.UUENCODE.sh' && #! /bin/sh # # Name: obscure.UUENCODE.sh # Description: Check for UUENCODE encoding, and extract the pieces. The # standard input is the mail file, the output is the filenames # collected. If this is not `UUENCODE' mail, then nothing should be # output. # trap 'rm -f /tmp/obscure$$.t ; exit' 1 2 3 15 FILENAME="`tee /tmp/obscure$$.t | sed -n 's/^begin [0-7][0-7][0-7] \(.*\)/\1/p'`" if test ! -z "$FILENAME" ; then X FILENAME="/tmp/$FILENAME" X trap 'rm -f /tmp/obscure$$.t $FILENAME ; exit' 1 2 3 15 X ( cd /tmp ; uudecode < /tmp/obscure$$.t ) X rm -f /tmp/obscure$$.t X echo $FILENAME fi SHAR_EOF chmod 0750 obscure.UUENCODE.sh || echo 'restore of obscure.UUENCODE.sh failed' Wc_c="`wc -c < 'obscure.UUENCODE.sh'`" test 586 -eq "$Wc_c" || echo 'obscure.UUENCODE.sh: original size 586, current size' "$Wc_c" fi # ============= obscure.sh ============== if test -f 'obscure.sh' -a X"$1" != X"-c"; then echo 'x - skipping obscure.sh (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'obscure.sh' && #! /bin/sh # Name: obscure # Description: This shell script is used to programatically handle any # users that are unknown to this system, and process the messages so # that they may be handled correctly. The following actions may be taken: # user.name - mail to news gateway # phone number(s) - mail to fax gateway # user name - mail to packet gateway # echo $* >/tmp/obscure.arguments trap 'rm -f /tmp/obscure$$.t ; exit' 1 2 3 15 awk "BEGIN { X in_hdr=1 X in_rec=0 } /^[ ]/ && (in_hdr == 1) && (in_rec == 1) { X next } X { X in_rec=0 } /^[A-Z][-a-z][^ :]*:[ ]/ && (in_hdr == 2) { X in_hdr=1 } /^[ ]*\$/ && (in_hdr == 2) { X next } (in_hdr == 2) { X print \"\" X in_hdr=0 } /^[ ]*\$/ && (in_hdr == 1) { X in_hdr=2 X next } /^From / && (in_hdr == 1) { X next } /^Apparently-To:/ && (in_hdr == 1) { X next } /^Message-I[Dd]:/ && (in_hdr == 1) { X next } /^Status:/ && (in_hdr == 1) { X next } /^Expires: +1 month/ && (in_hdr == 1) { X next } /^Encoding:/ && (in_hdr == 1) { X next } /^X-[-a-zA-Z]*:/ && (in_hdr == 1) { X next } /^Lines:/ && (in_hdr == 1) { X next } /^Path:/ && (in_hdr == 1) { X next } /^N[nN][Tt][Pp]-Posting-Host:/ && (in_hdr == 1) { X next } /^Originator:/ && (in_hdr == 1) { X next } /^Resent-To:/ && (in_hdr == 1) { X next } /^Originally-To:/ && (in_hdr == 1) { X next } /^Received:/ && (in_hdr == 1) { X in_rec=1 X next } /^In-Reply-To:/ { X in_rec=1 X next } /^Precedence:/ { X in_rec=1 X next } /^Errors-To:/ { X in_rec=1 X next } /^X-Mailer:/ && (in_hdr == 1) { X next } /^X-Newsreader:/ && (in_hder == 1) { X next } X { X print }" > /tmp/obscure$$.t # # Check for file format # FILENAME= if test -z "$FILENAME" -a -f /usr/lib/smail/obscure.MIME.sh ; then X FILENAME="`/usr/lib/smail/obscure.MIME.sh </tmp/obscure$$.t`" fi if test -z "$FILENAME" -a -f /usr/lib/smail/obscure.NEXTMAIL.sh ; then X FILENAME="`/usr/lib/smail/obscure.NEXTMAIL.sh </tmp/obscure$$.t`" fi if test -z "$FILENAME" -a -f /usr/lib/smail/obscure.UUENCODE.sh ; then X FILENAME="`/usr/lib/smail/obscure.UUENCODE.sh </tmp/obscure$$.t`" fi if test -z "$FILENAME" -a -f /usr/lib/smail/obscure.PS.sh ; then X FILENAME="`/usr/lib/smail/obscure.PS.sh </tmp/obscure$$.t`" fi if test -z "$FILENAME" ; then X mv /tmp/obscure$$.t /tmp/obscure$$.ps X awk "BEGIN { X in_hdr=1 X in_rec=0 } /^M[iI][mM][eE]-Version:/ && (in_hdr == 1) { X next } /^Content-Type:/ && (in_hdr == 1) { X next } /^Content-Type:/ && (in_hdr == 1) { X next } /^Content-Length:/ && (in_hdr == 1) { X next } /^Content-Transfer-Encoding:/ && (in_hdr == 1) { X next } /^Content-Description:/ && (in_hdr == 1) { X next } /^Content-ID:/ && (in_hdr == 1) { X next } /^\$/ && (in_hdr == 1) { X ++inhdr } X { X print }" /tmp/obscure$$.ps > /tmp/obscure$$.t X rm -f /tmp/obscure$$.ps X FILENAME=/tmp/obscure$$.t fi HOSTNAME="`sed -n 's/^HOSTNAME=\(.*\)/\1/p' /etc/hostconfig`" SITENAME="`echo $HOSTNAME | sed 's/^\([^\.]*\)\..*/\1/'`" if test $# -lt 1 -o "X$1" = "Xfax" ; then X return="`sed -e 's/obscure!//' -e 's/@obscure//' -e \"s/$HOSTNAME!//\" -e \"s/@$HOSTNAME//\" -e \"s/$SITENAME!//\" -e \"s/@$SITENAME//\" /tmp/obscure$$.t | sed -n 's/^To:[ ]*\(.*\)/\1/p'`" X if test ! -z "$return" ; then X set $return X fi X if test $# -lt 1 -o "X$1" = "Xfax" ; then X return="`sed -n 's/^X*-*[Ff]ax:[ ]*\(.*\)/\1/p' /tmp/obscure$$.t`" X if test ! -z "$return" ; then X set $return X else X rm -f /tmp/obscure$$.t $FILENAME X exit 2 X fi X fi fi return="`sed -n 's/^From:[ ]*\(.*\)/\1/p' /tmp/obscure$$.t | head -1`" if test -z "$return" ; then X return="`sed -n 's/^Reply-To:[ ]*\(.*\)/\1/p' /tmp/obscure$$.t | head -1`" fi name="`echo $return | sed -n -e 's/.*(\(.*\))/\1/p' -e 's/\(.*\)<[^>]*>/\1/p'`" if test -z "$name" ; then X name=Unknown fi return="`echo $return | sed -e 's/\([^ ]*\)[ ]*(.*)/\1/' -e 's/.*<\([^>]*\)>/\1/'`" # check out the phone number, restrict it to a `name' or 7 digit number. numbers= bad_numbers= multi_bad=no multi=no description= for i in $* ; do X user="`echo $i | sed -e 's/[@%].*//' -e 's/.*!//'`" X case $user in X remote-printer.*) X description="`echo $user | sed -e 's/^remote-printer.//' -e 's/_/ /g' -e 's#/#, #g'`" X i="`grep To: /tmp/obscure$$.t | head -1 | sed -e 's/^To:[ ]*//' -e 's/ (.*//' -e 's/.*<\(.*\)>/\1/'`" X user="`echo $i | sed -e 's/^[^%@]*[%@]//' -e 's/!.*//' -e 's/.tpc.int.*//' | awk 'BEGIN { X FS = \".\" X } X { X j=\"\" X for (i = NF; i > 0; i--) { X j=j $(i) X } X print j X }'" X j="`echo $user | sed -n -e 's/-//' -e \"\`sed -e 's/(/\\\\\\\\(/g' -e 's/)/\\\\\\\\)/g' -e 's:.*:s/&/\\\\\\\\1/p:' /usr/local/lib/mgetty+sendfax/efrc\`\"`" X if test -z "$j" ; then X if test -z "$bad_numbers" ; then X bad_numbers=$user X else X bad_numbers="$bad_numbers $user" X multi_bad=yes X fi X else X if test -z "$numbers" ; then X numbers=$j X else X numbers="$numbers $j" X multi=yes X fi X if test -z "$description" ; then X description="$description`sed -n \"s/^[^ ][^ ]*[ ][ ]*$j[ ][ ]*\(.*\)/\1/p\" /usr/local/lib/mgetty+sendfax/aliases`" X fi X fi ;; X [a-zA-Z]*) X # X # This is my security hole to allow one to send a X # FAX over a long distance. X # X if test ! -z "`grep \"^$user[ ]\" /usr/local/lib/mgetty+sendfax/aliases`" ; then X if test -z "$numbers" ; then X numbers=$user X else X numbers="$numbers $user" X multi=yes X fi X if test ! -z "$description" ; then X description="$description, " X fi X description="$description`sed -n \"s/^$user[ ][ ]*[^ ][^ ]*[ ][ ]*\(.*\)/\1/p\" /usr/local/lib/mgetty+sendfax/aliases`" X else X if test -z "$bad_numbers" ; then X bad_numbers=$user X else X bad_numbers="$bad_numbers $user" X multi_bad=yes X fi X fi ;; X [0-9][0-9][0-9][0-9][0-9][0-9][0-9]|[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]) X if test -z "$numbers" ; then X numbers=$user X else X numbers="$numbers $user" X multi=yes X fi X user=`echo $user | sed 's/-//g'` X if test ! -z "$description" ; then X description="$description, " X fi X description="$description`sed -n \"s/^[^ ][^ ]*[ ][ ]*$user[ ][ ]*\(.*\)/\1/p\" /usr/local/lib/mgetty+sendfax/aliases`" X ;; X *) X j="`echo $user | sed -n -e 's/-//' -e \"\`sed -e 's/(/\\\\\\\\(/g' -e 's/)/\\\\\\\\)/g' -e 's:.*:s/&/\\\\\\\\1/p:' /usr/local/lib/mgetty+sendfax/efrc\`\"`" X if test -z "$j" ; then X if test -z "$bad_numbers" ; then X bad_numbers=$user X else X bad_numbers="$bad_numbers $user" X multi_bad=yes X fi X else X if test -z "$numbers" ; then X numbers=$j X else X numbers="$numbers $j" X multi=yes X fi X if test ! -z "$description" ; then X description="$description, " X fi X description="$description`sed -n \"s/^[^ ][^ ]*[ ][ ]*$j[ ][ ]*\(.*\)/\1/p\" /usr/local/lib/mgetty+sendfax/aliases`" X fi X ;; X esac done if test ! -z "$bad_numbers" -a ! -z "$return" ; then X ( echo "Will not send fax to $bad_numbers" X echo X if test "yes" = "$multi_bad" ; then X echo "This fax server considers the following numbers as not being local calls or to" X echo "be unknown by the system, and will not send the following faxes:" X echo " $bad_numbers" X else X if test `echo $bad_numbers | wc -c` -gt 13 ; then X echo "This fax server considers $bad_numbers" X echo "a long distance call, or unknown to the system, and will not send the fax." X else X echo "This fax server considers $bad_numbers a long distance call, or unknown to the" X echo "system, and will not send the fax." X fi X fi X echo "please contact postmaster@$HOSTNAME if you think this is in error" X echo X sed "s/^/} /" /tmp/obscure$$.t X ) | mail $return fi if test "yes" = "$multi" ; then X numbers="-m $numbers --" fi LOGNAME=root export LOGNAME chmod 644 /tmp/obscure$$.t $FILENAME if test -z "$description" ; then X description=Unknown fi echo /usr/local/bin/faxspool -q -f "$return" -F "$name" -D "$description" $numbers $FILENAME >/tmp/faxspool.arguments /usr/local/bin/faxspool -q -f "$return" -F "$name" -D "$description" $numbers $FILENAME status=$? rm -f /tmp/obscure$$.t $FILENAME exit $status SHAR_EOF chmod 0640 obscure.sh || echo 'restore of obscure.sh failed' Wc_c="`wc -c < 'obscure.sh'`" test 7907 -eq "$Wc_c" || echo 'obscure.sh: original size 7907, current size' "$Wc_c" fi # ============= routers ============== if test -f 'routers' -a X"$1" != X"-c"; then echo 'x - skipping routers (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'routers' && # @(#)samples/generic/routers 1.3 8/8/92 16:40:26 X . . . . . obscure_neighbors: X driver=uuname, X transport=obscure; X X cmd="echo obscure", X . . . . . SHAR_EOF chmod 0640 routers || echo 'restore of routers failed' Wc_c="`wc -c < 'routers'`" test 149 -eq "$Wc_c" || echo 'routers: original size 149, current size' "$Wc_c" fi # ============= transports ============== if test -f 'transports' -a X"$1" != X"-c"; then echo 'x - skipping transports (File already exists)' else sed 's/^X//' << 'SHAR_EOF' > 'transports' && # @(#)samples/generic/transports 1.11 9/6/92 04:41:55 X obscure: X driver=pipe, # pipe message to another program X return_path, # include a Return-Path: field X from, # supply a From_ envelope line X unix_from_hack, # insert > before From in body X # comment out the above line for X # use with the Content-Length X # header fields. # SVR4 mailbox format: uncomment the below 3 lines # remove_header="Content-Length", # append_header="${if !header:Content-Type :Content-Type: text}", # append_header="Content-Length: $body_size", X local; # use local forms for delivery X cmd="/usr/lib/smail/obscure.sh $user", X parent_env, # environment info from parent addr X pipe_as_user, # use user-id associated with address # ignore_status, # ignore a non-zero exit status X ignore_write_errors, # ignore write errors, i.e., broken pipe X umask=0022, # umask for child process X log_output, # do not log stdout/stderr SHAR_EOF chmod 0640 transports || echo 'restore of transports failed' Wc_c="`wc -c < 'transports'`" test 930 -eq "$Wc_c" || echo 'transports: original size 930, current size' "$Wc_c" fi exit 0
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Re: Multiple threads in AppKit app? Date: 4 Mar 1995 03:25:03 GMT Organization: Stanford University Message-ID: <3j8mif$ode@nntp.Stanford.EDU> References: <9503031645.AA02840@penshurst.com> Nigel Taylor writes > > Stan Jirman writes: > > Nope, and even 4.0 won't be. The overhead is just impressive. > > > > What this means is that you can well have several threads, yet > > only one may handle AppKit stuff. As the events are usually > > handled by the main thread, also the output must be done by > > this thread. You can use NXConnections etc so that the other > > thread can call the main thread. Or, for your purpose, maybe > > NXTimedEntries would do... There should be examples for both > > approaches. > > > > My understanding of this is that the thing that is not threadsafe > is the Objective-C runtime system. Apparently the > objc_setMultithreaded(YES) function call causes the runtime > system to lock the method dispatch table so other threads don't > screw with it during a method call. This imposes some performance > penalty. > There is a big difference between locking and thus penalizing performance and screwing up & crashing. We would LOVE to have the AppKit lock its variables; the problem is certainly not the runtime system, there are too many multithreaded apps out there to prove the opposite. It is simply that the AppKit isn't threadsafe. Just look at classic scheduling and race condition examples and you see what is happening. When you have e.g. 2 threads messing with typed streams at the same time, which are full of globals and other unprotected variables, your app will soon be dead. Even the best runtime system won't help you when the classes are not built thread-safe. > This implies that you cannot safely use Objective-C objects, (or > at least their methods), in a subthread without first calling > the objc_setMultithreaded(YES) function. > Oh wrong. I have quite an app to prove that. > Given that the Distributed Object system positively encourages > the use of threads, I'm puzzled by the lack of warnings about > this problem in the documentation. Well, they say, in a one-liner, that "some will succeed :-)" What did you expect more from NeXT? > I'm also puzzled by the apparent resilience of programs that > make extensive use of D.O. subthreads but never call the > objc_setMultithreaded(YES) function. > They don't have to. The call is per TASK, nor thread. You can call it of course many times, but it won't get better. > I invite anyone with a deep (and preferably informed) understanding > of this whole problem to explain it, in detail, here! > I don't know how deep my knowledge is, as there are always people who know it better than oneself, but I can base this on some 3 yrs of experience with multithreaded programming of the AppKit. Cheers, - Stan ---------------------------------------------------------------------- Stan Jirman Caffeine Software stanj@cs.stanford.edu Creators of TIFFany NeXTmail / MIME welcome Professional Image Processing When you find yourself in a hole, stop digging. ----------------------------------------------------------------------
From: michael@tar (Michael Brouwer) Newsgroups: comp.sys.next.programmer Subject: Re: Distributed Objects real slow? Date: 26 Feb 1995 15:00:37 GMT Organization: Eindhoven University of Technology, the Netherlands Message-ID: <MICHAEL.95Feb26160037@tar> References: <3hsepj$bs9@darkstar.UCSC.EDU> In-reply-to: alvin@cse.ucsc.edu's message of 15 Feb 1995 08:42:27 GMT In article <3hsepj$bs9@darkstar.UCSC.EDU> alvin@cse.ucsc.edu (Alvin Jee) writes: The samples I wrote just assign a value to an integer using different programming constructs 1,000,000 times in a for loop. Here's the run times I got from getrusage: Straight C code : 0.000000 system and 0.189984 user Using C functions to set the int: 0.000000 system and 0.569976 user Using C++ object for the int : 0.000000 system and 0.579944 user Using ObjC object for the int : 0.000000 system and 1.159961 user Using DO with protocols : 230.583732 system and 512.727327 user Using DO without protocols : 237.339423 system and 517.345028 user This is flaim bait, right? I'll try to behave, but doesn't it seem a bit odd to compare local variable assignments with IPC? Try comparing DO with mach messages and TCP sockets for some more interesting results. You will then notice that DO is a bit slower than using bare mach messages or TCP, but it provides a extra layer of abstraction that makes the performance penalty acceptable in most cases. Michael -- __ __ __ ____ __ __ ____ ______ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ ______ ______ ____ __ __ __ __ ____ __ __ __ __ ______ ______
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/Career Position/ILL Date: 4 Mar 1995 16:38:31 GMT Organization: Norden 1 Communications Message-ID: <3ja527$s0f@ns.oar.net> Position-----------Programmer/analyst/developer Platform------------NEXTSTEP---commercial experience Language-------------Objective C---commercial experience Type of position------Career position Opportunity------------Excellent Relocation--------------Company assistance Area---------------------Greater chicago area To be considered----------Fax resume or mail a hard copy resume. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: leecason@ix.netcom.com (Lee Cason) Newsgroups: comp.sys.ibm.pc.hardware.misc,comp.sys.misc,comp.sys.next.programmer Subject: SYSTEM COMMANDER by V Communications? Date: 4 Mar 1995 16:46:20 GMT Organization: Netcom Distribution: world Message-ID: <3ja5gs$qpi@ixnews2.ix.netcom.com> Anyone have any experience with a boot manager program called SYSTEM COMMANDER by V Communications? The sell sheet says it will allow you to boot up to 42 operating systems on1 PC, and that repartitioning is not required. Uses no resident memory. I'm interested in loading DOS/WFW, OS/2 WARP, Linux, Windows 95, and SCO 3.0 Please reply via e-mail to leecason@ix.netcom.com and I will summarize in comp.os.misc. TIA for your reply, Lee Cason Manassas, VA
From: angelo@heinz.com (Angel Cura Civetta) Newsgroups: comp.sys.next.programmer Subject: Re: printing out nib files. Date: Fri, 3 Mar 1995 21:33:37 GMT Message-ID: <1995Mar3.213337.9046@heinz.com> References: <3j3962$h18@godzilla.zeta.org.au> Organization: F. HEINZ Consultora Sender: usenet@heinz.com Keywords: Interface files NIB In article <3j3962$h18@godzilla.zeta.org.au> gshaw@zeta.org.au (Greg Shaw) writes: > In using IB I am becoming aware of the need to print out or at least > display the contents of the nib file. Now before you go WHAT?? let me > explain. > > > With all the examples supplied and other pieces of code that show me how > to do something in IB I would like to KNOW that I have set up my app in > the same way. Also I have been caught many times with missing one > critical connection in IB and then spend an inordinate amount of time > working out what I've missed. Yes that is a product of inexperience but > wouldn't it be nice to be able to look at a nib file and compare it to > one's own implementation and be able to note any variations. > IT'S BLATANT PLUG TIME! :-) Our product IntefaceViewer does just that and has a few extra frills. Check c.s.n.announce for our announcement of the latest release, 1.1. If you can't get it, I will be glad to send it to you. Hope it helps, Angelo Disclaimer: we made it & we are proud of it :-)
From: rmyers@dec5200.acs.uci.edu (Richard Myers) Newsgroups: comp.sys.next.programmer Subject: un-DO Objects Date: 1 Mar 1995 12:35:03 GMT Organization: University of California, Irvine Message-ID: <3j1pln$e64@news.service.uci.edu> Under NS 3.2: I am trying to distribute an image from one app to another I figure that the best way to do this is using an NXImage. So App1 creates the image and passes it to App2. App2 then tries to composite the image to a view of it's own. The composite message is passed through the proxy to App1's NXImage, and it tries to composite to the currently lockFocus'd view in App1 (wherever that happens to be). I'd try to encode it and use bycopy, but I don't know how to encode an NXImage. I tried to pass back a stream with the image in it (writeTIFF:), but you can't pass structures with pointers (mostly). I *guess* I could pass an empty NXImage from App2 to App1, have App1 load it from a file and go on my way, but I'd like to avoid this as the image may change over time, and I need to hand the image out more than once. This is also a symptom of a greater problem. I also want to distribute a panel, and expect to have the same problems... Any advice appreciated (including certainty of impossibility). Kurt
From: pascal@wsc.com () Newsgroups: comp.sys.next.programmer Subject: NSMutableString vs NSString Date: 1 Mar 1995 15:52:18 GMT Organization: WSC Investment Services, Inc. Distribution: world Message-ID: <3j257i$8hf@cerberus.wsc.com> Keywords: Foundation, EOF, NSString Is there a price to pay (memory consumption, speed) when using NSMutableStrings instead of NSStrings? Thanks, Pascal Forget
From: sefcsik@gaul.csd.uwo.ca (Bela Sefcsik) Newsgroups: comp.sys.next.programmer Subject: internet datagram programming Date: Sat, 4 Mar 1995 17:55:54 LOCAL Organization: ITS, UWO Distribution: world Message-ID: <sefcsik.3.000C600E@gaul.csd.uwo.ca> Hello. I am trying to design a file transfer program, using internet datagram protocol. I have been looking at some sample programs, especially ones in the "Introductory 4.3BSD Interprocess Communication Tutorial" , written by Stuart Sechrest. In it, the use of the "struct sockaddr_in" in <netinet/in.h> is described, with functions"bind" and "getsockname", as defined in <sys/socket.h>. But, when I try to compile the sample routines, on my NeXTSTEP 3.2 machine, I get the following errors: "passing argument from incompatible pointer type" It seems the functions called do not like the pointer refering to "sockaddr_in" passed in , and is expecting something refering to "sockaddr" instead. Am I missing something, or what could be the problem? Thanks.
From: isbell@cats.ucsc.edu (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: EOApplication.h not found Date: 5 Mar 1995 03:52:43 GMT Organization: Cubic Solutions - NEXTSTEP software development and consulting Message-ID: <3jbcib$rhc@darkstar.UCSC.EDU> References: <3j23p9$1nu@lowther.demon.co.uk> In article <3j23p9$1nu@lowther.demon.co.uk> barton@ozbek.demon.co.uk (Barton Friedland) writes: >When I set the application class to EOApplication as the NeXT >documentation requests, upon compilation I get the following: > >..header file 'EOApplication.h' not found This may be caused by the problem with the #import automatically added to *_main.m. Try: #import <eointerface/EOApplication.h> Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions -- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: aho+@pitt.edu (Alan F Ho) Newsgroups: comp.sys.next.programmer Subject: How do you make smaller apps? Date: 4 Mar 1995 23:45:59 GMT Organization: University of Pittsburgh Message-ID: <3jau3n$e5b@usenet.srv.cis.pitt.edu>
From: mcgredo@crl.com (Donald R. McGregor) Newsgroups: comp.sys.next.programmer Subject: Re: EOApplication.h not found Date: 4 Mar 1995 20:16:26 -0800 Organization: YoyoDyne Propulsion Systems Message-ID: <3jbduq$nk7@crl5.crl.com> References: <3j23p9$1nu@lowther.demon.co.uk> In article <3j23p9$1nu@lowther.demon.co.uk> barton@ozbek.demon.co.uk (Barton Friedland) writes: :>When I set the application class to EOApplication as the NeXT :>documentation requests, upon compilation I get the following: :> :>..header file 'EOApplication.h' not found :>*** Exit 1 :>Stop. The include file is in /usr/include/eointerface. You can include <eointerface/eointerface.h> to get everything. (well, actually /usr/include is linked from /NextDeveloper/Headers, but you get the idea.) -- Don McGregor | "It's the warm and cuddly Bob Dole..." mcgredo@crl.com| --Bob Dole
From: object@crl.com (Robert Smith) Newsgroups: comp.sys.next.programmer Subject: Say No to gdb Date: 4 Mar 1995 18:12:29 -0800 Organization: CRL Network Services (415) 705-6060 [Login: guest] Message-ID: <3jb6md$52h@crl.crl.com> Is there an alternative to using gdb for debugging? gdb gives me the hives! Is there a commercial alternative?
Newsgroups: comp.sys.next.programmer From: ad934@lafn.org (Chris Horton) Subject: GnuStep?... Message-ID: <1995Mar3.173033.15701@lafn.org> Sender: news@lafn.org Organization: The Los Angeles Free-Net Date: Fri, 3 Mar 1995 17:30:33 GMT Hi, a while back some folks at SLAC (I think) were working on their own implementation of open step. Could someone working on this email me the status? I'm specifically interested in whether or not this port will work on an SGI. THanks! -chris -- Chris Horton ad934@lafn.org
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: LogicSim: Help! Start building Application Date: 3 Mar 1995 18:45:13 GMT Organization: Total System Software Distribution: world Message-ID: <3j7o3p$1pa@tssslab.TotSysSoft.com> References: <3j5mc3$sc2@masala.cc.uh.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <3j5mc3$sc2@masala.cc.uh.edu> rxa9735@bonsai.egr.uh.edu (Rajat Aggarwal) writes: }~ Hi, }~ We are about to start a major project for our Computer }~ Engineering Design class. Our project is going to be called }~ Logic Simulator. Basically, the idea of our project is to provide }~ the user with a choice of digital devices (Ex. AND,OR,NOR,...). }~ The user will then use these devices to build their virtual circuit. }~ Once the circuit is build, the user will click on a button called }~ "Analyze." This button will launch a special tool called the plot }~ analyzer. The plot analyzer will show the user a graphical display }~ of all the input signals and the final output signal. Also, we will }~ provide the user with another speciality tool called the probe. }~ The probe will let user select any node in the user's virtual }~ circuit and see the plot for that point. Take a look at some of the apps that Rose-Hullman.edu put up for ftp a copule of years ago. I don't recall one EXACTLY like you describe, but between Graph.app/MonsterScope.app and, say, the visible object message passing in a demo from their archives you might just get a really good start. I haven't checked recently. Last I looked, everything there had been developed under 2.1 NEXTSTEP. Hopefully their NEXTSTEP ftp site is still intact. Sorry, no specific URL's (they hadn't been invented yet, or at least were not common knowledge). +-+ Bruce Gingery Total System Software Cheyenne, WY USA We do consulting over Internet. E-Mail tss@TotSysSoft.com for quotes or more info. NEXT IN LINE magazine staff technical writer Bruce Gingery <bgingery@Wyoming.COM> OR <bruce@TotSysSoft.com> Multimedia: NeXTmail(tm) preferred MIME-mail welcome
From: jacobsen@arundel.cs.wisc.edu Newsgroups: comp.sys.next.programmer Subject: Re: mmap Date: 3 Mar 1995 18:20:30 GMT Organization: Division of Information Technology Message-ID: <3j7mle$7s2@news.doit.wisc.edu> References: <3j79o8$jid@castle.york.ac.uk> In article <3j79o8$jid@castle.york.ac.uk> rog@maekong.ohm.york.ac.uk (Roger Peppe) writes: >Andrew Stevenson (ajs@fulcrum.co.uk) wrote: >> Can someone tell me if there is an mmap equivalent for NeXTstep, this >> might be a silly question. > >from /NextLibrary/NextDev/OSSoftware/Part1_Mach/04_MachFunctions/MachFunctions.rtf : > >map_fd() > >SUMMARY > Map a file into virtual memory <<MUNCH>> >this is probably what you're looking for. > > rog. Unfortunately, this will not propagate the changes you make to the file in memory back to the file on disk. I've used mmap under HPUX, Linux, SunOS, and Solaris, but have not been able to use it under NeXTSTEP since writes are not made (I tried using map_fd as the NeXTSTEP equivalent to mmap). This is very frustrating. If anyone has any ideas on how to get the file on disk updated automatically, I would love to hear them. Erik
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Say No to gdb Date: 05 Mar 1995 11:12:16 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Mar5111216@steffi.dircon.co.uk> References: <3jb6md$52h@crl.crl.com> To: object@crl.com (Robert Smith) In-reply-to: object@crl.com's message of 4 Mar 1995 18:12:29 -0800 <object@crl.com> writes: >Is there an alternative to using gdb for debugging? gdb gives me the >hives! Is there a commercial alternative? GDB is perfectly adequate for debugging ... Perhaps you could tell us why it isn't adequate.... there are is a lot of hidden functionality in gdb ... -- "Mary had a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
From: robert@audrey.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <ROBERT.95Mar5111318@audrey.dircon.co.uk> Control: cancel <ROBERT.95Mar5111318@audrey.dircon.co.uk> Date: 05 Mar 1995 11:32:24 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Mar5113224@audrey.dircon.co.uk> -- "Mary had a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Sat, 4 Mar 95 19:41:01 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9503041841.AA03333@flexus> Subject: Re: Multiple threads in AppKit app? Hi, Multiple Obj-C threads need objc_setMultithreaded(YES), which has two drawbacks: - it's slows down Objective-C messaging by a considerable factor (why is it so much?), so that one would like to switch it off after use, but: - it's not a counting semaphore, so that you really need a protocol on top of it if you want to ever say objc_setMultithreaded(NO) (I don't know of any such protocol) The ``apparent resilience'' of DO applications can be explained by the fact that objc_setMultithreaded(YES) is called implicitly by some things like setting up a connection to run from its won thread. It's in the docs somewhere, I think. The thing that's not thread-safe is Display PostScript, and how the AppKit interacts with it. The AppKit was not designed to support multiple DPS contexts at once (a possible use of that would be giving each document its own context and its own thread, so that your application does not lock you out from using a document while another, like KBNS :-), is saving or so). You could run a connection from the main thread for a lock object, and call proxies to it from other threads that want to manipulate UI elements. Then you can be confident that you are doing things in-between events, which is safe. Note of course that you can implement a poor man's multi-threading application by responding to delayed messages, or NeXT PS timer stuff. This may be sufficient for many needs. I don't know whether typed streams are thread-safe (they're not classified as AppKit in the docs). Hope this helps, Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Re: Multiple threads in AppKit app? Date: 5 Mar 1995 00:01:18 GMT Organization: Stanford University Message-ID: <3jav0e$t9@nntp.Stanford.EDU> References: <9503041841.AA03333@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes > The thing that's not thread-safe is Display PostScript, and how > the AppKit interacts with it. The AppKit was not designed to > support multiple DPS contexts at once (a possible use of that > would be giving each document its own context and its own > thread, so that your application does not lock you out from using > a document while another, like KBNS :-), is saving or so). > > I don't know whether typed streams are thread-safe (they're not > classified as AppKit in the docs). No, they are not thread safe. As soon as you call anything that is in the NeXT Developer Docs "General Ref", meaning not the Unix stuff, you are automatically playing roulette (try opening 2 images at the same time). Sad but true! > *** The year 2000 will be the last year of the 20th century. *** I *LOVE* that particular one. Was just wondering, what percentage of the population does know this? 1%? 0.1%? Even less? You see people even on CNN making mistakes like these. Or is it just that they adjust the "truth" to the common belief? Interesting. - Stan -- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss Guy | | | SU Computer Science | When you find yourself | | Box 2642, Stanford, CA (415) 497 HEXO | in a hole, stop digging | | stanj@cs.stanford.edu NeXTmail / MIME | | +-------------------------------------------+-------------------------+
Newsgroups: comp.sys.next.hardware,comp.sys.next.sysadmin,comp.sys.next.software,comp.sys.next.programmer From: dino@blackmaus.com (Dino Bagdadi) Subject: root's defaults database woes Message-ID: <D4y19n.17L@blackmaus.com> Sender: dino@blackmaus.com (Dino Bagdadi) Organization: Blackmaus Design, Inc. Date: Sun, 5 Mar 1995 01:24:59 GMT Folks, I'm in need of some HELP ASAP! By mistake, I deleted root's NeXTdefaults.D and NeXTdefaults.L files. Now all of root's defaults are gone. But the worse part of it is that for some reason, root is not able to write/save its own defaults anymore! So even if I try to save new defaults, it won't preserve them next time I log in! This is what I get when I try to read the defaults database: # dread -l dread: Can't open defaults database I checked root's file permissions on both the directory and the files themselves and they seem OK. Here's the output: #ls -l /.NeXT -rw-r--r-- 1 root 20 Mar 3 17:34 .NeXTdefaults.D -rw-r--r-- 1 root 8192 Mar 3 17:37 .NeXTdefaults.L I've tried copying my own defaults into root's account; no go. I've tried erasing the entire /.NeXT directory (where root's defaults files reside); no go. Any other suggestions? PLEASE, I'm open to any suugestions! Thank you very much. --- Dino Bagdadi Blackmaus Design dino@blackmaus.com (ASCII, NeXTmail and MIME) Public PGP key available via `finger -l dbagdadi@shadow.net'
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <gbacklin@marizack.com> Message-ID: <9503030056.AA00287@marizack> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Gene Backlin <gbacklin@marizack.com> Date: Thu, 2 Mar 95 18:56:33 -0600 Subject: NEW Book "Developing NeXTSTEP Applications" coming in April References: <9502251930.AA00309@marizack> Hello fellow developers, This is a note to inform you that there will be a new book coming in April filled with step-by-step instructions to help you design NeXTSTEP applications. I am the author and it will be published by Sams Publishing. Within the pages of this book you will be instructed on how to build over 50 applications from scratch. There will be an attached diskette that will have all the applications that are explained in the book. Topics include Delegate, Panel, Menu, Browser processing; View, Image, Pasteboard manipulation, Drag and Drop; and Distributed Object applications both on the Client as well as the Server end. For a more detailed summary feel free to contact me. gbacklin@MariZack.com Thank you for your time to read this. Gene PS. Please let me know if you can receive NeXT Mail, Thanks again !
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: Multiple threads in AppKit app? Message-ID: <1995Mar3.222147.6694@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3j7qoh$a8e@sator.eric.on.ca> Date: Fri, 3 Mar 1995 22:21:47 GMT Vrijmoed Chi writes [ question and responses deleted ] > I remembered a while ago I was asking the same question here. Unfortunately, I > got no answer :-( So I started investigating the OpenStep specification, and > I found the solution! You don't need to spawn a new process to do this (too > expensive), a thread will be fine but you will need these classes: NSThread, > NSLock, NSNotificationQueue, NSPort. > > NSNotificationQueue is a class defined in OpenStep. Each thread has its own > notification queue so you can send notification to a thread through its queue. > To communicate with the UI thread, all you need to do is to get a hook to the > notification queue of the UI thread and enqueue a notification to it. The > action will then be carried out in the UI thread ! > Of course this all assumes that NSNotificationQueue is thread safe ;-) -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Newsgroups: comp.sys.next.programmer From: jsafar@lehman.com (jean safar) Subject: [Emacs 4.0 copmilation on sparc 3.3] Message-ID: <D4vwLK.GGL@lehman.com> Sender: news@lehman.com (News) Organization: Lehman Brothers, Inc. References: <3j10s0$6o0@hydra.unm.edu> Date: Fri, 3 Mar 1995 21:48:56 GMT I am having a segmentation fault at the line; ./temacs -batch -l loadup dump Has anyone compiled it successfully? I would appreciate any hint, Regards, --- ----------------------------------------------------------------- | Jean B. Safar email:jsafar (Next Mail OK!) | | | "riverrun, past Eve and Adam's, from swerve of shore to bend | | of bay, brings us by a commodius vicus of recirculation back | | to Howth Castle ad Environs", does it make sens to you ? | | | | Applied Derivative Products Technology | | | | | | Lehman Brothers phone:(212) 526-1679 | | American Express Tower, | | 21th Floor FAX: (212) 526-0205 | | New York, NY 10285 uucp:jsafar@lehman.com | -----------------------------------------------------------------
Newsgroups: comp.sys.next.programmer From: lloyd@world.std.com (Christopher Lloyd - not the actor) Subject: Re: NSMutableString vs NSString Message-ID: <D4w3A3.AqA@world.std.com> Keywords: Foundation, EOF, NSString Organization: The World Public Access UNIX, Brookline, MA References: <3j257i$8hf@cerberus.wsc.com> <3j7ike$3cd@hermes.dna.mci.com> Date: Sat, 4 Mar 1995 00:13:14 GMT In article <3j7ike$3cd@hermes.dna.mci.com>, Alex Nghiem <alexn@fdcsrvr.cs.mci.com> wrote: >In article <3j257i$8hf@cerberus.wsc.com>, <pascal@wsc.com> wrote: >> >>Is there a price to pay (memory consumption, speed) when using >>NSMutableStrings instead of NSStrings? >> >The only thing that comes to mind is if you do a copy. For a non-mutable >string, the copy doesn't make a copy; it simply returns the same id. >For example: > aCopy = [original copy]; > >aCopy will be identical to original after the statement is executed if original >is non-mutable. That is, it's an assignment statement which is much quicker >than having to allocate a new object. Oof. The distinguishing factor between NSMutableString and NSString is that you can modify the contents of an NSMutableString, and can not modify the contents of an NSString. Whether you choose one over the other should be a matter of that difference. NSMutableString and NSString represent abtract superclasses, not implementations. Speed and Memory consumption issues would be dependant on the concrete implementation that you end up with, since the concrete implementations are hidden you really don't know what you'll get, but how you use the strings should be an indication. Common sense would indicate that any given concrete implementation of NSString could be more efficient since it represents a fixed bunch of characters with a fixed encoding, and any given implementation of NSMutableString would be less efficient because it represents a variable bunch of characters with potentially the least space efficient encoding method. For example, the string constant @"dogfood" with the current implementation represents 12 bytes of object data { Class isa; char *bytes; unsigned numBytes; } Plus 8 bytes of NEXTSTEP encoded string data, statically allocated in the executeable. Total 20 bytes. Yet, the same string "dogfood" as an implementation of NSMutableString *may* represent something like { Class isa; unichar *shorts; unsigned numShorts; unsigned maxShorts; } Representing 16 bytes of object data, plus 14 bytes of string data using the UNICODE encoding. Total 30 bytes, 50% more space, plus any overhead incurred by dynamically allocating the object, plus any overhead the implementation adds to the allocated string to lessen reallocations as the string shrinks/expands below and above maxShorts. The beauty of class clusters is that they can provide a wide variety of efficient/accurate implementations for different kinds of data, all with the same interface... Use strings which satisfy your needs, yet don't use strings which oversatisfy your needs, and the implementations will take care of the rest. -- |: Christopher Lloyd :|: Yrrid Incorporated :|: lloyd@yrrid.com :|
Newsgroups: comp.sys.next.programmer From: precipi!neekibo (Hugues RICHARD) Subject: Re: EOF Adaptor for AS/400 Message-ID: <1995Mar3.221232.8817@precipice.fdntytruyu.fr> Sender: neekibo@precipice.fdntytruyu.fr Organization: Individual - Dijon, France. References: <D4Mv6E.10F@trapac.com> Date: Fri, 3 Mar 1995 22:12:32 GMT In article <D4Mv6E.10F@trapac.com> karl@trapac.com (Karl Kraft) writes: > > Has anyone written an EOF adaptor for the AS/400? > > Is there anyone out there interested in writing such an adaptor? I just received today some informations about NS3.3 from NeXT. Along with this was a list of EOF adaptators. One german company is planing to do an AS/400 adaptator : BIW gmbh you will apparently need their BIW BRAIN RPC supplementary product in order to talk to an AS/400. here's the email contact : braun@biw.cube.de no availability date nor price annnounced (on december 1,1994) Hugues. -- -------------------------------------------------------------------- neekibo@precipice.fdn.fr - France (small NeXTMail OK) ------------ NS3.2 ------------ NS3.0J ------------ :-) ------------
From: barton@ozbek.demon.co.uk (Barton Friedland) Newsgroups: comp.sys.next.programmer Subject: EOApplication.h not found Date: 1 Mar 1995 15:27:37 GMT Organization: Camilla Lowther Management Distribution: world Message-ID: <3j23p9$1nu@lowther.demon.co.uk> When I set the application class to EOApplication as the NeXT documentation requests, upon compilation I get the following: ..header file 'EOApplication.h' not found *** Exit 1 Stop. What is the secret to successful EOApplication classing? -- Barton Friedland barton@ozbek.demon.co.uk
From: faizel@mail.utexas.edu (Faizel Dakri) Newsgroups: comp.sys.next.programmer Subject: Re: GnuStep?... Date: 5 Mar 1995 21:20:11 GMT Organization: The University of Texas at Austin, Austin, Texas Distribution: world Message-ID: <3jd9ub$rb7@geraldo.cc.utexas.edu> References: <1995Mar3.173033.15701@lafn.org> I don't know the status, but you could check it out on the GNUStep home page: http://fvkma.tu-graz.ac.at/gnustep/ Hope this helps, --Faizel -- Faizel Dakri faizel@mail.utexas.edu (NeXTmail *friendly*) In article <1995Mar3.173033.15701@lafn.org> ad934@lafn.org (Chris Horton) writes: > > Hi, a while back some folks at SLAC (I think) were working on their own > implementation of open step. Could someone working on this email me the > status? I'm specifically interested in whether or not this port will work > on an SGI. THanks! > > -chris > -- > Chris Horton > ad934@lafn.org
From: gshaw@zeta.org.au (Greg Shaw) Newsgroups: comp.sys.next.programmer Subject: Using a PopupList in DBKit Date: 5 Mar 1995 22:32:00 GMT Organization: Kralizec Dialup Unix Sydney, +61-2-837-1183 V.32bis Distribution: world Message-ID: <3jde50$5pb@godzilla.zeta.org.au> Keywords: DBPopupAssociation DBKit Hi all, I discovered in nextanswers 1537 DBKit tips and examples that if I connect a popup list to a DBModule attribute of the form x.y.z. Where x is the entity, y is a relationship and z is an attribute from that relationship then the popuplist will populate itself with all the possible values of that attribute. This was brilliant as now I could browse through a table and the popuplist title would change as I selected new rows. The problem was that if I changed the value of the popuplist then the new value would not be reflected in the table. The only way to do this that I have discovered is to reselect the table ( can be slow and kludgy ). The target of the button becomes a DBPopupAssociation so I can't use any of the usual methods for interrogating the button nor can I programmatically determine when the value has changed. Has any one used this and either not found the problem ( ie. I stuffed up ) or has a work around? Thanks for any help. Cheers, Greg Shaw.
From: yoda@cis.uni-muenchen.de (Marc Guenther) Newsgroups: comp.sys.next.programmer Subject: Re: root's defaults database woes Date: 6 Mar 1995 01:13:24 GMT Organization: Institut fuer Informatik der Universitaet Muenchen Message-ID: <3jdnjk$10o@arcadia.informatik.uni-muenchen.de> References: <D4y19n.17L@blackmaus.com> In article <D4y19n.17L@blackmaus.com> dino@blackmaus.com (Dino Bagdadi) writes: [...] > This is what I get when I try to read the defaults database: > > # dread -l > dread: Can't open defaults database [...] Well, I have exactly the same problem. I noticed that the DefaultsSystem Preferences Module still works, though. Even the preferences of programs are stored. But I can't use dread,dwrite,dremove to change any of the defaults. Any ideas ?? -- Marc Guenther ------------------------------------------------------------------------- Centrum fuer Informations | Wagmuellerstr. 23 | Phone: +49 89 211 0670 und Sprachverarbeitung | 80538 M"unchen | Fax: +49 89 211 0674 University of Munich | Germany | yoda@cis.uni-muenchen.de -------------------------------------------------------------------------
From: stephen@macqbl.com.au (Stephen O'Gallagher) Newsgroups: comp.sys.next.programmer Subject: Re: Books on Objects and transactions ? Date: 5 Mar 1995 22:59:15 GMT Organization: Macquarie Bank Message-ID: <3jdfo3$4km@mblisd.macqbl.com.au> References: <3j3ich$iff@digdug.pencom.com> Not really but look out for some of the CORBA 2 prelim papers, they give a good basis for what the problem is (if you you can wade through it all). Some implementations ( not necc CORBA but things you can buy). ORBIX - from Iona in Dublin Eireland. TIB - from Teknekron (Owned by Reuters, very interesting stuff if you want real industrial strength software). They are in University Ave Palo Alto. SOG
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <taylorn@penshurst.com> Message-ID: <9503060027.AA07672@penshurst.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Nigel Taylor <taylorn@penshurst.com> Date: Sun, 5 Mar 95 19:27:15 -0500 Subject: Re: Multiple threads in AppKit app? Stan Jirman writes: > There is a big difference between locking and thus penalizing > performance and screwing up & crashing. We would LOVE to have > the AppKit lock its variables; the problem is certainly not > the runtime system, there are too many multithreaded apps > out there to prove the opposite. It is simply that > the AppKit isn't threadsafe. Just look at classic scheduling > and race condition examples and you see what is happening. > When you have e.g. 2 threads messing with typed streams > at the same time, which are full of globals and other > unprotected variables, your app will soon be dead. Even > the best runtime system won't help you when the classes > are not built thread-safe. > Thanks for your comments Stan. Yes, it is quite obvious that one must protect variables that are accessed by multiple threads. For instance, a common technique is to use a List instance as a queuing mechanism to transfer objects from one thread to another. The calls in one thread to addObject: and in the other thread to removeObjectAt: should be protected from each other by using a mutex. Without the protecting mutex, if one thread is halfway through adding an object to the list and the other thread runs and starts removing an object, the list can be left in a corrupted state. I don't know how "classic" this is. It just seems like common sense to me. Is it legal to use the List class this way, since it is not strictly an Appkit class, but a "Common" class? Does anyone out there know for sure? Notwithstanding that, I was actually trying to raise a different issue... > > This implies that you cannot safely use Objective-C objects, (or > > at least their methods), in a subthread without first calling > > the objc_setMultithreaded(YES) function. > > > Oh wrong. I have quite an app to prove that. > > > I'm also puzzled by the apparent resilience of programs that > > make extensive use of D.O. subthreads but never call the > > objc_setMultithreaded(YES) function. > > They don't have to. The call is per TASK, nor thread. You can call it of > course many times, but it won't get better. > The fact that your app runs OK multithreaded without calling the objc_setMultithreaded(YES) function _proves_ nothing. You are ignoring the well-documented fact that the runtime system is not threadsafe, and you are getting away with it. You are not alone. I too have large apps that make extensive use of subthreads. I am loath to use the objc_setMultithreaded(YES) function since it imposes a performance penalty on all threads, so I have tried running the apps without calling this function and they seem to run fine, for long periods of time. Somehow I must be avoiding the condition that makes the runtime system unsafe. I would really like to know exactly what makes it unsafe and continue to run multiple threads without incurring the performance penalty of using the objc_setMultithreaded(YES) function, by avoiding the problem area, if that is possible. Does anyone out there know if this is possible? Here are some extracts from the NeXT documentation on the subject of threadsafeness... Concepts: The Objective C runtime system is not thread-safe by default. To make it thread-safe, use the function objc_setMultithreaded(). 3.2 Release Notes: The Objective C run-time system has been made safe for use in multi-threaded programs. Since complete thread-safety requires that a lock be acquired every time a message is sent (which increases the time required to send a message by a factor of approximately three), the thread safety features must be explicitly enabled using the new function objc_setMultithreaded(). Note: The Application Kit and other NEXTSTEP kits don't make use of this Objective-C feature; thus kit classes (and their subclasses) can't be used outside the main thread of execution. RunTimeFunctions: void objc_setMultithreaded(BOOL flag) DESCRIPTION When flag is YES, this function ensures that two or more threads of the same task can safely use the run-time system for Objective C. To guarantee correct run-time behavior, it should be called immediately before starting up a new thread. Because of the additional checking required to ensure thread-safe behavior, messaging will be slower than normal. Therefore, flag should be reset to the default NO when there is only one thread using Objective C. This function cannot guarantee that all parts of the run-time system are absolutely thread-safe. In particular, if one thread is in the middle of dynamically loading or unloading a class (using objc_loadModules() or objc_unloadModules()) while another thread is using the class, the second thread might find the class in an inconsistent state. Similarly, a thread that gets the class hash table (using objc_getClasses()) cannot be sure that another thread won't be modifying it at the same time. I think the above, amply demonstrates the lack of threadsafeness in the Objective-C runtime system. I'd just like to know what aspects of it are unsafe and is it possible to avoid them without paying too much in terms of performance? > > I invite anyone with a deep (and preferably informed) understanding > > of this whole problem to explain it, in detail, here! > > > I don't know how deep my knowledge is, as there are always people who know > it better than oneself, but I can base this on some 3 yrs of experience > with multithreaded programming of the AppKit. > Funnily enough, I too have about three years experience of multithreaded programming in NeXTstep... Raf Schietekat writes: > The ``apparent resilience'' of DO applications can be explained by the fact > that objc_setMultithreaded(YES) is called implicitly by some things like > setting up a connection to run from its won thread. It's in the docs somewhere, > I think. Interesting ... but I can't find a doc reference to this. Does anyone out there know, for sure? --- -------------------------- Nigel Taylor Penshurst Inc. Nigel_Taylor@Penshurst.com (NeXTmail OK) --------------------------
From: deniseh@mcs.com (Denise Howard) Newsgroups: comp.sys.next.programmer Subject: Re: Say No to gdb Date: 6 Mar 1995 05:52:02 GMT Organization: MCSNet Services Distribution: world Message-ID: <3je7u2$3gq@News1.mcs.com> References: <3jb6md$52h@crl.crl.com> Robert Smith writes > Is there an alternative to using gdb for debugging? gdb gives me the > hives! Is there a commercial alternative? SuperDebugger, distributed by Impact Software Publishing, is very nice. It's a graphical front-end to gdb, and more. You can contact them at info@impact.com. Denise (I have no connection with Impact other than as a fan of SuperDebugger.) -- Denise Howard | PROGRAM, tr. v., An activity similar to Chicago, IL | banging one's head against a wall, but deniseh@mcs.com | with fewer opportunities for reward. NeXTMail welcome! | http://www.mcs.com/~deniseh
From: sldq1@cc.usu.edu Newsgroups: comp.sys.next.programmer Subject: Oraperl available for NEXTSTEP? Message-ID: <1995Mar5.151947.43698@cc.usu.edu> Date: 5 Mar 95 15:19:47 MDT Organization: Utah State University I want to be able to run Oraperl (perl with Oracle database access extensions) on my NEXTSTEP machine. I can compile Perl just fine...but, are there Oracle libraries for NEXTSTEP/Intel available to link to so that I can compile Oraperl? Oracle is great...Perl is great...I need to use them together! Any help would be greatly appreciated. Thanks! John Zollinger ProActive Consulting, Inc. sldq1@cc.usu.edu
From: taweil@skat.usc.edu (Ta-Wei Li) Newsgroups: comp.sys.next.programmer Subject: Icon (the language) for NeXTSTEP/Intel 3.3? Date: 5 Mar 1995 19:08:59 -0800 Organization: University of Southern California, Los Angeles, CA Sender: taweil@skat.usc.edu Distribution: world Message-ID: <TAWEIL.95Mar5190857@skat.usc.edu> Hi, I am trying to compile Icon for NeXTSTEP/Intel 3.3 but the default configuration for NeXT containing one file with in-line assembly for m68k. Before I start hacking it for the Intel, I'd like to know if someone has done it. Thanks. David -- Ta-Wei "David" Li UNIX Consultant, University of Southern California Member, League for Programming Freedom "Innovate, don't litigate."
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 6 Mar 1995 05:15:08 GMT Organization: Digital Fix Development Message-ID: <3je5os$ds7@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally the NEXTSTEP there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ *** NEED INFORMATION *** NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff, but very short on disk space ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.next.com: See the below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: Say No to gdb Message-ID: <D505H8.331@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems References: <3jb6md$52h@crl.crl.com> Date: Mon, 6 Mar 1995 04:51:08 GMT Robert Smith writes > Is there an alternative to using gdb for debugging? gdb gives me the > hives! Is there a commercial alternative? get SuperDebugger. it makes gdb more efficient and palettable. its not expensive, and you can find a limited demo on the ftp archives, which can be fully enabled by a phone call with a credit card. in the long run though, learning gdb well pays off for programming NEXSTEP, even if the interface is cryptic. -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: aggregate `wstatus' has incomplete type Date: 6 Mar 1995 14:24:37 GMT Organization: The University of York, UK Distribution: world Message-ID: <3jf5v5$fgh@castle.york.ac.uk> References: <3iepdt$rsi@nntp1.u.washington.edu> Armitage (armitage@u.washington.edu) wrote: > I have the following fragment (NS3.3/3.2Dev, White): > #include<sys/wait.h> > void fireman() > { > union wait wstatus; > while(wait3(&wstatus,WNOHANG,NULL) >0); > } > The compiler gives me the following errors: > main.C: In function `void fireman ()': > main.C:39: aggregate `wstatus' has incomplete type and cannot be initialized > main.C:40: `wstatus' undeclared (first use this function) > main.C:40: `WNOHANG' undeclared (first use this function) it looks like the problem here is that /NextDeveloper/Headers/g++/_G_config.h defines _G_HAVE_SYS_WAIT to 0, which means that the relevant include file is not included and so no union definition is found. this i think is wrong. i works fine when i change the definition in this include file. (this is 3.2Dev on white) it seems unbroken in earlier (black) versions. hope this helps, cheers, rog.
From: dg8z@hrz.th-darmstadt.de (Markus Pilzecker) Newsgroups: comp.sys.next.programmer,comp.lang.eiffel Subject: Eiffel on NeXTSTEP Date: 6 Mar 1995 20:25:51 GMT Organization: Technische Hochschule Darmstadt Message-ID: <3jfr4f$e7m@rs18.hrz.th-darmstadt.de> Keywords: NeXTSTEP, Eiffel, Objective-C, Interface Builder, DBKit, Distributed Objects I am going to start the development of an application running on NeXTSTEP and if it makes sense, I would prefer (due to its cleanness from the software developers point of view) prefer to use Eiffel for larger parts of the implementation. Therefore I ask: "Is there anybody out there, who has at least first experiences with one of the Eiffel-programming-environments running on NeXTSTEP ?" I'm especially interested in the following topics: - how can Eiffel and Objective-C work together ? How far is an integration of that two worlds possible ? - is there a canonical way integrating the NeXTSTEP window machine into an Eiffel app' ? Can I take advantage of the Interface Builder ? - is there an elegant way to achieve persistency for Eiffel objects via a DBKit database (any other successful mechanism also appreciated) ? - what about "distributed objects", if "objects" means Eiffel objects ? - possibilities to "trace" a running mixed language project ? I'm not only interested in all [hopefully] that first replies, but also in a longer-lasting bidirectional exchange of experiences. You will reach me via email: "dg8z@rs26.hrz.th-darmstadt.de" snail: Markus Pilzecker Am Wechsel 9a D-64625 Bensheim Germany phone: +49 6251 39415 or, mostly preferred, in order to keep the discussion open, here in this newsgroup. Thanks, Markus
Newsgroups: comp.sys.next.programmer From: flog@open.ch Subject: ANNOUNCE: PointBreak Software PBTableView 1.0 Message-ID: <D51Jrt.GsG@eunet.ch> Sender: usenet@eunet.ch Organization: EUnet AG, Switzerland Date: Mon, 6 Mar 1995 22:57:29 GMT PointBreak Software Announces Release 1.0 of PBTableView for EOF FOR IMMEDIATE RELEASE Contact: PointBreak Software A Division of Open Systems AG Petersplatz 12 CH-4051 Basel, Switzerland Tel. +41 61 262 0505 Fax. +41 61 262 0510 E-Mail. Info@PointBreak.com PointBreak Software PBTableView(tm) Release 1.0 Basel/Zurich/Lausanne, March 6th, 1995 - PointBreak Software announces it's new EOF compliant DBTableView/NXTableView alternative PBTableView 1.0. PBTableView is the first product in a line of Swiss quality objectware for the NEXTSTEP/OpenStep community including the following and more features: multi line headers frozen columns hidden columns page scrolling cursor navigation block selection & copy/paste text overlapping layout storage (to file) selectable cell height selectable fonts IB support to set up the tables layout and connect it's columns to a EOModule plug & play method compatibility to NXTableView and DBTableView platform for future features (calc rows, color, multiple dimensions etc.) About PointBreak Software: PointBreak Software is dedicated to deliver products and custom development services to the professional NEXTSTEP and OpenStep community. PointBreak Software was launched by Open Systems AG who made early efforts in promoting and selling products from NeXT back in 1991. For more information please contact: WWW Server http://www.pointbreak.com Sales & Product Information: info@PointBreak.com Telephone/Fax: +41 61 262 0505/+41 61 262 0510 DatabaseKit, EOF, Interface Builder, and NeXTSTEP are a trademarks of NeXT Computer, Inc. PBTableView is a trademark of PointBreak Software
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: Multi-Threads - objc_setMultithreaded() Date: 6 Mar 1995 18:12:23 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3jfja7$7e1@news.next.com> References: <3j8mif$ode@nntp.Stanford.EDU> Hi - There is apparently some confusion about the objc_setMultithreaded() function. This is intended to make Objective-C itself thread-safe, not the Objective-C *objects*. That is, calls like objc_getClasses() can be called from multiple threads. As with *all* multi-threaded applications, care must be taken to use locks to protect data (and sometimes code) that should not be used simultaneously by multiple threads. For an example of using multiple threads and locks, check out these examples: /NextDeveloper/Examples/AppKit/SortingInAction - sorts data in separate threads using the mutex_() locking functions /NextDeveloper/Examples/DistributedObjects/MultipleThreads - shows how to create a multi-threaded (1 per client) D.O. server Also, take a look at the docs for NXLock (and it's variants). -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
From: smith@nextone (Howard Smith) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.bugs,comp.sys.next.programmer Subject: MAX supported getty speed Date: 6 Mar 1995 17:54:09 GMT Organization: NIEHS Sender: Howard Smith <smith@nextone.niehs.nih.gov> Message-ID: <3jfi81$hgm@huron.eel.ufl.edu> Summary: getty wont allow 57600 baud Keywords: getty zs Anyone know what the max speed the Zilog 8530 SCC (black hardware) is really capable of? I can get the following gettytab entry to work: DMAGNUM:MAGfast:\ :ap!:p8:im=\r\n\r\nNeXT / magnum (%h) (%t)\r\n\r\r\n\r:sp#38400: but at 57600 getty hangs. Is the next-supplied getty an old version with limited speed support or what? I can dial out via Kermit at 57600 with no problem! I notice that the NXFax product uses a getty speed of 38400 as well... -- Howard C. Smith smith@nextone.niehs.nih.gov
From: premise@jupiter.eecs.umich.edu (Sean Willson) Newsgroups: comp.sys.next.programmer Subject: NSTextObject-->MIME-->NSTextObject Date: 6 Mar 1995 20:55:17 GMT Organization: University of Michigan Engineering, Ann Arbor Message-ID: <3jfsrl$gf6@srvr1.engin.umich.edu> All NeXT Programmers. I am working on creating a transparent layer MIME translation layer one could insert in between a text object and any other layer that translates from text to MIME. I am running into the following questions: 1. Are there any freeware or 3rd party objects that can do what I am looking for? Same question but maybe an app we could strip the MIME layer out of? 2. Does anyone see an easier way of doing this? We are mainly taking this route for cross platform compatibility and future ports. 3. Does NeXTStep 3.3 come with utilites to uudecode base64 text? If you have any suggestions or information please e-mail me at: premise@engin.umich.edu Thank you for your help.... Sean Willson _________________________________________________________________________ | Sean M. Willson "Chance favors a prepared mind.." | | University of Michigan College of Engineering | | ASCII: premise@umich.edu NeXTMail: premise@pluto.eecs.umich.edu | | http://www.engin.umich.edu/~premise/ WWW Page (NeXT Stuff) | | NeXT Programmer (Artist) in training! | |_______________________________________________________________________|
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.programmer Subject: Re: GnuStep?... Date: 6 Mar 1995 17:00:56 GMT Organization: Dept. of Computer Science, University of Salzburg/Austria Distribution: world Message-ID: <3jff48$bqk@jak.cosy.sbg.ac.at> References: <1995Mar3.173033.15701@lafn.org> Chris Horton (ad934@lafn.org) wrote: > Hi, a while back some folks at SLAC (I think) You are right! > were working on their own > implementation of open step. Could someone working on this email me the > status? Release 0.85 is now available from ftp://ftp.slac.stanford.edu/pub/sources/objcX-0.85.tar.gz > I'm specifically interested in whether or not this port will work > on an SGI. Thanks! It works fine with IRIX. -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@fvkma.tu-graz.ac.at GNU OpenStep Development Team, Documentation Coordinator/Leader http://fvkma.tu-graz.ac.at/gnustep/gnustep.html
From: alex@talus.com (Alex Kolesov) Newsgroups: comp.sys.next.programmer Subject: IOForkThread in 3.3 driverkit Date: 6 Mar 1995 18:49:06 GMT Organization: The Black Box, Houston, Tx (713) 480-2686 Distribution: world Message-ID: <3jflf2$1g@news.blkbox.com> Keywords: driver, thread It looks like old good function IOForkThread is not working in 3.3 kernel. Does anybody know how to start your own thread writing a driver under 3.3 and using 3.3 driverkit ? ~~~ Alex A. Kolesov || Talus Management alex@talus.com || 1304 Langham Creeck Phone: (713) 578-1434 || Suite #300 Fax: (713) 578-1815 || Houston, TX 77084
From: dreed@orion.it.luc.edu (Dale F. Reed) Newsgroups: comp.sys.next.programmer Subject: Help: how to make matrix disappear? Date: 6 Mar 1995 19:13:32 GMT Organization: Loyola University of Chicago Message-ID: <3jfmss$co0@apollo.it.luc.edu> There's probably a simple answer to this, but how do I make a matrix disappear? My application has two modes with different buttons and matrices displayed on the screen for each one. All objects in the window have been created from within IB. I can make the buttons "go away" by blanking the title and setting them to have no border, but I cannot do the same thing for a matrix of sliders. (I can disable them, but I can't make them disappear). Any insight will be greatly appreciated. Regards, Dale Reed reed@math.luc.edu
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Mon, 6 Mar 95 20:44:04 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9503061944.AA03184@flexus> Subject: Re: Multiple threads in AppKit app? >>>>> Nigel Taylor writes: Raf Schietekat writes: > The ``apparent resilience'' of DO applications can be explained by the fact > that objc_setMultithreaded(YES) is called implicitly by some things like > setting up a connection to run from its won thread. It's in the docs somewhere, > I think. Interesting ... but I can't find a doc reference to this. Does anyone out there know, for sure? <<<<< Oops! I tried to find it myself, and the only thing I could come up with was an exchange on c.s.n.p in 1994-11, in which this question was put to the readership by Jeff Wishnie <jwishnie@gb.swissbank.com> > If I instantiate an NXConnection and tell it to > "runInNewThread" does the Connection call > Objc_SetMultithreaded(YES) and how does this effect the > performance of my app? and answered by Mark Anenberg <marka@Eng.Sun.COM> of the OpenStep Development Team at SunSoft, Inc.: > Egad.... > Apparently in the DO version of this in Nextstep, it does > create a cthread and not call Objc_SetMultithreaded. > Whats weird is that in the PDO version, it doesn't create > a thread at all; I believe it tries to abstract around > it using portsets. since PDO was designed to be portable > they didn't make any assumption about threads being on > the platform. At least that's my understanding(and that > is limited 8) I guess this was just a product of my imagination. My apologies for the disinformation. I have to admit to not really having used DO yet, or else I might perhaps have seen a performance difference without or with calling this function. In fact, the only invocation of objc_setMultithreaded in the sys/NeXT shlibs is in NeXT and is dominated by -[NXSoundDevice initOnHost:] (now NeXT will sue me for disassembling their shlibs). So you *will* have to invoke objc_setMultithreaded yourself. I think I'd better shup up now, and not try to *speculate* about how the only thread-unsafeness might be in warming up the method caches, which happens in relatively infrequent increments, so that problems are highly unlikely, but then why would objc_setMultithreaded(YES) make things so slow if, instead of having to acquire a lock for each objc_msgSend, the runtime might, e.g., just switch off permissions for the page of code that contains objc_msgSend while it is loading something into the method cache, shifting a very frequent small burden to a very infrequent but somewhat larger effort (should not be so difficult, but does involve Mach exception handling to escort current objc_msgSend invocations to completion); blocking all the other threads and releasing offenders by letting them run for small amounts of time until they are off the property is even easier... [cut] Anyone who knows, please delight us with your knowledge. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer From: guy@dilemma.ho.att.com (literacy) Subject: C++ Function Name Decoder Message-ID: <D51GMu.11F@nntpa.cb.att.com> Sender: news@nntpa.cb.att.com (Netnews Administration) Organization: AT&T Date: Mon, 6 Mar 1995 21:49:41 GMT Does anyone now if there is a function name decoder provided with gcc for NextStep. I have NextStep running on an Intel machine. Thanks, Guy
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Icon (the .app) (was Re: Icon (the language) for NeXTSTEP/Intel 3.3? ) Date: 6 Mar 1995 21:01:58 GMT Organization: Total System Software Distribution: world Message-ID: <3jft86$1a4@tssslab.TotSysSoft.com> References: <TAWEIL.95Mar5190857@skat.usc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <TAWEIL.95Mar5190857@skat.usc.edu> taweil@skat.usc.edu (Ta-Wei Li) writes: }~ Hi, }~ }~ I am trying to compile Icon for NeXTSTEP/Intel 3.3 but the }~ default configuration for NeXT containing one file with in-line }~ assembly for m68k. Before I start hacking it for the Intel, I'd }~ like to know if someone has done it. I've looked at Icon, but don't have an Intel answer for you. Sure wish you were talking about Icon.app from the 2.x distribution! Bruce
From: pmartin@landau.ucdavis.edu (Pat Martin) Newsgroups: comp.sys.next.programmer Subject: Tektronics Emulator for NeXT? Date: 6 Mar 1995 00:45:14 GMT Organization: University of California, Davis Message-ID: <3jdluq$drr@mark.ucdavis.edu> [ Article crossposted from comp.sys.next.software ] [ Author was Pat Martin ] [ Posted on 5 Mar 1995 22:52:12 GMT ] Does sucha a thing exist to exprot graphics from a remote machine--there is no way to get a graphics window opened. What's the deal? pcm
From: gwillem@alpha.ntu.ac.sg (WILLEM VAN SCHAIK (INTERNET: GWILLEM@NTUVAX.NTU.AC.SG)) Newsgroups: comp.sys.next.programmer Subject: Re: shell prog for previewing RIBs (QuickRenderMan) ? Date: 7 Mar 95 17:12:39 +0800 Organization: Nanyang Technological University Message-ID: <1995Mar7.171239@alpha.ntu.ac.sg> References: <armin.794069956@master> In article <armin.794069956@master>, armin@kd.fh-hannover.de (Armin Retzko) writes: > I need a command line utility, which produces preview images from a RIB file. Have a look at prman. It is already on your system. Willem
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <0005508785@mcimail.com> Date: Mon, 6 Mar 95 23:26 EST From: "ErgoTech Development, Inc." <0005508785@mcimail.com> Subject: RE:Possibility? NeXTSTEP as a color separation processor Message-ID: <31950307042613/0005508785NA4EM@MCIMAIL.COM> I have a script, taken from the book "Real World Postscript" (complete reference on request, I don't have the book handy) that does just a fine job of separating postscript, except for bitmaps. Anyone have any fast ways to turn bitmaps into 4 colors? Jim Redman
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: Dynamic Loading (NXApp vol. 1 iss. 1, NextAnswer 1503) Date: 7 Mar 1995 11:39:59 GMT Organization: The University of York, UK Message-ID: <3jhgmf$dtd@castle.york.ac.uk> References: <9502281820.AA04038@flexus> <3j3pbc$7ti@nic-nac.CSU.net> Thomas Poff (thomas@zippy.sonoma.edu) wrote: > This object-code could be distributed something like what clip-art is > distributed today (don't take that _too_ seriously). In fact, you could > be running a program, say to yourself, "oh I need this program to provide > me some functionality like say, playing Quicktime movies." You could then > drag and drop an object into your application wrapper _while_ the program > is running. Then you could dynamically load it into your application. > I shouldn't talk so much. This is dynamic binding taken one small step > further than what most folks are willing to think about even in the > NeXTStep (and other) communities at the moment. isn't this what apps like IconBuilder and Interface Builder are doing when you load a new `tool' ? seems like they have already thought that far... rog.
From: vchi@visgen.com (Vrijmoed Chi) Newsgroups: comp.sys.next.programmer Subject: Re: Multiple threads in AppKit app? Date: 3 Mar 1995 19:30:25 GMT Organization: The Eye Research Institute of Canada Message-ID: <3j7qoh$a8e@sator.eric.on.ca> References: <jpanicoD4sFrF.GGu@netcom.com> In article <jpanicoD4sFrF.GGu@netcom.com> jpanico@netcom.com (Joe Panico) writes: > The Garfinkle and Mahoney book states that NS 3.2 Appkit is NOT thread safe. > What exactly does this mean? Does it mean that any application that uses > appKit objects should not attempt to spin off more threads at all? Or does > it mean that an appKit app should not attempt to spin off another thread > that will manipulate other appKit objects? Is NS 3.3 appKit thread safe? > It simply means that appkit objects never use locking mechanism to manipulate the instances variables. So if two threads are using the same object, the state of the object may become inconsistent. Therefore, all the drawing, manipulation of appkit objects and user event handling should be carried out in one thread (the UI-main thread). And I don't see 3.3 is correcting this. > I have an application that does a large (time intensive) file copy, and > am building into it a view that displays the copy progress. I want to > monitor copy progress by measuring file sizes while the copy is proceeding. > Do I have to spawn a new process for the routine that measures the file sizes > (even though it uses no appKit objects) or can I spin off a new thread to > do this? > I remembered a while ago I was asking the same question here. Unfortunately, I got no answer :-( So I started investigating the OpenStep specification, and I found the solution! You don't need to spawn a new process to do this (too expensive), a thread will be fine but you will need these classes: NSThread, NSLock, NSNotificationQueue, NSPort. NSNotificationQueue is a class defined in OpenStep. Each thread has its own notification queue so you can send notification to a thread through its queue. To communicate with the UI thread, all you need to do is to get a hook to the notification queue of the UI thread and enqueue a notification to it. The action will then be carried out in the UI thread ! eg. // something you initiated in the UI thread [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateProgressView:) notificationName: @"SomethingIsDone" object: theReader]; [NSThread detachNewThreadSelector: @selector(readFile:) toTarget: theReader withObject: [NSNotificationQueue defaultQueue]]; // The reader implements something like this - readFile: (NSNotificationQueue*) q ... noti = [NSNotification notificationWithName: @"SomethingIsDone" object: self]; [q enqueueNotification:noti postingStyle:0]; ... However I am not sure when will we have all these classes released from NeXT? (I already implemented my own and it just works for me!) Good luck!
From: cadilhac@arles.univ-rennes1.fr (Nicolas Cadilhac) Newsgroups: comp.sys.next.programmer Subject: Problem with Distributed Objects Date: 7 Mar 1995 13:12:45 GMT Organization: Universite de Rennes 1, France Message-ID: <3jhm4d$6oq@news.univ-rennes1.fr> Hello, I'm trying to develop one server and one client and to make them communicate. In the server, I'm calling a method of the client (method that is defined in a client protocol) and it works. Trying to call this method again and I havean error : [client treatmentRun]; [client treatmentRun]; Mar 7 13:52:35 arles Client[693]: handleRequestOnPortal: received message for c75ec with unknown sel: treatmentRun Mar 7 13:52:35 arles Server[692]: received reply message from port 28 via dps Thanks for your help
Newsgroups: comp.sys.next.programmer From: saty@next2.togliatti.su (S.A. TsYbanov) Subject: Re: SysV Streams for NS? Message-ID: <D52JI1.9ow@ladem.tlt.ru> Sender: usenet@ladem.tlt.ru (Mr. Usenet) Organization: JV Ladem References: <3j1gu9$29i@marvin.isdn.cs.tu-berlin.de> Date: Tue, 7 Mar 1995 11:49:13 GMT Hi ! In article <3j1gu9$29i@marvin.isdn.cs.tu-berlin.de> buzz@marvin.FB10.TU-Berlin.DE (Bastian Schlueter) writes: > > Hello Netters, > > does anybody know of a SystemV Streams implementation/emulation for > Nextstep? > > Ciao > Bastian I'm afraid it isn't possible. Pure BSD is the ancient OS. But I think that NeXTSTEP's MACH extentions has some ideas and things that much better that Streams ideas of System V.
From: samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer,comp.lang.eiffel Subject: Re: Eiffel on NeXTSTEP Date: 07 Mar 1995 16:18:07 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95Mar7111807@marge.cs.mcgill.ca> References: <3jfr4f$e7m@rs18.hrz.th-darmstadt.de> In-reply-to: dg8z@hrz.th-darmstadt.de's message of 6 Mar 1995 20:25:51 GMT <dg8z@hrz.th-darmstadt.de> writes: >Therefore I ask: "Is there anybody out there, who has at least >first experiences with one of the Eiffel-programming-environments >running on NeXTSTEP ?" Hi. >I'm especially interested in the following topics: > - how can Eiffel and Objective-C work together ? How far is an > integration of that two worlds possible ? Actually, this is pretty cool. I proposed a while ago to one of our clients that this could be done by tying together the runtime of ObjC to Eiffel. It worked pretty much as I thought, as Paul Murphy built the implementation (and found some limitations, but nothing serious). So, what was done was to create ObjC proxy classes for Eiffel objects, which encapsulate them. Also, the Tower compiler has ObjC extensions on NEXTSTEP. I think they also have adopted an implementation of this proxy ide. Contact rock@twr.com to get info about Eiffel on NEXTSTEP. > - is there a canonical way integrating the NeXTSTEP window machine > into an Eiffel app' ? Can I take advantage of the Interface > Builder ? Yes. See above ;-). > - is there an elegant way to achieve persistency for Eiffel objects > via a DBKit database (any other successful mechanism also > appreciated) ? Hmmm. Blatant plug time: Hutchison Ave. Software has built something called the Persistence Kit, which transparently allows for persistent objects *without* you having to do any extra work. At the same time, it allows you full flexibility in persistence should you want to go deeper into the kit. You can get docs about this from ftp://hasc.ca/pub/pkit. Note: The current implementation of the Persistence Kit is in Eiffel, and we are nearing the completion of an implementation under ObjC. You can contact herve@hasc.ca should you desire information on the p-kit. We're planning on support EOF databases, as well as Object Oriented databases (which is what we're starting off with). > - what about "distributed objects", if "objects" means Eiffel objects ? If you build an ObjC proxy for an Eiffel object, you can use DO's to connect the two Eiffel object proxies, allowing them to talk to each other. As ObjC/Eiffel proxy creation is simple, this gives you a whole lotta functionality for cheap. (Takes a bow). Of course, Eiffel is a static typed language, so sometimes this rears its ugly head as a problem. > - possibilities to "trace" a running mixed language project ? Dunno. I've not actually programmed in Eiffel myself. - db -- For he today that sheds his blood with me shall be my brother; be he ne'er so vile, this day shall gentle his condition. Gentlemen in England now abed shall think themselves accursed they were not here, and hold their manhoods cheap whiles any speaks that fought with us upon Saint Crispin's day.
Newsgroups: comp.sys.next.programmer From: me@iwo.cube.net (Marquardt) Subject: Re: shell prog for previewing RIBs (QuickRenderMan) ? Message-ID: <D51D7t.s3@iwo.cube.net> Organization: IWO References: <armin.794069956@master> Date: Mon, 6 Mar 1995 20:35:53 GMT Armin Retzko (armin@kd.fh-hannover.de) wrote: : Hi everybody. : I need a command line utility, which produces preview images from a RIB file. : I've read about the QuickRenderMan in the NeXT Developer Release Notes (QRMSpec.rtf), but i'm not able to use this info, because i'm no programmer. : Has anybody heard of an existing command line utility? Here you are: "previewrib": cat myheader $1 | sed "s_FILENAME_$2.tiff_g" >/tmp/myrib.rib /usr/prman/prman /tmp/myrib.rib open "/tmp/$2.tiff" "myheader": Display "/tmp/FILENAME" "tiff" "rgb" ShadingRate 160 PixelSamples 1 1 Usage: previewrib /NextDeveloper/Examples/RenderMan/Airplane.rib JustAPreview The second parameter gives the name of the peview file (you can't always use the same name, since Preview.app won't reopen an image it has already opened). This works fine for .rib-files that don't have a Display-command yet. For other files use the following: "previewrib2": cat myheader2 $1 | sed "s_Display.*_Display \"/tmp/$2.tiff\" \"tiff\" \"rgb\"_g" >/tmp/myrib.rib /usr/prman/prman /tmp/myrib.rib open "/tmp/$2.tiff" "myheader2": ShadingRate 160 PixelSamples 1 1 Increase the ShadingRate to get cruder but faster rendering (The number gives the average size of each individually shaded piece of a surface in pixels). "PixelSamples 1 1" means: Every pixel is only shaded once (default: 2 2, which is for antialiasing). Hope this helps, Florian Marquardt via my brother: -- Christoph Marquardt - cmarq@cube.net (NO NeXTMail, please)
From: taweil@skat.usc.edu (Ta-Wei Li) Newsgroups: comp.sys.next.programmer Subject: Re: Icon (the .app) (was Re: Icon (the language) for NeXTSTEP/Intel 3.3? ) Date: 7 Mar 1995 09:46:36 -0800 Organization: University of Southern California, Los Angeles, CA Sender: taweil@skat.usc.edu Distribution: world Message-ID: <TAWEIL.95Mar7094633@skat.usc.edu> References: <TAWEIL.95Mar5190857@skat.usc.edu> <3jft86$1a4@tssslab.TotSysSoft.com> In-reply-to: Bruce Gingery's message of 6 Mar 1995 21:01:58 GMT >>>>> "Bruce" == Bruce Gingery <bruce@TotSysSoft.com> writes: In article <3jft86$1a4@tssslab.TotSysSoft.com> Bruce Gingery <bruce@TotSysSoft.com> writes: Bruce> I've looked at Icon, but don't have an Intel answer for Bruce> you. I was asking about the programming language called Icon from the University of Arizona. I needed it to install noweb. When I got the distribution, it has only m68k port since it uses some in-line assembly. I have a quick hack by copying the linux port and it WORKS. If anyone interested in the Icon 9.0 for NeXTSTEP/Intel 3.3, send me an e-mail. Bruce> Sure wish you were talking about Icon.app from the 2.x Bruce> distribution! For Icon.app replacement, I recommand WetPaint from LightHouse, especially their great student price, $25. :) -- Ta-Wei "David" Li UNIX Consultant, University of Southern California Member, League for Programming Freedom "Innovate, don't litigate."
Newsgroups: comp.sys.next.programmer From: me@iwo.cube.net (Marquardt) Subject: Re: DO trouble Message-ID: <D4xq0J.M1@iwo.cube.net> Organization: IWO References: <3j4h3r$21b@sun0.urz.uni-heidelberg.de> Date: Sat, 4 Mar 1995 21:21:54 GMT David A. Coyle (dcoyle@kakapo.mpi-hd.mpg.de) wrote: : I'm having trouble getting DO to work. : I keep getting this message on the console: : Mar 2 09:55:19 kakapo Annealer[670]: encodeData:ofType: : unencodable type (v12@-4:-8I-12) : Mar 2 09:55:34 kakapo Annealer[670]: Unknown error code : 11013 in NXReportError : The thing is, I'm not encoding anything (that I know of!). : The objects I pass should go by proxy (the default, [snip] : if([theObject isKindOf:[MyObject class]]) : NXRunAlertPanel("Remote","Really got : Object","Even better",NULL,NULL); : /* This DIDN'T */ This is interesting. I can't even compile something like that! Here's a short example program: #import <appkit/appkit.h> #import <remote/NXConnection.h> #import <remote/NXProxy.h> @interface myObject:Object { } - printNumber:(int)num; - endIt; @end void main() { id server; [Application new]; server=[NXConnection connectToName:"myServer" onHost:"*"]; [server printNumber:3]; // works if([server isKindOf:[myObject class]]) puts("yes"); [server endIt]; [NXApp free]; } iwo_ice% cc example.c -ObjC -lMedia_s -lNeXT_s -o example ld: Undefined symbols: .objc_class_name_myObject When I remove the [myObject class], there's no such problem. Everything else works fine at run-time. When you pass an isa pointer to your remote object in "isKindOf:", how does the remote object know whether it is of this kind of class? Its isa pointer (and those of its superclasses) will be different! (Well, I don't know exactly how "isKindOf" works...) -- Christoph Marquardt - cmarq@cube.net (NO NeXTMail, please)
Newsgroups: comp.sys.next.programmer From: me@iwo.cube.net (Marquardt) Subject: Re: Probs communicating linked lists betw objects Message-ID: <D4xqI6.Mw@iwo.cube.net> Organization: IWO References: <3iv9ka$qjv@yuma.ACNS.ColoState.EDU> Date: Sat, 4 Mar 1995 21:32:29 GMT richard warner (warnerr@beethoven.cs.colostate.edu) wrote: : What I do is NX_MALLOC my node in the "target" object. Then I : use the address of that pointer as an argument in the selector: : [sourceObject giveMeList:&node]; : The source object receives a ptr to a ptr and sets it to its list: : *node = list; : And I get all sorts of memory exception errors, but sometimes it : works fine. In C++ this strategy works fine. Another way to do it would Why do you NX_MALLOC node? It's only a pointer in which you want a pointer to the list to be copied, isn't it? Why not simply use sourceObject: - giveMeList { return list; } targetObject: node=[sourceObject giveMeList]; length=[node count]; // etc. -- Christoph Marquardt - cmarq@cube.net (NO NeXTMail, please)
From: shanega@ATHENA.MIT.EDU (Shane G. Artis) Newsgroups: comp.sys.next.programmer Subject: rld and dynamic object file binding Date: 7 Mar 1995 19:43:44 GMT Organization: Massachusetts Institute of Technology Sender: shanega@athena.mit.edu Message-ID: <3jid1g$4re@senator-bedfellow.MIT.EDU> Keywords: rld, rld_load, obj_loadModule I am looking for any code fragments that implement dynamic loading of standard C library routines from a pre-compiled object file or library file. I have examined the rld(3) manual page and I find it quite vague on many details; particularly the arguments to the functions that are described are not documented. Could somebody please post information (preferably code) on binding C object files to an already running process and then executing a routine from the newly bound object file? If this is not possible, pointers to more information on the rld routines or other packages would be very helpful. By the way, the functionality level I am after is equal to the functionality provided by the dlopen() and dlsym() commands available under SunOS, Solaris, HP-UX, and certain other Unix systems. I also need information on how to link an object file to be one of these dynamically bound resources. I do not in any way want Objective-C-specific solutions. Thanks very much, Shane
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Fri, 3 Mar 95 15:03:19 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9503031403.AA00988@flexus> Subject: Locali(s/z)ation Hi, Want to have some fun and surprise your friends and/or LAN companions with a bit of local-language stuff? Or, on a more serious note, satisfy your customers? Here's what you should do to activate your own language, if it's not yet supported by NeXT (at least, it works for me): As root: - Edit /usr/lib/NextStep/Resources/language.strings by adding the relevant English-local pair for your language, e.g., "Dutch"="Nederlands". - Edit some stuff in /usr/lib/NextStep/Resources/English.lproj, and save it with the same name but in Dutch.lproj. For each user: - in a shell: ``dread System Language'' and ``dread System AvailableLanguages'' - take the output of the previous two, and, with the English name of your language added, do things like ``dwrite System Language "Dutch;<output>"'', for both previous dreads, with <output> replaced with what came out of dread. I don't know the difference between Language and AvailableLanguages. Any program that is quit and launched again should now work with your own language (limited to available localisation). If your language does not figure in the language.strings file you might want to send me the appropriate pair to use (please use the subject ``Re: Locali(s/z)ation''). I'll publish the finished registry, and, who knows, perhaps NeXT will even most kindly and generously consent to add it to the next release... (If I have missed any existing registry, please tell me.) Here's what I have now: >>>>> "Dutch" = "Nederlands"; <<<<< Note: Read NextAnswers.1102. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think The language of the northernmost part of Belgium, where more than half of its population lives, is Dutch (as in The Netherlands), not Flemish (there is no such language). The southernmost part speaks French, except for a few cantons (?) in the east where they speak German. Belgium's capital is Brussels, also the capital of the European Union, and a lot of languages are spoken there. There, a real ``surprise package of Europe'' (cf. commercial on CNN International) :-)...
From: dreed@orion.it.luc.edu (Dale F. Reed) Newsgroups: comp.sys.next.programmer Subject: Re: Help: how to make matrix disappear? Date: 7 Mar 1995 23:51:05 GMT Organization: Loyola University of Chicago Message-ID: <3jirh9$hup@apollo.it.luc.edu> References: <3jfmss$co0@apollo.it.luc.edu> Dale F. Reed (dreed@orion.it.luc.edu) wrote: : There's probably a simple answer to this, but how do I make a : matrix disappear? Thanks for the help, those of you who replied. The answer was very simple - simply sending the object I wanted to get rid of the View method "removeFromSuperview" did the trick.
Newsgroups: comp.sys.next.programmer From: sameer@il.us.swissbank.com (Sameer Jain) Subject: Object Links Message-ID: <1995Mar7.193900.10856@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division Date: Tue, 7 Mar 1995 19:39:00 GMT I am using NeXT Object Links (NXDataLink & NXDataManager) for the first time, and am having problems getting my links to update. I have looked at the Draw application for clues, and was wondering if there is any other sample code available for implementing Object Links. Thanks a ton, Sameer sameer@il.us.swissbank.com
From: chris@iastate.edu (Chris Wong) Newsgroups: comp.lang.scheme.c,comp.lang.scheme,comp.sys.next.programmer Subject: How to compile/build MITScheme 7.3.1? Date: 8 Mar 1995 07:08:36 GMT Organization: Iowa State University, Ames, Iowa (USA) Distribution: inet Message-ID: <3jjl5k$jke@news.iastate.edu> I've got the MITScheme 7.3.1 source distribution from swiss-net.ai.mit.edu and tried to compile it. But, there is just no information describing how to make it. The standard Makefile looks strange. Can someone shade some light on me? I'm trying to compile it on NeXTSTEP 3.2 for Intel (No binary dist for this platform). I still don't know if I would encounter any compilation errors yet. Please help... Chris -- MIME welcomed, NeXTMail Ok. Chris Wong | "Hardware is supposed to serve Software." chris@iastate.edu | Computer Engineering & Computer Science <:)>:)<:)>:)<:)>:)<:) | Iowa State University of Science and Technology
From: macrae@geo.ucalgary.ca (Andrew MacRae) Newsgroups: comp.sys.next.programmer Subject: Re: polyline data type in Quick RenderMan? Date: 8 Mar 1995 11:11:40 GMT Organization: The University of Calgary Distribution: world Message-ID: <3jk3dc$el0@ra.lib.ucalgary.ca> References: <KAVEH.95Mar7221925@ocean.CAM.ORG> In article <KAVEH.95Mar7221925@ocean.CAM.ORG> kaveh@ocean.CAM.ORG (Kaveh Kardan) writes: > > Are there any plans to include a polyline type in QuickRenderMan? > I don't know. Do you mean connected line segments like the 2D primitive? I just use thin cylinders. -- -Andrew macrae@geo.ucalgary.ca home page: "http://geo.ucalgary.ca/~macrae/current_projects.html"
Newsgroups: comp.sys.next.programmer From: precipi!neekibo (Hugues RICHARD) Subject: Re: How do you make smaller apps? Message-ID: <1995Mar7.224151.1449@precipice.fdntytruyu.fr> Sender: neekibo@precipice.fdntytruyu.fr Organization: Individual - Dijon, France. References: <3jau3n$e5b@usenet.srv.cis.pitt.edu> Date: Tue, 7 Mar 1995 22:41:51 GMT -> man strip if you just compile very small C programm, just try "cc -object ..." and then "strip a.out". For example, the smallest you can have is : > main () > > { > } in my case (NS3.2), '-object' cc'ed and stripped file is 1156 bytes long (for doing nothing!!!) Hugues. e smallest you can have is : > main () > > -- -------------------------------------------------------------------- neekibo@precipice.fdn.fr - France (small NeXTMail OK) ------------ NS3.2 ------------ NS3.0J ------------ :-) ------------
From: kaveh@ocean.CAM.ORG (Kaveh Kardan) Newsgroups: comp.sys.next.programmer Subject: garbage collection in Objective C Date: 08 Mar 1995 03:18:17 GMT Organization: Kardan Research & Development Distribution: world Message-ID: <KAVEH.95Mar7221817@ocean.CAM.ORG> Does anyone know of a garbage collection system for Objective C running on NEXTSTEP? Kaveh Kardan kaveh@metropolis.qc.ca ------------------------------------------------------------------------------- After the game, the King and the Pawn go back into the same box.
From: kaveh@ocean.CAM.ORG (Kaveh Kardan) Newsgroups: comp.sys.next.programmer Subject: polyline data type in Quick RenderMan? Date: 08 Mar 1995 03:19:25 GMT Organization: Kardan Research & Development Distribution: world Message-ID: <KAVEH.95Mar7221925@ocean.CAM.ORG> Are there any plans to include a polyline type in QuickRenderMan? Kaveh Kardan kaveh@metropolis.qc.ca ------------------------------------------------------------------------------- After the game, the King and the Pawn go back into the same box.
From: dcl@panix.com (David Lambert) Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.sys.next.misc Subject: Recent Fiend binary submission Date: 8 Mar 1995 08:40:40 -0500 Organization: PANIX Public Access Internet and Unix, NYC Message-ID: <3jkc4o$5h2@panix.com> Hi. Someone just made me aware of the fact that there had been a submission of a binary (NIH) copy of Fiend1.0 to orst. I have removed this copy, since it is very old and buggy - the only reason that I let the old copy stay out there is for people to see some source examples. Also, there is already a binary version 1.0 of Fiend on the German archive sites. To the original poster: I apologize for deleting, rather than renaming the file - I wasn't thinking clearly, this morning, and I realize that simply renaming would have taken care of things. To everyone else: please use either Fiend 1.2 or 1.3, both of which are on the archive sites, compiled triple and quad-fat, respectively. (Pick your version according to which bugs you like better ;-) Fiend 1.3 is much nicer feature-wise, but has introduced a couple of stupid bugs that may bite you. I suggest trying version 1.3 first, and if you get bitten by its bugs, then try the older one. - David C. Lambert dcl@homer.uu.panix.com
Newsgroups: comp.sys.next.programmer From: vallet@cui.unige.ch (VALLET Didier) Subject: Help: How to catch the right mouse button? Message-ID: <1995Mar8.152640.17401@news.unige.ch> Sender: usenet@news.unige.ch Organization: University of Geneva Date: Wed, 8 Mar 1995 15:26:40 GMT Perhaps it's a simple question, but how can a View reponds to a "righMouseDown:(NXEvent *anEvent)" if the menu button in the Preferences.app is disabled ? Is it possible to set this option from a program ? Thanks in advance. Didier vallet@cui.unige.ch (please no NeXTMAIL)
Newsgroups: comp.sys.next.programmer From: guy@dilemma.ho.att.com (literacy) Subject: c++ demangler/c++filt Message-ID: <D539Lq.Kxn@nntpa.cb.att.com> Sender: news@nntpa.cb.att.com (Netnews Administration) Organization: AT&T Date: Tue, 7 Mar 1995 21:12:59 GMT Does anyone where I can get a copy of demangler or c++filter so that I can demangle c++ function names inside an object file. I found c++filt in binutils on prep.ai.mit.edu, but could not get it to compile on my system Intel running Nextstep 3.2 Thanks for any help, Guy
From: markf@cory.EECS.Berkeley.EDU (Mark Frohnmayer) Newsgroups: comp.sys.next.programmer Subject: Interceptor Date: 7 Mar 1995 23:16:40 GMT Organization: University of California, at Berkeley Message-ID: <3jipgo$m0h@agate.berkeley.edu> Hi, I was wondering if anyone here has any information or sample code for using the "Interceptor" technology in NS/Intel for directly accessing the VGA video card. I am developing a NS/DOS game development library and this would really be a big help. Please e-mail any responses. Thanks, Mark Frohnmayer markf@cory.eecs.berkeley.edu
Newsgroups: comp.sys.next.programmer,comp.sys.next.misc From: howardd@il.us.swissbank.com (Denise Howard) Subject: HELP: MailSendDemo doesn't work in Mail 3.3 Message-ID: <1995Mar7.170059.9471@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division Date: Tue, 7 Mar 1995 17:00:59 GMT Suppose I want to allow the user to select "Suggestion" in my app menu and have a Mail compose window appear, already filled out with my e-mail address, a subject, and some message text. In the past this was easy enough to implement by utilizing the MailSendDemo API of Mail.app. However, I just noticed that this no longer works with Mail 3.3. Does anyone how to work around this? Is there still a way? Denise -- Denise Howard \/ howardd@swissbank.com Swiss Bank Corporation \/ deniseh@mcs.com Chicago, IL \/ [NeXT, MIME and ASCII mail welcome] (312) 554-6298 \/ "Older and Bolder!"
From: rochelle@pdh.com (Rochelle Raccah) Newsgroups: comp.sys.next.programmer Subject: Problem loading palette in IB Date: 8 Mar 1995 11:42:04 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9503081738.AA03190@snowbird.pdh.com> I posted this about a week ago and it accidentally was NeXTMail. Sorry to anyone this impacted. : ) Anyone have a solution? >We have a few palettes that loaded (and still load) fine under the old IB (Release 3.0 v359.0) but give the following message in the console >IPCPropertyList: discarded input at line 3 of file MyPalette.palette/palette.table > >But the new IB (Release 3.0 v457) cannot load the palette and the console says >*** Parse error line 4 for units: (); >End of input expected >Next token is '(' >Workspace: Cannot open Source/MyPalette.palette > >We have tried running it on a different machine in case IB was corrupted somehow, but that was not the case. > >Has anyone seen this or have any clue what the problem is? Thanks, Rochelle Raccah --- Rochelle Raccah email: rochelle@pdh.com (NeXTMail OK) PDH Inc. 2635 N. First St. Ste 224, San Jose, CA 95128 phone: (408) 428 - 9596 fax: (408) 428 - 9599
From: robert@audrey.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Documentation Error? Date: 07 Mar 1995 18:54:28 GMT Organization: me organized? That's a joke! Distribution: world Message-ID: <ROBERT.95Mar7185428@audrey.dircon.co.uk> References: <3iv1ji$186@pheidippides.axion.bt.co.uk> <3j0c7o$44t@tssslab.TotSysSoft.com> To: Bruce Gingery <bgingery@Wyoming.COM> In-reply-to: Bruce Gingery's message of 28 Feb 1995 23:39:36 GMT <bruce@TotSysSoft.com> writes: >In article <3iv1ji$186@pheidippides.axion.bt.co.uk> tregan@srd.bt.co.uk >(Dr Timothy Regan) writes: >}~ Hi All, >}~ >}~ I'm not sure if this is right or the right place to send this to! >}~ >}~ In the NeXTStep "Object-Oriented Programming and the Objective C >}~ Language" book that comes with Developer 3.2 it says (p. 135): >}~ >}~ stream = NXOpenStreamForFile("/home/archive", NX_READWRITE); >Tim, > I don't have the book, but an NXTypedStream must be opened > for read OR write, not both. > Bruce Gingery Sure but that's an NXStream I guess I missed the bit you chopped? -- "Mary had a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
From: dcoyle@kakapo.mpi-hd.mpg.de (David A. Coyle) Newsgroups: comp.sys.next.programmer Subject: Edit.app API Date: 8 Mar 1995 09:48:45 GMT Organization: University of Heidelberg, Germany Message-ID: <3jjuht$8sv@sun0.urz.uni-heidelberg.de> I want to create something to manage my BibTeX files. Because everyone creates LaTeX files in Edit anyway, it would be silly to create a separate app. Rather I'd prefer to trundle a bundle into Edit, a la GDB. I haven't been able to find the API in the on-line documentation (that's not to say that it isn't there, somewhere ;-). Does anyone know where/if the Edit.app API is published? thanx, Dave dcoyle@goanna.mpi-hd.mpg.de
Newsgroups: comp.sys.next.programmer From: wave@media.mit.edu (Michael B. Johnson) Subject: Re: rld and dynamic object file binding Message-ID: <1995Mar7.224418.7691@news.media.mit.edu> Keywords: rld, rld_load, obj_loadModule Sender: news@news.media.mit.edu (USENET News System) Organization: MIT Media Laboratory References: <3jid1g$4re@senator-bedfellow.MIT.EDU> Date: Tue, 7 Mar 1995 22:44:18 GMT In article <3jid1g$4re@senator-bedfellow.MIT.EDU> shanega@ATHENA.MIT.EDU (Shane G. Artis) writes: >>I am looking for any code fragments that implement dynamic loading of >>standard C library routines from a pre-compiled object file or library >>file. <stuff deleted...> Here's the code I use for my active object stuff (straight C and tcl) to add a new tcl command given a new tcl command name and an object file name. Rather than hacking out the tcl stuff (and potentially obscuring useful info), here's the whole routine: #include <mach-o/rld.h> int cmd_add_command(me, interp, argc, argv) GAO_state_t *me; Tcl_Interp *interp; int argc; char **argv; { char *my_args = "object-file command-string command-func"; int num_args = 4; long func_ptr; char *objectFiles[2]; if (argc != num_args) { sprintf(interp->result, "USAGE: %s %s", argv[0], my_args); return TCL_ERROR; } objectFiles[0] = argv[1]; objectFiles[1] = NULL; if (!rld_load(NULL, NULL, objectFiles, NULL)) { sprintf(interp->result, "unable to load object file %s", argv[1]); return TCL_ERROR; } if (!rld_lookup(NULL, argv[3], &func_ptr)) { sprintf(interp->result, "unable to lookup symbol %s", argv[3]); return TCL_ERROR; } Tcl_CreateCommand(interp, argv[2], (Tcl_CmdProc *)func_ptr, (ClientData)me, anotherDeleteProc); return TCL_OK; } -- --> Michael B. Johnson -- wave@media.mit.edu --> http://wave.www.media.mit.edu/people/wave/ (don't forget the last "/" !!) --> MIT Media Lab -- Computer Graphics & Animation Group --> 20 Ames St. E15-023G -- (617) 666-4119 (day office)
From: martin@mamba.cs.unm.edu (Martin Mueller) Newsgroups: comp.sys.next.programmer Subject: Re: rld and dynamic object file binding Date: 8 Mar 1995 18:47:37 GMT Organization: The University of New Mexico, Department of Computer Science Sender: news@mamba.cs.unm.edu Message-ID: <D54xHt.2HC@mamba.cs.unm.edu> References: <3jid1g$4re@senator-bedfellow.MIT.EDU> Keywords: rld, rld_load, obj_loadModule Here is a simple example of how to use rld_load and rld_lookup: in file main.m // // compile with cc main.m // #include <mach-o/rld.h> #include <stdio.h> main() { NXStream *errors; struct mach_header *obj_header; const char *obj_files [] = {"to_load.o", NULL}; char *buffer; int len, maxlen; void (*dyn_func)(int k); errors = NXOpenMemory (0, 0, NX_READWRITE); if (!rld_load (errors, &obj_header, obj_files, NULL)) { NXGetMemoryBuffer (errors, &buffer, &len, &maxlen); fprintf (stderr, "%s\n", buffer); exit (1); } if (!rld_lookup (errors, "_dyn_func", (unsigned long *)&dyn_func)) { NXGetMemoryBuffer (errors, &buffer, &len, &maxlen); fprintf (stderr, "%s\n", buffer); exit (1); } dyn_func (1); } in file to_load.m: // compile with cc to_load.m -c # include <stdio.h> void dyn_func (int k) { printf ("Loaded dyn_func() called with param: %d\n", k); } ----------------------------------------------------------------------------- Hope this helps, Martin M\"uller Compter Science Department University of New Mexico Albuquerque, NM 87131
Newsgroups: comp.lang.scheme.c,comp.lang.scheme,comp.sys.next.programmer From: gdkuch@neumann.uwaterloo.ca (Jerry Kuch) Subject: Re: How to compile/build MITScheme 7.3.1? Message-ID: <D5536y.K3r@undergrad.math.uwaterloo.ca> Sender: news@undergrad.math.uwaterloo.ca (news spool owner) Organization: University of Waterloo References: <3jjl5k$jke@news.iastate.edu> Distribution: inet Date: Wed, 8 Mar 1995 20:49:46 GMT In article <3jjl5k$jke@news.iastate.edu>, Chris Wong <chris@iastate.edu> wrote: >I've got the MITScheme 7.3.1 source distribution from >swiss-net.ai.mit.edu and tried to compile it. But, there is just no >information describing how to make it. The standard Makefile looks >strange. Can someone shade some light on me? I'm trying to compile it >on NeXTSTEP 3.2 for Intel (No binary dist for this platform). I still >don't know if I would encounter any compilation errors yet. You might want to check out Marc Feeley's Gambit Scheme. It's freely available (the last I'd heard) and was developed as part of Feeley's PhD thesis at Brandeis. It's far less pig-like the MIT CScheme, which has been known to make even mighty machines beg for death, and is very compatible, to the extent that all of the problems in Abelson and Sussman's SICP have been successfully done with it. -- Jerry Kuch EMail: gdkuch@neumann.uwaterloo.ca "GAMERA - DAIKAIJU KUCHU KESSEN" will be released IMPORTANT NEWS: in Japan on March 11th, one week earlier than the original March 18th release date.
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: EOF Adaptor for non-SQL Database engine Date: 8 Mar 95 19:22:18 GMT Organization: Simon Fraser University Message-ID: <ken.794690538@darwin> Keywords: EOF, SQL I have a database library with a C function call interface now ported to NS, and was going to use that as the database engine for my app, but have since discovered EOF and am quite impressed with its ability to map objects to a RDB. It is, however, unrealistic to base this app on Sybase or Oracle which will require a substancial cost for each user of the program. What I would like to know is whether it is realistic to write an adaptor for this engine. It has your usual c-tree/codebase style interface with function calls like seek(), add(), delete(), and update() based on pre-defined indexes. I have been looking closely at the Access Layer classes of EOF and am becomming somewhat discouraged with the apparent high coupling with the SQL query language. Please let me know if writing such an adaptor is 1) Possible 2) Worth the effort over just using the C interface is storage/retreival in my application classes. Also, are there any mailing lists out there for people using EOF and/or writing adaptors for EOF? Any code examples of EOF Adaptors? I have looked at MiniSQL's EOF adaptor, but of course it basically builds SQL queries, which is not that usefull to me. Thanks! - Ken
From: mneher@homer1.ive.mrg.uswest.com (Mark_Tyler_Neher) Newsgroups: comp.sys.next.bugs,comp.sys.next.programmer Subject: bug in [Matrix getSelectedCells:] ?? Date: 9 Mar 1995 16:05:51 GMT Organization: U S WEST Marketing Resources Message-ID: <3jn90v$ce3@engineer.mrg.uswest.com> Is there a known bug in [Matrix getSelectedCells:] ?? Has anyone had problems or success using it ?? I have tried it on both black and white hardware (running 3.2), and by passing in a List or allowing the method to create the List for me. Nothing seems to work, so I've had to run a loop to collect the selected cells manually. I have seen nothing in any release notes about this, or any code examples that work. Thanks, MTN
Newsgroups: comp.sys.next.programmer From: tomi@shinto.nbg.sub.org (Thomas Engel) Subject: IB 4.0...will it ?? Message-ID: <D50HMs.JK@shinto.nbg.sub.org> Keywords: NeXTSTEP 4.0, IB, New features Sender: tomi@shinto.nbg.sub.org (Thomas Engel) Organization: STEPeople's home. (A NUGI member) Date: Mon, 6 Mar 1995 09:13:39 GMT Hi! Does anybody know if IB 4.0 will be so smart to drop back to paletalized superclasses of used classes...like it does for all Window subclasses ? It does not right now and that is the reason why many (of mine) designs prefer composing over subclassing. I know that they have fixed that "Reparse class if you still remember what you have changed"-bug but the above mention "testinface won't do anything" bug will be still around...or what ?? (Any NeXT guys out there...Charly?) Aloha Tomi _________________________________________________________ (tomi@shinto.nbg.sub.org) Thomas Engel Neptunstr. 9 NeXTMail welcome D - 90522 Oberasbach Germany
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: EOF Adaptor for non-SQL database Date: 8 Mar 95 22:43:01 GMT Organization: Simon Fraser University Message-ID: <ken.794702581@darwin> Keywords: EOF, SQL I have a database library with a C function call interface now ported to NS, and was going to use that as the database engine for my app. I have since discovered EOF and am quite impressed with its ability to map objects to a RDB. It is, however, unrealistic to base this app on Sybase or Oracle which will require a substancial cost for each user of the program. What I would like to know is whether it is realistic to write an adaptor for this engine. It has your usual c-tree/codebase style interface with function calls like seek(), add(), delete(), and update() based on pre-defined indexes. I have been looking closely at the Access Layer classes of EOF and am becomming somewhat discouraged with the apparent high coupling with the SQL query language. Please let me know if writing such an adaptor is 1) Possible 2) Worth the effort over just using the C interface is storage/retreival in my application classes. Also, are there any mailing lists out there for people using EOF and/or writing adaptors for EOF? Any code examples of EOF Adaptors? I have looked at MiniSQL's EOF adaptor, but of course it basically builds SQL queries, which is not that usefull to me. Thanks! - Ken
Newsgroups: comp.sys.next.programmer From: pasqua@mv.us.adobe.com (Joe Pasqua) Subject: Re: Interceptor Message-ID: <1995Mar8.192457.2518@adobe.com> Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Incorporated References: <3jipgo$m0h@agate.berkeley.edu> Date: Wed, 8 Mar 1995 19:24:57 GMT In article <3jipgo$m0h@agate.berkeley.edu> markf@cory.EECS.Berkeley.EDU (Mark Frohnmayer) writes: > Hi, > > I was wondering if anyone here has any information or sample code > for using the "Interceptor" technology in NS/Intel for directly > accessing the VGA video card. I am developing a NS/DOS game > development library and this would really be a big help. > > Please e-mail any responses. > Thanks, > > Mark Frohnmayer > markf@cory.eecs.berkeley.edu Two points. First, in case you didn't know, Interceptor is not a public API. Second, and more importantly, Interceptor does not give you access to a VGA card in the sense of being able to operate it at the register level. It provides fast access to a linear framebuffer. -- Joe Pasqua Adobe Systems Incorporated
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <gbacklin@marizack.com> Message-ID: <9503090013.AA00189@marizack> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Gene Backlin <gbacklin@marizack.com> Date: Wed, 8 Mar 95 18:13:48 -0600 Subject: NEW Book "Developing NeXTSTEP Applications" coming in April Hello fellow developers, This is a note to inform you that there will be a new book coming in April filled with step-by-step instructions to help you design NeXTSTEP applications. I am the author and it will be published by Sams Publishing. Within the pages of this book you will be instructed on how to build over 50 applications from scratch. There will be an attached diskette that will have all the applications that are explained in the book. Topics include Delegate, Panel, Menu, Browser processing; View, Image, Pasteboard manipulation, Drag and Drop; and Distributed Object applications both on the Client as well as the Server end. For a more detailed summary feel free to contact me. gbacklin@MariZack.com Thank you for your time to read this. Gene PS. Please let me know if you can receive NeXT Mail, Thanks again !
From: Rizzotti.Sven@ch.swissbank.com Newsgroups: comp.sys.next.programmer Subject: stdout of an execv in a scrollview Date: 9 Mar 1995 11:20:58 GMT Organization: Swiss Bank Corporation Message-ID: <3jmoaq$7tj@gatekeeper.iis.ch.swissbank.com> Has anybody an example about how to bring the stdout of a pgm which I start with exec into a scrollview. Currently I create first a pipe and then fork(), do that dup2, close-stuff and try in the child process to bing the stdoutput into the scoll view. But firstful I cannot reference my object anymore - It just don't display anything and secondary I have problems anyway when I try do start that action a second time. tanx for any help, please reply by mail __Sven -- Rizzotti.Sven@ch.swissbank.com
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: EOF Adaptor for non-SQL Database Date: 9 Mar 95 00:42:36 GMT Organization: Simon Fraser University Message-ID: <ken.794709756@darwin> Keywords: EOF, SQL I have a database library with a C function call interface now ported to NS, and was going to use that as the database engine for my app. I have since discovered EOF and am quite impressed with its ability to map objects to a RDB. It is, however, unrealistic to base this app on Sybase or Oracle which will require a substancial cost for each user of the program. What I would like to know is whether it is realistic to write an adaptor for this engine. It has your usual c-tree/codebase style interface with function calls like seek(), add(), delete(), and update() based on pre-defined indexes. I have been looking closely at the Access Layer classes of EOF and am becomming somewhat discouraged with the apparent high coupling with the SQL query language. Please let me know if writing such an adaptor is 1) Possible 2) Worth the effort over just using the C interface is storage/retreival in my application classes. Also, are there any mailing lists out there for people using EOF and/or writing adaptors for EOF? Any code examples of EOF Adaptors? I have looked at MiniSQL's EOF adaptor, but of course it basically builds SQL queries, which is not that usefull to me. Thanks! - Ken
From: caraher@athens.dis.anl.gov (PJ Caraher) Newsgroups: comp.sys.next.programmer Subject: Drawing Views in a Matrix Date: 8 Mar 1995 17:46:52 GMT Organization: Argonne National Laboratory Distribution: world Message-ID: <3jkqic$gn5@milo.mcs.anl.gov> I want combine the functionality of Matrices with the drawing capability of Views. Because Matrices work on Cells, I subclassed Cell to contain a View and I created a Matrix of this Cell subclass. My problem arises when I want to display these Views. I have worked up a hack of the Cell's "drawInside:(NXRect *)cellFrame inView:contentView" method to handle this problem. Quite simply, when the Cell's "drawInside:inView:" method is called it adds the View to the Matrix's contentView via the "addSubview:" method. - drawInside:(NXRect *)cellFrame inView:contentView { // Methods to properly position the View . . . [contentView addSubview:theView]; [super drawInside:cellFrame inView:contentView]; return self; } I don't like this implementation and I would be much happier if there were some way that I could display my View from within the Cell class methods rather than adding it to the Matrix's subViews. Any ideas? I am also open to any better ideas for how to go about creating a Matrix of Views. TIA PJ Caraher caraher@athens.dis.anl.gov --- | | | My name is NOT Dave Rhodes, but you can send me $1 anyway! | | |
Newsgroups: comp.sys.next.programmer From: byer@mv.us.adobe.com (Scott Byer) Subject: Re: Say No to gdb In-Reply-To: rog@talisker.ohm.york.ac.uk's message of 8 Mar 1995 12:07:49 GMT Message-ID: <BYER.95Mar9113737@ductwork.mv.us.adobe.com> Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Incorporated, Mountain View, CA References: <3jb6md$52h@crl.crl.com> <ROBERT.95Mar5111216@steffi.dircon.co.uk> <3jk6ml$esm@castle.york.ac.uk> Date: Thu, 9 Mar 1995 19:37:37 GMT Roger Peppe writes: Roger> (disclaimer: i'm talking about gdb under nextstep 3.0; perhaps Roger> everyone else has a version that works perfectly...) Under NEXTSTEP 3.2, it's the buggy 4.7 version. 4.13 is far less buggy. There is no comparable debugger to gdb - there is more power there than even the most "enhanced" version of dbx I've seen has. Under Emacs, gdb provides most of the capabilities of a graphical debugger, without the cumbersome UI or window explosion that those kinds of debuggers usually encompass. I compare my experiences with gdb to those with dbx, the OS/2 debugger, and CaseVision, and I _know_ which one I'll try first. b common_debug_print disable b file:234 comm silent ena 1 cont end b file:239 comm silent dis 1 cont end -- Scott Byer E-Mail: byer@mv.us.adobe.com Adobe Systems Incorporated These are my opinions, and 1585 Charleston Road, P.O. Box 7900 do not necessarily reflect Mountain View, CA 94039-7900 the opinions of my employer. === === C++: Take one part C, 5 parts "bad hacks", 6 parts "bad language features", 9 parts "unclear on the concept", and blend. Has taste and consistency of vomit. --- The best security for information is a low S/N ratio: PLO ammunition Qaddafi Noriega class struggle [Hello to all my fans in domestic surveillance] smuggle Soviet Ft. Meade quiche SDI security AK-47 FBI $400 million in gold bullion
From: kaveh@stratus.CAM.ORG (Kaveh Kardan) Newsgroups: comp.sys.next.programmer Subject: Re: polyline data type in Quick RenderMan? Date: 09 Mar 1995 14:08:14 GMT Organization: Kardan Research & Development Distribution: world Message-ID: <KAVEH.95Mar9090815@stratus.CAM.ORG> References: <KAVEH.95Mar7221925@ocean.CAM.ORG> <3jk3dc$el0@ra.lib.ucalgary.ca> In-reply-to: macrae@geo.ucalgary.ca's message of 8 Mar 1995 11:11:40 GMT In article <3jk3dc$el0@ra.lib.ucalgary.ca> macrae@geo.ucalgary.ca (Andrew MacRae) writes: In article <KAVEH.95Mar7221925@ocean.CAM.ORG> kaveh@ocean.CAM.ORG (Kaveh Kardan) writes: > > Are there any plans to include a polyline type in QuickRenderMan? > I don't know. Do you mean connected line segments like the 2D primitive? I just use thin cylinders. Yes, I mean basically polygons whose last and first points are not connected. We need to display hundreds of such beasts, each with possibly thousands of points (ever notice how wiggly a river really is?), so efficiency is important. Kaveh Kardan kaveh@metropolis.qc.ca ------------------------------------------------------------------------------- After the game, the King and the Pawn go back into the same box.
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Palettizing subclasses of Window Message-ID: <jpanicoD56KJ0.656@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Thu, 9 Mar 1995 16:01:48 GMT Sender: jpanico@netcom4.netcom.com Hi, I have made a custom palette containing a subclass of the window class and have put an image on the button that represents this subclass in the Palette window. However, after loading the custom palette in IB, when I select this new palette, the image is no longer on the button, though everything else works as expected. Anyone know what I'm doing wrong? Are there any examples of a custom palette containing a subclass of Window? Also, is there any way to archive the object code for the palettized classes inside the palette, or must you link the app against seperate compiled modules for the class. Thanks for any info. Joe Panico jpanico@netcom.com
From: fxtlw@aurora.alaska.edu Newsgroups: comp.sys.next.programmer Subject: NeXT Algorithm question Date: 8 Mar 95 12:30:05 -0900 Organization: University of Alaska Fairbanks Message-ID: <1995Mar8.123005.1@aurora.alaska.edu> I'm looking for some information. If someone could e-mail me with a response, or a place on the net that would have the info, it would be appreciated. 1) What is the page replacement algorithm used by the NeXT, have they made any changes, why was that algorithm choosen. 2) Is this algorithm applicable to other OS scheduling problems such as multiprocessor scheduling? If so, what modules can be used by other portions of the OS. Thanks again, Therran FXTLW@Aurora.Alaska.Edu
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <ken.794690538@darwin> Control: cancel <ken.794690538@darwin> Date: 8 Mar 1995 22:38:07 GMT Organization: Simon Fraser University Message-ID: <3jlbkf$9ef@seymour.sfu.ca> cancel <ken.794690538@darwin> in newsgroup comp.sys.next.programmer
From: eble@pegasus.informatik.uni-freiburg.de (Axel Eble) Newsgroups: comp.sys.next.programmer Subject: Re: root's defaults database woes Date: 10 Mar 1995 07:08:39 GMT Organization: Rechenzentrum der Universitaet Freiburg, Germany Message-ID: <3jottn$8ol@n.ruf.uni-freiburg.de> References: <D4y19n.17L@blackmaus.com> <3jdnjk$10o@arcadia.informatik.uni-muenchen.de> Marc Guenther (yoda@cis.uni-muenchen.de) wrote: : In article <D4y19n.17L@blackmaus.com> dino@blackmaus.com (Dino Bagdadi) : writes: : [...] : > This is what I get when I try to read the defaults database: : > : > # dread -l : > dread: Can't open defaults database : [...] : Well, I have exactly the same problem. : I noticed that the DefaultsSystem Preferences Module : still works, though. Even the preferences of programs : are stored. But I can't use dread,dwrite,dremove to change any of the : defaults. : Any ideas ?? Look up what the homedir of root is. The UserManager hat /root per default in it and didn't let me change this to / where the whole databases lay. I did create /root and put it in /etc/passwd (just to make sure) and now everything works fine. Or am I just too novice and did not see the problem there? :-) Axel P.S.: running 3.3 over here. -- "Jede theoretische Erklaerung ist eine Reduzierung der Intuition." Peter Hxeg ****************************************************************************** Axel Eble Email: Axel.Eble@Informatik.Uni-Freiburg.DE Institut fuer Informatik Fon: ++49 761 203 8184 Am Flughafen 17 Fax: ++49 761 203 8162 D-79110 Freiburg
Newsgroups: comp.sys.next.programmer From: 9116591@news.ul.ie ( Vincent Hayes ) Subject: NeXTstep Development/Objective-c Books ?. Message-ID: <D58Fnq.K7F@ul.ie> Sender: usenet@ul.ie Organization: University of Limerick Date: Fri, 10 Mar 1995 16:11:50 GMT Hi, Could somebody out there recommend some good books on NeXTstep development in general and Objective-c. Any sujestions welcome. Regards Vinny Hayes, e-mail - 9116591@ul.ie
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: Say No to gdb Message-ID: <D57G1L.717@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems References: <BYER.95Mar9113737@ductwork.mv.us.adobe.com> Date: Fri, 10 Mar 1995 03:22:32 GMT Scott Byer writes > There is no comparable debugger to gdb - > there is more power there than even the most "enhanced" version of dbx > I've seen has. Scott, I'm sorry your experience has been so limited. I know of at least two that are much better: VMS DEBUG in the VAX/VMS environment Rational's debugger in their Ada environment. I've also seen people do amazing feats in language specific environments easily that are quite cryptic or painful with gdb - for example, in a LISP environment, or even some of the PC/Mac Pascal and C environments. The integration between gdb and emacs is nice given the limitations of using Unix, but its really a clever hack when compared to systems where the environment, editor, compiler and debugger were designed from the ground up to work together closely. -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
From: Jonathan.Rice@cs.tcd.ie (Jonathan Rice) Newsgroups: comp.sys.next.programmer Subject: Re: polyline data type in Quick RenderMan? Date: 10 Mar 1995 18:04:27 GMT Organization: TCD, Computer Science Distribution: world Message-ID: <3jq4bb$2dk@yaler.cs.tcd.ie> References: <KAVEH.95Mar9090815@stratus.CAM.ORG> > ... I mean basically polygons whose last and first points are not > connected. We need to display hundreds of such beasts, each with possibly > thousands of points (ever notice how wiggly a river really is?), so > efficiency is important. I suggest you ask this question in comp.graphics.rendering.renderman - someone there might know what the best way to proceed is. This whole question of doing *non-realistic*, diagrammatic visualization using Quick Renderman is interesting - how do you do it when the underlying Renderman primitives are designed for *realistic* scene description? -- Jonathan Rice
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Highlighting text on a colored background Message-ID: <1995Mar10.195502.6424@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division Date: Fri, 10 Mar 1995 19:55:02 GMT Ok... I remember a discussion about this topic a couple of months back and am currently investigating it myself and have a couple of questions and observations. First, has anybody done this successfully with the TextField object? Here's what I've observed: The current highlighting mechanism (typically invoked using the NXHighlightRect() function) uses a special composite operator 'highlight' that simply sets all white areas to light gray and vice versa. Highlighting and un-highlighting is done using the same function for the same area and simply reverses those two colors. This means that if your background is not white or light gray, highlighting does not work. In looking at this problem, I've come to realize that highlighting a piece of text with arbitrary text and background colors is non-trivial (and potentially impossible to do really well). This led me to investigate using the same type of mechanism that the new 3.3 Terminal.app uses. It comes down to simply defining complimentary colors (e.g. white and light-gray) and swapping them to highlight and un-highlight. Wanting to do this in a generic way that was compatible with the Text object (responsible for almost all text display/highlighting/editing), I thought about replacing the NXHighlightRect() function and then simply swapping the complementary color pairs that had been defined. The problem with this is the fact that the color space in which the color is defined is 24-bit (8/8/8) and the color space in which the color is displayed is dependent on the display device. Since the typical color display is only 12-bit (4/4/4), many colors are dithered. This poses a problem in determining the color of a particular pixel because its actual color is likely different than the color that was used to display it. This means that the comparisons used to find the complementary color would fail, and the area would not get highlighted. My conclusion is that in order to do text highlighting on a non-white or non-light gray background, highlighting must be done by the object doing the drawing (i.e. a re-draw is required for the highlighted area in order to highlight and un-highlight). The first problem is the fact that we're dealing with the Text object... 'nuff said. The second has to do with a possible performance penalty as a result of re-drawing (although I'm pretty sure that this won't be a problem, or can't be worked around). Not wanting to re-write the Text object just to get colored highlighting, is there any way I can achieve this? Thanks for an help you can give... -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Programmatically disabling Window movement Message-ID: <jpanicoD58x0C.MK1@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Fri, 10 Mar 1995 22:26:36 GMT Sender: jpanico@netcom18.netcom.com Hi, Is there any way to programmatically prevent a window from being moved by it's title bar? The documentation says that the return value from the Window class's windowWillMove delegate method is ignored, so it looks like the delegate doesn't get a chance to veto the operation. I suppose I could implement the windowDidMOve method so that it moves the window back to it's starting position, but I think it would be neater if I could disable the move operation at a lower level. Any hints appreciated. Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Catching keypress events Message-ID: <jpanicoD58xG0.D2@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Fri, 10 Mar 1995 22:36:00 GMT Sender: jpanico@netcom18.netcom.com Hi, Users of a particular app are insisting that I give them the ability to scroll a scrollView by using keypresses as well as the scroller buttons. The scrollView in question contains TextField cells, and so I need to be able to have its window (or the window's delegate) catch certain keypresses, even when they occurr while the keyfocus is inside one of the TextFields. Anyone have any ideas of how to do this cleanly? Thanks for any hints. Joe Panico jpanico@netcom.com
From: vfr@ubszh.net.ch (Tim Vetter) Newsgroups: comp.sys.next.programmer Subject: W: E-mail for Night Owl Software Date: 9 Mar 1995 13:18:54 GMT Organization: Union Bank of Switzerland Distribution: world Message-ID: <3jmv7u$6dv@ubszh.fh.zh.ubs.com> Anyone have an e-mail address for Night Owl Software, authors of the MathConnector palette? Thanks much, Tim Vetter Forex & Fixed Income Trading Development Union Bank of Switzerland, Zurich vfr@ubszh.net.ch (ASCII, MIME, NeXTMail) voice (+41) 1/2368709 fax (+41) 1/2368392
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: NS 3.3 Developer Date: 11 Mar 1995 07:10:01 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3jric9$k24@darkstar.UCSC.EDU> I have been trying to get definitive information about what enhancements are included in NS 3.3 Developer. I had assumed that the preview of the developer tools presented at the last Expo would finally see the light of day. Some impressive integration work and code editting and ProjectBuilder enhancements were presented and were promised for the now-elusive NS 4.0, with 3.3 Developer not being planned at that time. However, I just received a 1-page blub from NeXT about 3.3 Developer, and little, if anything, presented at the Expo is described :-( Listed at "New Features and Benefits" are: - Foundation Kit (I've already got it with EOF 1.0) - Upgraded compiler (I don't use C++) - Extended MAB's (I can already compile for NeXT and Intel and have no immediate need to compile for HP or Sun) - New IB (I've already got it with EOF 1.0) - New HeaderViewer (Navigation of class clusters seems to be its new capability which is nice, but not really earth-shaking) - Extended Driver Kit (I don't write device drivers and hope I never have to :-) - Open App API's (Login window bundles, DO interface to Terminal, IP Multicast support - yawn) And for this, NeXT is asking $749 ($1249 as of 1 April)?!? I really hope I'm missing a lot in this announcement. Can anyone shed some light on NS 3.3 Developer? What has happened to the tools previewed at the Expo? I guess IB has made it out the door, but what about PB with its integrated code editor and version control hooks? What about the capability to unload dynamically-loaded symbols or whatever's necessary to debug, edit, incrementally-compile, dynamically-link, and continue running with the modified code? What about custom shlibs? --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: kcd@babylon5.jumpgate.com (Kenneth Dyke) Newsgroups: comp.sys.next.programmer Subject: Reliable way to force a cache flush? Date: 11 Mar 1995 07:49:52 GMT Organization: BEST Internet (415) 964-2378 Distribution: world Message-ID: <3jrkn0$4r6@news1.best.com> Is there a reliable way to force a CPU cache flush (instruction and data) from user level code? Short of that, is there any fast/reliable way to do it at all with NEXTSTEP? Thanks, Kenneth -- Kenneth C. Dyke | GCS/E d-(---) H s !g !p au a- w+ v(-) C++(++++) P- L- kcd@jumpgate.com | 3- UIX++++$ E--- K- N++ W--- M--(-) !V -po+ f Y+ 5++ NeXTMail and MIME Ok | j- G' tv b+ D+ B- e+ h+ u**(---) n----(---) y++(*>**) IRC: Nyx | PGP Public key available via finger | "Just one fix." -Ministry
From: frank@heron.cc.gatech.edu (Frank Cobia) Newsgroups: comp.sys.next.programmer Subject: Help with MiscKit Version 1.4.1 Date: 9 Mar 1995 21:52:27 GMT Organization: Cybernetx, Inc. Distribution: world Message-ID: <3jntar$b5s@news0.cybernetics.net> I am having some problems loading several palettes. And a problem with the Swapkit. When I load (try to anyway) the MiscShell.palette I get the following message on my console. ---------------------------------------------------------------------- Mar 9 16:09:30 cobra InterfaceBuilder[456]: Error loading /LocalDeveloper/Palettes/MiscShell.palette/MiscShell Mar 9 16:09:30 cobra InterfaceBuilder[456]: rld(): Undefined symbols: ---------------------------------------------------------------------- I have also been using the MiscSwapKit. Two things I noticed. When I drag from a tab, pull down, etc to the MiscSwapViewByPopUp and MiscSwapViewByMatrix the are two swapContentView messages to connect to and both get selected when one is selected. Then my delegate gets the "didSwapViewOut:" 2 times instead of once. Is this a bug or am I doing something wrong? Thanks Frank -- Frank Cobia frank@cobra.cybernetics.net
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Distributed Objects real slow? Date: 11 Mar 1995 12:42:32 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Mar11134232@viper.es.ele.tue.nl> References: <MICHAEL.95Feb26160037@tar> <3j6qgu$rmi@darkstar.UCSC.EDU> In-reply-to: alvin@cse.ucsc.edu's message of 3 Mar 1995 10:20:14 GMT In article <3j6qgu$rmi@darkstar.UCSC.EDU> alvin@cse.ucsc.edu (Alvin Jee) writes: Using DO with protocols : 230.583732 system and 512.727327 user Using DO without protocols : 237.339423 system and 517.345028 user Also, I find it interesting that using DO uses about the same amount of time with or without protocols. Setting the protocol of a proxy avoids the (synchronous rpc) lookup needed to obtain the type encoding of a method. However, these lookups are cached, so I am surprised the lookups take 12 seconds in your example. Did you use a large number of methods or is your measurement of time flawed? --Tiggr
From: robert@audrey.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Pop Quiz... textWillEnd: Followup-To: comp.sys.next.programmer Date: 11 Mar 1995 12:03:55 GMT Organization: me organized? That's a joke! Distribution: world Message-ID: <ROBERT.95Mar11120355@audrey.dircon.co.uk> CC: next-prog@omnigroup.com OK. what does this delegate method do? - textWillEnd:anObject { [textField setStringValue:"AnyValue"]; return NO; } Answer, it will flash the value "AnyValue" in the textfield and restore it's contents to be what it was when you pressed return. Why? observe.. If I type "Robert" and then press return Breakpoint 3, -[AppDelegate textWillEnd:] (self=0xef5a4, _cmd=0x618dad5, textObject=0xf16f8) at AppDelegate.m:32 (gdb) p textField->cell->contents $12 = 0xec6e8 "" (gdb) n textWillEnd: 0xf16f8 (gdb) n (gdb) p textField->cell->contents $13 = 0xec690 "AnyValue" (gdb) data-break &$13 1 Data breakpoint 4 at 0xecd14 for 1 byte. (gdb) cont Continuing. Data breakpoint 4 at 0xecd14, 0x6009e6c in -[Cell setStringValue:] () (gdb) where #0 0x6009e6c in -[Cell setStringValue:] () #1 0x6009c90 in -[ActionCell setStringValue:] () #2 0x60715b8 in -[Control _validateEditing:] () #3 0x6072d22 in -[TextField textDidEnd:endChar:] () #4 0x6070a34 in -[Text(Event) keyDown:] () #5 0x606184e in -[Window sendEvent:] () #6 0x60297a4 in -[Application sendEvent:] () #7 0x602ffd2 in -[Application run] () #8 0x87ea in main (argc=1, argv=0x3fffcbc) at TextFields_main.m:11 (gdb) p (char *)(int)*($fp+16) $14 = 0x3fff5cc "Robert" So you can see that textWillEnd or more precisely if the end char is return textDidEnd restores the text.... I just want to provide a means whereby I can set the value of the textField _based on how_ how you exit it. ie. return or tab etc. Clearly textWillEnd is inappropriate for this. Looks like I've got to keep extra state around for textDidEnd to catch. I've not tried setStringValueing the text object and maybe endEditing: will come out in the wash. NOTE: I prefer to do this without using an action method. I tried doing the setStringValue in textDidEnd and it let's me do it there so it looks like I'll have to keep the value around and set it there. -- "Mary had a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/Career Positions/USA Date: 11 Mar 1995 15:11:34 GMT Organization: Norden 1 Communications Message-ID: <3jsej6$51f@news1.channel1.com> The OMNI GROUP is currently representing six companies that are interested in filling career NEXTSTEP positions. These are major companies that offer outstanding opportunities. The benefits are excellent,as are the working conditions. All positions require commercial experience in both NEXTSTEP and in Objective C. All companies are offering relocation assistance. Positions range from lightweight developers on up. They are located in four states. If interested in the above, please fax or mail a hard copy resume. Thank you -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: NeXTstep Development/Objective-c Books ?. Message-ID: <jpanicoD5A7yx.D02@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <D58Fnq.K7F@ul.ie> Date: Sat, 11 Mar 1995 15:20:57 GMT Sender: jpanico@netcom5.netcom.com Vincent Hayes (9116591@news.ul.ie) wrote: : Hi, : Could somebody out there recommend some good books on NeXTstep : development in general and Objective-c. Any sujestions welcome. : Regards Vinny Hayes, : e-mail - 9116591@ul.ie The most popular book on NeXTSTEP development is called: NeXTSTEP Programming Simson Garfinkel & Michael Mahoney publisher: Telos (Springer Verlag) As far as I know, there is only one other book devoted to NeXTSTEP programming. (I'm sure someone else here can give you the name of it). Recently, someone has been advertising in this group that a new NeXTSTEP dev. book is about to go to market. Flip back through old articles in this gropu for the reference. For ObjC, Brad Cox, the developer of ObjC, has written a couple of books. Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.programmer From: howardd@il.us.swissbank.com (Denise Howard) Subject: Re: HELP: MailSendDemo doesn't work in Mail 3.3 (SOLVED) Message-ID: <1995Mar9.170743.3196@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <1995Mar7.170059.9471@il.us.swissbank.com> Date: Thu, 9 Mar 1995 17:07:43 GMT I wrote: > Suppose I want to allow the user to select "Suggestion" in my app menu and > have a Mail compose window appear, already filled out with my e-mail > address, a subject, and some message text. In the past this was easy > enough to implement by utilizing the MailSendDemo API of Mail.app. > However, I just noticed that this no longer works with Mail 3.3. Does > anyone how to work around this? Is there still a way? The answer, in case anyone else is interested, is that Mail 3.3 is NOT broken, nor is my app. I am running NeXTSTEP 3.2, with a _pre-release_ version of Mail 3.3. Apparently this older pre-release of Mail 3.3 has a broken MailSendDemo API, and that was my problem. If I try my "Suggestion" feature on other combinations (e.g., NS 3.2 with its Mail.app, NS 3.3 golden with Mail 3.3 golden), it works fine. So I'm not going to worry about it any more. I love it when my problems fix themselves! :-) Thanks to those who responded--you know who you are. Denise -- Denise Howard \/ howardd@swissbank.com Swiss Bank Corporation \/ deniseh@mcs.com Chicago, IL \/ [NeXT, MIME and ASCII mail welcome] (312) 554-6298 \/ "Older and Bolder!"
Newsgroups: comp.sys.next.programmer From: shayman@Objectario.com (Steve Hayman) Subject: Re: Help with MiscKit Version 1.4.1 Message-ID: <1995Mar10.200249.10750@objectario.com> Sender: news@objectario.com Organization: Steve Hayman + Associates / NeXTSTEP Consulting / Toronto References: <3jntar$b5s@news0.cybernetics.net> Date: Fri, 10 Mar 1995 20:02:49 GMT In article <3jntar$b5s@news0.cybernetics.net> frank@heron.cc.gatech.edu (Frank Cobia) writes: > When I load (try to anyway) the MiscShell.palette I get the following > message on my console. > > ---------------------------------------------------------------------- > Mar 9 16:09:30 cobra InterfaceBuilder[456]: Error loading > /LocalDeveloper/Palettes/MiscShell.palette/MiscShell > Mar 9 16:09:30 cobra InterfaceBuilder[456]: rld(): Undefined symbols: > ---------------------------------------------------------------------- It's not documented very well - it's mentioned in the README in the MiscShell source dir but not in the actual MiscShell.rtf documentation - but you need to load the MiscString palette before loading MiscShell. I'll fix the documentation. Steve "MiscShell guy" Hayman --- Steve Hayman Systems Consultant, NeXT Computer Canada, Toronto Steve_Hayman@NeXT.com || (416) 769-8995
Newsgroups: comp.sys.next.programmer From: gdkuch@neumann.uwaterloo.ca (Jerry Kuch) Subject: Re: Say No to gdb Message-ID: <D5AswG.6st@undergrad.math.uwaterloo.ca> Sender: news@undergrad.math.uwaterloo.ca (news spool owner) Organization: University of Waterloo References: <BYER.95Mar9113737@ductwork.mv.us.adobe.com> <D57G1L.717@genoa.com> Date: Sat, 11 Mar 1995 22:53:04 GMT In article <D57G1L.717@genoa.com>, Alex Blakemore <alex@genoa.com> wrote: >Scott Byer writes > >The integration between gdb and emacs is nice given the limitations of using >Unix, but its really a clever hack when compared to systems where the >environment, editor, compiler and debugger were designed from the ground up >to work together closely. Or that are bound together with such pathological tightness that if you don't like any of the features of your editor, your debugger, your compiler, or whatever, you just have to suck up and deal because someone who thinks they know better took your money and stuck you with some gaudy piece of crap like Visual C++ for Windows 1.0. -- Jerry Kuch EMail: gdkuch@neumann.uwaterloo.ca "GAMERA - DAIKAIJU KUCHU KESSEN" will be released IMPORTANT NEWS: in Japan on March 11th, one week earlier than the original March 18th release date.
From: kheit@gandalf.rutgers.edu (John Kheit) Newsgroups: comp.sys.next.programmer Subject: SoundKit port selection? Date: 11 Mar 1995 22:51:11 -0500 Organization: Rutgers University Distribution: world Message-ID: <3jtr3f$8je@gandalf.rutgers.edu> Can anyone tell me how to tell a next machine to acquire at 8khz mulaw from the DSP port? It seems the only way to acquire from the DSP port is to use a higher sampling rate--if true thats silly. I typically used either the sound object or sndFunctions... Thank you for any help. Later, John
From: peter@bert.psyc.upei.ca (Beaker) Newsgroups: comp.sys.next.programmer Subject: Re: Say No to gdb Date: 12 Mar 1995 06:14:27 GMT Organization: University of Prince Edward Island, Charlottetown, PEI Canada Distribution: world Message-ID: <3ju3g3$sif@atlas.cs.upei.ca> References: <3jk6ml$esm@castle.york.ac.uk> In article <3jk6ml$esm@castle.york.ac.uk> rog@talisker.ohm.york.ac.uk (Roger Peppe) writes: > Robert Nicholson (robert@steffi.dircon.co.uk) wrote: > > Perhaps you could tell us why it isn't adequate.... there are is a lot > > of hidden functionality in gdb ... > > but it's all full of bugs! > [snip] It's always worked pretty well for me, but I am annoyed with the way NeXT has extended it. Whenever NeXT gdb wants to show you a source file (breaks, stepping, etc.) it loads the source file into the Edit app. But it seems to pick the first matching filename instead of checking the path. I frequently have source files with identical names (and different contents) in different subprojects of one project. If anyone can tell me how to work around/fix this I would be most grateful. (No. I am not renaming all of my files. The names stay!) BTW, I'm using 3.2 on black hw. -- Peter 'Beaker' Burka / GCS d--- h---- s+ g+ p? au a- w+ v++ C++ UL++++/X+++/ Prince Edward Island \ O++ P+ L+>++ 3 N++ K++ W++/--- M- V-\ po-- Y+ t+ 5- pburka@upei.ca / v b+++ D++ b- e+(*) u--- h* f- r- n- y-@ j++ r-- "If only we were weiner dogs our problems would be all solved"
Newsgroups: comp.sys.next.programmer,comp.sys.next.bugs From: ccuilla@ccdd.com (Chris Cuilla) Subject: This method from NScalendarDate... Message-ID: <1995Mar9.200251.16524@ccdd.com> Sender: ccuilla@ccdd.com Organization: Chris Cuilla Design & Development Date: Thu, 9 Mar 1995 20:02:51 GMT initWithString:(NSString *)description calendarFormat:(NSString *)format FROM THE DOCS: --- This date string takes the form "03.21.94 22:00 PST": NSCalendarDate *newDate = [[NSCalendarDate alloc] initWithString:[NSString stringWithCString: [dateField stringValue]] calendarFormat:@"%m.%d.%y %H:%M %Z"] --- ...does not appear to work as advertised. It raises an exception that NSInlineCString characterAtIndex: is out of range. I have tried a variety of variations on this method (including BTW, the example shown here) and all seem to raise this exception. Has anyone else encountered this problem? -- Chris Cuilla ccuilla@ccdd.com (NeXT mail accepted)
Newsgroups: comp.sys.next.programmer,comp.sys.next.bugs From: ccuilla@ccdd.com (Chris Cuilla) Subject: How would you expect this to work? Message-ID: <1995Mar9.200301.16584@ccdd.com> Sender: ccuilla@ccdd.com Organization: Chris Cuilla Design & Development Date: Thu, 9 Mar 1995 20:03:01 GMT I have a string (myMessageData) which I am appending to in a loop. Since the field sizes for each element of the message are fixed (i.e. like COBOL), I must force the item to be printed in the specified space (truncated or padded as necessary). The various "format" messages for NSString claim to work just like "printf" style formatting (with the convenient addition of the %@ symbol for objects. Now the way I think this should work (were I using sprintf or something) is that "myValue" would be printed to the position indicated by the "%@". I want the characters to be left justified (the "-"), and I want the field width to be at least "myMessageElementLength" and no more than "myMessageElementLength". [myMessageData appendFormat:@"%-*.*@", myMessageElementLength, myMessageElementLength, myValue] So guess what I get after this? I get a string that's length (in C-form) is "myMessageElementLength + strlen(myValue)"! In other words...this method seems to be printing the value to the string, THEN appending myMessageElementLength spaces! What am I doing wrong? I'm sure it is fairly obviously to someone whose eyes aren't glazing over. Thanks for any help. Chris -- Chris Cuilla ccuilla@ccdd.com (NeXT mail accepted)
From: jonathan huang <75300.322@CompuServe.COM> Newsgroups: comp.sys.next.marketplace,comp.sys.next.programmer Subject: wtb:sql server Date: 12 Mar 1995 08:30:49 GMT Organization: zeus communications Message-ID: <3jubfp$qr8$2@mhade.production.compuserve.com> I need a sql server for intel or moto under next. I prefer used or acadamic pacjage with documentation. will be used in study project. -- Physics, metaphysics, mathematics,..oh! the universe.
From: murphy@wsc.com (Paul Murphy) Newsgroups: comp.sys.next.programmer,comp.lang.eiffel Subject: Re: Eiffel on NeXTSTEP Date: 10 Mar 1995 15:09:38 GMT Organization: WSC Investment Services, Inc. Message-ID: <MURPHY.95Mar10100938@eos.wsc.com> References: <3jfr4f$e7m@rs18.hrz.th-darmstadt.de> <SAMURAI.95Mar7111807@marge.cs.mcgill.ca> In-reply-to: samurai@marge.cs.mcgill.ca's message of 07 Mar 1995 16:18:07 GMT samurai@marge.cs.mcgill.ca (Darcy BROCKBANK) writes: <dg8z@hrz.th-darmstadt.de> writes: > - how can Eiffel and Objective-C work together ? How far is an > integration of that two worlds possible ? Actually, this is pretty cool. I proposed a while ago to one of our clients that this could be done by tying together the runtime of ObjC to Eiffel. It worked pretty much as I thought, as Paul Murphy built the implementation (and found some limitations, but nothing serious). So, what was done was to create ObjC proxy classes for Eiffel objects, which encapsulate them. It makes the transfer of information between the two worlds painless. It works with Tower and ISE Eiffel and with NeXT and GNU's ObjC runtime (the original development was done under HP-UX, for fun :-) Also, the Tower compiler has ObjC extensions on NEXTSTEP. I think they also have adopted an implementation of this proxy ide. Contact rock@twr.com to get info about Eiffel on NEXTSTEP. This is actually a wonderful feature. We aren't using it because we are trying to keep all of our Eiffel code portable (kind of like trying to keep C++ code portable a few years ago: limiting and painful). > - is there a canonical way integrating the NeXTSTEP window machine > into an Eiffel app' ? Can I take advantage of the Interface > Builder ? Yes. See above ;-). Both Tower and ISE's seem to think that Eiffel should be in control. We took the opposite approach because the NeXT development tools are very good. We build our Eiffel cores and debug them, as much as possible, in Eiffel. We then turn the Eiffel code into a library that our ObjC programs link against. > - is there an elegant way to achieve persistency for Eiffel objects > via a DBKit database (any other successful mechanism also > appreciated) ? Hmmm. Blatant plug time: Hutchison Ave. Software has built something called the Persistence Kit, which transparently allows for persistent ... I would sound stupid if I tried come up with adequate praise for the kit. It is allowing us to painlessly build very complex software. It lets us store *anything* in our database. The data that persist doesn't have to inherit from anything special, nor are we limited to any particular data structures. During the development cycle, the database is hardly ever considered because we know that the networks of objects used by our programs are persistent by default. We only have to "tweak" things on two occasions: when we are dealing with lots of data and when we are dealing with classes with generic parameters. The PKit provides several mechanisms for lazy data retrieval, neither of which change any class-level semantics. Unfortunately, the ISE runtime does not currently provide enough information about the type of generics. This forces us to subclass all classes with generic parameters. Were we not trying to keep things portable, this would not be necessary. Also, ISE has promissed to fix this in a future release so the problem should disappear. > - what about "distributed objects", if "objects" means Eiffel objects ? If you build an ObjC proxy for an Eiffel object, you can use DO's to connect the two Eiffel object proxies, allowing them to talk to each other. As ObjC/Eiffel proxy creation is simple, this gives you a whole lotta functionality for cheap. (Takes a bow). Of course, Eiffel is a static typed language, so sometimes this rears its ugly head as a problem. One of our developers wrote some classes to transparently shuttle networks of Eiffel objects across DO connections. We intend to use the system to create read-only data servers. This will reduce database load and eliminate a lot of potentical concurrency problems. > - possibilities to "trace" a running mixed language project ? Dunno. I've not actually programmed in Eiffel myself. As I said earlier, we try to debug the Eiffel side completely before combining the two worlds. Of course, we are never completely successful. Neither company provides a useful debugger, although Tower is on the right track. Tower's debugger is based on a version of gdb that provides hooks for *other* languages. NeXT does not seem to realize that people writing custom application might actually be interested in writing programs in anything but C or Objective-C (they recently agreed to take C++ seriously but I'm sure that took so work by either Sun or some of their bigger customers) so they just keep using a hacked older version of gdb. As a result, Tower can't provide a debugger that plays nicely with ObjC. This is annoying because it forces us to debug at the C level. With ISE's C code, the process is akin to black magic. All of their function names are mangled beyond recognition so you have to know quite a bit about how their C code generation works to get anywhere. Also, they neglect to include the Eiffel code line information in their generated C code. Tower, on the other hand, mangles function names predictably and includes line information in their C code. This makes things much, much easier. When debugging, we almost always stick with Tower. Some cooperation from NeXT, though, would make things better. Send me email if you want more details. Paul Murphy murphy@wsc.com
Newsgroups: comp.sys.next.programmer From: gery@ares.fdn.fr(Gery_Divry) Subject: Re: polyline data type in Quick RenderMan? Message-ID: <1995Mar11.134005.17588@ares.fdn.fr> Sender: news@ares.fdn.fr Organization: ARES - Lyon, France. References: <KAVEH.95Mar7221925@ocean.CAM.ORG> Date: Sat, 11 Mar 1995 13:40:05 GMT In article <KAVEH.95Mar7221925@ocean.CAM.ORG> kaveh@ocean.CAM.ORG (Kaveh Kardan) writes: > > Are there any plans to include a polyline type in QuickRenderMan? > > Kaveh Kardan kaveh@metropolis.qc.ca > -------------------------------------------------------------------------- ----- > After the game, the King and the Pawn go back into the same box. Quick Renderman is not what you need to display wireframe (big polylines ) it is quite inefficient. A fast display matrix associated with a good clipping proccess and DPS UserPath can handle huge polylines 20 time faster. Q renderman take the same time (or close to) to render wireframe or faceted model ( no smoothing ). Gery DIVRY ( ZZVolume Daddy ) ARES Publisher 8, rue Victor Lagrange Phone: (+33) 72 80 16 30 69007 LYON Fax: (+33) 72 80 16 32 France Email: gery@ares.fdn.org Earth, Solar System, Galaxy MW1 NeXT Mail accepted
From: suckow@uropax.contrib.de (Ralf Suckow) Newsgroups: comp.sys.next.programmer Subject: EOF Adaptor / Datasource for NextInfo? Date: 12 Mar 1995 13:39:17 +0100 Organization: Internationale Stadt e.V. Message-ID: <3juq1l$1p7@uropax.contrib.de> Hello everybody, do you know if there is an adaptor or a datasource available to access the NetInfo database via EOF? Thank you very much, Ralf -- melonSoft Ralf Suckow Berlin |-------------------------------| suckow@contrib.de | Developer of MusicBuilder (R) | fax: +4930 9321901 |-------------------------------| > I got from getrusage: > Straight C code : 0.000000 system and 0.189984 user ... > Using DO with protocols : 230.583732 system and 512.727327 user > Using DO without protocols : 237.339423 system and 517.345028 user >This is flaim bait, right? I'll try to behave, but doesn't it seem a bit >odd to compare local variable assignments with IPC? Try comparing DO with >mach messages and TCP sockets for some more interesting results. You will >then notice that DO is a bit slower than using bare mach messages or TCP, >but it provides a extra layer of abstraction that makes the performance >penalty acceptable in most cases. This is 0.742 milliseconds total for a single IPC. This is VERY FAST compared to a typical RPC (this is the layer to compare with) as SUN-RPC or DCE-RPC, which take 3 to 10 millisecond per round-trip. Note that the assignment in C runs fully inside the processor cache. Ralf -- melonSoft Ralf Suckow Berlin |-------------------------------| suckow@contrib.de | Developer of MusicBuilder (R) | fax: +4930 9321901 |-------------------------------|
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <gbacklin@marizack.com> Message-ID: <9503121450.AA00408@marizack> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Gene Backlin <gbacklin@marizack.com> Date: Sun, 12 Mar 95 08:50:05 -0600 Subject: NEW Book "Developing NeXTSTEP Applications" coming in April Hello fellow developers, This is a note to inform you that there will be a new book coming in April filled with step-by-step instructions to help you design NeXTSTEP applications. I am the author and it will be published by Sams Publishing. Within the pages of this book you will be instructed on how to build over 50 applications from scratch. There will be an attached diskette that will have all the applications that are explained in the book. Topics include Delegate, Panel, Menu, Browser processing; View, Image, Pasteboard manipulation, Drag and Drop; and Distributed Object applications both on the Client as well as the Server end. For a more detailed summary feel free to contact me. gbacklin@MariZack.com Thank you for your time to read this. Gene PS. Please let me know if you can receive NeXT Mail, Thanks again !
Newsgroups: comp.sys.next.programmer From: fabien@free.fdn.org (Fabien Roy) Subject: How to programmatically break into GDB Message-ID: <1995Mar8.014723.6563@free.fdn.org> Sender: news@free.fdn.org Organization: Fabien Roy Consultant, Paris, France Date: Wed, 8 Mar 1995 01:47:23 GMT like this: if (condition) gdb(); Thanks Fabien -- --------------------------------------------------------------------- Fabien_Roy@free.fdn.org (NextMail/MIME accepted) Fabien Roy Consultant NEXTSTEP/OPENSTEP/EOF Consultant, SYBASE DBA 10 rue de la DEFENSE 93100 MONTREUIL, France Tel: 33 1 45 28 32 23 Fax: 33 1 45 28 32 23
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: Say No to gdb Date: 8 Mar 1995 12:07:49 GMT Organization: The University of York, UK Distribution: world Message-ID: <3jk6ml$esm@castle.york.ac.uk> References: <3jb6md$52h@crl.crl.com> <ROBERT.95Mar5111216@steffi.dircon.co.uk> Robert Nicholson (robert@steffi.dircon.co.uk) wrote: > Perhaps you could tell us why it isn't adequate.... there are is a lot > of hidden functionality in gdb ... but it's all full of bugs! (breakpoints not restored, half working features, etc, etc) sure it's fine for rudimentary debugging but once 'off the beaten track' it seems to be inadequately tested and unreliable, neither of which are desirable attributes in a debugger. personally i wouldn't mind a few less features for a little more simplicity and reliability. rog. (disclaimer: i'm talking about gdb under nextstep 3.0; perhaps everyone else has a version that works perfectly...)
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: Programmatically disabling Window movement Date: 12 Mar 1995 10:09:22 GMT Organization: Total System Software Distribution: world Message-ID: <3juh8j$rs@tssslab.TotSysSoft.com> References: <jpanicoD58x0C.MK1@netcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <jpanicoD58x0C.MK1@netcom.com> jpanico@netcom.com (Joe Panico) writes: }~ Hi, }~ }~ Is there any way to programmatically prevent a window from being moved }~ by it's title bar? The documentation says that the return value from }~ the Window class's windowWillMove delegate method is ignored, so it }~ looks like the delegate doesn't get a chance to veto the operation. }~ I suppose I could implement the windowDidMOve method so that it moves }~ the window back to it's starting position, but I think it would be }~ neater if I could disable the move operation at a lower level. Any }~ hints appreciated. The obvious answer is position the grab-bar off-screen at the top with -moveTopLeftTo:(NXCoord)x :(NXCoord)y; - and don't provide (or disable) an "Arrange in Front" menu option. OR to provide a grab-bar-less window. If you're keeping it in position, are you also refusing miniaturize and a close X? Bruce
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 13 Mar 1995 05:15:08 GMT Organization: Digital Fix Development Message-ID: <3k0kcs$fus@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally the NEXTSTEP there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ *** NEED INFORMATION *** NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff, but very short on disk space ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.next.com: See the below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <pb@next.oasa.cz> From: Petr Bulanek <pb@next.oasa.cz> Message-ID: <9503131130.AA02335@colorado> Date: Mon, 13 Mar 95 12:30:07 +0100 Subject: Threads and Window Server When I was reading DO and Mach documentation I found that the Window Server was not thread safe and I am still thinking why. If I well understand this problem, communication with Window Server is made by sending Mach messages, so it probably does not use global variables. I found out only one next reason and this is internal graphic status of Poscript. But it is possible solve via mutex, isn't it? (I mean overriding of Window Display method and locking everything called inside the standard Display method) Does anybody know any another reasons, why Window Server operation are not safe? If you can recommended my any information source it will be very helpfull to me. Thanks for Your help. Petr Bulanek
From: Peter.D.Clark@eng.sun.com (Pete Clark) Newsgroups: comp.sys.next.programmer Subject: re: Threads and Window Server Date: 13 Mar 1995 21:50:17 GMT Organization: Sun Microsystems Inc., Mountain View, CA Distribution: world Message-ID: <3k2emp$7pd@engnews2.Eng.Sun.COM> References: <9503131130.AA02335@colorado> Keywords: threads, dps, window server In article <9503131130.AA02335@colorado> Petr Bulanek <pb@next.oasa.cz> writes: > > When I was reading DO and Mach documentation I found that the Window > Server was not thread safe and I am still thinking why. If I well > understand this problem, communication with Window Server is made by > sending Mach messages, so it probably does not use global variables. > > Does anybody know any another reasons, why Window Server operation > are not safe? If you can recommended my any information source it > will be very helpfull to me. Thanks for Your help. I certainly can't speak for NeXT, but my guess is for speed. If you don't need to worry about multiple threads of control, you have far fewer deadlock possibilities, and setting, checking, and releasing locks isn't free. It's much easier to optimize a single-threaded system. I expect there isn't much global state in the window server, but there's probably more than you think in the lower levels, things like pointers to display buffers and backing stores and whatnot. Best, Pete -- *************************************************************************** Pete Clark | The thinking man looks at the world and SunSoft Object Products Group | sees a comedy. The feeling man looks Peter.D.Clark@eng.sun.com (NeXTMail) | at the world and sees a tragedy. ***************************************************************************
From: audley@condor.cs.jhu.edu (Christopher Audley) Newsgroups: comp.sys.next.programmer Subject: simple DBKit problem, please help Date: 13 Mar 1995 17:26:14 -0500 Organization: The Johns Hopkins University CS Department Distribution: na Message-ID: <3k2gq6$7s1@condor.cs.jhu.edu> I've written an object which loads itself from a sybase database using the DBKit. I tried writing a small program which allocated and initialized one of these objects to test the code, however it fails when I send the connect message to the Database object. I get the following messages: Cannot load Interface Builder file: AlertPanel Sybase:login panel not found. Cannot load Interface Builder file: AlertPanel Sybase:login failed. There must be something simple I'm forgetting to do, I know I did something like this a few months ago and it worked. BTW, I did link with the -u libNeXT_s -u libsys_s flags. Chris
Newsgroups: comp.sys.next.programmer From: chuston@dudley.com (Chris Huston) Subject: Storage and List under Foundation Message-ID: <D5EGLA.BG4@dudley.com> Sender: news@dudley.com Organization: D.C. Dudley & Associates, Denver, Colorado Distribution: usa Date: Mon, 13 Mar 1995 22:17:33 GMT Will Foundation Kit completely supplant the common objects like Bundle, List and Storage? looks like a yes. Is there a replacement for Storage? Looks like List->NSArray and NXBundle->NSBundle but nothing for Storage. It doesn't look that hard to re-implement... uh, that word again... Thanks. -- ============================================================================= Chris Huston | If you can't go there on a mountain bike Manager of Information Systems | it ain't worth goin'. D.C. Dudley & Associates | It's either NEXTSTEP or pushin' a broom ================================ 'cuz homie don't play Windows. =============
Newsgroups: comp.sys.mac.programmer,comp.sys.next.programmer,comp.unix.programmer From: foothill@netcom.com (FGA) Subject: ANNOUNCE: C++ Course via Internet at Foothill College Message-ID: <foothillD5F79C.1zF@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Tue, 14 Mar 1995 07:53:36 GMT Sender: foothill@netcom10.netcom.com FOOTHILL GLOBAL ACCESS Foothill Community College in Los Altos Hills, California announces an Internet-driven, 5-unit, university-transferable course in C++. This is the same C++ course that has been taken locally, by hundreds of students each year here in Silicon Valley. It is now being offered world-wide via the Internet, beginning April 5, 1995. The course is CIS-25C1-02, "Object-Oriented Programming in C++", and is a beginning course in C++ for the programmer already familiar with the C language. The course emphasizes a comfortable format, utilizing: * A 12 week timetable, topics introduced at a pace compatible with most working students. * A published, proven text, which students can read away from the computer, minimizing connect-fatigue. * Instructor's notes and sample programs, distributed weekly. * Student access to instructor through e-mail with some WWW support. Foothill College is a California Community College, therefore, the cost of the course is based on California and U.S. residency as well as previous education. Students must apply to Foothill, and register for the course in March in order to meet the April 5 start date. Course enrollment is limited to 200 world-wide. To apply, or get more detailed information: * e-mail info@fga.fhda.edu or * go to http://wwwfh.fhda.edu/ and follow the CTIS page link. For more information call 415-949-7236. -------------------------------------------------------------- Foothill Global Access - Foothill College 12345 El Monte Road Los Altos Hills, CA 94022 --------------------------------------------------------------
From: dion.dock@mccaw.com (Dion Dock) Newsgroups: comp.sys.next.programmer Subject: Re: NeXTstep Development/Objective-c Books ?. Date: 13 Mar 1995 16:27:09 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3k1rot$3lp@ftp-p.mccaw.com> References: <jpanicoD5A7yx.D02@netcom.com> In article <jpanicoD5A7yx.D02@netcom.com> jpanico@netcom.com (Joe Panico) writes: > Vincent Hayes (9116591@news.ul.ie) wrote: > : Hi, > : Could somebody out there recommend some good books on NeXTstep > : development in general and Objective-c. Any sujestions welcome. > > As far as I know, there is only one other book devoted to NeXTSTEP programming. The title is something like like "Programming in NeXTstep". The author is Alex Nghiem. -dion -- Dion Dock Paradigm Systems \\||// --DOOM-- Product Delivery, Axys project. //||\\ dion.dock@mccaw.com
From: sjmc@evans.cudenver.edu (Swain) Newsgroups: comp.sys.next.programmer Subject: Need Mosaic source Date: 9 Mar 1995 17:28:40 GMT Organization: University of Colorado at Denver Message-ID: <3jnds8$u1u@carbon.cudenver.edu> Hello I want to run mosaic on a 3.3 i386 architecture. Could anyone point me to sources or binaries? I've spent hours perusing ftp sites, sorry if I missed the obvious. E-mail replies welcome. Thanks! Jon McSwain CTA INC. jmcswain@ctaeng.com
From: dengliu@solar.csie.ntu.edu.tw (Deng Liu) Newsgroups: comp.sys.next.programmer Subject: Writing a NeXTSTEP Printer Diver... how? Date: 14 Mar 1995 11:04:10 GMT Organization: The Dept. of Computer Science and Information Engineering of NTU Message-ID: <3k3t7a$bfp@debbie.cc.nctu.edu.tw> Hi there, I am working in a place that requires making some printr output via NeXTSTEP, yet the printer is not supported by niether NeXTSTEP itself nor available PD drivers I can grab. I'm considering writing a printer driver of my own, how can this can be down under NeXT? thanks! ======================================================================== Happy is the Life, Merry be the Night; Hack upon Bugs, And programming with Pride. --- to the Souls wandering in the cyberspace
Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer From: bmcquaid@crash.cts.com (Brad McQuaid) Subject: Shareware Authors: credit card ordering service! Organization: /etc/organization Date: Tue, 14 Mar 1995 18:23:15 GMT Message-ID: <D5G0Er.5uL@crash.cts.com> Keywords: shareware credit card Sender: news@crash.cts.com (news subsystem) MicroGenesis offers shareware authors the ability to accept credit card orders (Visa, Mastercard, Discover) as well as a toll-free number. This is an excellent tool to increase your registrations -- no longer does the user have to fill out a check and mail it -- instead they can call our toll-free order line (or for international callers, our regular line), and place an order with their major credit card. They can also email us their order, or use snail mail. We notify you of the order via email the same day, and then issue you a check for the money received either once or twice a month (your preference). What do we get out of it? $4 per order plus 3% of the total order amount (to cover the credit card bank charges). Two companies have already subscribed to our service: Castle Software (their shareware RPG Excelsior) and Zephyr Software (their SVGA programming tools). We also accept orders for our shareware CRPG WarWizard. This is an opportunity for you to increase your registrations, for both our companies to grow, and to support the shareware concept in general. Please email me and I will send you more detailed information. -Brad McQuaid bmcquaid@crash.cts.com MicroGenesis
From: cadilhac@arles.univ-rennes1.fr (Nicolas Cadilhac) Newsgroups: comp.sys.next.programmer Subject: SYNTAX of file apps3_0.wmd Date: 14 Mar 1995 17:36:10 GMT Organization: Universite de Rennes 1, France Message-ID: <3k4k6a$6bs@news.univ-rennes1.fr> hello, Does anyone know the syntax of the file apps3_0.wmd in ~/.NeXT dir ? Maybe some functions exist to read and write this file ? Thanks for your help ! -- Nicolas Cadilhac ---------------- INSERM CJF 90-12 Clinique neurologique Hopital Pontchaillou 35033 Rennes Cedex
From: austin@after.usask.ca (Alvin Austin) Newsgroups: comp.sys.next.programmer Subject: Compiling posix applications Date: 14 Mar 1995 18:22:31 GMT Organization: University of Saskatchewan Distribution: world Message-ID: <3k4mt7$t@tribune.usask.ca> Keywords: help I've been trying to compile the posix application deslogin-1.3 (which supports encrypted telnet sessions - useful for system administration on an insecure network) under NeXTSTEP 3.2's cc. It's from ftp.uu.net:/pub/security/des/*. If I use the compiler flag -posix most modules compile ok, but the link fails with the following symbols undefined... ld: Undefined symbols: _objc_msgSend _NXGetDefaultValue _NXRegisterDefaults objc_class_name_NXStringTable objc_class_name_NXBundle *** Exit 1 Stop. Any hints on compiling these kinds of programs with the NeXT 3.2 c compiler? I tried using the -ObjC flag without success and combinations of -posix, -ansi, and -bsd. Thanks for any clues... -- Alvin Austin, Systems guy, Department of Computer Science University of Saskatchewan, Saskatoon, CANADA Email: alvin@cs.usask.ca
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: Programmatically disabling Window movement Message-ID: <jpanicoD5FqAI.7o8@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <jpanicoD58x0C.MK1@netcom.com> <3juh8j$rs@tssslab.TotSysSoft.com> Date: Tue, 14 Mar 1995 14:44:42 GMT Sender: jpanico@netcom13.netcom.com Bruce Gingery (bruce@TotSysSoft.com) wrote: : The obvious answer is position the grab-bar off-screen at the : top with -moveTopLeftTo:(NXCoord)x :(NXCoord)y; - and don't provide : (or disable) an "Arrange in Front" menu option. OR to provide a : grab-bar-less window. If you're keeping it in position, are you : also refusing miniaturize and a close X? : Bruce The first sounds like a good solution. The second is less attractive, because the only way I know to make a grab-bar-less window is to init the Window with NX_PLAINSTYLE, but then the window has now border and looks very unappealing. Thanks for the input. Joe Panico jpanico@netcom.com
From: dion.dock@mccaw.com (Dion Dock) Newsgroups: comp.sys.next.programmer Subject: Re: simple DBKit problem, please help Date: 14 Mar 1995 16:05:15 GMT Organization: McCaw Cellular Communications, Inc. Distribution: na Message-ID: <3k4ers$o5d@ftp-p.mccaw.com> References: <3k2gq6$7s1@condor.cs.jhu.edu> > I've written an object which loads itself from a sybase database using the > DBKit. I tried writing a small program which allocated and initialized > one of these objects to test the code, however it fails when I send > the connect message to the Database object. I get the following messages: > > Cannot load Interface Builder file: AlertPanel > Sybase:login panel not found. > Cannot load Interface Builder file: AlertPanel > Sybase:login failed. > Do you have the proper files in /NextLibrary/Adaptors? -dion -- Dion Dock Paradigm Systems \\||// --DOOM-- Product Delivery, Axys project. //||\\ dion.dock@mccaw.com
From: Sean Hill <Sean.Hill@iphysiol.unil.ch> Newsgroups: comp.sys.next.programmer Subject: Replacement for Storage Date: 14 Mar 1995 21:57:59 GMT Organization: University of Lausanne CH (Switzerland) Message-ID: <3k53h7$qff@cisun2000.unil.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit To: chuston@dudley.com > > Will Foundation Kit completely supplant the common objects like Bundle, List > and Storage? looks like a yes. > > Is there a replacement for Storage? Looks like List->NSArray and > NXBundle->NSBundle but nothing for Storage. It doesn't look that hard to > re-implement... uh, that word again... > What about using NSValue and NSArray. I think it's a good approach. You can wrap any ObjC types in an NSValue object and stick as many of those into an Array as you'd like. Even better than Storage. _Sean
From: Sean Hill <Sean.Hill@iphysiol.unil.ch> Newsgroups: comp.sys.next.programmer Subject: Replacement for Storage Date: 14 Mar 1995 21:58:28 GMT Organization: University of Lausanne CH (Switzerland) Message-ID: <3k53i4$qff@cisun2000.unil.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit To: chuston@dudley.com > > Will Foundation Kit completely supplant the common objects like Bundle, List > and Storage? looks like a yes. > > Is there a replacement for Storage? Looks like List->NSArray and > NXBundle->NSBundle but nothing for Storage. It doesn't look that hard to > re-implement... uh, that word again... > What about using NSValue and NSArray. I think it's a good approach. You can wrap any ObjC types in an NSValue object and stick as many of those into an Array as you'd like. Even better than Storage. _Sean
From: felix@nice.usergroup.ethz.ch (Felix Rauch) Newsgroups: comp.sys.next.programmer Subject: Re: How do you make smaller apps? Date: Tue, 14 Mar 1995 23:38:54 GMT Organization: NiCE - NeXT User Group, Zuerich, Switzerland Message-ID: <D5GF0u.Hp@harka> References: <3jau3n$e5b@usenet.srv.cis.pitt.edu> <1995Mar7.224151.1449@precipice.fdntytruyu.fr> Originator: HARKA@nice.ethz.ch Hugues RICHARD (precipi!neekibo) wrote: > -> man strip You can also add '-s' to the compiler options, which strips the resulting executable directly (-> man ld). - Felix -- Felix Rauch, CS-Student @ ETH Zurich, Switzerland.
Belgium.EU.net!EU.net!news.sprintlink.net!nwnexus!nwnexus!mccaw!usenet From: burrowes@pretoria.nwest.mccaw.com (David John Burrowes) Newsgroups: comp.sys.next.programmer Subject: Programmatically making screen shots Date: 14 Mar 1995 19:59:31 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3k4sj3$2ui@ftp-p.mccaw.com> I wish to make some 'screen shots' from an application (like what Grab does, but under the program's control, not the user's). I am unable to figure out how to either (a) get an image for the whole screen or (b) get an image for a specified window in another application. Any suggestions? I've found certain things in the NeXT doc (e.g. the PS Operator readimage and the function NXReadBitmap()) but they seem to work only on a single window in the current app. david john burrowes Disclaimer: my thoughts, indeed all my words, are my own and do not reflect my employer's attitudes, intentions, or anything else for that matter.
From: vfr@ubszh.net.ch (Tim Vetter) Newsgroups: comp.sys.next.programmer Subject: Spreadsheet-type widgets? Date: 15 Mar 1995 11:29:03 GMT Organization: Union Bank of Switzerland Distribution: world Message-ID: <3k6j1v$6si@ubszh.fh.zh.ubs.com> Looking for a product to allow me to implement spreadsheet-grid-like functionality in my views, ie all the physical behaviour of an Excel-type worksheet minus the calculation engine. Tried Joe Freeman's demo CellSheetView and was pretty impressed, but I gag on the $1000/user runtime license. Any alternatives? Tim Vetter Forex & Fixed Income Trading Development Union Bank of Switzerland, Zurich vfr@ubszh.net.ch (ASCII, MIME, NeXTMail) voice (+41) 1/2368709 fax (+41) 1/2368392
From: cedman@princeton.edu (Carl Edman) Newsgroups: comp.sys.next.programmer Subject: Re: Edit.app API Date: 15 Mar 1995 05:07:18 GMT Organization: Princeton University Message-ID: <CEDMAN.95Mar15000718@freedom.princeton.edu> References: <3jjuht$8sv@sun0.urz.uni-heidelberg.de> To: dcoyle@kakapo.mpi-hd.mpg.de (David A. Coyle) In-reply-to: dcoyle@kakapo.mpi-hd.mpg.de's message of 8 Mar 1995 09:48:45 GMT In article <3jjuht$8sv@sun0.urz.uni-heidelberg.de> dcoyle@kakapo.mpi-hd.mpg.de (David A. Coyle) writes: I want to create something to manage my BibTeX files. Because everyone creates LaTeX files in Edit anyway, it would be silly to create a separate app. Rather I'd prefer to trundle a bundle into Edit, a la GDB. Everybody creates LaTeX in Edit.app ? Ever heard of Emacs ? :) Carl Edman
From: jgaines@mcs.com Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.sys.next.marketplace Subject: WANTED: WWW Content Author/Admin Date: Wed, 15 Mar 95 08:48:57 PDT Organization: MCSNet Services Message-ID: <3k6uon$qfv@News1.mcs.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: bruce@pond.com comp.sys.next comp.sys.next.programmer comp.sys.next.marketplace> ... unknown user |------------------------- Message text follows: ------------------------| Received: by mailbox.mcs.com (/\==/\ Smail3.1.28.1 #28.5) id <m0roS2v-000kX0C@mailbox.mcs.com>; Tue, 14 Mar 95 02:33 CST Message-Id: <m0roS2v-000kX0C@mailbox.mcs.com> X-Sender: jgaines@popmail.mcs.com (Unverified) Mime-Version: 1.0 Skills preferred are NS v3.x development and WWW Content Authoring and Administration skills. Candidate needs to be able to manage Web Site receiving >1MM hits per day. Reply to bruce@pond.com or jgaines@mcs.com Serious inquiries only.
Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.fonts From: mfradkin@next.mrco.carleton.ca (Mikhail Fradkin) Subject: True Type fonts on the Next? Message-ID: <D5HM19.HHE@cunews.carleton.ca> Keywords: fonts Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University Date: Wed, 15 Mar 1995 15:07:57 GMT Is it possible to use True Type fonts on NeXT running NeXTStep 3.0? I am aware of 'no' answer from FAQ files for both NeXT and comp.fonts, but is there any way around? Is there any PD tools to convert True Type font to Post Script Type 1 either within NeXTStep or on Mac or in MS Windows? Thank you in advance. Regards, Misha.
From: wilkie@cslab.tuwien.ac.at (Alexander Wilkie) Newsgroups: comp.sys.next.programmer Subject: HARD: how does one toggle right mouse button use? Date: 15 Mar 1995 15:27:43 GMT Organization: Vienna University of Technology, Austria Distribution: world Message-ID: <3k711f$rlf@news.tuwien.ac.at> Does anyone (esp. the enlightened guys at NeXT) have a clue how Preferences.app performs the trick of activating/deactivating the use of the right mouse button programmatically? There's nothing about this in any documentation I read, but perhaps I'm blind... BTW: I' using 3.2 dev I'd greatly appreciate any e-mailed hints on this. If anything emerges, I'll summarize. ys Alexander Wilkie PS: Changing the MOUSE_BUTTONS_TIED (or so) dwrite from an app that is not Preferences.app has NO effect! -- /////////////////////////////////// // Alexander Wilkie // // wilkie@cslab.tuwien.ac.at // ///////////////////////////////////
From: Matt_Watson@next.com (Matt Watson) Newsgroups: comp.sys.next.programmer Subject: Re: Storage and List under Foundation Date: 15 Mar 1995 16:55:31 GMT Organization: NeXT Computer, Inc. Distribution: usa Message-ID: <3k7663$qj6@news.next.com> References: <D5EGLA.BG4@dudley.com> Keywords: foundation storage In article <D5EGLA.BG4@dudley.com> chuston@dudley.com (Chris Huston) writes: [...] > Is there a replacement for Storage? [...] Using Foundation, you can use NSArrays of NSValues to store arbitrary types. matt.
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Wed, 15 Mar 95 00:48:05 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9503142348.AA11657@flexus> Subject: SavePanel behaviour Hi, Does anyone have an accurate description of the behaviour of SavePanel and OpenPanel? On my 3.2 system, doesTreatFilePackagesAsDirectories apparently defaults to NO instead of the documented YES, except for .app and .debug (not .bundle). With runModalForDirectory:file:types:, the packages with non-specified extensions (types) are excluded instead of dimmed, which is quite confusing! Are there more surprises still? Thanks, Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: Programmatically disabling Window movement Message-ID: <D5Gs5p.BLn@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems References: <jpanicoD5FqAI.7o8@netcom.com> Date: Wed, 15 Mar 1995 04:22:37 GMT Joe Panico writes [about how to prevent a window from being movable by user] > ... the only way I know to make a grab-bar-less window is to > init the Window with NX_PLAINSTYLE, but then the window has now border > and looks very unappealing. Joe, Would it be possible for you to briefly describe why you want to do this? I'm really curious what kind of systems would give rise to such a "anti-social" window behavior requirement. I can think of some real-time process monitoring systems where you want to ensure that an important status window is never hidden, but even then moving it might be ok (just put it at the highest layer in the window tier) -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
Belgium.EU.net!EU.net!news.sprintlink.net!howland.reston.ans.net!agate!william From: william@jaffna.berkeley.edu (Andy Grosso) Newsgroups: comp.sys.next.programmer Subject: Re: Programmatically disabling Window movement Date: 15 Mar 1995 19:45:38 GMT Organization: U.C. Berkeley Math. Department. Message-ID: <3k7g52$7qv@agate.berkeley.edu> References: <D5Gs5p.BLn@genoa.com> <3k7aag$3im@agate.berkeley.edu> In article <3k7aag$3im@agate.berkeley.edu>, Izumi Ohzawa <izumi@pinoko.berkeley.edu> wrote: >In article <D5Gs5p.BLn@genoa.com> alex@genoa.com (Alex Blakemore) writes: >>Joe Panico writes [about how to prevent a window from being movable by user] > >[more about why people want this] Just a thought-- The reason given is that window dragging is a tremendous waste of CPU cycles. Presumably, this is due to the screen operations. So, is the following a solution: create a delegate for window and override windowWillMove to bleed off most of the event queue (using Applications peeknextevent and getnextevent methods)? Just loop through, peeking at each event and getting all the events that are related to the dragging (while the mouse button is clicked). A related question might be: what happens if you make the content view big enough to cover the title bar (but give it the same postscript as the tile bar in the overlap). Does the content view then receive the mouseevents that were supposed to go to the title bar ? Bill Grosso
From: izumi@pinoko.berkeley.edu (Izumi Ohzawa) Newsgroups: comp.sys.next.programmer Subject: Re: Programmatically disabling Window movement Date: 15 Mar 1995 18:06:08 GMT Organization: University of California, Berkeley Distribution: world Message-ID: <3k7aag$3im@agate.berkeley.edu> References: <D5Gs5p.BLn@genoa.com> In article <D5Gs5p.BLn@genoa.com> alex@genoa.com (Alex Blakemore) writes: >Joe Panico writes [about how to prevent a window from being movable by user] >> ... the only way I know to make a grab-bar-less window is to >> init the Window with NX_PLAINSTYLE, but then the window has now border >> and looks very unappealing. >Would it be possible for you to briefly describe why you want to do this? >I'm really curious what kind of systems would give rise to such a >"anti-social" window behavior requirement. >I can think of some real-time process monitoring systems where you want to >ensure that an important status window is never hidden, but even then moving >it might be ok (just put it at the highest layer in the window tier) That entirely depends on what kind of real-time you are talking about. For continuous display of stock prices, perhaps that's OK. I have a in-house real-time data acquisition app that gets data from DSP (6 channels at 25kHz). Window dragging is really one of the most taxing operations for the CPU, and I get data loss when I wave around a window, simply it sucks so much cycles that the CPU cannot maintain throughput to keep input data buffer from overflowing. I want to know the answer too, if a reasonable one exists. -- Izumi Ohzawa <izumi@pinoko.berkeley.edu> [ $@Bg_78^=;(J ] USMail: Univ. of California, 360 Minor Hall, Berkeley, CA 94720-2020 Tel: 510-642-6440, Fax: 510-642-3323, (NeXT & MIME mails welcome)
Newsgroups: comp.sys.next.programmer From: scratch@sundance.sce.carleton.ca (Craig Scratchley) Subject: Re: Say No to gdb Message-ID: <scratch.795322889@sundance.sce.carleton.ca> Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University References: <3jb6md$52h@crl.crl.com> <ROBERT.95Mar5111216@steffi.dircon.co.uk> <3jk6ml$esm@castle.york.ac.uk> <BYER.95Mar9113737@ductwork.mv.us.adobe.com> Date: Thu, 16 Mar 1995 03:01:29 GMT byer@mv.us.adobe.com (Scott Byer) writes: >Under NEXTSTEP 3.2, it's the buggy 4.7 version. 4.13 is far less buggy. I'm having a problem debugging something. The code is shown below. I think that the problem is due to the preprocessor, however. It has to do with a MACRO that re-orders lines of code. I think that the NeXT preprocessor is not inserting proper #line directives when a line-reordering MACRO is expanded. The portion of the code below using the MSG_WITH_CALL MACRO does not give expected results when specifying lines to break at and trying to STEP (or NEXT) through the code. The duplicated code which does not use the macro can be debugged as one would expect. Does anybody know if a newer version of the gnu preprocessor has fixed this problem? Should I ask this question in a gnu newsgroup? Note, the following code must be compiled with the -traditional-cpp option. ============= THIS CODE DEMONSRATES THE PROBLEM ===================== /* A simple demonstration of the GNU Dictionary object. In this example the Dictionary holds int's which are keyed by strings. */ #include <objects/stdobjects.h> #include <objects/Dictionary.h> int main() { id d; int y = 3; /* Create a Dictionary object that will store int's with string keys */ d = [[Dictionary alloc] initWithType:@encode(int) keyType:@encode(char*)]; /* Load the dictionary with some items */ [d putElement:1 atKey:"one"]; [d putElement:2 atKey:"two"]; [d putElement:6 atKey:"six"]; // This is the MACRO that re-orders lines of code #define MSG_WITH_CALL(RECEIVER_SELECTOR, RETTYPE, ARGS, BODY) \ {RETTYPE __call_msg_func ARGS BODY [ RECEIVER_SELECTOR __call_msg_func ];} MSG_WITH_CALL ( d withElementsCall:, void, (elt i), { int z=2; printf ("One augmented element is %d \n", i.int_u + y); MSG_WITH_CALL ( d withElementsCall:, void, (elt i), { printf ("A doubly augmented element is %d \n", i.int_u + y + z); } ); } ) // The code below duplicates the code above, but is much easier to debug. { void tmp_fnc (elt i) { int z=2; printf ("One augmented element is %d \n", i.int_u + y); { void tmp_fnc (elt i) { printf ("A doubly augmented element is %d \n", i.int_u + y + z); } [ d withElementsCall: tmp_fnc ]; } } [ d withElementsCall: tmp_fnc ]; } exit(0); } ================= End of example code ==================== -- W. Craig Scratchley | internet: scratch@sce.carleton.ca Dept. of Systems and Computer Engineering | phone: (613) 788-5740 (Dept.) Carleton University | (613) 241-6952 (Home) Ottawa, ON, CANADA K1S 5B6 | fax: (613) 788-5727 (Dept.)
From: mshores@iastate.edu (<...>) Newsgroups: comp.sys.next.programmer Subject: A question about shared memory. Date: 16 Mar 95 05:33:20 GMT Organization: Iowa State University, Ames, Iowa Message-ID: <mshores.795332000@las1.iastate.edu> Summary: A simple question about shared memory. Keywords: shared memory Hello, I have a simple question that concerns shared memory. I know NeXTSTEP has no documented features to access shared memory, but I was hoping someone might be able to tell me an alternative or something that imitates SYS V IPC Shared memory calls (in shm.h and ipc.h). I am porting some code that requires these, and I could really use some help... Thank you. Matt -- Jesus saves -- but Hoyfield scores on the rebound!!!
From: gideon@black_albatross.otago.ac.nz (Gideon King) Newsgroups: comp.sys.next.programmer Subject: Freeing a hashtable's keys? Date: 16 Mar 1995 06:17:00 GMT Organization: University of Otago, Dunedin, NZ Message-ID: <3k8l4s$sn1@celebrian.otago.ac.nz> I have a hashtable I create using rowsHash = [[HashTable alloc] initKeyDesc:"*" valueDesc:"i"]; then I put stuff into it by creating strings and putting them into the table. This all works fine. The problem comes when I want to free the hashtable and the keys within it. I saw that there was the method freeKeys:values:, and I tried to write the necessary functions to free things, only the compiler fell over in a screaming heap. The functions I wrote took a void pointer argument and returned a void pointer (although I tried various other combinations which didn't work either) - is this the right kind of function to write? Am I missing something? In the end I just decided to iterate through the table freeing my strings, which seems to work fine: { // Get rid of the hashtable key strings const void *key; void *value; NXHashState state = [rowsHash initState]; while ([rowsHash nextState:&state key:&key value:&value]) NX_FREE((char *)key); } [rowsHash free]; Is there any problem doing this? I wouldn't be surprised if this is more or less what the freeKeys:values: does internally anyway. Any suggestions or examples welcome. --- The Black Albatross Gideon King | Phone +64-3-479 8347 University of Otago | Fax +64-3-479 8529 Department of Computer Science | e-mail gideon@Black_Albatross.otago.ac.nz P.O. Box 56 | NeXT mail ok Dunedin | When I argue with my wife, I always New Zealand | have the last word --- "Yes dear".
From: pascal@wsc.com () Newsgroups: comp.sys.next.programmer Subject: Inserting a new class in the hierarchy Date: 15 Mar 1995 21:37:25 GMT Organization: WSC Investment Services, Inc. Distribution: world Message-ID: <3k7mml$ilc@cerberus.wsc.com> Keywords: NXTypedStream I have an archive of an object of class X that used to inherit from Object. The new class hierarchy is X : Y : Object. I need to read in the old archive and to convert it to the new format, but I get the following error message: Typed streams library error: class error for 'X': wrong super class Apart from hacking the NXTypedStream, is there a way of doing this cleanly with NXTyped streams? If not, does Gnu archiving support this? Thanks, - Pascal
Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer From: object@netcom.com (Aaron Urbina) Subject: Re: Shareware Authors: credit card ordering service! Message-ID: <objectD5I3vI.Eps@netcom.com> Followup-To: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <D5G0Er.5uL@crash.cts.com> Date: Wed, 15 Mar 1995 21:33:17 GMT Sender: object@netcom.netcom.com Before you let these guys rip you off, you may want to look into distributing your shareware over the net by using First Virtual's World Wide Web server. How does $.29 cents per copy sound? Point your browser at http://fv.com
From: bauer@kepler.lbm.mw.tu-muenchen.de (Bauer Sebastian) Newsgroups: comp.sys.next.programmer Subject: How to use DPSAddFd for observing a regular file? Date: 16 Mar 1995 09:54:03 GMT Organization: Lehrstuhl B fuer Mechanik, Technical University Munich Distribution: world Message-ID: <3k91rr$6ug@sunserver.lrz-muenchen.de> Keywords: DPS, DPSAddFd Hi, In the Pre3.0Concepts there is mentioned, that you can use DPSAddFd to observe usual files. I have a shell-script, that sends output to a file, and I would like to process this output in a complete seperately running application whenever text is appended to this file (I can't run the shell-script as a child of the Application nor can I do it vice versa). I tried to do this by using the code from Subprocess.m (from the UNIX-Examples in /NextDeveloper/Examples) that is dealing with watching the filedescriptor of the subprocess, but opening the filedescriptor to a file instead of a stream by using an open statement ( fd = open("filename", ...) ). For some reason, the handler is called continuously, even if the file is empty and no text is appended to it. What am I doing wrong? Or is DPSAddFd unable to do something like that? Is there an other easy way to do this job (is there a possibility to open a pipe or an other way of messaging between a shell-script and an Application, when they are started ablolutely independent of each other)? Thanks for any help, Sebastian -- Sebastian Bauer <bauer@lbm.mw.tu-muenchen.de>
Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer From: tob@world.std.com (Tom O Breton) Subject: Re: Shareware Authors: credit card ordering service! Message-ID: <D5IuE9.Fy2@world.std.com> Organization: BREnterprises References: <objectD5I3vI.Eps@netcom.com> Date: Thu, 16 Mar 1995 07:06:09 GMT object@netcom.com (Aaron Urbina) writes: > Before you let these guys rip you off, you may want to look into > distributing your shareware over the net by using First Virtual's > World Wide Web server. How does $.29 cents per copy sound? > Point your browser at http://fv.com MicroGenesis seemed to be offering a credit-card handling, order-taking capability. Is this WWW server able to do the same? I thought that wasn't possible to do securely. Tom -- tob@world.std.com TomBreton@delphi.com: Author of The Burning Tower
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: Need a C question answered Date: 16 Mar 1995 05:22:49 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3k8hv9$h1@solaris.cc.vt.edu> I want a function to return a list of strings (char **) that it creates and I want to be able to call this function again such that it doesn't in any way relate the two list of strings. Currently I have this char **methodsFor(char * className, BOOL classMethods) { struct objc_class *aClass; char **methodArray; int count = 0; if (classMethods) aClass = ((struct objc_class *) objc_getMetaClass(className))->isa; else aClass = (struct objc_class *) objc_getClass(className); struct objc_method_list *methods; SEL aSelector; int i; char *aMethod; NX_MALLOC(methodArray, char *, 1); for (methods = aClass->methods; methods; methods = methods->method_next) { for (i = 0; (i < methods->method_count); i++) { // aMethod = some string. if (strncmp(aMethod, "_", 1) != 0) { NX_REALLOC(methodArray, const char *, count+1); NX_MALLOC(methodArray[count], char, strlen(aMethod)+1); strcpy(methodArray[count], aMethod); count++; } } } NX_MALLOC(methodArray[count], char, 1); *methodArray[count] = NULL; methodArray[count] = NULL; return methodArray; return NULL; } Now if I call this twice in a row and then try and caclulate the length of first list returned by methodsFor I get the length of the two lists added together. Like so s1Array = methodsFor(..) s2Array = methodsFor(..) find length sArray <- wrong find len... But if I do a s1Array = methodsFor(..) find length sArray <- right s2Array = methodsFor(..) find len... <- right Then the length are right and everything works fine. What gives? What extremely subtle point of C did I miss? Thanks John Stanhope
From: oneeye@alpha2.csd.uwm.edu (John Henry Schneider) Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Subject: Re: Shareware Authors: credit card ordering service! Followup-To: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Date: 16 Mar 1995 13:40:09 GMT Organization: University of Wisconsin - Milwaukee Message-ID: <3k9f3p$dm1@uwm.edu> References: <D5G0Er.5uL@crash.cts.com> Brad McQuaid (bmcquaid@crash.cts.com) wrote: : MicroGenesis offers shareware authors the ability to accept credit : card orders (Visa, Mastercard, Discover) as well as a toll-free number. : This is an excellent tool to increase your registrations -- no longer : does the user have to fill out a check and mail it -- instead they : can call our toll-free order line (or for international callers, : our regular line), and place an order with their major credit card. : They can also email us their order, or use snail mail. : We notify you of the order via email the same day, and then issue : you a check for the money received either once or twice a month (your : preference). : What do we get out of it? $4 per order plus 3% of the total order amount : (to cover the credit card bank charges). well...if you try to set it up on your own you will have to have two (2) phone lines [one dedicated data line to go to the bank/credit card company, and one for customers to call in on...which brings up do you want a 1-800 or a local line]. then you also have to lease the card processor...it you want to hook it up for people to buy over a bbs then you need the software to do that. and still you will pay a % (5-7) to the bank for handling the credit cards. I have not looked into it fully (as in current prices) but if your program/package is being sold for say over $50 either way (Microgenisis or doing it your self) may really be worth it if you have a good volume of sales. However, for item priced less than that..say $20.00 or less...you actualy get only $15.40..and as the price goes down the return gets worse.... so use considerable judgement before doing anything like this. -- TTYL John Schneider oneeye@alpha2.csd.uwm.edu
Newsgroups: comp.sys.next.programmer From: fabien@free.fdn.org (Fabien Roy) Subject: Re: Writing a NeXTSTEP Printer Diver... how? Message-ID: <1995Mar14.143600.10274@free.fdn.org> Sender: news@free.fdn.org Organization: Fabien Roy Consultant, Paris, France References: <3k3t7a$bfp@debbie.cc.nctu.edu.tw> Date: Tue, 14 Mar 1995 14:36:00 GMT In article <3k3t7a$bfp@debbie.cc.nctu.edu.tw> dengliu@solar.csie.ntu.edu.tw (Deng Liu) writes: > Hi there, > > I am working in a place that requires making some printr output > via NeXTSTEP, yet the printer is not supported by niether NeXTSTEP > itself nor available PD drivers I can grab. > > I'm considering writing a printer driver of my own, how can > this can be down under NeXT? > > thanks! > > > ======================================================================== > Happy is the Life, > Merry be the Night; > Hack upon Bugs, > And programming with Pride. > --- to the Souls wandering in the cyberspace > Check for ghostscript (PD postscript interpreter) in the GNU archives. BTW I am looking for a ghostscript driver for the NOVAJET A0 printer. Fabien -- --------------------------------------------------------------------- Fabien_Roy@free.fdn.org (NextMail/MIME accepted) Fabien Roy Consultant NEXTSTEP/OPENSTEP/EOF Consultant, SYBASE DBA 10 rue de la DEFENSE 93100 MONTREUIL, France Tel: 33 1 45 28 32 23 Fax: 33 1 45 28 32 23
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <pb@next.oasa.cz> From: Petr Bulanek <pb@next.oasa.cz> Message-ID: <9503161352.AA04677@colorado> Date: Thu, 16 Mar 95 14:52:17 +0100 Subject: Need a C question answered In NeXT Programmer's digest 517 had jehu@vt.edu problem with: /*****************************************************************/ char **methodsFor(char * className, BOOL classMethods) { struct objc_class *aClass; char **methodArray; int count = 0; if (classMethods) aClass = ((struct objc_class *) objc_getMetaClass(className))->isa; else aClass = (struct objc_class *) objc_getClass(className); struct objc_method_list *methods; SEL aSelector; int i; char *aMethod; NX_MALLOC(methodArray, char *, 1); for (methods = aClass->methods; methods; methods = methods->method_next) { for (i = 0; (i < methods->method_count); i++) { // aMethod = some string. if (strncmp(aMethod, "_", 1) != 0) { NX_REALLOC(methodArray, const char *, count+1); NX_MALLOC(methodArray[count], char, strlen(aMethod)+1); strcpy(methodArray[count], aMethod); count++; } } } NX_MALLOC(methodArray[count], char, 1); *methodArray[count] = NULL; methodArray[count] = NULL; return methodArray; return NULL; } /*****************************************************************/ Comment: Imagin, that you insert only one method name to your list: 1) You alloc space for one (char *) using first NX_MALLOC(methodArray, char *, 1) 2) Then you realloc this space NX_REALLOC(methodArray, char *, 0+1 !!!), but you still have space only for one pointer 3) Finally, you leave the loops and put *methodArray[1]=NULL , but you don't have enough space there. It looks quite strange, but if you then call the same function, you MALLOC(methodArray , ...) against and unfortunatelly you join the arrays. Try this: /*****************************************************/ for { for { .... } } NX_REALLOC(methodArray, const char *, count+1); NX_MALLOC(methodArray[count], char, 1); *methodArray[count] = NULL; methodArray[count] = NULL; /*****************************************************/ Well, I did not try it on my computer, so I am not 100% sure.
Newsgroups: comp.sys.next.programmer Subject: Problems compiling POSIX applications Message-ID: <wilsher.795241074@rintintin.Colorado.EDU> From: wilsher@rintintin.Colorado.EDU (Thomas Wilsher) Date: 15 Mar 95 04:17:54 GMT Organization: University of Colorado at Boulder Keywords: NeXT, buggy libraries Summary: POSIX libs dump Hello, I compiled a POSIX-compliant application on the NeXT the other day, only to discover that it crashed on the first call to malloc(). Some further investigation revealed that the smallest canonical program that reproduces this bug is the following: #include <stdlib.h> main(int argc, char ** argv) { malloc(1024); } This works fine if I compile it in the regular manner, but exits with the message "Floating exception" if I link it with -lposix This exception seems to occur deep within the bowels of libposix.a Is this a known bug? I am using NS 3.2 developer. If it is, does anybody know if 3.3 fixes it? (Not that it would really help, since I cannot afford 3.3 developer). --thomas
From: wolfgang@wi.WHU-Koblenz.de (Wolfgang Roeckelein) Newsgroups: comp.sys.next.bugs,comp.sys.next.programmer,comp.sys.next.sysadmin,de.comp.sys.next, Subject: Q:Pentium/PCI/Serial bug applicable to NeXTstep/Mux? Date: 15 Mar 1995 15:14:13 GMT Organization: WHU Koblenz Message-ID: <3k7085$bbg@obelix.WHU-Koblenz.de> Hello, does anybody know if the Pentium/PCI/Serial bug (see below) is applicable to NeXTstep and/or the Mux driver, too? If yes, solutions? Please answer by email,(too) since my incoming news connections is four days behind and throwing away article because of the lag. Thank you in advance, Wolfgang --- Dipl.-Wirtsch.-Inf. Voice: +49 261 6509 173 Wolfgang Roeckelein Fax: +49 261 6509 179 WHU Koblenz E-Mail: roeckelein@wi.whu-koblenz.de Burgplatz 2 (NeXTmail ok) D-56179 Vallendar Germany SYMPTOMS ======== Pentium-based machines with a peripheral component interface (PCI) bus and a 16550 UART chip stop responding (hang) or exhibit other unexpected behavior when you use communication applications, such as Microsoft At Work PC Fax or Microsoft Terminal. In some cases, you may be able to run the software successfully once but then experience problems when you try to run it a second time (before Windows is restarted). CAUSE ===== The PCI bus uses a new universal asynchronous receiver transmitter (UART) chip that identifies itself as a 16550 chip but does not handle the 16-bit buffer the same way that the 16550 UART chip does. These problems occur if there is data in the chip when the serial communications application attempts to open the communications port. A problem with the chip implementation causes the chip to become trapped in a mode in which data is always detected in its FIFO buffer. -- Dipl.-Wirtsch.-Inf. Voice: +49 261 6509 173 Wolfgang Roeckelein Fax: +49 261 6509 179 WHU Koblenz E-Mail: roeckelein@wi.whu-koblenz.de Burgplatz 2 (NeXTmail ok) D-56179 Vallendar Germany
From: alastair@Black_Albatross.otago.ac.nz (Alastair Thomson) Newsgroups: comp.sys.next.programmer Subject: Protocols and ObjC++ Date: 15 Mar 1995 22:12:22 GMT Organization: University of Otago, Dunedin, NZ Distribution: World Message-ID: <3k7oo6$2k2@celebrian.otago.ac.nz> I have a small problem. I declare a protocol in a header file @protocol YarnSelection - didChooseYarn:aYarn; @end I #import this to an ObjC class that is compiled with -ObjC++ I then try to use the protocol like this - chooseColour:sender { if ([sender conformsTo:@protocol(YarnSelection)]) return self; fprintf( stderr, "DSColourController target class: %s, does not implement the required YarnSelection protocol\n", [[sender class] name]); return self; } When I compile I get the following warnings: DSColourController.m:434: warning: previous declaration of `_OBJC_PROTOCOL_ColourRangeSelection' DSColourController.m:434: warning: `_OBJC_PROTOCOL_YarnSelection' was declared `extern' and later `static' DSColourController.m:434: warning: previous declaration of `_OBJC_PROTOCOL_YarnSelection' I this something to worry about, or is it just one of the semi-bogus warnings one gets when using ObjC and C++ together? Thanks Alastair
From: samschap@merle.acns.nwu.edu (Sam Schapmann) Newsgroups: comp.sys.next.programmer Subject: Re: Valid Object? Date: 17 Mar 1995 01:33:05 GMT Organization: Halaby Corporation Message-ID: <3kaosh$jdl@news.acns.nwu.edu> References: <3k7vak$mgm@nntp.Stanford.EDU> Stan Jirman <stanj@cs.stanford.edu> wrote: >how can I check whether a given object pointer points to a valid obj or to >some random place, or a freed object? If there is no such safe method, I >take the best approximation, too. How about ... BOOL isValidObject(id anObj) { BOOL valid = NO; if (!anObj) return NO; NS_DURING [anObj self]; valid = YES; NS_HANDLER NS_ENDHANDLER return valid; } Hope this helps ... Sam (ASCII only, please)
Newsgroups: comp.sys.next.programmer From: mis07d!mikel (Mike Lokan) Subject: PDO Example Needed Message-ID: <D5I0rx.8Aq@ets.com> Sender: mikel@ets.com (Mike Lokan) Organization: ETS, Inc. Date: Wed, 15 Mar 1995 20:26:20 GMT Hello, If any of you will read this have, or know of, a good example of PDO please email me at the address below. I would like to get a complete example (source, etc). Thank you in advance. Regards, Mike Lokan mikel@ets.com (NeXT mail welcome)
Newsgroups: comp.sys.next.programmer From: ehutch@hypnos.norden1.com (E. Hutchinson) Subject: NEXTSTEP/Career Position/ILL Message-ID: <1995Mar17.015006.962@norden1.com> Sender: news@norden1.com (Net News Admin) Organization: Norden 1 Communications Date: Fri, 17 Mar 1995 01:50:06 GMT Position-----------------------Programmer/analyst/developer Platform-----------------------NEXTSTEP Language-----------------------Objective C A plus-------------------------DB Kit or EOF A plus-------------------------Sybase or Oracle Type of position---------------Career position Opportunity--------------------outstanding Benefits-----------------------Full Relocation---------------------Company assistance To be considered---------------Fax resume or mail a hard copy. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: yungchan@sun23.cs.wisc.edu (Yung-chang Chen) Newsgroups: comp.sys.next.programmer,comp.sys.next.bugs Subject: Adaptec 2940 driver buggy? or hardware problem? Date: 17 Mar 1995 02:56:05 GMT Organization: U of Wisconsin CS Dept Message-ID: <3kato5$kjd@spool.cs.wisc.edu> References: <1995Mar9.200251.16524@ccdd.com> Hi, I have difficulties to install NSFIP on my Pentium box. At the beginning, I kept getting reading error form CDROM and write I/O error to SCSI HD. A person on net told me to do low-level format to the HDD. I tried it and it worked smooth. It is not end of story. I did try install OS/2, Linux, and DOS/WIN on the same machine. I can install them individually and then I think that I find a way to install them all and boot by OS/2 boot manager. I don't even have a chance to do this. I mount the SCSI HDD into case, and tried to install NSFIP again. It failed w/ sd1 reading error from CDROM, and sd0 writing error to HDD again. I applied the same trick to the HDD(do a "sdform") again. This time, the trick didn't work. I did tried to install DOS, and OS/2 to the SCSI HD again and seems fine.(HDD, and CDROM worked), **Note, how did I do a sdform on the SCSI HDD? I install NSFIP to another Conner IDE 203 mb HD, connected the SCSI HDD, reboot , and then do a sdform. I can install NSFIP to the IDE HD w/o SCSI HDD connected(I am not able to complete the installation if the SCSI HDD is connected). I am not able to install NSFIP if the SCSI host got CDROM and HDD on the same bus(I guess!). after that I disconnected the IDE HDD, and tried to install NS again, after system show the detected HDD to prepare to install NS, I choose the advance option(do partions). NS kept reading the block 0 on the SCSI HDD, then FATAL, then it tried to read from CDROM. The read error from HDD and CDROM is never end! My whole spring break was ruined by this problem! I keep trying and asking questions. I keep trying different installation procedure and try to narrow the problem, but w/o luck. BTW, did NeXT tech. support work? The support is charged. It really sucks. I am just a student, after spent $300 for their system, and they charge for the possible problem of their system! Just a complain! Another strange thing on my machine is CDROM won't work after I open CDPlayer.app. I try to play audio CD by using CDPlayer.app(demo from NS). System complained about not able to open CD-ROM driver. I am not able to eject CD and if I eject CD manually. The CDROM driver is totally wasted. It don't responsed even I power off system. It will eject CD usually, right! That is why I am have doubt w/ the adaptec 2940 driver. I did reset the BIOS setting and could it be some IRQ conflictions? I checked them again and again. There are no jumper needed to be set on both Adaptec controller and Diamond Stealth 64 video card. I set the PCI/auto in the BIOS. I don't see any obvious problem among those setting. Do I have to go back to IDE HD? The following is my hardware configuration and if you have the same configuration or similar experience, please tell me how to solve your problem! Thank you in advance and hope that you will understand my problem! NSFIP V3.3 Pentium 75 ASUS PCI/I-P54SP4 SIS chipset on SCSI bios Adaptec 2940 PCI BIOS v1.11 Conner SCSI-2 HDD ~1.05GB(CPS1060?) Diamond Stealth 64 PCI 2m Vram On board PCI IDE controller OEM Toshiba 3501B 4X CDROM 32M memory(4x32 72-pin 70 ns) (Install NSFIP to Conner IDE CP3204F 203 mb, now) The SCSI ID# for Adaptec host is #7 (terminated from BIOS) " CDROM is #6 (termined this end) " HDD is #0 (got rid of termination registers) SCSI transfer throughput at 10M/sec for them, and initial negotiable: yes. I follow the menu, hardware compatibility, NeXT_answer about Adaptec 2940, and don't have a chance to try Next_answer 1487(Alternative booting). What is the possible cause of my problem? Any suggestion or recommendation are more than welcomed. Thank you again! I apologize for the long post and could possible to the wrong newsgroup. Yung yung-cha@cae.wisc.edu
Belgium.EU.net!EU.net!howland.reston.ans.net!spool.mu.edu!uwm.edu!psuvax1!hsdndev!unix.sri.com!news.Stanford.EDU!usenet From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Valid Object? Date: 16 Mar 1995 00:04:36 GMT Organization: Stanford University Message-ID: <3k7vak$mgm@nntp.Stanford.EDU> Hello, how can I check whether a given object pointer points to a valid obj or to some random place, or a freed object? If there is no such safe method, I take the best approximation, too. Thanks a lot, - Stan -- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss Guy | | | SU Computer Science | When you find yourself | | Box 2642, Stanford, CA (415) 497 HEXO | in a hole, stop digging | | stanj@cs.stanford.edu NeXTmail / MIME | | +-------------------------------------------+-------------------------+
Newsgroups: comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!ix.netcom.com!netcomsv!uu3news.netcom.com!netcomsv!uucp3.netcom.com!kira!davidjohn From: netcom.com!kira!davidjohn (David John Burrowes) Subject: registering for any type with registerForDraggedTypes:count: Message-ID: <1995Mar15.133014.335@kira.net.netcom.com> Sender: davidjohn@kira.net.netcom.com Organization: No organization at this time. Date: Wed, 15 Mar 1995 13:30:14 GMT Is there some way for a view to register so that it will recieve dragging destination messages for *any* pasteboard type. I have an app where I'd like to be able to grab and store any type that is dragged into it. But, I am overlooking the documentation that says how to do this. Thanks david john burrowes
Newsgroups: comp.sys.next.programmer From: scratch@arcturus.sce.carleton.ca (Craig Scratchley) Subject: Re: Say No to gdb Message-ID: <scratch.795388982@arcturus.sce.carleton.ca> Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University References: <3jb6md$52h@crl.crl.com> <ROBERT.95Mar5111216@steffi.dircon.co.uk> <3jk6ml$esm@castle.york.ac.uk> <BYER.95Mar9113737@ductwork.mv.us.adobe.com> <scratch.795322889@sundance.sce.carleton.ca> <byerzngkyva8vwfv@ductwork.mv.us.adobe.com> Date: Thu, 16 Mar 1995 21:23:02 GMT byer@mv.us.adobe.com (Scott Byer) writes: >Craig Scratchley writes: >Craig> I'm having a problem debugging something. The code is shown below. >Craig> I think that the problem is due to the preprocessor, however. It has >Craig> to do with a MACRO that re-orders lines of code. I think that the >Craig> NeXT preprocessor is not inserting proper #line directives when a >Craig> line-reordering MACRO is expanded. >Hmm. I don't know if it's in the ANSI spec this way, but every preprocessor >I know of will treat the macro as one line of code. Hmmm. A look at the preprocessor output shows that the macro expansion covers multiple lines of code. It seems that the NewLine characters are not being stripped from the arguments of the MACRO invocation. This makes sense to me. I think that it should be possible for the pre-processor to judiciously throw in a few #line directives when expanding some macros. I've listed below the tail of the preprocessor output for the program shown in my initial "followup". >That is, you've >effectively made it so that you can't debug your procedure. It's not a gcc >specific thing. Maybe there's some fancy compiler set that will do what you >want - someone else may know. >Fancy, multi-line macros are great ways of doing certain things given the >lack of inlineable template functions, but they are hell to debug :-). But, >you had the right idea - write it as a procedure, debug it, then make it a >macro. ============== tail of preprocessor output =================== # 5 "dictionary.m" 2 int main() { id d; int y = 3; d = [[Dictionary alloc] initWithType:@encode(int) keyType:@encode(char*)]; [d putElement:1 atKey:"one"]; [d putElement:2 atKey:"two"]; [d putElement:6 atKey:"six"]; { void __call_msg_func (elt i) { int z=2; printf ("One augmented element is %d \n", i.int_u + y); { void __call_msg_func (elt i) { printf ("A doubly augmented element is %d \n", i.int_u + y + z); } [ d withElementsCall: __call_msg_func ];} ; } [ d withElementsCall: __call_msg_func ];} { void tmp_fnc (elt i) { int z=2; printf ("One augmented element is %d \n", i.int_u + y); { void tmp_fnc (elt i) { printf ("A doubly augmented element is %d \n", i.int_u + y + z); } [ d withElementsCall: tmp_fnc ]; } } [ d withElementsCall: tmp_fnc ]; } exit(0); } ==================== END =============================== -- W. Craig Scratchley | internet: scratch@sce.carleton.ca Dept. of Systems and Computer Engineering | phone: (613) 788-5740 (Dept.) Carleton University | (613) 241-6952 (Home) Ottawa, ON, CANADA K1S 5B6 | fax: (613) 788-5727 (Dept.)
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn) Newsgroups: comp.sys.next.hardware,comp.sys.next.programmer Subject: Re: Audio CD's on Mac CD150/Black HW Date: 16 Mar 1995 21:24:15 GMT Organization: Rensselaer Polytechnic Institute, Troy NY, USA Distribution: world Message-ID: <3kaa9v$2nn@usenet.rpi.edu> References: <3jubsi$ks2@wisdom.Stanford.EDU> guitar@leland.Stanford.EDU (Evan Schofer) writes: > Hi, I've got an Apple CD150 CDROM drive hooked up to my next. > While physically VERY similar to my old Next CDROM drive, it > refuses to play audio CD's with Next's CDplayer application. While the CD-ROM's look the same, the drives inside of them are considerably different. I'd be interested in adding support for Apple CD-150's to mCD.app (my music CD-playing program), but I can't seem to find documentation on what SCSI commands they expect. I just spent more than an hour calling around within Apple, and the best I could do was to finally trip across someone who said "the scsi commands are proprietary, and aren't written up in any technical notes". I would call Sony for the documentation (since the 150 claims to be a "SONY CD-ROM CDU-8002 version 1.08g"), but I don't have a good number to call there. I *did* have a number at one point, but lost that. If anyone has leads on the techinical documenation for the Apple CD-150 (or the Apple SC), I'd appreciate info on how to get the SCSI command descriptions. -- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu ITS Systems Programmer (handles NeXT-type mail) Rensselaer Polytechnic Institute; Troy NY USA
From: ndawson@icarus.weber.edu (I need to know how to dynamically allocate and display a matrix of textfields at run time.Neil Dawson) Newsgroups: comp.sys.next.programmer Subject: Dynamic Allocation of Textfield Matrix Date: 16 Mar 1995 22:21:47 GMT Organization: University Of Utah Computer Center Sender: ndawson@icarus.weber.edu (Neil Dawson) Distribution: world Message-ID: <3kadlr$f0t@news.cc.utah.edu> Hello, I am new to programming under NeXTSTEP and am developing a simple Matrix Reduction program for college algebra students. In the program the user inputs the matrix dimensions and so I need to know how to dynamically allocate and display a matrix of textfields at run time. Again I am new to this so if this is a dumb or simple problem please bear with. :-) Any help will be greatly appreciated. Thanks Neil Dawson ndawson@csnext.weber.edu (NeXTMail Ok) ndawson@icarus.weber.edu (Non-NeXTMail)
From: amorse@blewett.nwest.mccaw.com (Aaron Morse) Newsgroups: comp.sys.next.programmer Subject: Utility for generating tech doc from header files? Date: 17 Mar 1995 01:17:32 GMT Organization: McCaw Cellular Communications, Inc. Distribution: world Message-ID: <3kanvc$r81@ftp-p.mccaw.com> Keywords: utility needed tech doc header files Hello. I am looking for a utility to generate tech doc (in the NeXT format - of course) from header files. Anybody know of such a beast? Thanks, Aaron
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: Programming Serial Port on NeXT Date: 16 Mar 1995 22:55:41 GMT Organization: Netcom Distribution: world Message-ID: <3kafld$gh0@ixnews3.ix.netcom.com> Hi I am new to NeXTstep. So far I have been amazed how sophisticated the software is. I just wondering if there is a way to send or receive information from RS232. I am programming several sensors in Windows3.1 I want to do the same thing in NeXt Thanks in advanced Leon
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Re: Valid Object? Date: 17 Mar 1995 06:02:20 GMT Organization: Stanford University Message-ID: <3kb8lc$v9h@nntp.Stanford.EDU> References: <3kaosh$jdl@news.acns.nwu.edu> Sam Schapmann writes > Stan Jirman <stanj@cs.stanford.edu> wrote: > > >how can I check whether a given object pointer points to a valid > >obj or to some random place, or a freed object? If there is > >no such safe method, I take the best approximation, too. > > How about ... > > BOOL isValidObject(id anObj) > { > BOOL valid = NO; > if (!anObj) return NO; > > NS_DURING > > [anObj self]; > valid = YES; > > NS_HANDLER > > NS_ENDHANDLER > > return valid; > } > > > Hope this helps ... > > Sam > (ASCII only, please) Nope, I guess you never tested the code. Exception handlers don't catch messages to invalid/freed objects, at least not on my machine (3.3 ND). Thanks anyway, - Stan -- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss Guy | | | SU Computer Science | When you find yourself | | Box 2642, Stanford, CA (415) 497 HEXO | in a hole, stop digging | | stanj@cs.stanford.edu NeXTmail / MIME | | +-------------------------------------------+-------------------------+
From: jonathan huang <75300.322@CompuServe.COM> Newsgroups: comp.sys.next.misc,comp.sys.next.programmer,comp.sys.next.software Subject: Q:help on rpc and serial kit. Date: 16 Mar 1995 23:15:02 GMT Organization: zeus communications Message-ID: <3kagpm$j33$1@mhade.production.compuserve.com> hello! I am new in next inviroment. I am looking for more info on rpc on nextstep. I am wondering if there are tools to help or I have to find stuff like rpc 4.0's bsd version source and compile it under ns. I also need more info on serial tools like serial kits. I am wondering if there are equivolent greenleaf comm lib exit on ns so I have file trnasfer, terminal emulation ready to be applied. -- Physics, metaphysics, mathematics,..oh! the universe.
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: Opinions sought on visual programming system Date: 17 Mar 1995 01:09:39 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3kangj$l7@solaris.cc.vt.edu> I have been working on a visual programming language for NS and I have fallen in to a hole and need some ideas on how to get out. Basically what I want is a back end to what IB lets you do. Hook up a bunch of objects and go. The problem is, what to do with methods that return values, who do I assign the value to, or do I ignore it, or should there be only certain object, Variables, that can be assigned values. Also, what to do with something like this object1 ------ draw:anObject at:aPoint -----> view Should there be an intermediate object (ArgBuilder) that does this anObject | setArg1 | V object1 ---buildMethod--> ArgBuilder---draw:arg1 at:arg2--->view ^ | setArg2 | aPoint Or may be a way to connect the objects with the methods parameters much like IB lets you visual show relationships. Originally I was going to allow the mixture of data flow and message passing but I think that will make things unnecessarily complicated, since you can simulate much of data flow with message passing. Anyone think it would be a good idea to re-insert the data flow stuff? Since I have never really used an visual language system I'm kind of wavering on what I want to do and what I think is possible. If anyone is interested I could put the code on orst or something (you need misckit 1.4.1) for people to play with. Right now you can drag out objects off a class browser, hook them up, and then select via a popup the (not working) message you want to send. Others things that might be of interest in this are 1. Changes to Draw code that let you change the background color and override the way knobbies on graphics are drawn so that you can create a poly line with points to manipulate. 2. A browser that allows drag and drop, browser cells in which you can set the font and color, and browser cells with delegates. 3. Usage of Mike Ferris's fabulous document handling architecture. Your comments and suggestions are welcomed. John Stanhope
From: falkman@hegel2.cs.chalmers.se.u.cs.chalmers.se (G|ran Falkman) Newsgroups: comp.sys.next.programmer Subject: Custom-slider example wanted Date: 17 Mar 1995 09:44:29 GMT Organization: Chalmers University of Technology Message-ID: <3kbllt$m7r@nyheter.chalmers.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I am looking for a *good* example on how to make your own customized slider. In my case I want I slider where the size of the knob can vary dynamically. If you know where to find an example that you think might be of interest to me please mail me a note. Thanks, Göran Falkman _____________________________________________________________________ Göran Falkman Email: falkman@cs.chalmers.se Department of Computing Science Tel: + 46 31 772 5412 Chalmers University of Technology Fax: + 46 31 16 56 55 S-412 96 Göteborg, Sweden
Newsgroups: comp.sys.next.programmer From: gery@ares.fdn.fr(Gery_Divry) Subject: Re: HELP:jpeg for NeXT Message-ID: <1995Mar17.093535.17887@ares.fdn.fr> Sender: news@ares.fdn.fr Organization: ARES - Lyon, France. References: <D4Hpxn.B8p@hkuxb.hku.hk> Date: Fri, 17 Mar 1995 09:35:35 GMT In article <D4Hpxn.B8p@hkuxb.hku.hk> hsloong@srgcentre (Loong Ho Sang) writes: > Does anybody know where I can get the jpeg and tiff2jpeg program > for NeXT? > > Thanks in advance. > > - Anthony Loong (HKU) you can open a terminal and type tiffutil -jpeg myTiff.tiff -out myJPEGTiff.tiff Usage: tiffutil -none infile [-out outfile] -lzw infile [-out outfile] -packbits infile [-out outfile] -jpeg [-fN] infile [-out outfile] -cat infile1 [infile2 ...] [-out outfile] -extract num infile [-out outfile] -info infile1 [infile2 ...] -verboseinfo infile1 [infile2 ...] -dump infile1 [infile2 ...] Gery DIVRY ( ZZVolume Daddy ) ARES Publisher 8, rue Victor Lagrange Phone: (+33) 72 80 16 30 69007 LYON Fax: (+33) 72 80 16 32 France Email: gery@ares.fdn.org Earth, Solar System, Galaxy MW1 NeXT Mail accepted
From: jcr@idiom.com (John C. Randolph) Newsgroups: comp.sys.next.programmer Subject: Re: Storage and List under Foundation Date: 17 Mar 1995 02:42:02 -0800 Organization: Idiom Consulting Distribution: usa Message-ID: <3kbp1q$pnr@idiom.com> References: <D5EGLA.BG4@dudley.com> <3k7663$qj6@news.next.com> Keywords: foundation storage I would say that NSData is foundation kit's replacement for the Storage class. It works fine as general-purpose, arbitrarily- large memory provider, plus it knows how to encode for transport. -jcr
From: arrouye@petole.imag.fr (Yves Arrouye) Newsgroups: comp.sys.next.programmer Subject: Re: Utility for generating tech doc from header files? Date: 17 Mar 1995 11:39:24 GMT Organization: IMAG, Grenoble, France Distribution: world Message-ID: <3kbsdc$glj@imag.imag.fr> References: <3kanvc$r81@ftp-p.mccaw.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit In article <3kanvc$r81@ftp-p.mccaw.com> amorse@blewett.nwest.mccaw.com (Aaron Morse) writes: > > Hello. > > I am looking for a utility to generate tech doc (in the NeXT format - of > course) from header files. Anybody know of such a beast? > I think there is a shareware called CM.app that does that. had problems parsing headers, though, and no source code available (remember, it's a shareware!) Hope this helps, Yves. -- Advocates for the C++ school claim that a well designed Yves Arrouye program does not need the extra flexibility (a lie), Yves.Arrouye@imag.fr while advocates for the Objective-C school claim that (33) 76 57 48 64 the errors are no problem in practice (another lie). NeXT Mail
From: sherwood@fenris.space.ualberta.ca (System Administrator) Newsgroups: comp.sys.next.programmer,comp.sys.next.sysadmin Subject: Scripts attached to icons? Date: 16 Mar 1995 19:09:02 GMT Organization: Computing and Network Services, U of Alberta, Edmonton, Canada Message-ID: <3ka2ce$rt2@rover.ucs.ualberta.ca> I have a bunch of naive users who really hate commandlines. In one case I have a script that will run Scott Hess's 'soil' program which messages Stuart and tells it to open a new window telneting to the U of A online library catalog. That script works. Now, I'd like to stuff that into a directory named Library.app, drop an icon into the directory to make it look pretty, and let them go at it. Of course this doesn't work. I suspect that there is a quick hack that would work for this, but I'm not up on programming NextStep yet. Pointers?
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: Programmatically disabling Window movement Message-ID: <jpanicoD5JrAL.Lvs@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <jpanicoD5FqAI.7o8@netcom.com> <D5Gs5p.BLn@genoa.com> Date: Thu, 16 Mar 1995 18:56:44 GMT Sender: jpanico@netcom7.netcom.com : Joe, : Would it be possible for you to briefly describe why you want to do this? Sure. The users of this particular app are COMPLETELY computer/NeXTSTEP illiterate. Nor do they have any intention of learning anything beyond this one app. In essence, this app must turn the computer into a dedicated machine. When they are presented with windows that have title bars, they accidentally move them partially off screen, and then complain that they can't get them back. I've come to think of this app as something akin to the software that runs Automated Teller Machines. Yes, this app is real-time and mission critical. More like business process control than a polite app. Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: Programmatically disabling Window movement Message-ID: <jpanicoD5JrKL.MHt@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <D5Gs5p.BLn@genoa.com> <3k7aag$3im@agate.berkeley.edu> <3k7g52$7qv@agate.berkeley.edu> Date: Thu, 16 Mar 1995 19:02:45 GMT Sender: jpanico@netcom7.netcom.com : screen operations. So, is the following a solution: create a delegate for : window and override windowWillMove to bleed off most of the event queue : (using Applications peeknextevent and getnextevent methods)? Just loop I don't think this will work. Try this experiment-- create an Application subclass that overrides the sendEvent method, and "bleed off" ALL events that are sent to the App (i.e. have sendEvent method do nothing). Then your app will be totally unable to respond to events-- you can click and type anywhere, but get no reaction from the app. HOWEVER, you can STILL move any window by it's title bar. Presumably, this is because dragging windows by title bars is executed by the Window server itself, and NOT by passing mouse drag events into the app that tell the window to move itself. If anyone knows more about this I would love to hear it. Joe Panico jpanico@netcom.com
From: trefz@moa.ims.uni-stuttgart.de (Ralf Trefz) Newsgroups: comp.sys.next.programmer Subject: Creating shared libraries Date: 17 Mar 1995 13:55:20 GMT Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: <3kc4c8$fbv@info4.rus.uni-stuttgart.de> Hello, recently I tried to generate shared libraries on NeXT-Step 3.2. But there is no documentation on how to do that. I tried to use "ld" but it didn't work. Is there a possibility to create custom host and run-time shared libraries? Thanks in advance.
From: Ramshorn@ix.netcom.com (Robert Swarts) Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Subject: Re: Shareware Authors: credit card ordering service! Date: 17 Mar 1995 14:47:20 GMT Organization: Netcom Distribution: world Message-ID: <3kc7do$7qc@ixnews1.ix.netcom.com> References: <D5G0Er.5uL@crash.cts.com> <3k9f3p$dm1@uwm.edu> In <3k9f3p$dm1@uwm.edu> oneeye@alpha2.csd.uwm.edu (John Henry Schneider) writes: > >Brad McQuaid (bmcquaid@crash.cts.com) wrote: >: MicroGenesis offers shareware authors the ability to accept credit >: card orders (Visa, Mastercard, Discover) as well as a toll-free number. >: This is an excellent tool to increase your registrations -- no longer >: does the user have to fill out a check and mail it -- instead they >: can call our toll-free order line (or for international callers, >: our regular line), and place an order with their major credit card. >: They can also email us their order, or use snail mail. >: We notify you of the order via email the same day, and then issue >: you a check for the money received either once or twice a month (your >: preference). > I checked with my local bank. To set yourself up to handle VISA costs an initial $25 setup fee, $5 per year imprinter fee, and 7% per transaction with a $15 minimum on small accounts. This does not, of course, include a toll-free number, and the process would have to be repeated for each card type. You do not need a second phone line unless you wish to do card verifications while the customer is on line. BS
Newsgroups: comp.sys.next.programmer From: byer@mv.us.adobe.com (Scott Byer) Subject: Re: Say No to gdb In-Reply-To: scratch@sundance.sce.carleton.ca's message of Thu, 16 Mar 1995 03:01:29 GMT Message-ID: <byerzngkyva8vwfv@ductwork.mv.us.adobe.com> Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Incorporated, Mountain View, CA References: <3jb6md$52h@crl.crl.com> <ROBERT.95Mar5111216@steffi.dircon.co.uk> <3jk6ml$esm@castle.york.ac.uk> <BYER.95Mar9113737@ductwork.mv.us.adobe.com> <scratch.795322889@sundance.sce.carleton.ca> Date: Thu, 16 Mar 1995 10:42:13 GMT Craig Scratchley writes: Craig> I'm having a problem debugging something. The code is shown below. Craig> I think that the problem is due to the preprocessor, however. It has Craig> to do with a MACRO that re-orders lines of code. I think that the Craig> NeXT preprocessor is not inserting proper #line directives when a Craig> line-reordering MACRO is expanded. Hmm. I don't know if it's in the ANSI spec this way, but every preprocessor I know of will treat the macro as one line of code. That is, you've effectively made it so that you can't debug your procedure. It's not a gcc specific thing. Maybe there's some fancy compiler set that will do what you want - someone else may know. Fancy, multi-line macros are great ways of doing certain things given the lack of inlineable template functions, but they are hell to debug :-). But, you had the right idea - write it as a procedure, debug it, then make it a macro. (Note: you may want to think about splitting your macro up in such a way as to keep the procedure as a procedure, but still be able to easily insert the desired call.) -- Scott Byer E-Mail: byer@mv.us.adobe.com Adobe Systems Incorporated These are my opinions, and 1585 Charleston Road, P.O. Box 7900 do not necessarily reflect Mountain View, CA 94039-7900 the opinions of my employer. === === C++: Take one part C, 5 parts "bad hacks", 6 parts "bad language features", 9 parts "unclear on the concept", and blend. Has taste and consistency of vomit. --- The best security for information is a low S/N ratio: jihad Peking class struggle nuclear World Trade Center [Hello to all my fans in domestic surveillance] $400 million in gold bullion Saddam Hussein Rule Psix Ft. Meade quiche cracking explosion DES Mossad
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: "disabling" Window movement (A SOLUTION) Date: 17 Mar 1995 21:51:06 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3kd08a$akf@news.next.com> References: <jpanicoD5JrKL.MHt@netcom.com> Okay, this isn't pretty, but you asked for it :-) Here's an object that will create a non-movable version of a window that you lay out in IB. Since it's just a content View swap, all connections are preserved... /* * This example shows how to take the contents of a Window that was * layed out in IB and transfer it to a newly created window that * lacks the border and titlebar adornments. This can be used to * make an non-movable window, for instance. * * The outlet "sourceWindow" is assumed to be pointing to a window * created in IB. * * You may freely copy, distribute and reuse the code in this example. * NeXT disclaims any warranty of any kind, expressed or implied, as to * its fitness for any particular use. * * By: Ralph Zazula - z@next.com */ #import "MyObject.h" @implementation MyObject - awakeFromNib { id cloneWindow; NXRect r; id sourceContentView; id oldCloneContentView; /* get the size of the source (IB) window */ [sourceWindow getFrame:&r]; /* XXX: could reduce the size to account for the dissapearing title bar... */ /* create a 'clone' of the IB window */ cloneWindow = [[Window alloc] initContent:&r style:NX_PLAINSTYLE backing:NX_BUFFERED buttonMask:0 defer:NO]; /* steal the source window's content view and put in our clone */ sourceContentView = [sourceWindow setContentView:nil]; oldCloneContentView = [cloneWindow setContentView:sourceContentView]; /* NOTE: the above content-view swap can be done with no temps as: * [[cloneWindow setContentView:[sourceWindow setContentView:nil]] free]; */ /* just in case the source window had a delegate */ [cloneWindow setDelegate:[sourceWindow delegate]]; /* free the old clone content and source window */ [oldCloneContentView free]; [sourceWindow free]; /* get the clone to display itself and then order it to the screen */ [cloneWindow display]; [cloneWindow makeKeyAndOrderFront:nil]; /* make this transparent by pointing the "sourceWindow" outlet to the clone */ sourceWindow = cloneWindow; return self; } @end -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: "disabling" Window movement (A SOLUTION) Date: 17 Mar 1995 22:17:35 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3kd1pv$ao5@news.next.com> References: <3kd08a$akf@news.next.com> Oh, a couple of things about the NIB file... 1) make sure to disable the "Visible At Launch" switch on the source window 2) make sure to close the source window (and save the NIB) in IB before building If you don't do this, you'll see the source window flash on screen right before you put up the "clone" window... -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
From: kurisuto@babel.ling.upenn.edu (Sean Crist) Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Subject: Re: Shareware Authors: credit card ordering service! Date: 17 Mar 1995 20:08:29 GMT Organization: University of Pennsylvania, Linguistics Department Message-ID: <3kcq7t$q9f@netnews.upenn.edu> References: <D5G0Er.5uL@crash.cts.com> <3k9f3p$dm1@uwm.edu> <3kc7do$7qc@ixnews1.ix.netcom.com> In article <3kc7do$7qc@ixnews1.ix.netcom.com>, Robert Swarts <Ramshorn@ix.netcom.com> wrote: >I checked with my local bank. To set yourself up to handle VISA costs an >initial $25 setup fee, $5 per year imprinter fee, and 7% per transaction >with a $15 minimum on small accounts. This does not, of course, include >a toll-free number, and the process would have to be repeated for each >card type. You do not need a second phone line unless you wish to do >card verifications while the customer is on line. I'd be careful. I set this up for an organization once, and shortly after doing so, the bank we were at began a minimum $5 per month charge, or $60 per year. Of course, you won't feel that if your volume is great enough to absorb it, but for low-volume operations it's enough of a money leech that it is not necessarily the best idea. \/ __ __ _\_ --Sean Crist (kurisuto@unagi.cis.upenn.edu) --- | | \ / For a free copy of the Bill of Rights, finger _| ,| ,| ----- this account. _| ,| ,| [_] Q: What do Standard Oil, AT&T, and Microsoft have in | | | [_] common? A: Nothing... yet.
From: trey@hsv.tybrin.com (Trey McClendon) Newsgroups: comp.sys.next.hardware,comp.sys.next.programmer Subject: Board for high-speed I/O Date: 17 Mar 1995 09:29:57 -0600 Organization: TYBRIN Corporation Message-ID: <3kc9tl$1i4@tybrin4.hsv.tybrin.com> Has anyone used a board in a PC with NEXTSTEP in order to control the output of high speed data? I need to be able to clock out (with external trigger) serial data via a comm port. This will be to feed simulated telemetry data directly to telemetry equipment. If the data rates are too high for this, the next best thing is to clock it out to a 14-track tape unit and multiply the speed until we reach the desired bps output into the telemetry equipment. I have knowledge of the serial port troubles on PC's and of the Mux driver which lets the port do up to 38400. A question is whether a standard serial card can output the data with the timing accuracy needed to have the bit-syncs lock on the data once it is speed-multiplied to the required data rate. Of course a driver will be needed for any board. One board that may work is the PDMA-32 board from Keithley-Metrabyte. The only problem is that it outputs data in parallel, not serially. This would need a par. to serial convert which could (possibly) complicate matters. One bad thing about this board is the driver software libraries are included for DOS stuff but not anything else. Source is not provided. The documentation may be sufficient, but I haven't seen it. Any ideas, pointers, or war stories are welcomed. Thanks for your time, Trey -- Trey McClendon NeXTMail Accepted TYBRIN Corporation trey@hsv.tybrin.com Fax: 205-837-3472 Huntsville, AL
From: sewall@ee.ualberta.ca (Jeremy Sam Sewall) Newsgroups: comp.sys.next.misc,comp.sys.next.software,comp.sys.next.programmer Subject: MusicKit for NextStep 3.0? Date: 17 Mar 95 22:41:30 GMT Organization: Computing and Network Services, U of Alberta, Edmonton, Canada Message-ID: <sewall.795480090@beaker> Hi all! I am trying to do some DSP programming using my NeXTstation Turbo, and NeXTstep 3.0. So, I would like to find the MusicKit, which is not bundled with this version of NeXTstep. Can anyone tell me where to find this software? I found version 4.1.1 of the MusicKit, but I am concerned that it won't like NeXTstep 3.0. Thanks!!! Jeremy
Newsgroups: comp.sys.next.programmer From: jgrace@netcom.com (Joseph Grace) Subject: Re: Problems compiling POSIX applications Message-ID: <jgraceD5LM5C.M1K@netcom.com> Keywords: NeXT, buggy libraries Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <wilsher.795241074@rintintin.colorado.edu> Date: Fri, 17 Mar 1995 19:00:48 GMT Sender: jgrace@netcom18.netcom.com In article <wilsher.795241074@rintintin.colorado.edu>, Thomas Wilsher <wilsher@rintintin.Colorado.EDU> wrote: >This works fine if I compile it in the regular manner, but >exits with the message "Floating exception" >if I link it with -lposix I suspect it will work if you compile it with the "-posix" flag instead of the "-lposix" flag. I ran across this problem last week. Cheers, = Joe =
From: dent@highway1.com.au (Andy Dent) Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Subject: Re: Shareware Authors: credit card ordering service! Date: 18 Mar 1995 01:31:55 GMT Organization: A.D. Software Distribution: world Message-ID: <dent-1803950930540001@adsoftware.highway1.com.au> References: <D5G0Er.5uL@crash.cts.com> <3k9f3p$dm1@uwm.edu> <3kc7do$7qc@ixnews1.ix.netcom.com> In article <3kc7do$7qc@ixnews1.ix.netcom.com>, Ramshorn@ix.netcom.com (Robert Swarts) wrote: >I checked with my local bank. To set yourself up to handle VISA costs an >initial $25 setup fee, $5 per year imprinter fee, and 7% per transaction >with a $15 minimum on small accounts. Wow! I paid $60 setup, $8/month service fee inc imprinter rent, 3.5% per transaction (no minimum) and this gives me Visa, Mastercard and Bankcard (an Australian standard). This makes up for our extra hardware costs! Ever consider emigrating ;-) ? Andy Dent, Snr Developer, A.D. Software Western Australia Authors of the OOFILE cross-platform ODBMS framework ftp://perth.highway1.com.au:/pub/adsoftware/ http://www.highway1.com.au/adsoftware/
Newsgroups: comp.sys.next.programmer From: petev@lespaul.Princeton.EDU () Subject: developing in c++ Message-ID: <1995Mar16.221741.15078@Princeton.EDU> Originator: news@hedgehog.Princeton.EDU Sender: news@Princeton.EDU (USENET News System) Organization: Princeton University Distribution: usa Date: Thu, 16 Mar 1995 22:17:41 GMT I'm an experienced objective C/NeXTStep programmer. I'm thinking about writing a program that I will want to port to other machines. For portability it was suggested to me that I use c++ rather than objective C. I would appreciate suggestions from anyone who has done this. How well does c++ port to other machines/architectures? Peter Velikonja petev@music.princeton.edu
Belgium.EU.net!EU.net!news.sprintlink.net!nntp.earthlink.net!usenet From: root@terra (Operator) Newsgroups: comp.sys.next.programmer Subject: Re: How to use DPSAddFd for observing a regular file? Date: 17 Mar 1995 04:35:28 GMT Organization: Earthlink Network, Inc. Message-ID: <3kb3ig$ltk@mars.earthlink.net> References: <3k91rr$6ug@sunserver.lrz-muenchen.de> bauer@kepler.lbm.mw.tu-muenchen.de (Bauer Sebastian) wrote: >Hi, >In the Pre3.0Concepts there is mentioned, that you can use DPSAddFd >to observe usual files. I have a shell-script, that sends output to >a file, and I would like to process this output in a complete seperately >running application whenever text is appended to this file (I can't >run the shell-script as a child of the Application nor can I do it vice >versa). >I tried to do this by using the code from Subprocess.m (from the >UNIX-Examples in /NextDeveloper/Examples) that is dealing with watching >the filedescriptor of the subprocess, but opening the filedescriptor to >a file instead of a stream by using an open statement >( fd = open("filename", ...) ). >For some reason, the handler is called continuously, even if the file is >empty and no text is appended to it. >What am I doing wrong? Or is DPSAddFd unable to do something like that? >Is there an other easy way to do this job (is there a possibility to >open a pipe or an other way of messaging between a shell-script and an >Application, when they are started ablolutely independent of each other)? >Thanks for any help, >Sebastian I recently had a very similar problem. The 3.2 Developer doc's mention that what you propose and I tried is not normally done, but the suggestion is that it should work. If anyone knows how to get DPSAddFD to monitor a normal file I would be interested. Another solution to your problem is to use a FIFO. Here is a code snip sent to me by Stephen Perkins. #include <stdio.h> #include <errno.h> #include <stddef.h> #include <sys/stat.h> #include <sys/types.h> typedef unsigned short mode_t; /* Create a named pipe (FIFO) named PATH with protections MODE. */ //#ifdef NEXT_MKFIFO_MAIN main(int argc, char **argv) { if (argc != 2) usage(argv); mkfifo(argv[1],(mode_t) 644); } usage(char **argv) { printf("Usage: %s PATH\n",argv[0]); exit(1); } //#endif int mkfifo (const char *path, mode_t mode) { return mknod (path, mode | S_IFIFO, 0); } Felipe A. Rodriguez # ...it cannot be called ingenuity to kill far@earthlink.net # one's fellow citizens, to betray friends, # to be without faith, without mercy, without # religion; by these means one can aquire power # but not glory. # (NeXTmail prefered) # --Nicolo, Machiavelli (MIMEmail welcome) #
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: Any one have any examples of using performv:: Date: 18 Mar 1995 05:31:10 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3kdr6u$fbs@solaris.cc.vt.edu> I want to call performv:: but I'm not sure how to construct the marg_list from a list of arguments. Is there any code out there for doing something like this? Also, is there a way at runtime to find the return type for a method? I know you can get the args but I also need to know the return type. In case anyone is interested I discovered that using Steve Byrne's GNU smalltalk 1.2alpha2 I can create and send messages to Objective-C objects using only 4 simple functions, though I'm not sure I can send messages from objc objects to smalltalk objects just yet. With a little work I think it would be possible to wrap most of the AppKit in smalltalk. The hard part will be getting around the numerous class dependencies. If you're interested in working on such a thing, drop me a line and I'll send you code. All I've done so far is create an Application object and run it. John Stanhope
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: Career Positions/NEXTSTEP/N.Car & ILL Date: 18 Mar 1995 15:41:53 GMT Organization: Norden 1 Communications Message-ID: <3kev01$6eu@news1.channel1.com> Positions----------Programmer/analyst/developer Platform------------NEXTSTEP Language-------------Objective C Type of position------Career position Opportunity------------Outstanding Experience required-----Commercial Relocation---------------Company assistance Area----------------------N.Car & ILL Number of openings---------5 To be considered------------Fax or mail resume, or leave a phone#. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: rmyers@dec5200.acs.uci.edu (Richard Myers) Newsgroups: comp.sys.next.programmer Subject: copy:ing a view to the Pasteboard Date: 18 Mar 1995 16:16:31 GMT Organization: University of California, Irvine Message-ID: <3kf10v$n0p@news.service.uci.edu> I have a view I have drawn in using NXRectFills. I would like to copy this view and past it into Edit, Draw, whatever. I want to get a tiff image of the view and paste it to a stream and send the stream to the pasteboard. Problems: I did not use drawSelf:: to generate the display. It takes a long time to create the display and I certainly don't want to repeat the process for a copy: (we're talking 10+minutes). Is there any way to 'grab' the contents of a view? (I wish there was an api to Grab...) Thanks, Kurt
From: rgc@jujube.cs.umd.edu (Ross Garrett Cutler) Newsgroups: comp.sys.next.programmer Subject: Re: developing in c++ Date: 18 Mar 1995 19:04:26 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Distribution: usa Message-ID: <3kfarr$pp@mimsy.cs.umd.edu> References: <1995Mar16.221741.15078@Princeton.EDU> petev@lespaul.Princeton.EDU wrote: : I'm an experienced objective C/NeXTStep programmer. I'm thinking : about writing a program that I will want to port to other : machines. For portability it was suggested to me that I use : c++ rather than objective C. I would appreciate suggestions from : anyone who has done this. How well does c++ port to other : machines/architectures? The GNU C++ that comes with NEXTSTEP developer is pretty weak. It doesn't handle templates well, nor exceptions. That is not to say it isn't useful -- I use Objective-C++ all the time. But it pales in comparison to other comercial C++ compilers. As for portability, if you have a text only app, then it should be very portable. Any app that uses a GUI will need a lot of changes. One saviour that will be available next year is OpenStep for Windows 95/NT. This should allow complete portability across all OpenStep implementations. -- Ross Cutler University of Maryland, College Park rgc@cs.umd.edu http://www.cs.umd.edu/~rgc
From: suckow@uropax.contrib.de (Ralf Suckow) Newsgroups: comp.sys.next.programmer Subject: MiniSQLEOFAdaptor for EOF 1.1? Date: 18 Mar 1995 21:06:05 +0100 Organization: Internationale Stadt e.V. Message-ID: <3kfefd$olh@uropax.contrib.de> Hi Netters, does anybody know about a version of the EOF adaptor for MiniSQL working with EOF 1.1? The current version 941223 seems not to work. Thank you, Ralf -- melonSoft Ralf Suckow Berlin |-------------------------------| suckow@contrib.de | Developer of MusicBuilder (R) | fax: +4930 9321901 |-------------------------------|
From: gilmore@teleport.com (David F.Kon) Newsgroups: comp.sys.next.programmer Subject: looking for a programmer... Date: Sat, 18 Mar 1995 12:55:18 +1600 Organization: Teleport Message-ID: <gilmore-1803951255180001@ip-pdx8-19.teleport.com> I was wondering if anyone out there knows a NEXT programmer by the name of Paul Hardin, lives in Canada. Any info would be much appreciated. I wanna contact him via the net and surprise him, he doesn't know I have a computer. Heh heh heh Thanks
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Valid Object? Date: 17 Mar 1995 19:51:21 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Mar17205121@python.es.ele.tue.nl> References: <3k7vak$mgm@nntp.Stanford.EDU> In-reply-to: stanj@cs.stanford.edu's message of 16 Mar 1995 00:04:36 GMT In article <3k7vak$mgm@nntp.Stanford.EDU> stanj@cs.stanford.edu (Stan Jirman) writes: how can I check whether a given object pointer points to a valid obj or to some random place, or a freed object? If there is no such safe method, I take the best approximation, too. There is no safe way to do this, not even a remotely safe approximation, not even close. Period. --Tiggr
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: registering for any type with registerForDraggedTypes:count: Date: 17 Mar 1995 19:54:18 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Mar17205418@python.es.ele.tue.nl> References: <1995Mar15.133014.335@kira.net.netcom.com> In-reply-to: netcom.com!kira!davidjohn's message of Wed, 15 Mar 1995 13:30:14 GMT In article <1995Mar15.133014.335@kira.net.netcom.com> netcom.com!kira!davidjohn (David John Burrowes) writes: Is there some way for a view to register so that it will recieve dragging destination messages for *any* pasteboard type. No. I have an app where I'd like to be able to grab and store any type that is dragged into it. But, I am overlooking the documentation that says how to do this. A solution I used was to start off with a base set and as soon as I'd be offered *anything* from that base set, I'd extend the base set with any newly offered types. *However* a lot of apps are rather fascist concerning dragging operations, like `Only I know how to handle this type'. Bit me when writing my desktop (http://www.es.ele.tue.nl/tiggr/sw/)... --Tiggr
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Re: Valid Object? Date: 18 Mar 1995 22:45:18 GMT Organization: Stanford University Message-ID: <3kfnpu$dja@nntp.Stanford.EDU> References: <TIGGR.95Mar17205121@python.es.ele.tue.nl> Pieter Schoenmakers writes > In article <3k7vak$mgm@nntp.Stanford.EDU> stanj@cs.stanford.edu > (Stan Jirman) writes: > > how can I check whether a given object pointer points to a > valid obj or to some random place, or a freed object? If > there is no such safe method, I take the best approximation, > too. > > There is no safe way to do this, not even a remotely safe > approximation, not even close. Period. --Tiggr Pieter, interesting and very helpful. When the choice is to crash because of a method call to an invalid object or a possible recovery thru avoidance of such a call, which one would you take? If your check crashes, your call would have crashed, too... but you may have survived. Plus: - check the pointer to be in valid address space. Can be done with Mach functions. - Check the obj->isa pointer for not zero. - Check the object->name for not zero. - Check the object->name for not "FREED(id)" - Check the object->name to contain only alphanum characters. If you follow this order, and all checks are successful, you have a pretty darn good chance that the object is indeed valid. Even better when you know something about the object, like it's class. So much about no approximation. Thanks, - Stan -- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss Guy | | | SU Computer Science | When you find yourself | | Box 2642, Stanford, CA (415) 497 HEXO | in a hole, stop digging | | stanj@cs.stanford.edu NeXTmail / MIME | | +-------------------------------------------+-------------------------+
From: Peter Urka <pcu@umich.edu> Newsgroups: comp.sys.next.programmer Subject: Re: copy:ing a view to the Pasteboard Date: Sat, 18 Mar 95 21:08:55 GMT Organization: Squirrel Bin Sender: preston@urkabox.chem.lsa.umich.edu Distribution: world Message-ID: <18Mar21085586299321@urkabox.chem.lsa.umich.edu> References: <3kf10v$n0p@news.service.uci.edu> > I have a view I have drawn in using NXRectFills. I would like to copy > this view and past it into Edit, Draw, whatever. I want to get a tiff > image of the view and paste it to a stream and send the stream to the > pasteboard. image and readimage in the PS operators should do what you want. I explored them a while ago, and remember very little about them, but basically you can use them, and the NXImage class (to make it somewhat easier) to do what you want. There also is NXReadBitmap, which I believe is deprecated. Peter.
Newsgroups: comp.sys.next.programmer From: Joshua Smith <jrs@media.mit.edu> Subject: Serial port problems Message-ID: <1995Mar18.231401.14604@news.media.mit.edu> Sender: news@news.media.mit.edu (USENET News System) Organization: MIT Media Laboratory Date: Sat, 18 Mar 1995 23:14:01 GMT My serial port code stopped working, I think as a result of some change in the configuration of the machine. I'm running NS on an HP workstation. Now trying to open /dev/ttya always gives me an error, returning a file descriptor of -1. Does anyone have any idea what the problem could be? I know the serial port is not sitting in a weird state because I get the same error even after rebooting the machine. Thanks, Josh Smith
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: Creating shared libraries Date: 18 Mar 1995 09:36:13 GMT Organization: Total System Software Distribution: world Message-ID: <3ke9id$3fo@tssslab.TotSysSoft.com> References: <3kc4c8$fbv@info4.rus.uni-stuttgart.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <3kc4c8$fbv@info4.rus.uni-stuttgart.de> trefz@moa.ims.uni-stuttgart.de (Ralf Trefz) writes: }~ Hello, }~ }~ recently I tried to generate shared libraries on NeXT-Step 3.2. }~ But there is no documentation on how to do that. }~ I tried to use "ld" but it didn't work. }~ Is there a possibility to create custom host and run-time }~ shared libraries? }~ }~ Thanks in advance. It's possible but requires so much effort using undocumented techniques that you're better off waiting until v4.x NEXTSTEP. Simply stated: 1. create your routines with 100% reentrant code. 2. create a dummy header segment to identify the shlib which will have to be included in the link. 3. create a static jump table segment 4. create a shlib load/init segment 5. create a secondary init segment 6. use ld to like all of the above... make sure your addresses do not overlap ANY existing shlibs for the architecture. 7. create a requirements header to go in the link library. 8. create a link library to go with the shlib either in code, or directly extracting entry points from the linked shlib. 9. repeat for next architecture, lipo'ing the link library to add the new architecure. Step 6 is perhaps the hardest of the batch. Also, I've not tested to see if MAB shlibs are supported. +-+ Bruce Gingery Total System Software Cheyenne, WY USA We do consulting over Internet. E-Mail tss@TotSysSoft.com for quotes or more info. Homepage under construction <URL:http://turnpike.net/metro/bagingry/> NEXT IN LINE magazine staff technical writer Bruce Gingery <bgingery@Wyoming.COM> OR <bruce@TotSysSoft.com> Multimedia: NeXTmail(tm) preferred MIME-mail welcome
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <bbum@friday.com> Message-ID: <199503182119.PAA04858@friday.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Bill Bumgarner <bbum@friday.com> Date: Sat, 18 Mar 95 15:18:59 -0600 Subject: Re: HELP:jpeg for NeXT In article <D4Hpxn.B8p@hkuxb.hku.hk> hsloong@srgcentre (Loong Ho Sang) writes: > Does anybody know where I can get the jpeg and tiff2jpeg program > for NeXT? > > Thanks in advance. > > - Anthony Loong (HKU) gery@ares.fdn.fr(Gery_Divry) replies: # you can open a terminal and type # # tiffutil -jpeg myTiff.tiff -out myJPEGTiff.tiff bbum adds: This may not be quite what Loong Ho was looking for -- the result is a jpeg'd TIFF, not a plain jpeg file. To convert a tiff to jpeg, you will need the netpbm and jpeg packages. Netpbm has been compiled for NS and is available at your favorite NeXT-oriented ftp site. I don't know of any jpeg binaries-- but the source is really easy to compile. It can be found at: ftp://ftp.uu.net/graphics/jpeg b.bum --- <bbum@friday.com> | In cyberspace.... Friday Software & Consulting | ...no one can hear you laugh.
From: armes@tds.com (Jim Armes) Newsgroups: comp.sys.next.bugs,comp.sys.next.programmer,comp.sys.next.sysadmin,de.comp.sys.next, Subject: Re: Q:Pentium/PCI/Serial bug applicable to NeXTstep/Mux? Date: Sat, 18 Mar 1995 23:51:43 Organization: MeSelf Distribution: world Message-ID: <armes.4.0017DD67@tds.com> References: <3k7085$bbg@obelix.WHU-Koblenz.de> In article <3k7085$bbg@obelix.WHU-Koblenz.de> wolfgang@wi.WHU-Koblenz.de (Wolfgang Roeckelein) writes: >does anybody know if the Pentium/PCI/Serial bug (see below) is applicable >to NeXTstep and/or the Mux driver, too? >SYMPTOMS >======== >Pentium-based machines with a peripheral component interface (PCI) bus and >a 16550 UART chip stop responding (hang) or exhibit other unexpected >behavior when you use communication applications, such as Microsoft At >Work >PC Fax or Microsoft Terminal. This was primarily a problem with Dos/Windows - most unix-based drivers do the correct thing. The problem is usually caused by the os/driver not clearing the buffer in the chip when the system goes to 16550 mode from the default 16450 (?) mode. I think Nextstep keeps the ports in 16550 mode all the time, if it can, so this wouldn't apply anyway. I've been using mine without any problems- I switch on and off the modem all the time to use PNI. Jim armes@tds.com
From: robert@audrey.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Programmatically disabling Window movement Date: 17 Mar 1995 10:11:10 GMT Organization: me organized? That's a joke! Message-ID: <ROBERT.95Mar17101110@audrey.dircon.co.uk> References: <jpanicoD5FqAI.7o8@netcom.com> <D5Gs5p.BLn@genoa.com> <jpanicoD5JrAL.Lvs@netcom.com> To: jpanico@netcom.com (Joe Panico) In-reply-to: jpanico@netcom.com's message of Thu, 16 Mar 1995 18:56:44 GMT <jpanico@netcom.com> writes: >: Joe, >: Would it be possible for you to briefly describe why you want to do this? >Sure. The users of this particular app are COMPLETELY computer/NeXTSTEP >illiterate. Nor do they have any intention of learning anything beyond >this one app. In essence, this app must turn the computer into a dedicated >machine. When they are presented with windows that have title >bars, they accidentally move them partially off screen, and then complain >that they can't get them back. I've come to think of this app as something >akin to the software that runs Automated Teller Machines. Yes, this app >is real-time and mission critical. More like business process control than >a polite app. >Joe Panico >jpanico@netcom.com Well this is interesting. What is the user interface like? It is necessary to even have a mouse? ie. Can you operate the system with the keyboard? Then you take away the means whereby users can move windows. I assume you only have one window anyway. What's wrong with just making the window without a title bar? ie. NX_PLAINSTYLE? What about a little user training? After all the NS "desktop" is one of the easier to deal with. IMHO. -- "Mary had a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
From: robert@audrey.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: copy:ing a view to the Pasteboard Date: 19 Mar 1995 09:56:42 +0000 Organization: me organized? That's a joke! Message-ID: <robertznghxtv9tapx@audrey.dircon.co.uk> References: <3kf10v$n0p@news.service.uci.edu> <18Mar21085586299321@urkabox.chem.lsa.umich.edu> To: Peter Urka <pcu@umich.edu> In-reply-to: Peter Urka's message of Sat, 18 Mar 95 21:08:55 GMT The following message is a courtesy copy of a response which was posted. <pcu@umich.edu> writes: >>I have a view I have drawn in using NXRectFills. I would like to copy >>this view and past it into Edit, Draw, whatever. I want to get a tiff >>image of the view and paste it to a stream and send the stream to the >>pasteboard. >image and readimage in the PS operators should do what you want. >I explored them a while ago, and remember very little about them, but basically you can use them, and the NXImage class (to make it somewhat easier) to do what you want. There also is NXReadBitmap, which I believe is deprecated. >Peter. Can you just call - writePSCodeInside:to: and then init an NXImage from that stream? then take write the NXImage's stream to the pasteboard. -- "Mary had a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer From: ndanger@crash.cts.com Subject: Re: Shareware Authors: credit card ordering service! Organization: International Cybernautics SA Date: Sun, 19 Mar 1995 09:22:19 GMT Message-ID: <D5oKp8.9q0@crash.cts.com> References: <D5G0Er.5uL@crash.cts.com> <3k9f3p$dm1@uwm.edu> <3kc7do$7qc@ixnews1.ix.netcom.com> Sender: news@crash.cts.com (news subsystem) In <3kc7do$7qc@ixnews1.ix.netcom.com>, Ramshorn@ix.netcom.com (Robert Swarts) writes: >I checked with my local bank. To set yourself up to handle VISA costs... That's IF you have a retail storefront. Getting that deal for a mail-order setup, especially one involving software, is almost impossible. Banks won't touch you with a ten-foot pole. Outfits like CardService Int'l will set you up, but they'll insist on electronic authorization... which requires the purchase of one of those "authorization terminals" for about $1000.
Newsgroups: comp.sys.next.programmer From: pjoe@charon.muc.de (Peter Eybert) Subject: How to subclass NILoginPanel? Message-ID: <1995Mar19.183018.2345@charon.muc.de> Sender: pjoe@charon.muc.de (Peter Joe Eybert) Organization: None Date: Sun, 19 Mar 1995 18:30:18 GMT Hello, how do I subclass a NILoginPanel? I want to override the -cancel:sender method but the subclassed method never gets called. #import <nikit/NILoginPanel.h> @interface TheLoginPanel:NILoginPanel { } - cancel:sender; @end @implementation TheLoginPanel + new { self = [super new]; puts("TheLoginPanel message 1"); return self; } - cancel:sender { puts("TheLoginPanel message 2"); return self; } @end Invoked via: id nipanel = [TheLoginPanel new]; I do get message 1, but I never get message 2 when I hit the Cancel buttton. I hope someone can give me a hint. Cheers, Peter. -- ____________________________________________________________ Peter Eybert pjoe@charon.muc.de Appenzellerstr. 123 Tel: +49-89-7593734 81475 Muenchen (NeXTMail welcome) --
From: kenny@panix.com (Kenneth Crudup) Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Subject: Re: Shareware Authors: credit card ordering service! Date: 19 Mar 1995 13:36:37 -0500 Organization: Scott County Consulting, Boston, MA Message-ID: <3khtjl$oug@panix2.panix.com> References: <D5G0Er.5uL@crash.cts.com> <3k9f3p$dm1@uwm.edu> <3kc7do$7qc@ixnews1.ix.netcom.com> <D5oKp8.9q0@crash.cts.com> In article <D5oKp8.9q0@crash.cts.com>, ndanger@crash.cts.com says: >Outfits like CardService Int'l will set you up, but they'll insist on >electronic authorization... which requires the purchase of one of those >"authorization terminals" for about $1000. You sure? That little Omron thingy I see everywhere can't be more than $300 tops. -Kenny -- Kenneth R. Crudup, Unix Software Consultant, Scott County Consulting kenny@panix.com CI$: 75032,3044 +1 617 524 5929/4949 Home/Office 16 Plainfield St, Boston, MA 02130-3633 +1 617 983 9410 Fax OS/2 box: pkenny.tiac.net (when I'm online) Get Warp-ed! OS/2 3.0 is here NOW!
Newsgroups: comp.sys.next.programmer From: wave@media.mit.edu (Michael B. Johnson) Subject: MallocDebug breakpoint help Message-ID: <WAVE.95Mar19134219@media-lab.media.mit.edu> Sender: news@news.media.mit.edu (USENET News System) Organization: M.I.T. Media Laboratory Date: Sun, 19 Mar 1995 18:42:19 GMT So I'm trying to track down an evil bug in my software. I've recompiled with MallocDebug and am stepping through my code. I'm doing enormous amounts of malloc'ing and free'ing of objects, and every once in a while I'll get a MallocDebug: freed unmalloced pointer: 0x7f7f7f7f Now many times before I've been lucky enough to break and do a print (char *)0x7f7f7f7f (or whatever the pointer actually was) and get immediate insight into what stupid thing I'd done (i.e. forgetting to make a unique copy of a char * in a copyFromZone" has been a popular one...). But in this case, the pointer doesn't point anywhere useful anymore, and anyway, that's a stupid way to do it. What I want to do is set a break point in the code that MallocDebug is calling to print that error msg so I can do a "where" in gdb and see where the heck it is happening. Why the hell MallocDebug doesn't just print out the stack trace at that point anyway is beyond me... Any suggestions about how to either find out the name of the routine or what it is would be most appreciated... -- --> Michael B. Johnson -- wave@media.mit.edu --> http://wave.www.media.mit.edu/people/wave/ --> MIT Media Lab, Computer Graphics & Animation Group --> 20 Ames St. E15-023G, Cambridge, MA 02139 --> (617) 666-4119 (day office) -- (617) 253-0663 (night office)
From: root@terra (Operator) Newsgroups: comp.sys.next.programmer Subject: Re: Serial port problems Date: 19 Mar 1995 18:47:01 GMT Organization: Earthlink Network, Inc. Message-ID: <3khu75$p7i@mars.earthlink.net> References: <1995Mar18.231401.14604@news.media.mit.edu> Joshua Smith <jrs@media.mit.edu> wrote: >My serial port code stopped working, I think as a result >of some change in the configuration of the machine. I'm >running NS on an HP workstation. >Now trying to open /dev/ttya always gives me an error, >returning a file descriptor of -1. Does anyone have any >idea what the problem could be? I know the serial port >is not sitting in a weird state because I get the same >error even after rebooting the machine. You might check to see if /dev/ttya is still there. Even if it is their could be a problem with it. I was messing around with the parallel port special file (pp0) a while back and managed to damage it somehow. I don't recall exactly what I did, but I used the MAKEDEV script also in /dev/ directory to rebuild the special files. Felipe A. Rodriguez far@earthlink.net
From: gideon@black_albatross.otago.ac.nz (Gideon King) Newsgroups: comp.sys.next.software,comp.sys.next.programmer Subject: How good is MiniSQL? Date: 19 Mar 1995 20:55:06 GMT Organization: University of Otago, Dunedin, NZ Message-ID: <3ki5na$21k@celebrian.otago.ac.nz> References: <3jibucINNmql@gambier.ugrad.cs.ubc.ca> I have seen a number of people posting about MiniSQL, and have grabbed a copy of it, but have not yet had a chance to play with it. Is it stable? i.e. could I use a database created using it on a daily basis for important work without crashes or fear of data loss? Is it robust? What would happen if my application program crashed during an add or update? Does it support transactions and rollback? Does it support multiple users? I seem to recall something about serialising multiple calls and feeding them to the database engine sequentially - is this how it handles multiple users? Is it fast? I am not too concerned about update speed (anythinng would be better than what I've currently got), although, of course, the faster the better, but can someone give me info on query speeds? How easy is it to set up? I'd like info on using it with DBKit, EOF1.0, and with the C-function interface. Any information would be gladly received. Please email responses to me. I'll summarise to the comp.sys.next.programmer newsgroup. --- The Black Albatross Gideon King | Phone +64-3-479 8347 University of Otago | Fax +64-3-479 8529 Department of Computer Science | e-mail gideon@Black_Albatross.otago.ac.nz P.O. Box 56 | NeXT mail ok Dunedin | When I argue with my wife, I always New Zealand | have the last word --- "Yes dear".
From: robert@audrey.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: MallocDebug breakpoint help Date: 19 Mar 1995 21:41:19 +0000 Organization: me organized? That's a joke! Message-ID: <robertznggyn6i2zvl@audrey.dircon.co.uk> References: <WAVE.95Mar19134219@media-lab.media.mit.edu> To: wave@media.mit.edu (Michael B. Johnson) In-reply-to: wave@media.mit.edu's message of Sun, 19 Mar 1995 18:42:19 GMT <wave@media.mit.edu> writes: >So I'm trying to track down an evil bug in my software. I've >recompiled with MallocDebug and am stepping through my code. I'm >doing enormous amounts of malloc'ing and free'ing of objects, and >every once in a while I'll get a >MallocDebug: freed unmalloced pointer: 0x7f7f7f7f >Now many times before I've been lucky enough to break and do a >print (char *)0x7f7f7f7f (or whatever the pointer actually was) >and get immediate insight into what stupid thing I'd done (i.e. >forgetting to make a unique copy of a char * in a copyFromZone" has >been a popular one...). But in this case, the pointer doesn't point >anywhere useful anymore, and anyway, that's a stupid way to do it. >What I want to do is set a break point in the code that MallocDebug is >calling to print that error msg so I can do a "where" in gdb and see >where the heck it is happening. Why the hell MallocDebug doesn't >just print out the stack trace at that point anyway is beyond me... >Any suggestions about how to either find out the name of the routine >or what it is would be most appreciated... >-- -->Michael B. Johnson -- wave@media.mit.edu -->http://wave.www.media.mit.edu/people/wave/ -->MIT Media Lab, Computer Graphics & Animation Group -->20 Ames St. E15-023G, Cambridge, MA 02139 -->(617) 666-4119 (day office) -- (617) 253-0663 (night office) Well you could try "write" or how about the overridden free that malloc debug is using? Hmm let's have a look. 00000000 A .file_definition_libsys_s.B.shlib_malloc.o 000005fe T __NXAddRegion 00000480 T __NXCreateChildZone 00000436 T __NXCreateZone 00000428 T __NXDefaultMallocZone 000015dc T __NXMDBcanProtectHeap 00001a98 T __NXMDBgetCurrentMallocNodeNumber 0000152a T __NXMDBgetMallocData 000018d2 T __NXMDBgetUnreferencedData 000015fa T __NXMDBgetZoneNames 0000180e T __NXMDBprotectHeap 00001a72 T __NXMDBresetMalloc 00001a86 T __NXMDBsetMallocMarkNumber 00001876 T __NXMDBunprotectHeap 000005aa T __NXMallocCheck 0000060e T __NXMallocDumpFrees 00000616 T __NXMallocDumpZones 000004d4 T __NXMergeZone 000005b4 T __NXNameZone 0000250e T __NXPortListen 00000606 T __NXRemoveRegion 00000534 T __NXZoneCalloc 00000584 T __NXZoneFromPtr 000005a2 T __NXZonePtrInfo 00000004 C __alloc U __bootstrap_port U __bootstrap_status U __cthread_detach U __cthread_fork U __getpid U __mach_error 00002418 T __mallocProtocol_server 000012d2 T __malloc_debug 00002b9c D __malloc_debug_args_buffer 000012dc T __malloc_error 00000636 T __malloc_fork_child 0000062e T __malloc_fork_parent 00000626 T __malloc_fork_prepare 00000650 T __malloc_freezedry 00001264 T __malloc_good_size 0000065a T __malloc_jumpstart 0000061e T __malloc_singlethreaded 0000122c T __malloc_size U __msg_receive U __msg_send 00001270 T __mstats U __name_server_port U __port_allocate U __task_get_special_port U __task_self_ U __task_threads U __thread_get_special_port U __thread_get_state U __thread_set_special_port 00001284 T __valloc 0000063e T __vfree U __vm_allocate U __vm_deallocate U __vm_page_size U __vm_protect U __vm_region U __write 00000004 C __zoneAlloc U _abort 000011dc T _calloc U _cthread_detach U _cthread_fork U _cthread_set_name U _exit 000010ca T _free 00000dde T _malloc U _memmove U _memset U _msg_receive 00000664 T _myclass_createInstance 000006ba T _myclass_createInstanceFromZone U _netname_check_in 00001c60 T _our_catch_exception_raise (does this get called?) 00001f6c T _our_exc_server U _port_set_add U _port_set_allocate 0000113e T _realloc U _sprintf U _strchr U _strcpy U _strlen U _strncmp U _strstr U _task_self_ U _ur_cthread_self U _vsprintf Hmm. that doesn't get called so let's try something alse. main() { static char dontfree[10] = {"robert"}; free(dontfree); } cc -g -o bla bla.c -lMallocDebug robert:/usr/tmp>gdb bla 21:37 GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.7 (NeXT 3.1), Copyright 1992 Free Software Foundation, Inc... Reading symbols from /private/tmp/bla...done. Reading symbols from /usr/shlib/libsys_s.B.shlib...done. (gdb) break main Reading in symbols for bla.c...done. Breakpoint 1 at 0x3364: bla.c:5. (gdb) cont The program is not being run. (gdb) run Starting program: /private/tmp/bla Breakpoint 1, main () at bla.c:5 (gdb) break write Breakpoint 2 at 0x5008228 (gdb) cont Continuing. Breakpoint 2, 0x5008228 in write () (gdb) where #0 0x5008228 in write () #1 0x339a in main () at bla.c:6 #2 0x447c in free () #3 0x3370 in main () at bla.c:5 (gdb) Current function has no line number information. Single stepping until function exit. MallocDebug: Breakpoint 2, 0x5008228 in write () (gdb) Current function has no line number information. Single stepping until function exit. freed unmalloced pointer: 0x600c main () at bla.c:6 (gdb) Please let me know if you narrow it down ... -- "Mary had a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
From: robert@audrey.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: MallocDebug breakpoint help Date: 19 Mar 1995 21:48:16 +0000 Organization: me organized? That's a joke! Message-ID: <robertznggymnyzxww@audrey.dircon.co.uk> References: <WAVE.95Mar19134219@media-lab.media.mit.edu> <robertznggyn6i2zvl@audrey.dircon.co.uk> To: wave@media.mit.edu In-reply-to: robert@audrey.dircon.co.uk's message of 19 Mar 1995 21:41:19 +0000 <robert@audrey.dircon.co.uk> writes: Forgot to add Breakpoint 1, main () at bla.c:5 (gdb) n Breakpoint 2, 0x5008228 in write () (gdb) p (char *)*($fp + 8) $1 = 0x5c6d "freed unmalloced pointer: %p\n" -- "Mary had a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: Replacing the default cursor Date: 19 Mar 1995 21:47:15 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3ki8p3$8qb@snaps.dannug.dk> Hi there, Any suggestions on the best way to do a global (per login that is) replace of the default cursor (arrow)? Similar question on a per app basis. Any chance that the cursor can be larger than 16x16 pixels? Thx. Geert
From: warnerr@beethoven ( richard warner) Newsgroups: comp.sys.next.programmer Subject: How do you draw indiv pixels in PS? Date: 20 Mar 1995 00:08:05 GMT Organization: Colorado State University, Fort Collins, CO 80523 Message-ID: <3kih15$1sor@yuma.ACNS.ColoState.EDU> Hi - I'm working on a hidden line graphics algorithm and need to know how to display individual points in NEXTSTEP. I need to do the polygon filling myself, using a z-buffer algorithm, and thus need to set individual pixels and their color/intensity. How do I do it in NEXTSTEP? Went through all the PS single op literature to no avail. Rich
From: finton@homer.cs.wisc.edu (David Finton) Newsgroups: comp.sys.next.programmer Subject: Why does OpenPanel/fopen fail w/ deep nesting? Date: 20 Mar 1995 01:22:29 GMT Organization: University of WI, Madison -- Computer Sciences Dept. Message-ID: <3kilcl$d8l@spool.cs.wisc.edu> I'm using the OpenPanel object to get a filename for fopen. As long as the file I'm reading isn't buried too deeply in the directory structure, my code works. It seems that if there are enough subdirectories in the path I get a memory exception. Why? Here's my code: ----------------------------- - (BOOL)readCirclesParams: sender { char *types[2] = {"circ", 0}; /* file extension for OpenPanel */ char fname[75]; FILE *f = NULL; char buf[75]; /* current param being read */ int tag; /* for setting *i* */ [self status: "Here we go.\n"]; if ([ [OpenPanel new] runModalForTypes:types ]) { strcpy(fname, [[OpenPanel new] filename]); f = fopen(fname, "r"); if (f != NULL) { sprintf(buf, "Reading Circles parameters from \"%s\"\n", fname); -------------------------------- If I select (in the OpenPanel) "/finton/defaults.circ", that works. If it's "/finton/Apps/defaults.circ", that also works. If it's "/finton/Apps/CirclesApp/defaults.circ", that works, too. But "/finton/Apps/CirclesApp/CirclesLisp/defaults.circ" won't work. I've checked obvious things like file permissions. I also tried making fname bigger to accomodate a longer path, but that didn't help. It seems that where I put the file in the directory structure determines whether this code works. Am I missing something obvious? Thanks in advance, David Finton
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 20 Mar 1995 05:15:08 GMT Organization: Digital Fix Development Message-ID: <3kj30s$d21@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally the NEXTSTEP there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ *** NEED INFORMATION *** NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff, but very short on disk space ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.next.com: See the below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
Newsgroups: comp.sys.next.programmer From: Joshua Smith <jrs@media.mit.edu> Subject: More on Serial Port Problems Message-ID: <1995Mar20.083607.23773@news.media.mit.edu> Sender: news@news.media.mit.edu (USENET News System) Organization: MIT Media Laboratory Date: Mon, 20 Mar 1995 08:36:07 GMT My special files (/dev/ttya) are there, and I've rebuilt them using MAKEDEV just to be sure. The serial port drivers are also present, in /private/Drivers/hppa/SerialPort.config. However, they don't seem to be loading. When I reboot, most of the other drivers seem to give messages indicating that they're starting up. Does anyone know how to tell the system to load a driver at boot time? Also, I think the SerialPort driver may be older than the other drivers. Does anyone know how to upgrade a driver? Please reply directly to me. Josh Smith
From: balkum@phoenix.phoenix.net (Stephen Balkum) Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Subject: Re: Shareware Authors: credit card ordering service! Date: 20 Mar 1995 04:45:27 GMT Organization: Zephyr Software Message-ID: <3kj198$9lj@gryphon.phoenix.net> References: <D5G0Er.5uL@crash.cts.com> <3k9f3p$dm1@uwm.edu> <3kc7do$7qc@ixnews1.ix.netcom.com> <D5oKp8.9q0@crash.cts.com> Mime-Version: 1.0 In article <D5oKp8.9q0@crash.cts.com>, ndanger@crash.cts.com says... > >In <3kc7do$7qc@ixnews1.ix.netcom.com>, Ramshorn@ix.netcom.com (Robert Swarts) wr >ites: > >>I checked with my local bank. To set yourself up to handle VISA costs... > >That's IF you have a retail storefront. Getting that deal for a mail-order >setup, especially one involving software, is almost impossible. Banks >won't touch you with a ten-foot pole. Outfits like CardService Int'l will set >you up, but they'll insist on electronic authorization... which requires the >purchase of one of those "authorization terminals" for about $1000. I called too many banks to count and they all said the same thing... No. Banks consider mail-order software to be a super-high-risk and refuse to deal with it. I was told there are service providers that will grant you permission if you give them a healthy bond. And you still have to pay monthly fees, rental of some sort of access equipment and pay percentages. For all of these reasons, Zephyr Software decided to go with Microgenesis. -- Stephen L. Balkum - balkum@phoenix.phoenix.net - balkum@zoe.as.utexas.edu ___ __ __ __ __ __ __ _____ __ __ __ / | | \ | | \ / | \ / / \ | | | | / \ | \ | / |_ |__/ |__| | |__/ \__ | | |_ | | | | |__| |__/ |_ /__ |__ | | | | | \ ___) \__/ | | \/ \/ | | | \ |__ "...where everything runs just a little bit faster..."
From: don@darth.byu.edu (Don Yacktman) Newsgroups: comp.sys.next.programmer Subject: Re: How do you draw indiv pixels in PS? Date: 20 Mar 1995 11:10:29 GMT Organization: Brigham Young University, Provo UT USA Distribution: world Message-ID: <3kjnr5$t5n@jan.et.byu.edu> References: <3kih15$1sor@yuma.ACNS.ColoState.EDU> richard warner writes ) Hi - ) I'm working on a hidden line graphics algorithm and need to ) know how to display individual points in NEXTSTEP. I need to do the ) polygon filling myself, using a z-buffer algorithm, and thus need to ) set individual pixels and their color/intensity. How do I do it ) in NEXTSTEP? Went through all the PS single op literature to no avail. For this type of thing, one approach is to create your own buffer for the graphics and then wrap an NXImage instance around it. For actual display, you can then splat all or part of the created image to the screen. Look at the NXImage class documentation for info on this approach. Another way to approach this is to draw a bunch of small rectangles on the screen, one for each pixel. There are several NX*() functions to get various kinds of rectangles, such as NXRectFill() and NXRectFillList()--those two would be the most useful for what you want to do. Look for NXRectClip() in the docs for the description. Also check out NXDrawBitmap() while you're at it; it can avoid the NXImage overhead if all you're doing is splatting custom buffers to the screen. There's probably other ways to do it, too, but those are the two I've used and they seem to work pretty well for me. -- Later, -Don Yacktman Don_Yacktman@byu.edu
Newsgroups: comp.sys.next.programmer From: bkr@rennhak.hanse.de (Bernd Karl Rennhak) Subject: Re: How to use DPSAddFd for observing a regular file? Message-ID: <D5n9B1.GG@rennhak.hanse.de> Organization: Rennhak Software, ntm. Date: Sat, 18 Mar 1995 16:18:36 GMT > In the Pre3.0Concepts there is mentioned, that you can use DPSAddFd > to observe usual files. I have a shell-script, that sends output to > a file, and I would like to process this output in a complete seperately > running application whenever text is appended to this file (I can't > run the shell-script as a child of the Application nor can I do it vice > versa). > > Is there an other easy way to do this job (is there a possibility to > open a pipe or an other way of messaging between a shell-script and an > Application, when they are started ablolutely independent of each other)? > The class Subprocess (/NextDeveloper/Examples) is appropriate to handle the situation. Of course there is no way to catch output of an already started process directly. What you can do: Redirecting the output of the primary process to a file <abc>. Starting another process (via Subprocess) "/usr/ucb/tail -f <abc>" from your application. The tail-process will send data whenever ANY process appends data to <abc>. I did it several times when attaching to logfiles of running processes. -- ##### Bernd Karl Rennhak, Keplerstr.35, D-22763 Hamburg ##### ##### mail bkr@rennhak.hanse.de phone +49-40-3902805 #####
From: chris@peseta.unice.fr (Taggiasco Christian) Newsgroups: comp.sys.next.programmer,comp.sys.next.software Subject: Tools for IconBuilder.app Date: 20 Mar 1995 13:03:01 GMT Organization: University of Nice Sophia-Antipolis Message-ID: <3kjue5$srv@taloa.unice.fr> Keywords: icon builder Hello. I saw that IconBuilder could load new tools (ptool or pfilter bundles). So I'm looking for some of these tools and for documentions to create this kind of tools.If you could help me, please send e-mail at : chris@doublon.unice.fr Thanks. ----------------------------------------------------------- ! TAGGIASCO Chritian ! ! ! ! Institut Non Lineaire de Nice ! ! UMR 129 - C.N.R.S. Universite de Nice Sophia Antipolis ! ! 1361 route des lucioles - Sophia Antipolis - ! ! 06560 Valbonne - France ! !---------------------------------------------------------! ! tel : 92.96.73.34 - fax 92.96.73.33 ! ! e-mail : chris@doublon.unice.fr ! ! (temp.) http://www-inln.unice.fr/~chris ! -----------------------------------------------------------
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn) Newsgroups: comp.sys.next.programmer Subject: New version of mCD.app (music CD program) Date: 20 Mar 1995 04:08:37 GMT Organization: Rensselaer Polytechnic Institute, Troy NY, USA Distribution: world Message-ID: <3kiv45$saq@usenet.rpi.edu> I've put together a newer version of my mCD.app, which is an alternative to the CDPlayer.app that comes as a demo with NeXTSTEP. The changes in this version include: * Fixed a problem that would cause mCD to ignore the last track of a music CD on some CD-ROM drives. * Minor fix to handle oddity on NS/Intel the first time one tries to load a CD after a system reboot (well, it was a problem on my DECpc, at least...) * Split the CD_DBase into a separate subproject, and greatly increased the number of CD's it knows about (now at 579). The "database system" (to use the term loosely) is still pretty lame, but at least it's broken down into subroutines. There are also compile-time switches which would reduce the size of the database (by leaving out song-titles). * Add a menu option to copy out the current entry as Objective C code, useful for putting more CD-title info into the (lame) CD_DBase routines. * Made the version-numbers consistent... This has been tested to some extent on NeXT and Intel hardware. Given all the hardware possibilities, I can't say that this will work on everyone's system. It works for a NeXT CD-ROM, an Apple CD-300, and some Toshiba CD-ROM drives. It won't work on a an Apple CD-150, the older Apple CD SC, or probably some other CD-ROM drives. Source code is included, since the application must run as root and you shouldn't be blindly trusting me by running programs with suid-root privileges. You can get to a directory of "mCD things" with URL: ftp://eclipse.its.rpi.edu/NeXT/mCD_f/ There isn't all that much in there right now, but that might change as time goes on. If you just care about getting the tar file, then head for: ftp://eclipse.its.rpi.edu/NeXT/mCD_f/mCD-95Mar19_NI.tar.gz If you run into problems with this, let me know. If you have improvements you've made to it, send them along (although I may not have time to incorporate them right away). -- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu ITS Systems Programmer (handles NeXT-type mail) Rensselaer Polytechnic Institute; Troy NY USA
From: dcoyle@kakapo.mpi-hd.mpg.de (David A. Coyle) Newsgroups: comp.sys.next.programmer Subject: Re: Storage and List under Foundation Date: 20 Mar 1995 16:43:48 GMT Organization: University of Heidelberg, Germany Message-ID: <3kkbc4$p2d@sun0.urz.uni-heidelberg.de> References: <D5EGLA.BG4@dudley.com> <3k7663$qj6@news.next.com> Matt_Watson@next.com (Matt Watson) wrote: >In article <D5EGLA.BG4@dudley.com> chuston@dudley.com (Chris Huston) >writes: >[...] >> Is there a replacement for Storage? >[...] >Using Foundation, you can use NSArrays of NSValues to store arbitrary >types. >matt. Yes, but there's a big advantage to Storage, when you want to a) have a large portable array of (say) doubles, and b) access the values sequentially, and quickly. Storage lets you get a pointer to an element, and you can run from there. I tried it; incrementing the pointer to get the data is orders of magnitude faster than incrementing an index, then calling [yourStore elementAt:index], and casting and dereferencing the pointer that you get back. It'd be the same with NSValues in an NSArray... If you read data from an instrument, and want to process it quickly yet retain an object wrapper around it, well, Storage can be pretty handy. Of course, there's still the OpenStep AppKit ! Not everything needs to be done in the FoundationKit ! David A. Coyle
From: jharding@thor.tjhsst.edu (John Harding) Newsgroups: comp.sys.next.programmer Subject: New Programmer Date: 20 Mar 1995 10:15:18 -0500 Organization: The Thomas Jefferson High School for Science and Technology Distribution: world Message-ID: <3kk666$p1c@thor.tjhsst.edu> I'm rather new to programming in Objective-C. I have a good C background, and a basic C++ background, so I understand the concepts, and I think I've pretty much picked up the syntax. My main question is really just if there's a method defined for the TextField object to return its contents, whether as a string or integer, or do I have to subclass the TextField and add a method to return the contents? Also, as there a way for a button to set it's target/action to not perform a method on an object, and instead just call a normal function? The functios I want my buttons to do are simple and involve a couple objects, so it wouldn't seem to make sense to create a whole class and object just to deal with my button actions. Thanks.
From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott) Newsgroups: comp.sys.next.programmer Subject: Re: developing in c++ Date: 20 Mar 1995 17:54:41 GMT Organization: University of California, Santa Barbara Distribution: usa Message-ID: <3kkfh1$khe@yuggoth.ucsb.edu> References: <1995Mar16.221741.15078@Princeton.EDU> In article <1995Mar16.221741.15078@Princeton.EDU> petev@lespaul.Princeton.EDU () writes: ] I'm an experienced objective C/NeXTStep programmer. I'm thinking ] about writing a program that I will want to port to other ] machines. For portability it was suggested to me that I use ] c++ rather than objective C. I would appreciate suggestions from ] anyone who has done this. How well does c++ port to other ] machines/architectures? ] If you use Gnu g++, your code should compile identically on every platform supported by FSF -- which is quite a few. I work exclusively in C++ on NeXTs, Suns, and SGI machines, and as long as I dont use any of the special Gnu-isms in the Gnu version (special features not found in most other compilers), I have no trouble porting to other machines or C++ compilers. Nowdays, with the exception of templates and exception handling, C++ code ports from machine to machine and vendor to vendor without much work at all. Dont use the native C++ compiler on the NeXT, though. It is quite out-of-date. Start development using gcc/g++ 2.6.3. It is easy to configure, compile, and install on the NeXT. -- Douglas Scott | Senior Development Engineer Tel: (805) 893-8352 | Center for Computer Music Research and Composition Internet (NeXTMail ok): | University of California, Santa Barbara <doug@ccmrc.ucsb.edu> | http://www.ccmrc.ucsb.edu/
From: smith@nextone.niehs.nih.gov (Howard C. Smith) Newsgroups: comp.sys.next.programmer Subject: Interceptor Lib DOCS? Date: 20 Mar 1995 14:42:23 GMT Message-ID: <3kk48f$q5m@huron.eel.ufl.edu> Keywords: interceptor library framebuffer bitblt Whats the story with the Interceptor library these days? Any documentation forthcoming? It must be at least marginally stablized by this point, since SoftPC is rumoured to be using it, and DOOMII is as well. I want to do a do a window system port for Mesa (StepGL?) but need fast direct framebuffer access. Initial timing indicates NXImage (NXBitmapImageRep) is way too slow. Anybody sharing more info than: otool -v -t /usr/shlib/libInterceptor_s.A.shlib gives would be much appreciated! -- Howard C. Smith smith@nextone.niehs.nih.gov
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Subject: Re: Shareware Authors: credit card ordering service! Date: Mon, 20 Mar 1995 14:26:18 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950320142618.278AACUK.malc@daneel> References: <D5G0Er.5uL@crash.cts.com> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII Keywords: shareware credit card I'm interested(*) to know why the original message here wan't considered a breach of netiquette, in that it was blatant advertising... (*) i.e. I'm *interested* -- I'm not trying to stir up trouble! Clearly for some reason this message appears to have been accepted in a way that maybe others wouldn't have been. I'm wondering if this marks a shift in attitude etc. and would appreciate others' opinions. Have fun, mmalc. posn. research facilitator where institute for language speech and hearing sheffield university c/o department of computer science regent court 211 portobello street sheffield s1 4dp england vox (+44) 114 282 5594 fax (+44) 114 278 0972 email m.crawford@dcs.shef.ac.uk NeXTMail, SunMail, MIME welcome http://www.dcs.shef.ac.uk/
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.programmer Subject: Re: NeXTstep Development/Objective-c Books ?. Date: 13 Mar 1995 17:52:42 GMT Organization: Dept. of Computer Science, University of Salzburg/Austria Distribution: world Message-ID: <3k20pa$beg@jak.cosy.sbg.ac.at> References: <D58Fnq.K7F@ul.ie> <jpanicoD5A7yx.D02@netcom.com> Joe Panico (jpanico@netcom.com) wrote: > As far as I know, there is only one other book devoted to NEXTSTEP > programming. > (I'm sure someone else here can give you the name of it). Well, I can. "NeXTSTEP programming, concepts and applications", by Alex Duong Nghiem, Prentice Hall, 1993. > Recently, someone has been advertising in this group that a new NeXTSTEP > dev. book is about to go to market. Flip back through old articles in this That book is called Developing NeXTSTEP Applications. For a detailed summary feel free to contact gbacklin@MariZack.com > For ObjC, Brad Cox, the developer of ObjC, has written a couple of books. Object Oriented Programming: An Evolutionary Approach (Cox & Novobilski) Addison Wesley Other books about Objective-C: OOP & The Objective C Language, NeXT Computer Inc. Addison Wesley Objective-C Object-Oriented Programming Techniques (Pinson & Wiener) Addison Wesley ISBN 0-201-50828-1 Hope this helps! -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@fvkma.tu-graz.ac.at GNU OpenStep Development Team, Documentation Coordinator/Leader http://fvkma.tu-graz.ac.at/gnustep/gnustep.html
From: jfreeman@osgbi3.arl.mci.com (Joe Freeman) Newsgroups: comp.sys.next.programmer Subject: Replacement for HashTable in Foundation Kit Date: 20 Mar 1995 18:34:31 GMT Organization: MCI Communications Distribution: usa Message-ID: <3kkhrn$4b1@hermes.dna.mci.com> I must be missing something obvious. It seems that there is no hash table replacement in the foundation kit. The obvious choice, NSDictionary, requires a string key. How do I build a table keyed by object id instead of an NSString. Some possibilities include 1) Create an NSString from the id. 2) Add a category to NSObject that covers all the NSString methods. What do you think.
Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer From: Brian_Sullivan@Carleton.CA (Brian Sullivan) Subject: Re: Shareware Authors: credit card ordering service! Message-ID: <Brian_Sullivan.81.2F6DC212@Carleton.CA> Keywords: shareware credit card Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton.CA References: <D5G0Er.5uL@crash.cts.com> <950320142618.278AACUK.malc@daneel> Date: Mon, 20 Mar 1995 17:57:38 GMT In article <950320142618.278AACUK.malc@daneel> mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> writes: >From: mmalcolm Crawford >Subject: Re: Shareware Authors: credit card ordering service! >Date: Mon, 20 Mar 1995 14:26:18 GMT >Keywords: shareware credit card >I'm interested(*) to know why the original message here wan't considered a >breach of netiquette, in that it was blatant advertising... >(*) i.e. I'm *interested* -- I'm not trying to stir up trouble! >Clearly for some reason this message appears to have been accepted in a way >that maybe others wouldn't have been. I'm wondering if this marks a shift >in attitude etc. and would appreciate others' opinions. See this sort of thing all the time. When someone posts a commercial about a product that is not well known or is one of the few services of it's type AND related to the newsgroup, thats fine with me. But If I can get the product by looking in my local yellow pages, or it's the 200 or so message of the same type, or a 'get rich quick' message, then I flame. As an independent software developer, the idea that shch a service is availale was welcome.
From: mpaque@next.com (Mike Paquette) Newsgroups: comp.sys.next.programmer Subject: Re: HARD: how does one toggle right mouse button use? Date: 20 Mar 1995 21:05:30 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3kkqmq$ru8@news.next.com> References: <3k711f$rlf@news.tuwien.ac.at> Keywords: event_status_driver, mouse, keyboard In article <3k711f$rlf@news.tuwien.ac.at> wilkie@cslab.tuwien.ac.at (Alexander Wilkie) writes: > Does anyone (esp. the enlightened guys at NeXT) have a clue how > Preferences.app performs the trick of activating/deactivating the use of > the right mouse button programmatically? Yes. OK, OK, I'll talk... The secret magic API is: #import <drivers/event_status_driver.h> extern void NXEnableMouseButton(NXEventHandle handle, NXMouseButton button) This call configures the mouse buttons to be tied (NX_OneButton), to use the left button for menus (NX_LeftButton) and the right button for click events, or to use the right button (NX_RightButton) for menus and the left button for click events. NXMouseButton is a C enum with the values NX_OneButton, NX_LeftButton, and NX_RightButton. extern NXMouseButton NXMouseButtonEnabled(NXEventHandle handle) This call returns the current mouse button configuration. Take a look in /NextLibrary/Documentation/NextDev/ReleaseNotes/EventStatusDriver.rtf for all the gory details. -- I don't speak for NeXT, and NeXT doesn't speak for me. Fair deal... mpaque@NeXT.COM NeXT business only NeXT Mail OK mpaque@aol.com Personal E-mail ASCII Mail only, please
Newsgroups: comp.sys.next.programmer From: dfevans@bbcr.uwaterloo.ca (David Evans) Subject: Re: Black hardware microphone question: Where is the data? Message-ID: <D5rqpJ.8Lz@watserv3.uwaterloo.ca> Sender: news@watserv3.uwaterloo.ca Organization: University of Waterloo References: <3kkt38$gdt@ulowell.uml.edu> Date: Tue, 21 Mar 1995 02:24:53 GMT In article <3kkt38$gdt@ulowell.uml.edu>, Mark Becker <mbecker@neptune.cs.uml.edu> wrote: >Hello * > >Situation: Black 25 MHz '030 cube, NS 2.1, everything runs fine. > >After spelunking the Librarian and doing some guessing, I've got software that >lets me record and play back audio from the microphone. It's really bare- >bones.. but does get data in and out of the machine. > >But where is it? There is a structure containing information on the acquired >audio.. but I'm not sure where the actual data starts. I've looked at the >information.. and there seems to be some garbage at the front before the A/D >converter output. I think. > I'm not sure whether this applies to 2.1, but the description for SNDSoundStruct should contain everything you need--it worked for me under 3.0. -- David Evans dfevans@bbcr.uwaterloo.ca Computer/Synth Junkie "Default is the value selected by the University of Waterloo composer overridden by your command." Waterloo, Ontario, Canada - Roland TR-707 Manual
Belgium.EU.net!EU.net!howland.reston.ans.net!swrinde!gatech!newsxfer.itd.umich.edu!news1.oakland.edu!vtc.tacom.army.mil!ulowell.uml.edu!neptune.cs.uml.edu!mbecker From: mbecker@neptune.cs.uml.edu (Mark Becker) Newsgroups: comp.sys.next.programmer Subject: Black hardware microphone question: Where is the data? Date: 20 Mar 1995 21:46:16 GMT Organization: Only slightly. Message-ID: <3kkt38$gdt@ulowell.uml.edu> Summary: Where do the sound routines store recorded data? Hello * Situation: Black 25 MHz '030 cube, NS 2.1, everything runs fine. After spelunking the Librarian and doing some guessing, I've got software that lets me record and play back audio from the microphone. It's really bare- bones.. but does get data in and out of the machine. But where is it? There is a structure containing information on the acquired audio.. but I'm not sure where the actual data starts. I've looked at the information.. and there seems to be some garbage at the front before the A/D converter output. I think. Your time appreciated - Regards, Mark +----------------------------------------+--------------------------+ | Mark Becker <mbecker@cs.uml.edu> | #include <std.disclaimer>| +----------------------------------------+--------------------------+
Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!spool.mu.edu!usenet.eel.ufl.edu!news.mathworks.com!news.alpha.net!mvb.saic.com!eskimo!daedulus From: daedulus@eskimo.com (Erik Hermansen) Subject: Re: Shareware Authors: credit card ordering service! Message-ID: <D5rBo3.3no@eskimo.com> Keywords: shareware credit card Sender: usenet@eskimo.com (News User Id) Organization: Eskimo North (206) For-Ever References: <D5G0Er.5uL@crash.cts.com> <950320142618.278AACUK.malc@daneel> Date: Mon, 20 Mar 1995 21:00:02 GMT In article <950320142618.278AACUK.malc@daneel>, mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> wrote: >I'm interested(*) to know why the original message here wan't considered a >breach of netiquette, in that it was blatant advertising... ... Hmmm. I myself am not one that jumps on people who post advertisements. I think there are two things that differentiate this post from others. 1. It wasn't obnoxious. 2. It was uniquely targeted towards programmers who would be looking for ways to sell their programs. Of course, the authoritarians will say that no ads whatsoever should be present on any newsgroup, but I think that some ads can be appropriate. What about the job offers, which are ads also? I don't know what the "Official" rules are but for myself, I do not object to post that follow the above two guidelines. -- ***************************************************************************** I've encoded your entire life with all of your thoughts and experiences into a fractal equation. The bag of pretzels you'll be looking for tonight will be under the couch seat.-----------------Erik Hermansen (daedulus@eskimo.com)
From: mek@acs.bu.edu (Mark E. Kern) Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Subject: Re: Shareware Authors: credit card ordering service! Date: 21 Mar 1995 03:46:21 GMT Organization: Boston University Message-ID: <mek-2003952246160001@ppp-86-30.bu.edu> References: <D5G0Er.5uL@crash.cts.com> <950320142618.278AACUK.malc@daneel> <D5rBo3.3no@eskimo.com> > Of course, the authoritarians will say that no ads whatsoever should be > present on any newsgroup, but I think that some ads can be appropriate. > What about the job offers, which are ads also? I don't know what the > "Official" rules are but for myself, I do not object to post that follow > the above two guidelines. You can't blame people for being confused, various FAQs on news.answers state that some commercial advertising is ok, so long as it is short, avoids spamming, is relevant to the group, and doesn't raise hackles. Yet we have lots of net-bullys who get kicks slamming everything remotely construable as commercial. I think job posting are fine, for example. As well as the "our web page is up, and you might be interested" messages. Markus
Belgium.EU.net!EU.net!howland.reston.ans.net!spool.mu.edu!torn!news.bc.net!newsserver.sfu.ca!darwin!ken From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: help with FlatFileDataSource example Date: 20 Mar 95 20:27:01 GMT Organization: Simon Fraser University Message-ID: <ken.795731221@darwin> I have found a couple of bugs in the FlatFileDataSource example that comes with EOF that I can't seem to squash. Perhaps you can help. First: In TableDataSource.m method -dealloc; is implemented. Problem is, it never gets called. Try putting a AlertPanel in dealloc: it will never run. Why doesn't it get called when TableDataSource is "autoreleased". It is told to autorelease with the line [masterSource autorelease] in FlatFileDataSource.m Second: In TableDataSource.m method (id <EOQualifiableDataSources>)dataSourceQualifiedByKey:(NSString *)key there is a line that adds the new slave to the NSArray detailSources: [detailSources addObject:detailSource]; Problem is, after this line, detailSources is clobbered. Run gdb on this and check detailSources before and after the above line. Before the line, asking gdb to "print [detailSources count]" returns 0. After, the same "print" returns "method does not respond to selector". Let me know if you can help. The reason I ask is that my DataSource is based on this example and I am running up against the same problems in my code. Thanks! - Ken
From: nelsonb@atlas.mathcs.carleton.edu (Blaine M Nelson) Newsgroups: comp.sys.next.programmer Subject: Prolog & C Date: 21 Mar 1995 00:21:26 GMT Organization: Carleton College, Northfield, MN, USA Message-ID: <3kl666$qfu@chuangtsu.acns.carleton.edu> Keywords: prolog Does anyone out there have a version of Prolog compiled for a NeXT that will create Prolog object files that can be called from within a C program. I've tried compiling SWI-Prolog, but I'm getting compilation errors with the pl-os.c. Blaine Nelson
From: rmahoney@netusa.net Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer Subject: Re: Shareware Authors: credit card ordering service! Date: 21 Mar 1995 00:00:54 GMT Organization: 2Rud Software Message-ID: <3kl4vm$cs5@alpha.netusa.net> References: <D5G0Er.5uL@crash.cts.com> <950320142618.278AACUK.malc@daneel> In <950320142618.278AACUK.malc@daneel>, mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> writes: >I'm interested(*) to know why the original message here wan't considered a >breach of netiquette, in that it was blatant advertising... You're right, this should have been posted to .announce. BUT, I don't mind as long as it is not the kind of message that gets posted twice a month. A one-shot deal is okay with me. It served a purpose of letting people know of a service. Robert Mahoney Have trouble spelling? 2Rud Software and Check out SpellGuard Consulting An as-you-type spell checker
From: mrothste@galaxy.csc.calpoly.edu (Mont Egan Rothstein) Newsgroups: comp.sys.next.programmer Subject: Catagories for Class Clusters? Date: 20 Mar 1995 23:38:24 -0800 Organization: Cal Poly, State University Message-ID: <3klvpg$5s0@galaxy.csc.calpoly.edu> NNTP-Posting-User: mrothste I have written a couple of methods for the NSScanner class cluster that are sorely missing from the spec/implementation. My question is, is it possible to do a catagory for a class cluster? It occured to me that because you don't know what class you will actually get back (ex: NSConcreteString for a NSString Class Cluster) the catagory might not apply. I guess, if you know all the internal classes you could implement a catagory for each but that's rather ugly. Does anyone know, can this be done, and if so is there a trick or does it just work? -Mont Dover Pacific Computing Inc.
From: falkman@hegel2.cs.chalmers.se.u.cs.chalmers.se (G|ran Falkman) Newsgroups: comp.sys.next.programmer Subject: slider for setting ranges Date: 21 Mar 1995 11:59:07 GMT Organization: Chalmers University of Technology Message-ID: <3kmf2b$b3f@nyheter.chalmers.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I want to use sliders for setting a range values. You can of course use two sliders for this: one for setting the lower limit and another one for the upper limit. The problem is that I don't want to use two sliders. Instead I want to use one slider with two knobs. If you have seen such a slider, or perhaps implemented one youself, or at least have some idea how it can be done, please contact me. I need all advice and suggestions I can get... Thanks, Göran Falkman
From: arrouye@petole.imag.fr (Yves Arrouye) Newsgroups: comp.sys.next.programmer Subject: __floatdisf instead of __floatdidf? How to correct that one? Date: 21 Mar 1995 12:19:07 GMT Organization: IMAG, Grenoble, France Distribution: world Message-ID: <3kmg7r$kq6@imag.imag.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hello, I am posting a bug report I sent to NeXT using NS 3.2. Apparently, the linker cannot resolve a __floatdisf symbol for m68k architecture, but there is a __floatdidf one, too. Maybe a typing error in the supplied cc/libraries? I tried to change the object file and relink it with ld -r myFile.o -i__floatdisf:__floatdidf newFile.o but when linked I get a message about a bad address (or was it a page?) for indirect symbole __floatdisf. If someone could help me, I would be very grateful! (And if you have the occasion to test it under 3.3 and tell me if it works or not... If it don't, then another bug report to submit?!) Thanks, Yves. [Bug report and source follow.] Hello, There is a severe bug (unresolved symbol __floatdisf) when linking the following class under m68k architecture (NS 3.2). Maybe this is simply a typing error (the 's' and 'd' keys are close, and the __floatdidf symbol is correctly defined), but I can't find a way to go around this problem and I need this class for my development. I hope you can help me soon, Yves Arrouye. (Following is a shar archive of the class files) #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create the files: # ContainerObject.h # ContainerObject.m # This archive created: Tue Mar 21 13:11:54 1995 export PATH; PATH=/bin:$PATH if test -f 'ContainerObject.h' then echo shar: will not over-write existing file "'ContainerObject.h'" else cat << \SHAR_EOF > 'ContainerObject.h' /* * ContainerObject.h: interface file for the container class. * * Disclaimer: this a really rude implementation, tested at a minimal level. * Don't blame me for it! better send patches... * * Copyright (C) 1995, Yves Arrouye <Yves.Arrouye@imag.fr> * * @(#)ContainerObject.h 1.0 (Yves Arrouye) 3/1/95 * */ #ifndef _SEVY_CONTAINEROBJECT_H #define _SEVY_CONTAINEROBJECT_H /* * Copyright (C) 1995, Yves Arrouye. * All rights reserved. * * This code and its accompagnying documentation files can be redistributed * without prior permission provided that the following conditions are * fulfilled: * * 1. The copyright notices on the code are kept unmodified. * * 2. The code, or part of itself, or the accompagnying documentation, * is not modified. * * 3. Whenever the code, or part of the code, is used for any purpose, the * author of this code is acknowledge (for example in accompagnying * documentation if the code is included in a software product). * * 4. Modified portions of this code are submitted to the author, who will * coordinate their integration in the code if appropriate. * * Please do not hesitate to send bug reports, submissions, enhancements and * any form of support you like to the author. * */ #import <objc/Object.h> @interface ContainerObject:Object { union { long long intValue; double doubleValue; void* pointerValue; } value; struct _containerobject_flags { unsigned isInt:1; unsigned isDouble:1; unsigned isPointer:1; unsigned isUnsigned:1; } cFlags; } - setBoolValue:(BOOL)aValue; - setCharValue:(char)aValue; - setDoubleValue:(double)aValue; - setFloatValue:(float)aValue; - setIntValue:(int)aValue; - setLongValue:(long)aValue; - setLongLongValue:(long long)aValue; - setPointerValue:(void*)aValue; - setShortValue:(short)aValue; - setUnsignedCharValue:(unsigned char)aValue; - setUnsignedIntValue:(unsigned int)aValue; - setUnsignedLongValue:(unsigned long)aValue; - setUnsignedLongLongValue:(unsigned long long)aValue; - setUnsignedShortValue:(unsigned short)aValue; - (BOOL)boolValue; - (char)charValue; - (double)doubleValue; - (float)floatValue; - (int)intValue; - (long)longValue; - (long long)longLongValue; - (void*)pointerValue; - (short)shortValue; - (unsigned char)unsignedCharValue; - (unsigned int)unsignedIntValue; - (unsigned long)unsignedLongValue; - (unsigned long long)unsignedLongLongValue; - (unsigned short)unsignedShortValue; - (int)compare:(ContainerObject*)aContainer; @end #endif SHAR_EOF fi # end of overwriting check if test -f 'ContainerObject.m' then echo shar: will not over-write existing file "'ContainerObject.m'" else cat << \SHAR_EOF > 'ContainerObject.m' /* * ContainerObject.m: implementation file for the container class. * * Disclaimer: this a really rude implementation, tested at a minimal level. * Don't blame me for it! better send patches... * * Copyright (C) 1995, Yves Arrouye <Yves.Arrouye@imag.fr> * */ char _containerobject_id[] = "@(#)ContainerObject.m 1.0 (Yves Arrouye) 3/1/95"; /* * Copyright (C) 1995, Yves Arrouye. * All rights reserved. * * This code and its accompagnying documentation files can be redistributed * without prior permission provided that the following conditions are * fulfilled: * * 1. The copyright notices on the code are kept unmodified. * * 2. The code, or part of itself, or the accompagnying documentation, * is not modified. * * 3. Whenever the code, or part of the code, is used for any purpose, the * author of this code is acknowledge (for example in accompagnying * documentation if the code is included in a software product). * * 4. Modified portions of this code are submitted to the author, who will * coordinate their integration in the code if appropriate. * * Please do not hesitate to send bug reports, submissions, enhancements and * any form of support you like to the author. * */ #import "ContainerObject.h" #define RETURN_CONTAINER_TYPED_VALUE(type, cint, cdouble, cpointer) \ if (cFlags.isInt) { \ return (type) ((cint) value.intValue); \ } else if (cFlags.isDouble) { \ return (type) ((cdouble) value.doubleValue); \ } else { \ return (type) ((cpointer) value.pointerValue); \ } @interface ContainerObject(Private) - (struct _containerobject_flags)_containerObjectFlags; @end @implementation ContainerObject(Private) - (struct _containerobject_flags)_containerObjectFlags { return cFlags; } @end @implementation ContainerObject - init { [super init]; return [self setIntValue:0]; } - setBoolValue:(BOOL)aValue { cFlags.isDouble = cFlags.isPointer = 0; cFlags.isInt = cFlags.isUnsigned = 1; value.intValue = aValue; return self; } - setCharValue:(char)aValue { cFlags.isDouble = cFlags.isPointer = cFlags.isUnsigned = 0; cFlags.isInt = 1; value.intValue = aValue; return self; } - setDoubleValue:(double)aValue { cFlags.isInt = cFlags.isPointer = 0; cFlags.isDouble = 1; value.doubleValue = aValue; return self; } - setFloatValue:(float)aValue { cFlags.isInt = cFlags.isPointer = 0; cFlags.isDouble = 1; value.doubleValue = aValue; return self; } - setIntValue:(int)aValue { cFlags.isDouble = cFlags.isPointer = cFlags.isUnsigned = 0; cFlags.isInt = 1; value.intValue = aValue; return self; } - setLongValue:(long)aValue { cFlags.isDouble = cFlags.isPointer = cFlags.isUnsigned = 0; cFlags.isInt = 1; value.intValue = aValue; return self; } - setLongLongValue:(long long)aValue { cFlags.isDouble = cFlags.isPointer = cFlags.isUnsigned = 0; cFlags.isInt = 1; value.intValue = aValue; return self; } - setPointerValue:(void*)aValue { cFlags.isDouble = cFlags.isInt = 0; cFlags.isPointer = 1; value.pointerValue = aValue; return self; } - setShortValue:(short)aValue { cFlags.isDouble = cFlags.isPointer = cFlags.isUnsigned = 0; cFlags.isInt = 1; value.intValue = aValue; return self; } - setUnsignedCharValue:(unsigned char)aValue { cFlags.isDouble = cFlags.isPointer = 0; cFlags.isInt = cFlags.isUnsigned = 1; value.intValue = aValue; return self; } - setUnsignedIntValue:(unsigned int)aValue { cFlags.isDouble = cFlags.isPointer = 0; cFlags.isInt = cFlags.isUnsigned = 1; value.intValue = aValue; return self; } - setUnsignedLongValue:(unsigned long)aValue { cFlags.isDouble = cFlags.isPointer = 0; cFlags.isInt = cFlags.isUnsigned = 1; value.intValue = aValue; return self; } - setUnsignedLongLongValue:(unsigned long long)aValue { cFlags.isDouble = cFlags.isPointer = 0; cFlags.isInt = cFlags.isUnsigned = 1; value.intValue = aValue; return self; } - setUnsignedShortValue:(unsigned short)aValue { cFlags.isDouble = cFlags.isPointer = 0; cFlags.isInt = cFlags.isUnsigned = 1; value.intValue = aValue; return self; } - (BOOL)boolValue { if (cFlags.isPointer) { return value.pointerValue != 0; } else if (cFlags.isDouble) { return value.doubleValue != 0; } else { return value.intValue; } } - (char)charValue { RETURN_CONTAINER_TYPED_VALUE(char, int, int, int); } - (double)doubleValue { RETURN_CONTAINER_TYPED_VALUE(double, double, double, int); } - (float)floatValue { RETURN_CONTAINER_TYPED_VALUE(float, float, float, int); } - (int)intValue { RETURN_CONTAINER_TYPED_VALUE(int, int, int, int); } - (long)longValue { RETURN_CONTAINER_TYPED_VALUE(long, long, long, long); } - (long long)longLongValue { RETURN_CONTAINER_TYPED_VALUE(long long, long long, long long, long); } - (short)shortValue { RETURN_CONTAINER_TYPED_VALUE(short, short, short, int); } - (void*)pointerValue { RETURN_CONTAINER_TYPED_VALUE(void*, unsigned int, unsigned int, void*); } - (unsigned char)unsignedCharValue { RETURN_CONTAINER_TYPED_VALUE(unsigned char, unsigned int, unsigned int, unsigned int); } - (unsigned int)unsignedIntValue { RETURN_CONTAINER_TYPED_VALUE(unsigned int, unsigned int, unsigned int, unsigned int); } - (unsigned long)unsignedLongValue { RETURN_CONTAINER_TYPED_VALUE(unsigned long, unsigned long, unsigned long, unsigned long); } - (unsigned long long)unsignedLongLongValue { RETURN_CONTAINER_TYPED_VALUE(unsigned long long, unsigned long long, unsigned long long, unsigned int); } - (unsigned short)unsignedShortValue { RETURN_CONTAINER_TYPED_VALUE(unsigned short, unsigned short, unsigned short, unsigned int); } /* * Comparison should not be done on different types. Nevertheless, we try to * do our best... * */ - (int)compare:(ContainerObject*)aContainer { struct _containerobject_flags oFlags = [aContainer _containerObjectFlags]; if (cFlags.isDouble || oFlags.isDouble) { double aValue = (cFlags.isDouble ? value.doubleValue : [self doubleValue]); double bValue = [aContainer doubleValue]; return aValue == aValue ? 1 : (aValue < bValue ? -1 : 1); } else if (cFlags.isPointer || oFlags.isPointer) { void* aValue = (cFlags.isPointer ? value.pointerValue : [self pointerValue]); void* bValue = [aContainer pointerValue]; return aValue == bValue ? 1 : (aValue < bValue ? -1 : 1); } else { long long aValue = (cFlags.isInt ? value.intValue : [self longLongValue]); long long bValue = [aContainer longLongValue]; return aValue == bValue ? 1 : (aValue < bValue ? -1 : 1); } } @end SHAR_EOF fi # end of overwriting check # End of shell archive exit 0 -- Advocates for the C++ school claim that a well designed Yves Arrouye program does not need the extra flexibility (a lie), Yves.Arrouye@imag.fr while advocates for the Objective-C school claim that (33) 76 57 48 64 the errors are no problem in practice (another lie). NeXT Mail
Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.ms-windows.programmer.misc,comp.os.os2.programmer.misc,comp.sys.amiga.programmer,comp.sys.mac.programmer,comp.sys.next.programmer From: dbryant@netcom.com (David K. Bryant) Subject: Re: Shareware Authors: credit card ordering service! Message-ID: <dbryantD5su7M.2D6@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <D5G0Er.5uL@crash.cts.com> <3k9f3p$dm1@uwm.edu> <3kc7do$7qc@ixnews1.ix.netcom.com> <D5oKp8.9q0@crash.cts.com> <3kj198$9lj@gryphon.phoenix.net> Date: Tue, 21 Mar 1995 16:38:10 GMT Sender: dbryant@netcom12.netcom.com balkum@phoenix.phoenix.net (Stephen Balkum) writes: >> >>That's IF you have a retail storefront. Getting that deal for a mail-order >>setup, especially one involving software, is almost impossible. Banks >>won't touch you with a ten-foot pole. Outfits like CardService Int'l will set >>you up, but they'll insist on electronic authorization... which requires the >>purchase of one of those "authorization terminals" for about $1000. A THOUSAND BUCKS!!! What a rip-off. I can sell you a terminal and printer for $400. This is for refurb'd equipment. New equipment would only be about $550-$600. David Bryant dbryant@netcom.com DM Trading
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: Replacement for HashTable in Foundation Kit Message-ID: <1995Mar21.164329.6087@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3kkhrn$4b1@hermes.dna.mci.com> Distribution: usa Date: Tue, 21 Mar 1995 16:43:29 GMT Joe Freeman writes > I must be missing something obvious. It seems that there is no hash table > replacement in the foundation kit. The obvious choice, NSDictionary, > requires a string key. How do I build a table keyed by object id instead > of an NSString. Some possibilities include > > > 1) Create an NSString from the id. > > 2) Add a category to NSObject that covers all the NSString methods. > > What do you think. Actually you can use any object as a key in an NSDictionary (despite the fact that the NSDictionary methods all are prototyped to take a NSString). The key must define both -hash and -isEqual: as documented in both the NSObject and Object classes. The default behavior in both of these cases is to hash on and compare the id. It's really that easy. I'm using a NSDictionary with an Object based key and an NSObject based object in an IB Palette. Also, I think the final OpenStep specification has the NSDictionary methods to take keys of any class (i.e. no cast). Happy hashing... -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Newsgroups: comp.sys.next.programmer From: pelletk@il.us.swissbank.com (Ken Pelletier) Subject: Re: Replacement for HashTable in Foundation Kit Message-ID: <1995Mar21.164503.6146@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3kkhrn$4b1@hermes.dna.mci.com> Distribution: usa Date: Tue, 21 Mar 1995 16:45:03 GMT Joe Freeman writes > I must be missing something obvious. It seems that there is no hash table > replacement in the foundation kit. The obvious choice, NSDictionary, > requires a string key. How do I build a table keyed by object id instead > of an NSString. Some possibilities include > > > 1) Create an NSString from the id. > > 2) Add a category to NSObject that covers all the NSString methods. > > What do you think. I haven't yet found a situation where using an instance of a class other than NSString _doesn't_ work as a key for an NSDictionary. In fact, if you look at the OpenStep spec, NSDictionary keys are typed as id, rather than NSString. NSDictionary uses a hash table internally, and therefore apparently depends on the -hash implementation of the object used as a key. At the top of both hierarchies, Object and NSObject hash on id. -- Ken Pelletier NiKA Software | ken@nika.com Registered NEXTSTEP Consultant | pelletk@swissbank.com NiKA Software | 1207 W. Newport Ave. | Chicago, IL 60657 |
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: Catagories for Class Clusters? Message-ID: <1995Mar21.164536.6203@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3klvpg$5s0@galaxy.csc.calpoly.edu> Date: Tue, 21 Mar 1995 16:45:36 GMT Mont Egan Rothstein writes > I have written a couple of methods for the NSScanner class cluster > that are sorely missing from the spec/implementation. My question > is, is it possible to do a catagory for a class cluster? It occured > to me that because you don't know what class you will actually get > back (ex: NSConcreteString for a NSString Class Cluster) the > catagory might not apply. I guess, if you know all the internal > classes you could implement a catagory for each but that's rather > ugly. > > Does anyone know, can this be done, and if so is there a trick or > does it just work? > You have to define the category on one of the public classes in the cluster. If your category doesn't apply to NSConcreteString (i.e. NSString), then maybe you should make it a category of NSMutableString instead of NSString. Please post details if you have a situation where the category is applicable to one private subclass of NSString and not to another. -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
From: droux@info.isbiel.ch (Nicolas Droux) Newsgroups: comp.sys.next.programmer Subject: Transferring doubles with XDR under NEXTSTEP/Intel Date: 21 Mar 1995 17:13:56 GMT Organization: Biel School of Engineering, CH-2501 Biel, Switzerland Distribution: world Message-ID: <3kn1gk$b6e@vega.info.isbiel.ch> Hi there, I'm developing distributed applications for various architectures using XDR and it seems that NEXTSTEP/Intel cannot encode and decode the double data format. Transfer is correct for example between NEXTSTEP/Motorola - Solaris 2.4/SPARC NEXTSTEP/Motorola - Linux/Intel NEXTSTEP/Motorola - Transputer Linux/Intel - Solaris 2.4/SPARC .. But the following fail: NEXTSTEP/Intel - Solaris 2.4/SPARC NEXTSTEP/Intel - NEXTSTEP/Motorola NEXTSTEP/Intel - Linux/Intel NEXTSTEP/Intel - Paragon OSF/1 (i860) NEXTSTEP/Intel - Transputer After some further tests, I noticed that the two 32 bits parts of the double are not placed in the correct order. For instance, a double should be coded normally as 0x2B079E6E CD1F74C0 but is coded after transfer by XDR to 0xCD1F74C0 2B079E6E. Is this a "well known" problem with NEXTSTEP/Intel ? Thanks, -- _________________________________________________________________ Nicolas Droux Engineering School of Biel-Bienne Computer Science Dpt Rue de la Source 21 Phone: +41 32 266 314 CH-2501 Biel-Bienne, Switzerland FAX: +41 32 266 523 MIME/NeXTMail Welcomed
From: klingler@mack.rt66.com (Dave Klingler) Newsgroups: comp.sys.next.programmer Subject: Can anyone send me some NXChunk code? Date: 23 Mar 1995 16:48:10 -0700 Organization: Engineering International, Inc. Distribution: usa Message-ID: <3kt1bq$f51@mack.rt66.com> I'm having trouble figuring out exactly how to use NXChunk from the docs. Can anyone send me some working code examples that use a chunk structure and one of the NXChunkMalloc() variations? I feel pretty silly, but I'm doing something wrong. Thanks! Dave
From: plongsi@falcon.inetnebr.com (Pohl Longsine) Newsgroups: comp.sys.next.programmer Subject: Re: HELP:jpeg for NeXT Date: 24 Mar 1995 21:16:17 GMT Organization: Synergy Communication Inc. Message-ID: <3kvcr1$n8e@legba.synergy.net> References: <D4Hpxn.B8p@hkuxb.hku.hk> <1995Mar17.093535.17887@ares.fdn.fr> Gery_Divry (gery@ares.fdn.fr) wrote: : In article <D4Hpxn.B8p@hkuxb.hku.hk> hsloong@srgcentre (Loong Ho Sang) : writes: : > Does anybody know where I can get the jpeg and tiff2jpeg program : > for NeXT? : you can open a terminal and type : tiffutil -jpeg myTiff.tiff -out myJPEGTiff.tiff : [munch] Better yet, get OmniImageFilter.service and OmniImage.app (a previewer that can save to any of the filter-supported types [buttloads]). You can get it from HTTP://www.omnigroup.com/ and maybe via ftp from FTP://ftp.omnigroup.com/. The newest OmniImageFilter.service (which fixes some problems viewing images with transparencies over the web) from FTP://ftp.pages.com. It will make your jpeg viewing and converting painless. Besides being painless, it is cool -- it's a NeXTstep service, after all, so it integrates jpg handling into any application that accepts TIFFs. -- ____/| | Pohl Longsine, OpenStep Software Developer \ o.O| GPF! | "I don't do Windows." =(_)= CTLALTDLT! | plongsi@inetnebr.com (Internet Nebraska) U (Bill Gates, The Cat) | NeXT & MIME mail formats accepted.
Newsgroups: comp.sys.next.software,comp.sys.next.misc,comp.sys.next.programmer From: Fabien_Roy@free.fdn.org (Fabien Roy) Subject: lsof does not print on HPPA Message-ID: <1995Mar24.212720.2013@free.fdn.org> Sender: news@free.fdn.org Organization: Fabien Roy Consultant, Paris, France Date: Fri, 24 Mar 1995 21:27:20 GMT I just get the latest CERT lsof_3.13 from the archives. It compiles fat (m68k and hppa). It does work on m68k (NS 3.3) and print nothing on hppa (NS 3.2). Any clues? Quote from lsof 3.13 README > NeXTSTEP 2.1, 3.0, 3.1 and 3.2 > ============================== > > Virtual memory header files that allow lsof to display text > references were derived from the contents of /usr/include/vm > of NeXTSTEP 2.0. NeXT did not ship the virtual memory header > files with NeXTSTEP 3.1 or 3.2. > > The NeXTSTEP revision of lsof 3 has been tested on NeXT > hardware and PC's. > > Stuart Staniford-Chen <stanifor@cs.ucdavis.edu> reports that > lsof 3 builds and works under NeXTSTEP 3.0. > > Andreas Stolcke <stolcke@ICSI.Berkeley.EDU> reports that lsof > 3.09 builds and works under NeXTSTEP 2.1, if > ``-DKERNEL_FEATURES'' is added to the compiler flags in the > Makefile. > BTW why does NeXT stops shipping the virtual memory header /usr/include/vm Thanks Fabien -- --------------------------------------------------------------------- Fabien_Roy@free.fdn.org (NextMail/MIME accepted) Fabien Roy Consultant NEXTSTEP/OPENSTEP/EOF Consultant, SYBASE DBA 10 rue de la DEFENSE 93100 MONTREUIL, France Tel: 33 1 45 28 32 23 Fax: 33 1 45 28 32 23
From: don@darth.byu.edu (Don Yacktman) Newsgroups: comp.sys.next.programmer Subject: Re: SUMMARY: Dynamic Loading Date: 25 Mar 1995 10:38:45 GMT Organization: Brigham Young University, Provo UT USA Distribution: world Message-ID: <3l0rrl$8nl@jan.et.byu.edu> References: <9503222042.AA17888@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes ) My question was: ) > I've fetched and read NXApp's Dynamic Loading, and there ) > are some things I do not understand/agree with. ) > Specifically, I don't understand the claim that such a ) > program will launch faster, and a few other things. If ) > you are interested, please ask me for the message I sent ) > to the author of the article (who has not replied). ) ) I've received a few replies, mainly requests for a copy of that ) message, but nobody could explain *why* loading a large program ) takes longer: ) - VM mapping is mapping, not loading, and is very cheap (how cheap?); I don't know how cheap, but you are right. The mapping should be fast. Paging the code in is another question entirely, though. ) - how much does it take to initialise the Obj-C runtime, and does it ) do that in lazy increments or all in one go? The +initialize methods are called lazily as far as I know. The rest I can't say... ) I would think that, after mapping is done, an application that has ) been split up for dynamically loadable modules which are then ) statically linked anyway, should not take longer to launch than ) the application without those modules. I think it may have to do with how the application was linked. Say there are 15 non-NeXT objects linked into the app, and 5 of them are needed to initialize the app and get it running before the event loop starts running (ie, in -appDidInit: or some other similar place). Now, the other 10 aren't used unless the user brings forward certain panels. If these are linked into the app like this (U=used, N=not used): UNUUNUUNUUNUUNU You'll see that the objects that are needed are interleaved in a worst case fashion. Depending upon how big they are, etc., you have to page in a *lot* more of the object code than you actually use. If you were to off load the "U" objects into bundles, dynamically loaded, then you solve the problem in a very easy fashion. The extra code is loaded when it is needed and not before. Note that if the first "U" object takes up, say, 7/8 page of VM and the next object takes up 1 1/4 pages, then you have to load *3* pages (if the first "U" was on a page boundary) instead of *2*. Repeat for all objects, and you could end up adding 100% to the app's load time if you have enough objects in it (and their respective sizes)! That is worst case--reality is that you don't take a hit anywhere near that big. And dynamic loading isn't the best answer to this particular problem. The answer is to take more control of the link order of the application. This may be done by editing the Makefiles by hand to specify particular orders for the object files to be linked together in, and using subprojects to group certain objects together. Then you can, in an ad-hoc way, get a link order like this: NNNNNUUUUUUUUUU That one will load a lot faster, obviously. This trick is determining which order works best for your app. This is something you do after everything is debugged and you're tuning the app for release to the world. Doing it before would waste your time since the optimal order could change during the process of debugging. Anyway, this is one possible answer to your question, and I doubt it is the only factor. However, it is significant enough to worry about it your app is huge and has a lot of different classes in it. -- Later, -Don Yacktman Don_Yacktman@byu.edu
Newsgroups: comp.sys.next.programmer From: cananian@bird.princeton.edu (C. Scott Ananian) Subject: NeXT 68k Assembly Message-ID: <1995Mar24.003043.26821@Princeton.EDU> Summary: I'm puzzled and need help! Originator: news@hedgehog.Princeton.EDU Sender: news@Princeton.EDU (USENET News System) Organization: Princeton University Date: Fri, 24 Mar 1995 00:30:43 GMT Help! I'm trying to port some 68k assembly code from HP-UX to a NeXT system. I've got mot2mit to convert most of the formatting problems so that the NeXT assembler knows what the HP-UX assembler was understanding, but there are still some formatting problems I can't figure out. "man as" doesn't seem to help *at all*. For example, in the source: mov.l 20(%a6),%d0 gets mashed into movel a6@20,d0 so the NeXT assembler can understand it, but I can't figure out (nor can mot2mit) what lea.l ([8,%a6],%d0.l*4),%a0 should turn into, or what mov.l ([8.%sp]),%d1 should be! I know lea.l (8,%a0,%d0.l*8),%a0 should become lea a0@(8,d0:l:8),a0 but am puzzled by lea.l ([_t2],%d0.l*8,8), %a5 (where _t2 is a label in the data space)! Can somebody help me! Please respond via e-mail, as I don't frequent this group; and, besides, e-mail is quicker. Maybe post it, too, in case others are interested. Thanks! --Scott -.-. .-.. .. ..-. --- .-. -.. ... -.-. --- - - .- -. .- -. .. .- -. C. Scott Ananian: cananian@princeton.edu/ Declare the Truth boldly and 64 Holder Hall, Rockefeller College / without hindrance. Princeton University /META-PARRESIAS AKOLUTOS:Acts 28:31 (609) 258-9126 / According to Voltaire: PO Box 1318, Princeton, NJ 08544 / "A witty saying proves nothing" '`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <pb@next.oasa.cz> From: Petr Bulanek <pb@next.oasa.cz> Message-ID: <9503241533.AA02823@colorado> Date: Fri, 24 Mar 95 16:33:31 +0100 Subject: Re: C threads problems Sonja Schellenberg writtes: >I have a NEXTSTEP client task that makes a connection to a NEXTSTEP server >task >and sends strings via the distributed objects mechanism (Objective-C message). >How can I make the connection back from the server task to send strings to the >client which is a cthread. The server task wants an id descriptor to make up a >proxy to the client, but the cthread id is not working (bus error). >What can I do? >Sonja Schellenberg, Schellenberg@rz.fh-frankfurt.d400.de Hi Sonja, First what I can recomend you is to read NeXT Developer Release notes. (I use NeXT Dev. 3.2 and I found there a few helpful information). Second, I supouse that you create multi thread application, what is the same what I do. If you call other thread (without using "oneway") you can't call back because of deadlock. Use "oneway" if possible, but you still have to prepared your client for callback. (run your client's connection using runFromAppKit or other run????) If you have still problem send me some more details (part of your code). bye Petr
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: SUMMARY: Dynamic Loading Date: 24 Mar 1995 17:51:57 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3kv0rt$ac2@news.next.com> References: <9503222042.AA17888@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes > My question was: > > I've fetched and read NXApp's Dynamic Loading, and there > > are some things I do not understand/agree with. > > Specifically, I don't understand the claim that such a > > program will launch faster, and a few other things. If > > you are interested, please ask me for the message I sent > > to the author of the article (who has not replied). > > I've received a few replies, mainly requests for a copy of that message, but > nobody could explain *why* loading a large program takes longer: I don't have the article here but it may have been referring to the time consumed by loading NIB files. Granted, a good design has NIB files loaded lazily. However, putting the NIB's in bundles sort of guarantees this. A bundle-laden app will certainly have a smaller main executable. This may help speed up launch times. If you're trying to make your apps launch faster, you should focus on lazy instantiation of objects and lazy loading of NIB files, whether you are loading them from bundles, or not. Let me know if you'd like to see some examples of this technique... -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: How to create >2 radio buttons with Iinterface Builder? Date: 25 Mar 1995 10:49:38 GMT Organization: Total System Software Distribution: world Message-ID: <3l0sg2$1bd@tssslab.TotSysSoft.com> References: <3kt2u0$ts7@synergy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Grabbing the top or bottom grab-point of a 'Cell' based object, such as a Button (of any kind), TextField, or Form, and holding Alt while dragging it outwards or inwards (right-Alt for Intel, I understand) will change the COUNT of the individual cells in the object. If it was a TextField or Button to begin with, it will be converted to a matrix. Grabbing the SIDE grab-point holding Alt- while dragging sideways will alter the count as well, increasing or decreasing the number in the row(s). Grabbing a corner grab-point, holding Alt- while dragging diagonally will in(de)crease rows AND columns. In article <3kt2u0$ts7@synergy.net> plongsi@falcon.inetnebr.com (Pohl Longsine) writes: }~ From IB.app's online help, the section entitled "Power Tips." (version }~ 457 of Interface Builder): }~ }~ Create a row or column of objects }~ Click object, then Alternate-drag one of its resize buttons. }~ }~ I tried it on the radio buttons. Works as per documentation. }~ }~ Operator (root@terra) wrote: }~ : I recently needed to create a group of eight radio buttons. }~ : While cutting and pasting the basic two button set is quite simple }~ : their seems to be know way to graphically add additional buttons to }~ : the Matrix.
From: dkoski@sun34.cs.wisc.edu (David Koski) Newsgroups: comp.sys.next.programmer Subject: Re: SUMMARY: Dynamic Loading Date: 25 Mar 1995 17:55:29 GMT Organization: U of Wisconsin CS Dept Message-ID: <3l1leh$s1h@spool.cs.wisc.edu> References: <9503222042.AA17888@flexus> <3l0rrl$8nl@jan.et.byu.edu> In article <3l0rrl$8nl@jan.et.byu.edu>, Don Yacktman <Don_Yacktman@byu.edu> wrote: >The answer is to take more control of the link order of the >application. This may be done by editing the Makefiles >by hand to specify particular orders for the object files to >be linked together in, and using subprojects to group certain >objects together. Then you can, in an ad-hoc way, get a >link order like this: > >NNNNNUUUUUUUUUU > >That one will load a lot faster, obviously. This trick is >determining which order works best for your app. This is >something you do after everything is debugged and you're tuning >the app for release to the world. Doing it before would waste >your time since the optimal order could change during the >process of debugging. Check out "Link Optimization" in Concepts/Performance. It gives a pretty easy way to do all of this. You can reorder how things are linked on function by function basis. You basically profile the code (-prg) and then run grprof -S to "create order files, listing procedures in optimized order". When you link, you give "-sectorder option and the order file". They also talk about using filemem and pageSymbols to check how the program really runs. Anyway, it is a pretty good section. I have used it before, and it really does work, although it is kind of a hassle to do. David
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <doug@thoughtful.com> Date: Fri, 24 Mar 95 15:03:29 -0700 From: doug@thoughtful.com (Douglas Simons) Message-ID: <9503242203.AA00994@thoughtful.com> Subject: Re: Programming Serial Port on NeXT > From: klingler@mack.rt66.com (Dave Klingler) > Newsgroups: comp.sys.next.programmer > Subject: Re: Programming Serial Port on NeXT > Date: 22 Mar 1995 20:04:27 -0700 > > In article <3kafld$gh0@ixnews3.ix.netcom.com>, > Kurniawan Darmawangsa <kdarmawa@ix.netcom.com> wrote: > >Hi I am new to NeXTstep. So far I have been amazed how sophisticated > >the software is. I just wondering if there is a way to send or receive > >information from RS232. I am programming several sensors in Windows3.1 > >I want to do the same thing in NeXt > > > >Thanks in advanced > >Leon > > Leon, I'd suggest getting a copy of the Serial class from Benatong. It'll > save you a lot of work and make your life much easier. Call Chuck Bennett > at Benatong. The number is (614) 276-7859 (last time I checked) or > (614)279-1774. > > If you decide to go without Serial, start by typing "man 4 tty." Read many > times, that section will tell you most of what you want to know. > > Good luck! > Dave > > > ---------------------------------------------------------------- Or, you might be interested in taking a look at our HyperSense software. In addition to being a full-featured authoring environment (similar to HyperCard on the Macintosh) it includes easy access to the serial ports (HyperSense incorporates a licensed version of BenaTong's SerialSolutions but provides an English-like front-end to its services through our SenseTalk scripting language). Depending on what you're doing, HyperSense could be a *very* nice tool for creating your application, or part of it. Or, of course, it might be more than you need (but for only $299 it gives you a terrific toolkit for building all kinds of things...). If you're interested in more information, send email to info@thoughtful.com (or to me directly if you prefer). Doug Simons Thoughtful Software doug@thoughtful.com
Newsgroups: comp.sys.next.programmer From: rfenney@netcom.com (Robert J. Fenney) Subject: Re: anyone doing VR on the NeXT Message-ID: <rfenney-250395103608@rfenney.slip.netcom.com> Followup-To: comp.sys.next.programmer Sender: netnews@mork.netcom.com Organization: FenTek References: <3kunte$ogq@newsbf02.news.aol.com> Date: Sat, 25 Mar 1995 18:34:03 GMT In article <3kunte$ogq@newsbf02.news.aol.com>, bigmouth1@aol.com (BIGMOUTH1) wrote: > i am looking to get a NeXT machine, > mainly what ill use it for, is development for the internet and VR .. > i want to know if the NeXT system lends itself to doing VR development or > just the opposite... > thanx :) > > > > lifespan.. > yitz@datalife.com NeXTSTEP is very good for developing tools to develop VR. It may be good for 'LIGHT' VR and is very good for internet development, at least so far! Robert
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Urgent filter service problem Date: 25 Mar 1995 23:07:11 GMT Organization: Stanford University Message-ID: <3l27mv$rjf@nntp.Stanford.EDU> Hello folks, I am right now facing a strange problem. I have an application which is NOT an AppKit app (i.e., it nowhere allocates an Application object), but it is reading images thru [[NXBitmapImageRep alloc] initFromFile:]. This usually allows filtering, like loading of gifs or jpgs. Well, not in this small app. It just hangs on an attempt to load a gif. I could solve the problem by allocating - just for fun - an Application object. Besides the wasted memory, though, there is another problem that forbides me to create an Application object. Now I think that there must be a way somewhere to use filter services without an Application object, right? Has something to do with Speakers and Listeners I bet, but what? Any pointers and hints would be very welcome. Thanks, - Stan --- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss Guy | | | SU Computer Science | When you find yourself | | Box 2642, Stanford, CA (415) 497 HEXO | in a hole, stop digging | | stanj@cs.stanford.edu NeXTmail / MIME | | +-------------------------------------------+-------------------------+
From: bigmouth1@aol.com (BIGMOUTH1) Newsgroups: comp.sys.next.programmer Subject: does NS run on a DEC alpha?? Date: 25 Mar 1995 23:55:16 -0500 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3l2s3k$nqu@newsbf02.news.aol.com> jus wanna find out ...thanx :) lifespan
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer From: csaldanh@mae.carleton.ca (Chris Saldanha) Subject: Java Message-ID: <D621r6.CFp@cunews.carleton.ca> Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University Date: Sun, 26 Mar 1995 15:59:30 GMT I was just pointed to Sun's new Java homepage. (http://java.sun.com) Java is a new language developed at Sun that looks remarkably like a hybrid of C++ and Objective-C. It is described as: "Java: A simple, object-oriented, distributed, interpreted, robust, secure, architecture neutral, portable, high-performance, multithreaded, and dynamic language." I'm not sure, but it looks like nothing special to me, being already used to ObjC. In fact, this is pretty much the description of Objective-C I give people... Anyone had any more exposure to this Java, other than just marketing hype and whitepapers? They are also pushing a Web Browser (that sounds suspiciously like Rohit Khare's eText.app) which is written in Java. It uses the Web to transmit programs embedded into Web pages. --Chris Chris Saldanha | "Can I tell you what makes love Carleton University (Comp. Sci) | so frightening? csaldanh@mae.carleton.ca (NeXT/MIME) | Its that you don't own it. http://www.mae.carleton.ca/~csaldanh | It owns you."
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <gbacklin@marizack.com> Message-ID: <9503251619.AA00618@marizack> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Gene Backlin <gbacklin@marizack.com> Date: Sat, 25 Mar 95 10:19:46 -0600 Subject: Re:Problem on following NeXTStep Programming book Step1:OO Prog >From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa)> >BTW, I am currently running NS 3.3 + Developer 3.2. I realized that >this book was published on 1993. I try to build the GraphPaper >program, I run OK until I click on graph button. It exit >automatically. Is this happening because I was using NeXTstep 3.3 ? > Hi Kurniawan, I built the program with NS 3.3 + Developer 3.2 and it ran ok, make sure that you have a formula in the "y(x) = " field, for example enter sin(x) in the field and then click GRAPH. Good luck Gene gbacklin@MariZack.com
Newsgroups: comp.sys.next.programmer From: gsl@netcom.com (Greg Lindholm) Subject: How does app query hardware type? Message-ID: <gslD62JJ2.1Kn@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Sun, 26 Mar 1995 22:23:25 GMT Sender: gsl@netcom5.netcom.com How does an app find out what type of hardware it is running on? I would like to know if the app is on NeXT, Intel, Sparc, HP etc. If you know please e-mail me the answer, TIA. -- Greg Lindholm BlueSky Software gsl@netcom.com (NeXTMail & MIME happily accepted!) PGP 2.6 key available via finger. Fax: (818) 541-1984
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Sat, 25 Mar 95 20:32:16 +0100 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9503251932.AA00968@flexus> Subject: Re: SUMMARY: Dynamic Loading >>>>> Ralph Zazula of NeXT writes: I don't have the article here but it may have been referring to the time consumed by loading NIB files. Granted, a good design has NIB files loaded lazily. However, putting the NIB's in bundles sort of guarantees this. A bundle-laden app will certainly have a smaller main executable. This may help speed up launch times. If you're trying to make your apps launch faster, you should focus on lazy instantiation of objects and lazy loading of NIB files, whether you are loading them from bundles, or not. Let me know if you'd like to see some examples of this technique... <<<<< It has nothing to do with NIBs, or laziness in either object instantiation or NIB loading. My question is *why* the size of the main executable would matter. Either I don't understand something essential, or the relevant system code (maybe the Obj-C runtime) is not very careful (read lazy). Did I forget anything: - opening a file descriptor for the executable file - loading/reading the Mach-O header information, collected in the beginning - laying out the VM image (quite cheap) - initialising the shlibs (seems to require a constant time) - initialising the Obj-C runtime (what's involved? I think this may be the culprit) - creating an Application instance, loading the main NIB - any [[NXApp class] init], appWillInit:, appDidInit: I've done a few /bin/time'ings (well, this does include application close-down), and an application fresh from ProjectBuilder completes in about 0.7 seconds, while a TeXview-sized application (or somewhat larger), with main() changed to [[AppDidInitExitsApplication new] run] and exit(0) in appDidInit: (no NIB loading at all), takes this much (NeXTstation 25 MHz): 3.1 real 0.5 user 1.2 sys 1.9 real 0.3 user 1.2 sys (first is right after the build, second is how it settles after a few launches in a row). This real time right after the build (nothing in RAM) is already reached if main() exit()'s right after an [Application initialize]. Maybe if someone takes a close look at the Obj-C runtime, all well-written programs will henceforth launch in half a sec as if by magic... :-) Does this make sense? Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer From: dino@ex-nihilo.com (Dino Bagdadi) Subject: ISDN Kit Message-ID: <D5ytEp.4Az@ex-nihilo.com> Sender: dino@ex-nihilo.com (Dino Bagdadi) Organization: ex nihilo, inc. Date: Fri, 24 Mar 1995 22:06:25 GMT Now that NeXT is not supporting the ISDN Kit, who is/will? You'd think that now that ISDN service is becoming so widely available (and VERY cost effective), NeXT would want to support it. Go figure. --- Dino Bagdadi ex nihilo, inc. dino@ex-nihilo.com (ASCII, NeXTmail and MIME) Public PGP key available via `finger -l dbagdadi@shadow.net'
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 27 Mar 1995 05:15:07 GMT Organization: Digital Fix Development Message-ID: <3l5hkr$mnt@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally the NEXTSTEP there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ *** NEED INFORMATION *** NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff, but very short on disk space ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.next.com: See the below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
Newsgroups: comp.sys.next.programmer From: saty@next2.togliatti.su (S.A. TsYbanov) Subject: Wanted: pmap_getport () function analog for NeXTSTEP 3.0 kernel. Message-ID: <D63JLx.Dn7@ladem.tlt.ru> Sender: usenet@ladem.tlt.ru (Mr. Usenet) Organization: JV Ladem Date: Mon, 27 Mar 1995 11:22:45 GMT Hi ! Wanted: pmap_getport() function analog for NeXTSTEP 3.0 kernel. Has the PMAP_KGETPORT() function got the same pattern and semantics ? Can I call this function from an interrupt handler or PMAP_KGETPORT() "might sleep " ? -- NewsGrazer, a NeXTstep(tm) news reader, posting -- M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.UQF,5QF M;FEL(%1I;65S+5)O;6%N.WT*7&UA<F=L,3(P"EQM87)G<C$R,`I<<&%R9%QT M>#$Q-3)<='@R,S`T7'1X,S0U-EQT>#0V,#A<='@U-S8P7'1X-CDQ,EQT>#@P M-C1<='@Y,C$V7'1X,3`S-CA<='@Q,34R,%QF,%QB,%QI,%QU;&YO;F5<9G,R M-%QF8S!<8V8P($AI("%<"E=A;G1E9#H@('!M87!?9V5T<&]R="@I(&9U;F-T M:6]N(&%N86QO9R!F;W(@3F585%-415`@,RXP(&ME<FYE;"Y<"DAA<R!T:&4@ M4$U!4%]+1T544$]25"@I(&9U;F-T:6]N("!G;W0@=&AE('-A;64@<&%T=&5R M;B!A;F0@7`IS96UA;G1I8W,@/R`@0V%N($D@8V%L;"!T:&ES(&9U;F-T:6]N M(&9R;VT@86X@:6YT97)R=7!T(&AA;F1L97(@;W)<"E!-05!?2T=%5%!/4E0H ?*2`B"EQF,5QF<S(X(&UI9VAT('-L965P("(@/PI]"E!- `
Newsgroups: comp.sys.next.programmer From: philip@lysis.ch (Philip Moetteli) Subject: ADKit by Markus Felten. Where reachable? Substitutes? Message-ID: <D63q4o.FnM@eunet.ch> Keywords: ADKit Sender: usenet@eunet.ch Organization: EUnet AG, Switzerland Date: Mon, 27 Mar 1995 13:43:36 GMT Hi Netters I just ame across an old demo in my libraries: ADKit, written by Markus Felten. This Kit offers different objects that deal with aspects of time: Time, TimeRuler, Calendar, TimeDragging, Time-Interval-Choosing, etc. That s exactly what I am looking for at the moment. Unfortunately there can no address be found to contact the author. Does anybody here on the net know his address? Or does anybody know of something similar? Please send me e-mails (philip@lysis.ch), because I can read the news just once a week. Thanks Philip
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: libInterceptor? Date: 27 Mar 1995 16:57:38 GMT Organization: School of Computer Science, McGill Univ. Distribution: world Message-ID: <SAMURAI.95Mar27115738@maggie.cs.mcgill.ca> Has anyone gotten this thing to work without the help of NeXT? I've put in quite a few requests to NeXT, and haven't heard anything back from them. I'd be interested in hearing anyone's experience in trying to work with libInterceptor without outside help. Thanks, - darcy -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
Newsgroups: comp.sys.next.programmer From: (Raul Alvarez) Subject: Re: ISDN Kit Message-ID: <1995Mar27.144837.25571@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <D5ytEp.4Az@ex-nihilo.com> Date: Mon, 27 Mar 1995 14:48:37 GMT Dino Bagdadi writes > Now that NeXT is not supporting the ISDN Kit, who is/will? > > You'd think that now that ISDN service is becoming so widely available (and VERY cost > effective), NeXT would want to support it. Go figure. > Last I knew, Pencom Software was supporting ISDN Kit. Pencom is in Austin, TX. They have an 800 number, so you can call 800 directory assistance.
Newsgroups: comp.sys.next.programmer From: (Raul Alvarez) Subject: Re: Grouping of Views and Windos in Palettes Message-ID: <1995Mar27.145409.25630@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3l6dj6$603@elna.ethz.ch> Date: Mon, 27 Mar 1995 14:54:09 GMT Andreas Thiel writes > > Hi folks, > > > I want to create a special palette object: > > A kind of myView (some FormCells, Buttons and so on grouped in a Box) - this is > the easy part -, but I want to invoke a kind of "Inspector-Panel" > ** at Runtime ** (after building) by clicking a button in the view object to > change some parameters of the palette object. > > O.K., I wrote the code for the functionality of this inspector class and designed > the UI with the IB. I also included Inspector-Panel and the adjacent > inspector class into the palette (palette.table, etc.). I can instantiate a > Inspector Panel at runtime using > > myInspector = [[InspectorClass alloc] init] > > in the class description of myView, but unfortunatley this way I loose my > beautiful UI. At the moment I only see one workaround: To write all the stuff > needed for proper Inspector appearance the hard way in ObjC > (addSubview for every Button in the Inspector Panel, etc..) > > Is there an easy way? > > Thanks > > > Andy > You should never have to instanciate an inspector panel. This is done by interface builder. The proper way to do it is to have "- (const char *)getInspectorClassName" method in the class that needs an inspector. In your inspector class, you can refer to the object that is being inspected by use of the "object" instance variable.
From: (Charles de Montebello) clannes@panix.com Newsgroups: comp.sys.next.programmer Subject: Faxinf with US Robotics Date: 28 Mar 1995 00:54:11 GMT Organization: PANIX Public Access Internet and Unix, NYC Message-ID: <3l7mnj$rjl@news.panix.com> Is there any software that supports US Robotics Sportster 28.8 modems for faxing (either freeware or shareware). Can I use NXFAX? If so, how do I configure it? Thanks. Charles.
From: psmith@umich.edu (Pat Smith) Newsgroups: comp.sys.next.programmer Subject: value of id changes in object Date: Mon, 27 Mar 1995 12:28:10 -0500 Organization: University of Michigan Distribution: world Message-ID: <psmith-270395122810@pm016-06.dialip.cren.net> I am having a problem with a program I'm trying to write. I have two objects which need to send messages to each other. The first (obj1) instantiates the second (obj2) with a factory method (+ new) and then sends a message to obj2 with self as a parameter. obj2 copies this value into a local instance variable and I have checked that it has the right value (using gdb). Then when a button in obj2's window is pushed, obj2 no longer has the correct value of obj1's id. (I verify this using gdb) Why is this happening? Using gdb I set the id to the right value and then things work ok, but otherwise they don't. Any ideas, pointers, etc, will be greatly appreciated. Susan McDaniel mcdaniel@umich.edu NeXT mail is fine.
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Programmatically disabling Window movement In-Reply-To: robert@audrey.dircon.co.uk's message of 17 Mar 1995 10:11:10 GMT Message-ID: <RDL.95Mar27150011@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <jpanicoD5FqAI.7o8@netcom.com> <D5Gs5p.BLn@genoa.com> <jpanicoD5JrAL.Lvs@netcom.com> <ROBERT.95Mar17101110@audrey.dircon.co.uk> Date: Mon, 27 Mar 1995 20:00:11 GMT Joe, You can create a window that takes up the entire screen and change it's window level (tier.) That will limit them from accessing other parts of NS. As far as preventing them from moving a panel/window within that, you might want to override Window's "moveTo::" method and "constrainFrameRect:toScreen:". Robert La Ferla HTI Registered NS Developer/Consultant/Trainer + 1 617 252 0088
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: Unhide from another app Date: 27 Mar 1995 19:39:40 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3l749s$385@snaps.dannug.dk> Hi there, Anyone that knows how the Workspace Manager unhides hidden apps (double-click on the app-icon)? I have been looking at the Speaker/Listener classes and at connectToPort (NXConnection), but without having found the Columbus egg. Geert
From: root@charles.panix.com (Operator) Newsgroups: comp.sys.next.programmer Subject: Changing User permissions Date: 28 Mar 1995 04:41:09 GMT Organization: PANIX Public Access Internet and Unix, NYC Message-ID: <3l8415$7ha@news.panix.com> This may sound simple to some, but I would like to change my User (clannes) to me part of group 'wheel' so that I can su to root from the terminal. Currently, it is in the group other. How do I do this safely? I am the only user on my computer (standalone) with no ethernet. I just want to have permissions to shut down certain operations and write to most files. Thanks. Please email if possible. Charles. -- NewsGrazer, a NeXTstep(tm) news reader, posting -- M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.WT*7&UA M<F=L,3(P"EQM87)G<C$R,`I<<&%R9%QT>#$Q-3)<='@R,S`T7'1X,S0U-EQT M>#0V,#A<='@U-S8P7'1X-CDQ,EQT>#@P-C1<='@Y,C$V7'1X,3`S-CA<='@Q M,34R,%QF,%QB,%QI,%QU;&YO;F5<9G,R-%QF8S!<8V8P(%1H:7,@;6%Y('-O M=6YD('-I;7!L92!T;R!S;VUE+"!B=70@22!W;W5L9"!L:6ME('1O(&-H86YG M92!M>2!5<V5R("AC;&%N;F5S*2!T;R!M92!P87)T(&]F(&=R;W5P("=W:&5E M;"<@<V\@=&AA="!)(&-A;B!S=2!T;R!R;V]T(&9R;VT@=&AE('1E<FUI;F%L M+B!#=7)R96YT;'DL(&ET(&ES(&EN('1H92!G<F]U<"!O=&AE<BY<"EP*2&]W M(&1O($D@9&\@=&AI<R!S869E;'D_($D@86T@=&AE(&]N;'D@=7-E<B!O;B!M M>2!C;VUP=71E<B`H<W1A;F1A;&]N92D@=VET:"!N;R!E=&AE<FYE="X@22!J M=7-T('=A;G0@=&\@:&%V92!P97)M:7-S:6]N<R!T;R!S:'5T(&1O=VX@8V5R M=&%I;B!O<&5R871I;VYS(&%N9"!W<FET92!T;R!M;W-T(&9I;&5S+EP*7`I4 M:&%N:W,N7`I0;&5A<V4@96UA:6P@:68@<&]S<VEB;&4N7`I<"D-H87)L97,N #"GT* `
Newsgroups: comp.sys.next.programmer From: magnan@maths1.MATHCN.UMontreal.CA (Magnan Francois) Subject: Re: Faxinf with US Robotics In-Reply-To: 's message of 28 Mar 1995 00:54:11 GMT Message-ID: <MAGNAN.95Mar27225524@maths1.MATHCN.UMontreal.CA> Sender: news@cc.umontreal.ca (Administration de Cnews) Organization: Universite de Montreal References: <3l7mnj$rjl@news.panix.com> Date: Tue, 28 Mar 1995 03:55:24 GMT >>>>> "Charles" == Charles de Montebello <Charles> writes: Charles> Is there any software that supports US Robotics Sportster Charles> 28.8 modems for faxing (either freeware or Charles> shareware). Can I use NXFAX? If so, how do I configure Charles> it? Charles> Thanks. Charles> Charles. I suppose these modems only supports Class 2.0 so you cannot use NXFax (yet!). I suggest you JollysClass2.0 driver from JollysZyXELFax package (Shareware written by Patrick Stein). You can find it at: ftp.informatik.uni-muenchen.de: /pub/comp/platforms/next/Tools/fax/JollysZyXEL_Fax... Francois Magnan P.S.: You can also get mgetty+sendfax but this will need some work. -- ______________________________________________________ Francois Magnan Departement de Mathematique & Statistiques Universite de Montreal email: magnan@mathcn.umontreal.ca (MIME, NeXTMail Ok!)
From: thiel@ife.ee.ethz.ch (Andreas Thiel) Newsgroups: comp.sys.next.programmer Subject: Grouping of Views and Windos in Palettes Date: 27 Mar 1995 13:12:06 GMT Organization: Institute for Electronics, ETH Zuerich, Switzerland Distribution: world Message-ID: <3l6dj6$603@elna.ethz.ch> Hi folks, I want to create a special palette object: A kind of myView (some FormCells, Buttons and so on grouped in a Box) - this is the easy part -, but I want to invoke a kind of "Inspector-Panel" ** at Runtime ** (after building) by clicking a button in the view object to change some parameters of the palette object. O.K., I wrote the code for the functionality of this inspector class and designed the UI with the IB. I also included Inspector-Panel and the adjacent inspector class into the palette (palette.table, etc.). I can instantiate a Inspector Panel at runtime using myInspector = [[InspectorClass alloc] init] in the class description of myView, but unfortunatley this way I loose my beautiful UI. At the moment I only see one workaround: To write all the stuff needed for proper Inspector appearance the hard way in ObjC (addSubview for every Button in the Inspector Panel, etc..) Is there an easy way? Thanks Andy -- ------------------------------------------------------------------------------ Andreas Thiel Electronics Laboratory | Institut fuer Elektronik Swiss Federal Institute of Technology Zurich | ETH Zuerich Gloriastrasse 35 | Gloriastrasse 35 | CH-8092 Zurich | CH-8092 Zuerich |
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer From: byer@mv.us.adobe.com (Scott Byer) Subject: Re: Java In-Reply-To: csaldanh@mae.carleton.ca's message of Sun, 26 Mar 1995 15:59:30 GMT Message-ID: <byerzng5zvcmcvir@ductwork.mv.us.adobe.com> Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Incorporated, Mountain View, CA References: <D621r6.CFp@cunews.carleton.ca> Date: Mon, 27 Mar 1995 19:28:26 GMT Chris Saldanha writes: Chris> I was just pointed to Sun's new Java homepage. (http://java.sun.com) Chris> Java is a new language developed at Sun that looks remarkably like a Chris> hybrid of C++ and Objective-C. It is described as: "Java: A simple, Chris> object-oriented, distributed, interpreted, robust, secure, Chris> architecture neutral, portable, high-performance, multithreaded, and Chris> dynamic language." Chris> I'm not sure, but it looks like nothing special to me, being already Chris> used to ObjC. In fact, this is pretty much the description of Chris> Objective-C I give people... Anyone had any more exposure to this Chris> Java, other than just marketing hype and whitepapers? It's so close to ObjC, that it's _really_ too bad that they didn't pick up the syntax. It would have allowed them to toss out the two remaining C++ things that the world could do without (they already tossed out operator overloading and multiple inheritance): function overloading and name mangling. -- Scott Byer E-Mail: byer@mv.us.adobe.com Adobe Systems Incorporated These are my opinions, and 1585 Charleston Road, P.O. Box 7900 do not necessarily reflect Mountain View, CA 94039-7900 the opinions of my employer. === === C++: Take one part C, 5 parts "bad hacks", 6 parts "bad language features", 9 parts "unclear on the concept", and blend. Has taste and consistency of vomit.
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: value of id changes in object Date: 27 Mar 1995 20:47:16 GMT Organization: School of Computer Science, McGill Univ. Distribution: world Message-ID: <SAMURAI.95Mar27154716@maggie.cs.mcgill.ca> References: <psmith-270395122810@pm016-06.dialip.cren.net> In-reply-to: psmith@umich.edu's message of Mon, 27 Mar 1995 12:28:10 -0500 <psmith@umich.edu> writes: >I am having a problem with a program I'm trying to write. I have two >objects which need to send messages to each other. The first (obj1) >instantiates the second (obj2) with a factory method (+ new) and then sends >a message to obj2 with self as a parameter. obj2 copies this value into a >local instance variable and I have checked that it has the right value >(using gdb). Then when a button in obj2's window is pushed, obj2 no longer >has the correct value of obj1's id. (I verify this using gdb) >Why is this happening? >Using gdb I set the id to the right value and then things work ok, but >otherwise they don't. >Any ideas, pointers, etc, will be greatly appreciated. Try a "make clean" then re-build and see if your problem is still there. Often times, changing the ivars of a superclass can confuse subclasses and/or gdb. I don't know if this is your problem, but whenver wierdness comes up, "make clean" is a simple technique to try. - db -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
Newsgroups: comp.sys.next.programmer From: jm_cazaux@impala .seldon.fdn.org (Jean-Michel CAZAUX) Subject: EOF : Ordering detail entity.... Please Help!!!! Message-ID: <1995Mar27.170335.309@impala.seldon.fdn.org> Sender: news@impala.seldon.fdn.org Organization: SNRI - Nimes, France. Date: Mon, 27 Mar 1995 17:03:35 GMT Could somebody help me, please ??? I feel alone in the dark.... I'm encountering problems sorting a detail entity (in fact I can't...) I've got a master entity (lets call it A) wich (EOcontroler) was instantiated in IB by dragging it from EOModeler. The detail entity (lets call it B) was instantiated (EOControler) from IBPalette and associated to a one-to-many relationship from master entity A. I can access both of the EOControler by instance variables. So, I can put a sortOrderAttribute (setFetchOrder) on A, that's OK. But I can't succeed in sorting B entity witch fetchs automaticaly when a record of A is selected. I tried (without any success) the following methods : * Treat entity B just as A and set a fetch order on its datasource. But datasource for a detail EOControler is nil.... * Mix sortOrder from A and B in same array and set it to A, result was an SQL error as it could be expected.... * Set the sort order of entity B on master datasource (A's) when fetching detail EOControler... But the sort attribute is then set on wrong table and SQL debug gives <... ORDER BY master.attribute > where I'd like to read <... ORDER BY detail.attribute >, even if the sort attribute is created with right entity (detail). I had a look on examples, but I could'nt found sorted detail entity... The nearest thing I found is Many-to-Many example delivered with EOF, when you're examining peoples on a project.... people entity is not sorted. I apologize for my poor english and hope it's good enough to be understood... Thank in advance for your help !!!! -- P-Mail / Slow-Mail NeXT-Mail / Email Jean-Michel CAZAUX jm_cazaux@impala.seldon.fdn.org SNRI Soft SCO Unix Center Zone EURO 2000 - Batiment C Sybase Var Av. de la Vistrenque Intel Var 30132 CAISSARGUES - France Former NeXT Var Voice : (33) 66 29 77 28 Fax : (33) 66 29 73 45
Newsgroups: comp.sys.next.programmer From: dgoodman@is.rpslmc.edu (Dave Goodman) Subject: Re: need HUGE cursors to help nearly-blind student Message-ID: <1995Mar27.223723.16702@rpslmc.edu> Sender: news@rpslmc.edu Organization: Rush-Presbyterian-St. Luke's Medical Center References: <ZHAO.95Mar24142201@sparta.crl.nmsu.edu> Date: Mon, 27 Mar 1995 22:37:23 GMT In article <ZHAO.95Mar24142201@sparta.crl.nmsu.edu> zhao@crl.nmsu.edu (Z. Zhao) writes: > Please post it also. I need to know how to change the size and color, > if it is possible, of the mouse arrow and cursor. The mouse is too > small for me to catch. > > zhao Here's something someone else posted a while back...it turns your cursor to a rainbow color. I imagine if you're handy, you could probably set the colors to be anything you want. Paste the text below into a file named someFileName.ps, then double click it in workspace. The effect will last until the next time you reboot. -Dave ______________________________________________________ \|/ --O-- Single Source Systems /|\ INC David I. Goodman NEXTSTEP Software Engineer dgoodman@is.rpslmc.edu (NeXT/MIME Mail gleefully accepted) --------8<-------Cut Here------- %!PS-Adobe-2.0 EPSF-2.0 %%BoundingBox: 0 0 16 16 %%EndComments 0 0 16 16 Retained window dup windowdeviceround gsave 16 16 scale 16 16 4 [16 0 0 -16 0 16] {< ffffffff00000000000000000000000000000000000000000000000000000000 ffff0d0fffff0000000000000000000000000000000000000000000000000000 ffff0d0f0d0fffff000000000000000000000000000000000000000000000000 ffff0d0ffd0f0d0fffff00000000000000000000000000000000000000000000 fffffd0ffd0ffd0ffd0fffff0000000000000000000000000000000000000000 fffffd0ff50ff50ff50ffd0fffff000000000000000000000000000000000000 fffff50ff50ff50ff50ff50ff50fffff00000000000000000000000000000000 fffff50fd00fd00fd00fd00fd00f908fffff0000000000000000000000000000 ffffd00fd00fd00fd00fd00fd00f908f908fffff000000000000000000000000 ffffd00fd00fd00f908f908fffffffffffffffffffff00000000000000000000 ffff908f908fffff00ff00ffffff000000000000000000000000000000000000 ffff908fffff0000ffff00ff00ffffff00000000000000000000000000000000 ffffffff00000000ffff00ff00ffffff00000000000000000000000000000000 ffff0000000000000000ffff00ff00ffffff0000000000000000000000000000 00000000000000000000ffff00ff00ffffff0000000000000000000000000000 000000000000000000000000ffffffff00000000000000000000000000000000 >} false 3 alphaimage grestore gstate nextdict /_NXSharedGrayAlpha get NX_TwelveBitRGB 1 index setwindowdepthlimit windowdeviceround 0 0 16 16 5 4 roll 0 32 Copy composite nulldevice termwindow
Newsgroups: comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!gatech!udel!news.mathworks.com!uunet!in1.uu.net!swissbank!root From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: value of id changes in object Message-ID: <1995Mar27.224133.28534@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <psmith-270395122810@pm016-06.dialip.cren.net> Date: Mon, 27 Mar 1995 22:41:33 GMT Pat Smith writes > > I am having a problem with a program I'm trying to write. I have two > objects which need to send messages to each other. The first (obj1) > instantiates the second (obj2) with a factory method (+ new) and then sends > a message to obj2 with self as a parameter. obj2 copies this value into a > local instance variable and I have checked that it has the right value > (using gdb). Then when a button in obj2's window is pushed, obj2 no longer > has the correct value of obj1's id. (I verify this using gdb) > > Why is this happening? > > Using gdb I set the id to the right value and then things work ok, but > otherwise they don't. > > Any ideas, pointers, etc, will be greatly appreciated. > Since you state that obj2 has a window (and button, I presume), it would seem that obj2 is the File's owner of a nib. If this is the case, it is possible that the obj1 ivar is getting set when you pass it in, and then overwritten when the nib gets loaded. Check to make sure that you don't have the obj1 outlet set in your nib and that the most recent of your obj2 header file has been parsed into the nib. Also, if neither of these seem to be the case, continue with Darcy's advice about doing a make clean. Good luck... -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Belgium.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!scipio.cyberstore.ca!vanbc.wimsey.com!unixg.ubc.ca!nntp.cs.ubc.ca!cs.ubc.ca!usenet From: croehrig@sns.cs.ubc.ca (Chris Roehrig) Newsgroups: comp.sys.next.programmer Subject: Re: Java Date: 28 Mar 1995 02:19:10 GMT Organization: Computer Science, University of B.C., Vancouver, B.C., Canada Message-ID: <3l7rmu$594@cs.ubc.ca> References: <D621r6.CFp@cunews.carleton.ca> In article <D621r6.CFp@cunews.carleton.ca> csaldanh@mae.carleton.ca (Chris Saldanha) writes: > I was just pointed to Sun's new Java homepage. (http://java.sun.com) > > Java is a new language developed at Sun that looks remarkably like a > hybrid of C++ and Objective-C. > It is described as: > "Java: A simple, object-oriented, distributed, interpreted, robust, > secure, architecture neutral, portable, high-performance, multithreaded, > and dynamic language." > > I'm not sure, but it looks like nothing special to me, being > already used to ObjC.wns you." Java is much more than a high level language specification. It's also the specification for the virtual machine that the language compiles to and runs on (in terms of instruction opcodes, registers, etc.). It is hardware architecture independent (i.e. interpreted by the host architecture), and has security features built into it. There's a Java virtual machine built into WebRunner, Java's associated web browser. This allows the web site to specify its user interface in Java code, much more flexible than HTML (<-- understatement of the year candidate :-) Check out the examples on http://java.sun.com. As far as it impacts us NeXTies, it looks like it would make a good replacement for Multiple Architecture Binaries. Have the OpenStep runtime include a Java machine, and have Project Builder generate Java code instead of i486+m68k+sparc+hppa+alpha+ppc+etc. I suspect it would have high enough performance for all but the most intensive number crunching. All in all, looks like an awesome idea. -- Chris Roehrig (croehrig@cs.ubc.ca) Dept. of Computer Science, University of British Columbia 2366 Main Mall, Vancouver BC, Canada V6T 1Z4
Newsgroups: comp.sys.next.programmer,comp.sys.next.marketplace From: ian@nyro.com (Ian H. Stewart) Subject: Extra Dev Docs For Sale Message-ID: <D661rv.EC@nyro.com> Sender: ian@nyro.com (Ian H. Stewart) Organization: NYRO Technix, Inc. - markets VirtSpace(tm), Faxcess(tm), UUCP-EZ(tm) and other NEXTSTEP software. Date: Tue, 28 Mar 1995 19:50:18 GMT Title SRP As marked on Book NEXTSTEP User Interface Guidlines $24.95 NEXTSTEP OO Prgramming & Obj-c $24.95 NEXTSTEP Dev Tools & Techniques $30.95 NEXTSTEP Programming Interface Summary $30.95 NEXTSTEP General Ref Vol 1 $44.95 NEXTSTEP General Ref Vol 2 $44.95 Total $201.70 Must be bought together. All for $125.00 plus shipping. --- NYRO Technix, Inc. 236 W. Portal Ave Suite 341 San Francisco CA 94127 415 664-1170 voice 415 664-5530 fax NYRO Technix, Inc. markets VirtSpace(tm), ReadReceiptPlus(tm), Faxcess(tm), UUCP-EZ(tm), On-Vacation(tm) and other NEXTSTEP software.
Belgium.EU.net!EU.net!Germany.EU.net!howland.reston.ans.net!swrinde!hookup!noc.tor.hookup.net!news From: hutch@RedRock.com (Bob Hutchison) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Java Date: 28 Mar 1995 14:22:35 GMT Organization: RedRock Message-ID: <3l963b$c35@noc.tor.hookup.net> References: <D621r6.CFp@cunews.carleton.ca> <byerzng5zvcmcvir@ductwork.mv.us.adobe.com> In <byerzng5zvcmcvir@ductwork.mv.us.adobe.com>, byer@mv.us.adobe.com (Scott Byer) writes: > >Chris Saldanha writes: > >Chris> I was just pointed to Sun's new Java homepage. (http://java.sun.com) >Chris> Java is a new language developed at Sun that looks remarkably like a >Chris> hybrid of C++ and Objective-C. It is described as: "Java: A simple, >Chris> object-oriented, distributed, interpreted, robust, secure, >Chris> architecture neutral, portable, high-performance, multithreaded, and >Chris> dynamic language." > >Chris> I'm not sure, but it looks like nothing special to me, being already >Chris> used to ObjC. In fact, this is pretty much the description of >Chris> Objective-C I give people... Anyone had any more exposure to this >Chris> Java, other than just marketing hype and whitepapers? > >It's so close to ObjC, that it's _really_ too bad that they didn't pick up >the syntax. It would have allowed them to toss out the two remaining C++ >things that the world could do without (they already tossed out operator >overloading and multiple inheritance): function overloading and name >mangling. You know, it is funny, but someone in the eiffel group thought Java was just like Eiffel. Someone else thought it was a suitable subset of C++. And now you guys seem to think it is like Objective-C. This must be a very cleverly designed language :-) Cheers, Bob
From: don@darth.byu.edu (Don Yacktman) Newsgroups: comp.sys.next.programmer Subject: Re: ISDN Kit Date: 27 Mar 1995 23:22:52 GMT Organization: Brigham Young University, Provo UT USA Distribution: world Message-ID: <3l7hcc$l5h@jan.et.byu.edu> References: <1995Mar27.144837.25571@il.us.swissbank.com> Raul Alvarez writes ) Dino Bagdadi writes ) > Now that NeXT is not supporting the ISDN Kit, who is/will? ) > ) > You'd think that now that ISDN service is becoming so widely available ) (and VERY cost ) > effective), NeXT would want to support it. Go figure. ) > ) ) Last I knew, Pencom Software was supporting ISDN Kit. Pencom is ) in Austin, TX. They have an 800 number, so you can call 800 ) directory assistance. Last I heard (and this is pretty recent research) Pencom gave it back to NeXT... Those who want to get at the old PhoneKit really ought to have a look at one of these: ftp://ftp.et.byu.edu/next/misckit/ObjectPetition.rtf ftp://ftp.et.byu.edu/next/misckit/ObjectPetition.txt So far NeXT has responded rather positively to this effort... which might surprise some people (like Mark Crispin). :-) -- Later, -Don Yacktman Don_Yacktman@byu.edu
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <pb@next.oasa.cz> From: Petr Bulanek <pb@next.oasa.cz> Message-ID: <9503281010.AA01214@colorado> Date: Tue, 28 Mar 95 12:10:08 +0200 Subject: Shared variables I probably missed this information in my documentation but I do not know how to create variable in class what will be shared by each instance of this class. (something like "static" in C++) Thanks for your help Petr
From: cadilhac@arles.univ-rennes1.fr (Nicolas Cadilhac) Newsgroups: comp.sys.next.programmer Subject: Document icon for an inspector Date: 29 Mar 1995 13:08:53 GMT Organization: Universite de Rennes 1, France Message-ID: <3lbm56$8vv@news.univ-rennes1.fr> Hello, I'm trying to develop an inspector for a document. I'd like to activate the new inspector directly by double clicking my document in the workspace manager. Since the inspector is a bundle, how to associate a document icon with the bundle (in order to see my inspector bundle in the tools section of the inspector window) ? Thanks for any help -- Nicolas Cadilhac ---------------- INSERM CJF 90-12 Clinique neurologique Hopital Pontchaillou 35033 Rennes Cedex
From: speijer@hio.hen.nl (Masterhoff) Newsgroups: comp.sys.next.programmer Subject: Writing drivers Date: 28 Mar 1995 10:33:08 GMT Organization: HIO Enschede Message-ID: <3l8ol4$8du@driene.student.utwente.nl> Has anybody got experience with constructing custom drivers with the driver kit ? I recently purchased the NeXTSTEP Acadamics version but don't have a certified system. Being a student Computer Science I should be able to construct my own drivers. Greetings, Hans Speijer speijer@hio.hen.nl "The Eternal Kender"
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: Unhide from another app Date: 28 Mar 1995 12:31:55 GMT Organization: Total System Software Distribution: world Message-ID: <3l8vjr$qp@tssslab.TotSysSoft.com> References: <3l749s$385@snaps.dannug.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <3l749s$385@snaps.dannug.dk> gclem@dannug.dk writes: }~ Hi there, }~ }~ Anyone that knows how the Workspace Manager unhides hidden apps }~ (double-click on the app-icon)? I have been looking at the }~ Speaker/Listener classes and at connectToPort (NXConnection), }~ but without having found the Columbus egg. }~ }~ Geert Someone posted a commandline utility 'unhide' a while back, as I recall. Doing a quick look-around, I don't find it so must have it archived off somewhere. If you don't get a positive response E-mail me and I'll do a concerted look for it. +-+ Bruce Gingery Total System Software Cheyenne, WY USA We do consulting over Internet. E-Mail tss@TotSysSoft.com for quotes or more info. Homepage under construction <URL:http://turnpike.net/metro/bagingry/> NEXT IN LINE magazine staff technical writer Bruce Gingery <bgingery@Wyoming.COM> OR <bruce@TotSysSoft.com> Multimedia: NeXTmail(tm) preferred MIME-mail welcome
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <bbum@friday.com> Message-ID: <199503281740.LAA00717@friday.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Bill Bumgarner <bbum@friday.com> Date: Tue, 28 Mar 95 11:40:11 -0600 Subject: Re: NeXT Programmer's digest 530 Cc: stanj@cs.stanford.edu References: <9503281204.AA00863@antigone.com> # I could solve the problem by allocating - just for fun - an # Application object. Besides the wasted memory, though, there is # another problem that forbides me to create an Application object. # Now I think that there must be a way somewhere to use filter # services without an Application object, right? Has something to # do with Speakers and Listeners I bet, but what? If one were to solve it using Speaker/Listener or any other method of reverse engineering NeXT's interface, it would be quite the hacque, but would probably break in the next release of the OS. I recently completed an almost-entire-rewrite of a filtering service for release with the MiscKit. It works really well [i have been using it instead of OmniImageFilter for about four weeks] -- but lacks the ability to convert gif w/alpha correctly [if anyone has some code or a converter that can do that, i could easily integrate it w/the project]. Possibly, a better solution might be to use the converter code as the foundation for integrating a slightly customized converter into your code -- it would certainly not be difficult to change the code from writing the resulting TIFF to a pasteboard to writing to a NXBitmapImageRep or simply writing to a stream. Send me mail if you would like a copy of the source [if I receive enough responses, I'll finish the silly thing and release it]. b.bum --- <bbum@friday.com> | In cyberspace.... Friday Software & Consulting | ...no one can hear you laugh.
Newsgroups: comp.sys.next.programmer From: lien@lysis.ch (Lien Pham) Subject: ATM driver for NSFIP Message-ID: <D67oL0.3Ez@eunet.ch> Sender: usenet@eunet.ch Organization: EUnet AG, Switzerland Date: Wed, 29 Mar 1995 17:00:36 GMT Hi there, Did someone write a driver for an ATM network interface, or is anyone currently working on such a driver? I'm extremely interested! Regards, Lien Lien PHAM <lien@lysis.ch> LYSIS SA Cotes de Montbenon 8 1003 Lausanne Switzerland Tel: ++41 21 312 91 91 Fax: ++41 21 312 93 43
From: fukuda@masg1.epfl.ch (Komei Fukuda) Newsgroups: comp.sys.next.programmer Subject: g++lib Rational type broken in 3.2? Date: 28 Mar 1995 09:53:19 GMT Organization: Ecole Polytechnique Federale de Lausanne Distribution: world Message-ID: <3l8maf$cdv@info.epfl.ch> I am tying to write a C++ code which runs in exact (rational) arithmetic. For this, I am using the rational-type library (Rational.h) of g++ which comes with NEXTSTEP 3.2. After some experiments, I noticed some strange behavior of this library. It is possible that I might be doing something wrong. Here is a simple example: // test.C #include <fstream.h> #include <Rational.h> #ifdef FLOAT #define myTYPE float #else #define myTYPE Rational #endif int main() { myTYPE zero=0,one=1,two=2; cout << "zero = " << zero << ", one = " << one << " and two = " << two << "\n"; cout << "-zero = " << -zero << ", -one = " << -one << "\n"; cout << "one/two = " << one/two << "\n"; cout << "one - two = " << one - two << "\n"; cout << "one - zero = " << one - zero << "\n"; } // end of test.C Now if you compile this program by % cc test.C -g -lg++ -I/usr/include/g++ in NeXT (3.2) environment, you will get a.out without any errors. But when I ran this code, I got an ERROR for the computation of "one - zero": % a.out zero = 0, one = 1 and two = 2 -zero = 0, -one = -1 one/two = 1/2 one - two = -1 Rational Error: Zero denominator. IOT trap It is strange that "one - two" is computed correctly at the same time. Also, if I compile with "-DFLOAT" option by % cc test.C -g -lg++ -I/usr/include/g++ -DFLOAT the resulting code runs fine with floating-point arithmetic. Could anyone kindly tell me what I am doing wrong? (I could successfully run the same program correctly on my Machintosh under machten.) Thank you for your help in advance, Komei P.S. Assuming this is a bug of libg++, is this fixed in 3.3? Or should I install the most recent gcc and g++lib, instead of ordering 3.3? I strongly hope that my future g++ programs will be successfully compiled and run in the standard NEXT setup.
Newsgroups: comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!ix.netcom.com!netcom.com!gsl From: gsl@netcom.com (Greg Lindholm) Subject: Will 3.3 apps run on 3.2? Message-ID: <gslD66r2J.2pz@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 29 Mar 1995 04:56:43 GMT Sender: gsl@netcom21.netcom.com Will apps build with 3.3 Developer run on 3.2 ? 3.1 ? 3.0 ? -- Greg Lindholm BlueSky Software gsl@netcom.com (NeXTMail & MIME happily accepted!) PGP 2.6 key available via finger. Fax: (818) 541-1984
From: izumi@pinoko.berkeley.edu (Izumi Ohzawa) Newsgroups: comp.sys.next.programmer Subject: Re: Unhide from another app Date: 28 Mar 1995 17:33:45 GMT Organization: University of California, Berkeley Distribution: world Message-ID: <3l9h9p$3lh@agate.berkeley.edu> References: <3l8vjr$qp@tssslab.TotSysSoft.com> In article <3l8vjr$qp@tssslab.TotSysSoft.com> Bruce Gingery <bruce@TotSysSoft.com> writes: >In article <3l749s$385@snaps.dannug.dk> gclem@dannug.dk writes: >}~ Hi there, >}~ >}~ Anyone that knows how the Workspace Manager unhides hidden apps >}~ (double-click on the app-icon)? I have been looking at the >}~ Speaker/Listener classes and at connectToPort (NXConnection), >}~ but without having found the Columbus egg. >}~ >}~ Geert > > Someone posted a commandline utility 'unhide' a while back, >as I recall. Doing a quick look-around, I don't find it so must This must be what you are looking for. It's under "open..." - Izumi ---- From: Christian Limpach <Christian.Limpach@nice.ch> Newsgroups: comp.sys.next.announce Subject: SUBMISSION: open - a replacement for /usr/bin/open Date: 10 May 1994 14:45:25 -0400 Organization: Next Announcements Lines: 38 Sender: sanguish@digifix.com Approved: sanguish@digifix.com Message-ID: <2qoko5$lld@digifix.digifix.com> NNTP-Posting-Host: digifix.digifix.com A replacement for NeXT's (since 3.1 broken) /usr/bin/open is now vailable. You can get from ftp.informatik.uni-muenchen.de or cs.orst.edu either a package with binaries for Motorola and Intel processors (open.1.0.NI.b.pkg.tar.gz) or the sources for (probably) any cpu type (open.1.0.NI.s.tar.gz) cs.orst.edu:/pub/next/binaries/util/open.1.0.pkg.NI.b.tar.gz cs.orst.edu:/pub/next/sources/util/open.1.0.NI.s.tar.gz Send requests to receive a copy by e-mail to chris@nice.ch. Please note that this project has absolutely no relation to NeXT! This version of open has some added features and allows you to make requests to NEXTSTEP applications, while it doesn't require the `Public Window Server' switch in the Preferences application to be turned on to work correctly. SYNOPSIS open [-a app] [-o file] [-p] [-NXHost hostname] [-unhide] [-nostat] [-wait] [-temp] [+linenum] [filename] ... appopen app run app unhide app app [options] see the manpage for further details. Contact: Christian Limpach chris@nice.ch
Belgium.EU.net!EU.net!howland.reston.ans.net!swrinde!sgiblab!gatekeeper.us.oracle.com!dcsun4.us.oracle.com!dcsun4.us.oracle.com!speters From: speters@samsun.us.oracle.com (Stephen Peters) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Java Date: 29 Mar 1995 19:24:10 GMT Organization: Oracle Corporation, Redwood City, CA, USA Message-ID: <SPETERS.95Mar29112410@samsun.us.oracle.com> References: <D621r6.CFp@cunews.carleton.ca> <byerzng5zvcmcvir@ductwork.mv.us.adobe.com> <3l963b$c35@noc.tor.hookup.net> In-reply-to: hutch@RedRock.com's message of 28 Mar 1995 14:22:35 GMT In article <3l963b$c35@noc.tor.hookup.net> hutch@RedRock.com (Bob Hutchison) writes: > You know, it is funny, but someone in the eiffel group thought Java > was just like Eiffel. Someone else thought it was a suitable subset > of C++. And now you guys seem to think it is like Objective-C. > This must be a very cleverly designed language :-) Who knows? Though, if I can quote from "The Java(TM) Language: A White Paper" available under http://www.java.com/, we see: "[...]Most programmers working these days use C, and most programmers doing object-oriented programming use C++. So even though we found that C++ was unsuitable, we designed Java as closely to C++ as possible in order to make the system more comprehensible. Java omits many rarely used, poorly understood, confusing features of C++ that in our experience bring more grief than benefit. These omitted features primarily consist of operator overloading...,multiple inheritance, and extensive automatic coercions. [...] The object-oriented facilities of Java are essentially those of C++, with extensions from Objective C for more dynamic method resolution." So I think the "suitable subset of C++" is the most accurate description, with the "like Objective-C" in there somewhere. Who knows about Eiffel (I don't know Eiffel myself...). Stephen Peters
Belgium.EU.net!EU.net!howland.reston.ans.net!ix.netcom.com!netcomsv!uu3news.netcom.com!antigone!friday.com!bbum Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <bbum@friday.com> Message-ID: <199503291658.KAA00660@friday.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Bill Bumgarner <bbum@friday.com> Date: Wed, 29 Mar 95 10:58:26 -0600 Subject: Rainbow Cursor Same thing as the rainbow cursor Dave Goodman posted, but in a perl wrapper -- copy/paste everything after the "CUT HERE" into a file, make executable, and then execute it [assuming you have /usr/local/bin/perl -- didn't NeXT include perl w/3.2 and up?]. if you add it to your Workspace LaunchPaths preference, your cursor will be color every time you login [and anyone who uses the machine after you will have to enjoy a color cursor, as well]. b.bum --- <bbum@friday.com> | In cyberspace.... Friday Software & Consulting | ...no one can hear you laugh. ----------------------------------- CUT HERE --+++++++=======- #!/usr/local/bin/perl # # everything between here and __END__ just starts pft and pipes # everything after the __END__ into pft. Obviously, this can be # used to spew any customizations you want at pft (and, hence, the # windowserver). if you use this to do other cool things to the # window server, please send me (<bbum@friday.com>) your hacquage. # If I receive some cool hacquage, I will compile a hacquage-package # and submit to the net (complete w/credits, docs, and all that # rot). # # have a nice day. # # b.bum # <bbum@friday.com> # open PFT -- die if we can't open (PFT, "| /usr/bin/pft") || die "could not open /usr/bin/pft"; # write everything after the __END__ to pft while (<DATA>) { print PFT; } # close pft close (PFT); # everything after the __END__ is available on <DATA>; 'tis perl # magic. __END__ %!PS-Adobe-2.0 EPSF-1.2 %%Creator: (a postscript god @next.com) %%Title: (cursortest.eps) %%CreationDate: (19/3/92) (3:00 PM) %%BoundingBox:0 0 20 20 %% %% Another stupid EPS trick. %% %%EndComments 0 0 16 16 Retained window dup windowdeviceround gsave 16 16 scale 16 16 4 [16 0 0 -16 0 16] {< 000f000f00000000000000000000000000000000000000000000000000000000 000f0d0f000f0000000000000000000000000000000000000000000000000000 000f0d0f0d0f000f000000000000000000000000000000000000000000000000 000f0d0ffd0f0d0f000f00000000000000000000000000000000000000000000 000ffd0ffd0ffd0ffd0f000f0000000000000000000000000000000000000000 000ffd0ff50ff50ff50ffd0f000f000000000000000000000000000000000000 000ff50ff50ff50ff50ff50ff50f000f00000000000000000000000000000000 000ff50fd00fd00fd00fd00fd00f908f000f0000000000000000000000000000 000fd00fd00fd00fd00fd00fd00f908f908f000f000000000000000000000000 000fd00fd00fd00f908f908f000f000f000f000f000f00000000000000000000 000f908f908f000f00ff00ff000f000000000000000000000000000000000000 000f908f000f0000000f00ff00ff000f00000000000000000000000000000000 000f000f00000000000f00ff00ff000f00000000000000000000000000000000 000f0000000000000000000f00ff00ff000f0000000000000000000000000000 00000000000000000000000f00ff00ff000f0000000000000000000000000000 000000000000000000000000000f000f00000000000000000000000000000000 >} false 3 alphaimage grestore gstate nextdict /_NXSharedGrayAlpha get NX_TwelveBitRGB 1 index setwindowdepthlimit windowdeviceround 0 0 16 16 5 4 roll 0 32 Copy composite nulldevice termwindow
Newsgroups: comp.sys.next.programmer From: jorice@cs.tcd.ie (J.O. Rice) Subject: NS getrusage() implementation? Message-ID: <jorice.796561534@ashe> Organization: Computer Science, Trinity College Dublin Date: Thu, 30 Mar 1995 11:05:34 GMT I need to use getrusage() to allow a rather memory-hogging program to monitor its swapping behaviour, *but* it appears that under my current version of NS (3.0 - I know, I know :-), all of the fields of the "rusage" structure dealing with memory aren't implemented. Can someone tell me if these functions were added in later versions of NS? -- Jonathan Rice Department of Computer Science, Trinity College, Dublin 2, Ireland -- Department of Computer Science, Trinity College, Dublin 2, Ireland
From: Tim Griswold <tim@dancingbear.com> Newsgroups: comp.sys.next.marketplace,comp.sys.next.software,comp.sys.next.programmer Subject: Object Oriented Programming Competency Center Date: 29 Mar 1995 01:49:18 GMT Organization: Maui Research and Technology Center (MRTC) Distribution: world Message-ID: <3laeau$143@kahu.mrtc.maui.com> Keywords: OOP OBJECT ORIENTED PROGRAMMING COMPETENCY CENTER PROPOSAL Dancing Bear Enterprises is evaluating a proposal to create an Object Oriented Programming Competency Center at the Research and Technology Park on the island of Maui, Hawaii. This Center would include programs to promote the development of a software industry specializing in OOP related products and services. Appropriate tools, training and testing environments would also be available. We are looking for feedback to evaluate the level of interest in the proposed center. If you are interested in locating part or all of your development staff at the OOP Competency Center or the Maui Research and Technology Park, or would like to learn more about the proposed OOP Center, please take a few moments and complete and return the our OOP Survey. To receive a copy of the survey: Email: mailback@dancingbear.com with a subject of: OOP Survey (next) If ASCII mail only, use: OOP Survey If you have questions: Email questions to: oop@dancingbear.com with a subject of: question enter your question(s) in the body of the message
Newsgroups: comp.sys.next.programmer From: sb6fcb@sb601 (Francois Bourgeois) Subject: [Q] Structure of floppies Message-ID: <D69EJ1.1u2@rivm.nl> Summary: How to copy floppies with dd command Sender: news@rivm.nl Organization: Rijksinstituut voor Volksgezondheid en Milieuhygiene,Bilthoven,NL Date: Thu, 30 Mar 1995 15:18:36 GMT Someone wanted to send me some NEXTSTEP drivers, he had on a diskette. Because he wanted to do the transport through our ftp-server, he made an "image" of the diskette with the "dd" program and sended the resulting file. I got a file of 1478656 bytes. According to the sender I should give the following command to get back the original driver-diskette: dd if=received_file obs=18k of=/dev/fd0 (I used /dev/fd0a instead of /dev/fd0 because /dev/fd0a is the floppy drive in my system) What I did is: initialize the floppy, mount it and give the dd-command. But this command does not work. I get the following error: write: I/O error 2700+0 record in 75+0 records out An "ls" gives a "filename too long" error. I then tried several other block sizes: 512, 7680 because I saw some regularities in the file on 7680 byte boundaries, 1024 etc.). The 512 block-size command also results in an error and the the mounted floppy has becaome a normal file (with very weird user-id and size) in the root directory ! Can somebody answer this questions: 1) What dd-command should I use ? 2) Should the diskette first be initialized (and mounted) before the dd-command is started ? 2) In general: what is the structure of NEXTSTEP-formatted diskettes ? -- Francois Bourgeois, postbak 15, Risk Assessment | e-mail: sb6fcb@rivm.nl Division, National Institute of Public Health | and Environmental Protection , P.O.Box 1, | voice: +31 30 742962 3720 BA Bilthoven, The Netherlands | fax: +31 30 291492
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: comp.sys.next.programmer Subject: Please put 3.3 GNUsource on ftp! Date: 30 Mar 1995 16:38:24 GMT Organization: University of Heidelberg, Germany Message-ID: <3lemq0$mmm@sun0.urz.uni-heidelberg.de> Since 3.3 developer is finally shipping (is it ??), could perhaps a kind soul put the GNUsource.pkg on a ftp server (e.g. ftp.informatik.uni-muenchen.de) ? I'd like to have a look at it until my Developer update arrives here over. -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
From: newsmgr@fhrz10.fh-frankfurt.de Newsgroups: comp.sys.next.programmer Subject: POSIX and NEXTSTEP/Objective-C Message-ID: <1995Mar30.213614.76@fhrz10.fh-frankfurt.de> Date: 30 Mar 95 21:36:14 TCPWA Organization: Fachhochschule Frankfurt am Main I want to make a call to the function uname() which should return a struct utsname with the name of the OS, release, version, etc. I tried it the way it is described in the man page and some other literature, but on #include <sys/utsname.h> ... struct utsname info; The Compiler tells me that the "storage size of 'info' isn't known". I looked it up in the sys/utsname.h file and discovered that _POSIX_SOURCE must be defined to have the declaration of utsname compiled into the code. My program does nothing more than a call to uname() and printf the values. I tried $ cc test.c -D_POSIX_SOURCE -lposix and both compiler and linker where happy, but the execution of it resulted in "Floating exception". I tried uname() first within another program (Objective-C) and didn't succeed in linking the posix library against my stuff and NeXT_s (many duplicate symbols). So can't you use POSIX-specific calls in Objective-C programs? How can I do it even in plain C ? Sonja Schellenberg, Schellenberg@rz.fh-frankfurt.d400.de
From: nigelc@drake.bt.co.uk(Nigel Champion) Newsgroups: comp.sys.next.programmer Subject: Re: ATM driver for NSFIP Date: 30 Mar 1995 08:02:21 GMT Organization: BT Labs, Martlesham Heath, Ipswich, UK Message-ID: <3ldoid$eqd@pheidippides.axion.bt.co.uk> References: <D67oL0.3Ez@eunet.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <D67oL0.3Ez@eunet.ch> lien@lysis.ch (Lien Pham) writes: > Hi there, > > Did someone write a driver for an ATM network interface, or is anyone > currently working on such a driver? I'm extremely interested! > I am also VERY intrested -nige ______________________________________________________________ Nigel Champion +44 1473 647286 Email nigelc@drake.bt.co.uk (NeXTMail OK) BT LABS ,Martlesham Heath, Ipswich ,IP5 7RE, UK ______________________________________________________________
From: yuanchie@girtab.usc.edu (Yuan-Chieh Hsu) Newsgroups: comp.sys.next.programmer,comp.sys.next.marketplace Subject: Re: Extra Dev Docs For Sale Date: 30 Mar 1995 21:40:48 -0800 Organization: University of Southern California, Los Angeles, CA Sender: yuanchie@girtab.usc.edu Message-ID: <3lg4l0$d2f@girtab.usc.edu> References: <D661rv.EC@nyro.com> In article <D661rv.EC@nyro.com> ian@nyro.com (Ian H. Stewart) writes: ********************************************************************* Title SRP As marked on Book NEXTSTEP User Interface Guidlines $24.95 NEXTSTEP OO Prgramming & Obj-c $24.95 NEXTSTEP Dev Tools & Techniques $30.95 NEXTSTEP Programming Interface Summary $30.95 NEXTSTEP General Ref Vol 1 $44.95 NEXTSTEP General Ref Vol 2 $44.95 Total $201.70 Must be bought together. All for $125.00 plus shipping. ******************************************************************* I also have the same manual set for sale. If anyone missed the deal with Ian, please e-mail me. These manuals are still in a very good shape. Most of them are still like new. In fact, I haven't touched some of the manuals. My asking price is also $125 + shipping. The term will be COD or prepay. I personally prefer using COD. Thanks, yuanchie@usc.edu
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Will 3.3 apps run on 3.2? In-Reply-To: gsl@netcom.com's message of Wed, 29 Mar 1995 04:56:43 GMT Message-ID: <RDL.95Mar31003844@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <gslD66r2J.2pz@netcom.com> Date: Fri, 31 Mar 1995 05:38:44 GMT They should... There's a macro definition in the Makefile.preamable: ## Specify the deployment target for which to build this code. Setting this to ## 3.3 will allow use of the new style shared libraries and is required for ## dynamic library projects. ## (Note: this will eventually become settable in PB, but for now, you must ## modify this line to get the new behavior of the compiler ## and dynamic link editor). NEXTSTEP_DEPLOYMENT_TARGET = 3.2 Robert La Ferla HTI
Newsgroups: comp.sys.next.programmer From: dekorte@symnet.net (Steve Dekorte) Subject: Re: anyone doing VR on the NeXT Message-ID: <D6A3vo.3Ez@marble.com> Sender: news@marble.com Organization: Marble Associates, Inc. References: <rfenney-250395103608@rfenney.slip.netcom.com> Date: Fri, 31 Mar 1995 00:26:12 GMT > bigmouth1@aol.com wrote: > > > i want to know if the NeXT system lends itself to doing VR development There is PD OO source that supports the Nintendo power glove somewhere on the net. This is very easy to do on the NeXT because it can be hooked up through the DSP port. The DSP port can be very usefull for doing the kind of IO needed for real VR. -- Steve Dekorte
From: wolfgang@wi.WHU-Koblenz.de (Wolfgang Roeckelein) Newsgroups: comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.programmer Subject: NeXTstep Developer CD fat? Date: 31 Mar 1995 08:38:18 GMT Organization: WHU Koblenz Message-ID: <3lgf1q$qba@obelix.WHU-Koblenz.de> Hi, does anybody know, if the NeXTstep developer CD ist fat like the 3.2 (NeXT/Intel) or are there multiple CDs? Please answer per email, as my incoming news-connection is a bit weird. I will give a summary here. Thank you in advance, Wolfgang -- Dipl.-Wirtsch.-Inf. Voice: +49 261 6509 173 Wolfgang Roeckelein Fax: +49 261 6509 179 WHU Koblenz E-Mail: roeckelein@wi.whu-koblenz.de Burgplatz 2 (NeXTmail ok) D-56179 Vallendar Germany
From: mueller@anke.imsd.uni-mainz.de Newsgroups: comp.sys.next.programmer Subject: forbid moving a window Date: 31 Mar 1995 13:22:35 GMT Organization: Johannes Gutenberg-Universität Mainz, Germany Message-ID: <3lgvmr$m0t@kralle.zdv.Uni-Mainz.DE> So I think it is better to ask some experts before starting extensive hacking: We have implemented -windowWillMove:sender in the window's delegate and want to forbid - under certain circumstances - that the user can move the window. But the return value of -windowWillMove:sender is ignored. So how can I forbid the moving of the window? Any pointers to top-secret flags and methods are welcome. Robert -- Robert Mueller Tel. 06131/17 20 22 Medizinische Informatik Fax. 06131/17 29 68 Institut fuer Medizinische Statistik und Dokumentation, Universitaetskliniken Mainz 55101 Mainz, Germany (email: mueller@anke.imsd.uni-mainz.de)
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.programmer Subject: Re: does NS run on a DEC alpha?? Date: 29 Mar 1995 18:54:59 GMT Organization: Vienna University of Economics and Business Administration Distribution: world Message-ID: <3lcae3$i8k@osiris.wu-wien.ac.at> References: <3l2s3k$nqu@newsbf02.news.aol.com> BIGMOUTH1 (bigmouth1@aol.com) wrote: / just wanna find out ...thanx :) No, NEXTSTEP doesn`t run on DEC alpha. OpenStep will run on it. -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@fvkma.tu-graz.ac.at GNU OpenStep Development Team, Manager of the Documentation Department http://fvkma.tu-graz.ac.at/gnustep/gnustep.html
Newsgroups: comp.sys.next.programmer From: Paul_Lynch@plsys.com (Paul Lynch) Subject: Re: Newbie to Obj C and IB Organization: P & L Systems References: <3lhe4u$9it@milo.mcs.anl.gov> Date: Fri, 31 Mar 1995 21:54:49 +0000 Message-ID: <1995Mar31.215449.10093@seer.demon.co.uk> Sender: usenet@demon.co.uk In article <3lhe4u$9it@milo.mcs.anl.gov> caraher@eid.anl.gov (PJ Caraher) writes: > In article GKH@ul.ie, 9120092@news.ul.ie ( P O'Brien ) writes: > >For debugging and generally just keeping track of what my code is doing I want > >to be able to write simple text like 'loading dsp now' to a status panel. > >With one text field I can get this to work, however I require a scroll view so > >that I can look at the history of execution. > >I've gone through some examples like 'ScrollDoodScroll' and I think these are > >too complex. Can a text window be set up where 'printf' writes to? > >Any help is appreciated. > > If you run your App through the debugger your printf() statements will > be written to the dbx terminal. printf() will also show in the Console window, regardless of how you start your app. Paul -- Paul Lynch (NeXTmail) paul@plsys.com Tel: (01494)671501 9 Stable Lane, Seer Green, Fax: (01494)680228 Bucks, HP9 2YT, UK
From: rgc@cs.umd.edu (Ross Garrett Cutler) Newsgroups: comp.sys.next.programmer Subject: How can OpenPanel show file information? Date: 1 Apr 1995 04:11:25 -0500 Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Distribution: world Message-ID: <3lj5bt$bea@jujube.cs.umd.edu> I'd like to extend OpenPanel to show the size and date of the file currently selected (before OK is pressed). I don't see an easy way of doing this. I've tried intercepting OpenPanel's brower action, but that seems to break the functionality of OpenPanel. For example: -- - open:sender { openPanel = [OpenPanel new]; [openPanel setAccessoryView:myAccessoryView]; [openPanel runModal]; return self; } - modifyOpenPanel:sender { [openPanel setBrowserTarget:self]; [openPanel setBrowserAction:@selector(myAction:)]; return self; } - myAction:sender { extern id oldTarget; extern SEL oldAction; id retval; retval = [oldTarget perform:@selector(oldAction:) with:sender]; // show file info return retval; } -- A call to open:sender adds an accessory view and opens an OpenPanel. modifyOpenPanel is called when a button is pressed in the accessory view. (The reason to do this is the action/target doesn't seem to be set until the OpenPanel does a runModal.) setBrowserTarget saves the old target in oldTarget, and setBrowserAction saves the old action in oldAction. These two methods are in a catagory of OpenPanel. Has anyone attempted this type of extension to OpenPanel? Thanks. -- Ross Cutler University of Maryland, College Park rgc@cs.umd.edu http://www.cs.umd.edu/~rgc
From: chris@iastate.edu (Chris Wong) Newsgroups: comp.sys.next.programmer Subject: New gcc-2.6.3 fails in NeXTSTEP 3.2! Date: 1 Apr 1995 11:04:34 GMT Organization: Iowa State University, Ames, Iowa USA Message-ID: <3ljc02$1fm@news.iastate.edu> Keywords: gcc I hope someone got gcc-2.6.3 compile on NS3.2. Here is my attempt to compile it but stop at this point. I type configure and then make to compile. Everything went smoothly until this point. Thanks for any help. cc -traditional-cpp -c -DIN_GCC -g -I. -I. -I./config c-decl.c c-decl.c: In function `finish_struct': c-decl.c:5583: warning: parameter names (without types) in function declaration c-decl.c:5583: parse error before `tree' c-decl.c:5601: `declarator' undeclared (first use this function) c-decl.c:5601: (Each undeclared identifier is reported only once c-decl.c:5601: for each function it appears in.) c-decl.c:5601: `declspecs' undeclared (first use this function) c-decl.c:5738: warning: return makes pointer from integer without a cast c-decl.c:5745: parse error before `void' c-decl.c:5782: `specparms' undeclared (first use this function) c-decl.c:5792: `prototype' undeclared (first use this function) c-decl.c:5794: `parmdecls' undeclared (first use this function) c-decl.c:5798: `fndecl' undeclared (first use this function) c-decl.c:5814: `parm' undeclared (first use this function) c-decl.c:5872: `parmtags' undeclared (first use this function) c-decl.c:5965: `nonparms' undeclared (first use this function) c-decl.c: At top level: c-decl.c:6527: parse error at null character *** Exit 1 Stop. -- MIME welcomed, NeXTMail Ok. Chris Wong | "Hardware is supposed to serve Software." chris@iastate.edu | Computer Engineering & Computer Science <:)>:)<:)>:)<:)>:)<:) | Iowa State University of Science and Technology
Belgium.EU.net!EU.net!howland.reston.ans.net!swrinde!cs.utexas.edu!not-for-mail From: steve@estel.uindy.edu (Steve Spicklemire) Newsgroups: comp.sys.next.programmer Subject: complete set of GNU tools for NS Date: 30 Mar 1995 08:50:49 -0600 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9503301450.AA12527@estel.uindy.edu> Hi all, I am wondering if anyone has managed to build a complete set of GNU based tools (e.g., GNU compiler+libs but no InterfaceBuilder etc.) for NS so that folks can build vanilla BSD apps without having to purchase the complete NS-Developer package. (It's not *my* problem, since I live in academia where life is good and NS Developer is 'free' with NS.. but I talk to a lot of folks who ask questions... and this one I *don't* have a good answer for.) I know the libraries for the GNU compiler are problematic... so anyway... does anyone know of any solutions to this kinda problem? I guess the fallback position is linux... but I'm hoping for a NS answer. thanks! -steve --------------------------< cut here >---------------------------- Steve Spicklemire (317) 788-3313 steve@estel.uindy.edu Dept of Physics and Earth-Space Science NeXTmail Welcome! University of Indianapolis 1400 East Hanna Avenue, Indpls. IN, 46227
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <paul@Praktos.be> Message-ID: <9503311110.AA00304@hercules.Praktos.be> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Paul Janssens <paul@Praktos.be> Date: Fri, 31 Mar 95 12:07:41 +0100 Subject: Window before pulldown Menu? Is there anyway to get a window displayed before an active pull-down menu? During the action triggered by the pull-down menu item, I may require additional info, so I pop up a Panel, but the user may have to move it if it's partly obscured, 'cos the pulldown menu can't be moved. (It's rather scary how it remains fixed after you move the window that contained the triggerbutton.) If the window containing the pull-down menu was centered in the screen and the panel has a large size, it can not be made completely visible by the user. Anyone? Thanks, Paul
Belgium.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!sundog.tiac.net!usenet From: "Eric M. Busalacchi" <emb@herman.tiac.net> Newsgroups: comp.sys.next.programmer Subject: Re: complete set of GNU tools for NS Date: 30 Mar 1995 16:02:57 GMT Organization: The Internet Access Company Message-ID: <3leknh$s26@sundog.tiac.net> References: <9503301450.AA12527@estel.uindy.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit steve@estel.uindy.edu (Steve Spicklemire) wrote: ... Text Deleted ... >kinda problem? I guess the fallback position is linux... but I'm hoping >for a NS answer. Linux? May I suggest FreeBSD 2.0 instead? I had major problems with Linux and gcc. -- Eric M. Busalacchi emb@herman.tiac.net - Big brother is watching the net.. -----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6.2 mQBtAy9wT60AAAEDANXELDU41nUeIgahsO1l7+j4e++B2mq7Z4/xIPI80VsVI3lc nyEk9CnnxN7R7ZXw4WNyzBDiGVERe+CWiUHAc+Vr8PF/QpmqgvC3L5OBim0/4RY0 zurH/2OSHMiDcWqmXQAFEbQoRXJpYyBNLiBCdXNhbGFjY2hpIDxlbWJAaGVybWFu LnRpYWMubmV0Pg== =qEpQ -----END PGP PUBLIC KEY BLOCK-----
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: Document icon for an inspector Message-ID: <1995Mar31.214405.28610@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <3lbm56$8vv@news.univ-rennes1.fr> Date: Fri, 31 Mar 1995 21:44:05 GMT In article <3lbm56$8vv@news.univ-rennes1.fr> cadilhac@arles.univ-rennes1.fr (Nicolas Cadilhac) writes: > Hello, > > I'm trying to develop an inspector for a document. I'd like to activate > the new inspector directly by double clicking my document in the > workspace manager. > Since the inspector is a bundle, how to associate a document icon with > the bundle (in order to see my inspector bundle in the tools section of > the inspector window) ? > I did not try it myself, but this is an idea: I would try to create a file Some.iconheader containing lines like this: S extension bundlename iconname for example, S ext mybundle exticon and submit the file's name to gcc. Gcc will apparently recognize this combination of keys: -sectcreate __ICON __header Some.iconheader -segprot __ICON r r For every non-standard icon I would add this combination of keys as well: -sectcreate __ICON exticon ExtIcon.tiff Do not forget to add all non-standard icons to the project, so they are copied inside your bundle. Hopefully gcc will create appropriate sections in the executable. - Dimitri Plotnikov -- [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
Belgium.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!ubaclu.unibas.ch!ubaclu.unibas.ch!nntp Newsgroups: comp.sys.next.programmer Subject: Compiling CLIPS 6.0 expert system shell on NS 3.3 Message-ID: <1995Mar31.112057.44648@yogi.urz.unibas.ch> From: krampe@hoopy (Dirk Krampe) Date: 31 Mar 95 11:20:57 MET Hi, I would like to use CLIPS (6.0) on my NEXTSTEP (3.3) machine and tried to compile the sources, but I failed. Is there somone who can give me a hint ? Thanks in advance Dirk -- =================================================================== Dirk Krampe phone: ++41 61 267 3254 (office) Universitaet Basel ++49 7621 77909 (private) Institut fuer Informatik / WWZ fax: ++41 61 267 3251 Petersgraben 51 email: krampe@ifi.wwz.unibas.ch CH-4051 Basel (NeXT-Mail accepted) ===================================================================
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/Career Position/Indiana Date: 1 Apr 1995 20:21:58 GMT Organization: Norden 1 Communications Message-ID: <3lkcl6$cb@news1.channel1.com> Position-------------------Programmer/analyst/developer Platform-------------------NEXTSTEP--1yr+ commercial experience. Language-------------------Objective C--1yr+commercial experience. A plus---------------------DB Kit or EOF A plus---------------------Sybase or oracle Type of position-----------Career Position Area-----------------------Indiana Cost of living-------------Low to moderate Relocation-----------------Company assistance To be considered-----------Fax resume or mail a hard copy. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
Newsgroups: comp.sys.next.programmer From: precipi!neekibo (Hugues RICHARD) Subject: [A] Structure of floppies Message-ID: <1995Mar31.220033.3984@precipice.fdn.fr> Sender: neekibo@precipice.fdn.fr Organization: Individual - Dijon, France. References: <D69EJ1.1u2@rivm.nl> Date: Fri, 31 Mar 1995 22:00:33 GMT In article <D69EJ1.1u2@rivm.nl> sb6fcb@sb601 (Francois Bourgeois) writes: > Someone wanted to send me some NEXTSTEP drivers, he had on > a diskette. Because he wanted to do the transport through our > ftp-server, he made an "image" of the diskette with the > "dd" program and sended the resulting file. > I got a file of 1478656 bytes. According to the sender I > should give the following command to get back the original > driver-diskette: > > dd if=received_file obs=18k of=/dev/fd0 > > (I used /dev/fd0a instead of /dev/fd0 because /dev/fd0a is > the floppy drive in my system) > > What I did is: initialize the floppy, mount it and give the > dd-command. But this command does not work. I get the > following error: First, initialize the disk but don't mount it (unmount it) ! If you're using a NeXT, eject the disk. If your're using anything other than a NeXT insert the disk. open a shell and type : dd if=input_file bs=1024 count=1440 of=/dev/rfd0b If you're using a NeXT, a window will ask you to insert a disk). you can change bs and count (for exemple bs=1478656 and count=1 will work) you must use /dev/rfd0b because you are doing a Raw operation (r***) and it concerns all the disk (***b) Hugues. -- -------------------------------------------------------------------- neekibo@precipice.fdn.fr - France (small NeXTMail OK) ------------ NS3.2 ------------ NS3.0J ------------ :-) ------------
From: rprice@reunion.umd.edu (Rodney Price) Newsgroups: comp.sys.next.programmer Subject: Re: complete set of GNU tools for NS Date: 30 Mar 1995 17:43:38 GMT Organization: University of Maryland, College Park Distribution: world Message-ID: <3leqka$p3r@hecate.umd.edu> References: <9503301450.AA12527@estel.uindy.edu> In article <9503301450.AA12527@estel.uindy.edu> steve@estel.uindy.edu (Steve Spicklemire) writes: > Hi all, > > I am wondering if anyone has managed to build a complete set of > GNU based tools (e.g., GNU compiler+libs but no InterfaceBuilder etc.) for > NS so that folks can build vanilla BSD apps without having to purchase the > complete NS-Developer package. (It's not *my* problem, since I live in > academia where life is good and NS Developer is 'free' with NS.. but I > talk to a lot of folks who ask questions... and this one I *don't* have a > good answer for.) I know the libraries for the GNU compiler are > problematic... so anyway... does anyone know of any solutions to this > kinda problem? I guess the fallback position is linux... but I'm hoping > for a NS answer. > The GNU tools in NeXTSTEP are all copy-lefted, so they are freely available even with the changes NeXT made to them. You can get the binaries for the compiler, assembler, debugger, and libraries from ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/Developer/nextsou rces/cc-NeXT.2.5.8.NIH.ba.tar.gz ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/Developer/nextsou rces/as-1.38.NIH.tar.gz ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/Developer/nextsou rces/gdb-4.7.NIH.b.tar.gz ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/Developer/nextsou rces/libg++_for_3.2.NIH.ba.tar.gz To install unpack the files in / as root. I've been using these tools for some time now on my NS 3.2 system to debug C++ code. I then move the code to either an HP 735 running HPUX or a DEC Alpha running OSF/1. The generic GNU compilers on those machines compile the code flawlessly. Rod Price rprice@reunion.umd.edu
Newsgroups: comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!news.moneng.mei.com!news.ecn.bgu.edu!feenix.metronet.com!icc_lab!news From: tfrey@bozell.com Subject: Notification of Scrollview change Message-ID: <1995Mar29.215558.17571@bozell.com> Keywords: Scrollview, help Sender: news@bozell.com Organization: Bozell, Jacobs, Kenyon & Eckhardt, Inc. Date: Wed, 29 Mar 1995 21:55:58 GMT opinions expressed are strictly those of the user and not necessarily those of BJK&E or its clients. Does anyone know of a method that notifies you of a scrollview changing? Specifically, when the scroll bar is moved I want to be alerted to it. -- --------------------------------------------------------------------- ------- Tony Frey tfrey@bozell.com Bozell, Jacobs, Kenyon & Eckhardt, Inc. 214-830-2122 NeXTMail welcome! --------------------------------------------------------------------- ------- -- NewsGrazer, a NeXTstep(tm) news reader, posting -- M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.WT*7&UA M<F=L,3(P"EQM87)G<C$R,`I<<&%R9%QT>#$Q-3)<='@R,S`T7'1X,S0U-EQT M>#0V,#A<='@U-S8P7'1X-CDQ,EQT>#@P-C1<='@Y,C$V7'1X,3`S-CA<='@Q M,34R,%QF,%QB,%QI,%QU;&YO;F5<9G,R-%QF8S!<8V8P(%P*1&]E<R!A;GEO M;F4@:VYO=R!O9B!A(&UE=&AO9"!T:&%T(&YO=&EF:65S('EO=2!O9B!A('-C M<F]L;'9I97<@8VAA;F=I;F<_7`I<"E-P96-I9FEC86QL>2P@=VAE;B!T:&4@ M<V-R;VQL(&)A<B!I<R!M;W9E9"!)('=A;G0@=&\@8F4@86QE<G1E9"!T;R!I M="Y<"EP*+2U<"EP*+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+5P* M5&]N>2!&<F5Y"0D)"0D)("`@=&9R97E`8F]Z96QL+F-O;5P*0F]Z96QL+"!* M86-O8G,L($ME;GEO;B`F($5C:VAA<F1T+"!);F,N"0D)("`@("`@(#(Q-"TX M,S`M,C$R,EP*3F585$UA:6P@=V5L8V]M92%<"BTM+2TM+2TM+2TM+2TM+2TM M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM 3+2TM+2TM+2TM+2TM+2U<"@I]"BTM `
From: jcr@idiom.com (John C. Randolph) Newsgroups: comp.sys.next.programmer Subject: Re: Java Date: 1 Apr 1995 04:13:32 -0800 Organization: Idiom Consulting > Sounds kind of almost like PostScript, doesn't it? Message-ID: <3ljg1c$6va@idiom.com> References: <D621r6.CFp@cunews.carleton.ca> <3l7rmu$594@cs.ubc.ca> <henry-3103951546390001@trilithon.com> No, because PostScript has no security features! (Gosling realized this during the NeWS project.) -jcr
Belgium.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!matlock.mindspring.com!usenet From: Jeff_Sickel@sickel.com Newsgroups: comp.sys.next.programmer Subject: Extended tcl for NeXTSTEP 3.3 anyone? Date: 31 Mar 1995 04:29:07 GMT Organization: MindSpring Enterprises Message-ID: <3lg0ej$bvs@nntp4.mindspring.com> Summary: tclX7.4b3 I've been trying to get tclX7.4 to compile on my NeXTSTEP 3.3 developer with no luck. Does anyone know of a way to get just the tcl extentions (I have absolutely no use for the tk stuff - until it will work with NEXTSTEP). Jeff Sickel
From: Peter Urka <pcu@umich.edu> Newsgroups: comp.sys.next.programmer Subject: Re: forbid moving a window Date: Sat, 1 Apr 95 22:05:49 GMT Organization: Squirrel Bin Sender: preston@urkabox.chem.lsa.umich.edu Distribution: world Message-ID: <01Apr2205490321@urkabox.chem.lsa.umich.edu> References: <01Apr1828568310392321@urkabox.chem.lsa.umich.edu> <3lgvmr$m0t@kralle.zdv.Uni-Mainz.DE> In article: <01Apr1828568310392321@urkabox.chem.lsa.umich.edu> Peter Urka <pcu@umich.edu>writes Sorry 'bout that: /* an easy implementation */ - windowWillMove:sender { if (userIsBeingNaughty) [sender moveTo:oldx :oldy]; return self; } Peter Urka <pcu@umich.edu> Dept. of Chemistry, Univ. of Michigan Newt-thought is right-thought. Go Newt!
Belgium.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!math.ohio-state.edu!jussieu.fr!news.univ-angers.fr!news.univ-rennes1.fr!newsmaster From: cadilhac@arles.univ-rennes1.fr (Nicolas Cadilhac) Newsgroups: comp.sys.next.programmer Subject: Communication with Edit.app Date: 31 Mar 1995 07:50:35 GMT Organization: Universite de Rennes 1, France Message-ID: <3lgc8b$fvt@news.univ-rennes1.fr> I'd like to communicate with Edit. My own programm creates a file and I want Edit to open it or open a new document and fill it with what I want. How to do this ? Thank you for any help ! -- Nicolas Cadilhac ---------------- INSERM CJF 90-12 Clinique neurologique Hopital Pontchaillou 35033 Rennes Cedex
Belgium.EU.net!EU.net!howland.reston.ans.net!spool.mu.edu!olivea!news.bu.edu!dartvax.dartmouth.edu!coos.dartmouth.edu!rhaas From: rhaas@coos.dartmouth.edu (Richard M. Haas) Newsgroups: comp.sys.next.programmer Subject: top for the NeXT Date: 30 Mar 1995 17:38:39 GMT Organization: Dartmouth College, Hanover, NH, USA Message-ID: <3leqav$l94@dartvax.dartmouth.edu> Does anyone know of a version of top by William LeFebvre for the NeXT? Thanks, Rich -- Rich ----
From: (Charles de Montebello) clannes@panix.com Newsgroups: comp.sys.next.programmer Subject: NextDeveloper demos Date: 1 Apr 1995 23:07:24 GMT Organization: PANIX Public Access Internet and Unix, NYC Message-ID: <3lkmbc$4hb@news.panix.com> To All, Idiotically, I deleted some of the demos that I thought I didn't like and now I want to get them back. I can't seem to. When I reinstall the DeveloperTools.pkg they don't reappear... Then I de-installed the tools and reinstalled them and that didn't work either. Do I need to de-install all parts of NextDeveloper for this to work and, if so, will this screw with my other Apps? All that comes back from the tools .pkg are two demos: Appinspector and DDMModeler. Any ideas? Thanks. Charles.
Newsgroups: comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!ix.netcom.com!netcomsv!uu3news.netcom.com!nosloc!derek From: derek@nst.com (Derek Collison) Subject: Re: Programmatically disabling Window movement Message-ID: <D6Ao5K.9IL@nosloc.com> Sender: derek@nosloc.com (Derek Collison) Organization: Nosloc Software Technologies References: <RDL.95Mar27150011@world.std.com> Date: Fri, 31 Mar 1995 07:44:08 GMT In article <RDL.95Mar27150011@world.std.com> rdl@world.std.com (Robert La Ferla) writes: > Joe, > > You can create a window that takes up the entire screen and change it's > window level (tier.) That will limit them from accessing other parts of NS. > As far as preventing them from moving a panel/window within that, you might > want to override Window's "moveTo::" method and "constrainFrameRect:toScreen:". > > Robert La Ferla > HTI > Registered NS Developer/Consultant/Trainer > + 1 617 252 0088 You could also create a plain window that mimics the header of a normal appkit window and handle events yourself. -- Derek Collison <--> derek@nst.com (NeXTMail & MIME mail Welcome) NST NEXTSTEP / OPENSTEP
From: Peter Urka <pcu@umich.edu> Newsgroups: comp.sys.next.programmer Subject: Re: forbid moving a window Date: Sat, 1 Apr 95 18:28:56 GMT Organization: Squirrel Bin Sender: preston@urkabox.chem.lsa.umich.edu Distribution: world Message-ID: <01Apr1828568310392321@urkabox.chem.lsa.umich.edu> References: <3lgvmr$m0t@kralle.zdv.Uni-Mainz.DE> In article: Peter Urka <pcu@umich.edu> Dept. of Chemistry, Univ. of Michigan Newt-thought is right-thought. Go Newt!
From: Ernest Prabhakar <ernest@pundit.cithep.caltech.edu> Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/OpenStep Programmer's SIG Date: 31 Mar 1995 02:42:27 GMT Organization: California Institute of Technology, Pasadena Distribution: world Message-ID: <3lfq6j$5h2@gap.cco.caltech.edu> Hello all, This is Ernie "Prattling Man" Prabhakar, Mr. User Group. As many of you know, we have created/taken over SIGs for Publishing/Multimedia and Educational/Scientific. We have recurring requests from people about a Developer/Programmer SIG. In addition to a help line, this could also serve as a sponsor for some of our standards efforts (like WebStep). However, I'm not on a power trip. so if there are some existing general purpose mailing lists for programmers, I'd be more than happy to route people to that. If you like, we could work out some sort of recognition by nugi so that you're on an equal footing with the other SIGs. If there is no such beast, we can certainly go ahead and create one if there's sufficient interest. Given the apparent death of ANDI, there is certainly a need for something of this sort. Thanks, -- Ernie P. President, NEXTSTEP/OpenStep User Groups International -- Ernest N. Prabhakar, President, NEXTSTEP/OpenStep User Groups Intnl. NeXT mail:ernest@caltech.edu "...your servants for Jesus' sake." http://www.cithep.caltech.edu/~ernest/Home.htmld - II Cor 4:5b "I speak for myself, and often for 'nugi', but never for Caltech."
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Memory debugging Message-ID: <jpanicoD6DzJ0.10q@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Sun, 2 Apr 1995 02:42:36 GMT Sender: jpanico@netcom8.netcom.com Hi, Are there any 3rd party tools that do what MallocDebug is supposed to do (but doesn't)? More specifically, are there any utilities that can help a programmer find memory leaks, allocated space overruns, dangling pointers, etc.. Also, ObjC implemented for NS 3.2 has no mechanism for garbage collection or even garbage tracking. If some developer gives me an object (say from MiscKit) which requires that I pass it a pointer as an argument to one of its methods, I have no way of knowing if the object will make a copy of the pointed to storage (in which case I should do the garbage collection) or if the object assumes control of the pointed to storage (in which case it should do the garbage collection). Are there any memory profiling tools that can help track down memory leaks or prematurely freed storage from this type of scenario? Any tips, hints appreciated. Thanks Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.programmer From: chuston@dudley.com (Chris Huston) Subject: NXApp/How does it know? Message-ID: <D6BJ7x.E3t@dudley.com> Sender: news@dudley.com Organization: D.C. Dudley & Associates, Denver, Colorado Distribution: usa Date: Fri, 31 Mar 1995 18:55:08 GMT How does the Application class get access to the command line arguments? The main function accepts them - but how do they get to the Application object? Note: This isn't a question about NXArgc, NXArgv. The thing I don't get is that argc, argv are only defined in the scope of the main function - how does NXApp get to them? Thanks! -Chris
Belgium.EU.net!EU.net!news.sprintlink.net!cs.utexas.edu!swrinde!sgiblab!uhog.mit.edu!news.mathworks.com!uunet!wombatnet.batnet.com!trilithon.com!user From: henry@trilithon.com (Henry McGilton) Newsgroups: comp.sys.next.programmer Subject: Re: Java Date: Fri, 31 Mar 1995 15:46:39 -0700 Organization: Trilithon Software Message-ID: <henry-3103951546390001@trilithon.com> References: <D621r6.CFp@cunews.carleton.ca> <3l7rmu$594@cs.ubc.ca> In article <3l7rmu$594@cs.ubc.ca>, croehrig@sns.cs.ubc.ca (Chris Roehrig) wrote: * Java is much more than a high level language specification. It's also the * specification for the virtual machine that the language compiles to and * runs on (in terms of instruction opcodes, registers, etc.). It is * hardware architecture independent (i.e. interpreted by the host * architecture), and has security features built into it. Sounds kind of almost like PostScript, doesn't it? ........ Henry
From: Joe Freeman Newsgroups: comp.sys.next.programmer Subject: Re: NXApp/How does it know? Date: 1 Apr 1995 12:54:01 GMT Organization: US Net Distribution: usa Message-ID: <3ljid9$a91@ns.us.net> References: <D6BJ7x.E3t@dudley.com> I believe the start up routine crt0 salts the pointers away, possibly in NXArgc,NXArgv so that applicaton can get to them. I don't know what context you are asking the question in but people usually wonder hwo the comand line defaults options are read. It is either done in crt0 or in one of the application object methods. In article <D6BJ7x.E3t@dudley.com> chuston@dudley.com (Chris Huston) writes: > How does the Application class get access to the command line arguments? The > main function accepts them - but how do they get to the Application object? > > Note: This isn't a question about NXArgc, NXArgv. The thing I don't get is that > argc, argv are only defined in the scope of the main function - how does NXApp > get to them? > > Thanks! > -Chris -- Joe Freeman FreemanSoft Inc. A NEXTSTEP software and consulting company. Electronic Mail: Joe@FreemanSoft.com (NeXT Mail) Voice: 301.279.2387
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: NextDeveloper demos Date: 2 Apr 1995 08:04:34 GMT Organization: Total System Software Distribution: world Message-ID: <3lllqi$1l6@tssslab.TotSysSoft.com> References: <3lkmbc$4hb@news.panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <3lkmbc$4hb@news.panix.com> (Charles de Montebello) clannes@panix.com writes: }~ To All, }~ }~ Idiotically, I deleted some of the demos that I thought I didn't }~ like and now I want to get them back. I can't seem to. When I }~ reinstall the DeveloperTools.pkg they don't reappear... }~ Then I de-installed the tools and reinstalled them and that didn't }~ work either. Do I need to de-install all parts of NextDeveloper for }~ this to work and, if so, will this screw with my other Apps? }~ }~ All that comes back from the tools .pkg are two demos: }~ Appinspector and DDMModeler. }~ }~ Any ideas? Two. First is that many of the /NextDeveloper/Demos/* apps are in the USER distribution. Second is that you can selectively use (cd /NEXTSTEP_3.?/NextDeveloper/Demos ; gnutar -cf - SomeApp.app) | (cd /NextDeveloper/Demos ; gnutar -xpf - ) as root IF you have the CD-ROM mounted as root. Substitute /NEXTSTEP_Dev_3.x or alternate spellings for other versions. - Not tested on 3.3 +-+ Bruce Gingery Total System Software Cheyenne, WY USA We do consulting over Internet. E-Mail tss@TotSysSoft.com for quotes or more info. Homepage construction area:<URL:http://turnpike.net/metro/bagingry/> NEXT IN LINE magazine staff technical writer Bruce Gingery <bgingery@Wyoming.COM> OR <bruce@TotSysSoft.com> Multimedia: NeXTmail(tm) preferred MIME-mail welcome
From: (Charles de Montebello) clannes@panix.com Newsgroups: comp.sys.next.programmer Subject: Re: NextDeveloper demos Date: 2 Apr 1995 16:26:41 GMT Organization: PANIX Public Access Internet and Unix, NYC Message-ID: <3lmj81$h5s@news.panix.com> References: <3lkmbc$4hb@news.panix.com> Thanks to those who helped. I found them... Charles
Newsgroups: comp.sys.next.programmer From: tini@gurke.ping.de (Constantin Szallies) Subject: NXBrowser and the setPath: method Message-ID: <D6FqzG.2GK@gurke.ping.de> Sender: usenet@gurke.ping.de Organization: Legalize THC Date: Mon, 3 Apr 1995 01:33:16 GMT I have the following problem: I have loaded a matrix in a NXBrowser with 2 entries which have the same name. One is a leaf, the other not. When I use [browser setPath:"@one@foo"], the browser allways selects the first foo in the matrix, which is the leaf, but never the second, which is not a leaf. Also [matrix setPath:"@one@foo@"] or [matrix setPath:"@one@foo@two"] does not solve the problem. Thanx for the help -- <--------------------------------------------------------------> | Constantin Szallies ||| tini@gurke.ping.de | | Emil Figge 7 44227 Dortmund (o o) Tel: 0231/7519681 | <------------------------------oOo--(_)--oOo------------------->
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 3 Apr 1995 04:15:07 GMT Organization: Digital Fix Development Message-ID: <3lnsob$2fn@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally the NEXTSTEP there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ *** NEED INFORMATION *** NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff, but very short on disk space ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.next.com: See the below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.fonts Belgium.EU.net!EU.net!howland.reston.ans.net!pipex!news.maz.net!news.omnilink.net!batman.RoBIN.de!glocke!frank From: frank@glocke.robin.de Subject: Re: True Type fonts on the Next? Message-ID: <1995Mar26.102507.286@glocke.robin.de> Keywords: fonts References: <D5HM19.HHE@cunews.carleton.ca> Date: Sun, 26 Mar 1995 10:25:07 GMT As far as I remember there is a program called "Font Monger" for the PC that can convert TrueType to PS-Fonts, but I am not sure about it. Hope this helps Frank
From: ken@nika.com (Ken Pelletier) Newsgroups: comp.sys.next.programmer Subject: Re: NSString init methods..... Date: 2 Apr 1995 23:11:05 GMT Organization: MCSNet Services Message-ID: <3lnau9$od@News1.mcs.com> References: <3lmqv0$oav@srvr1.engin.umich.edu> In article <3lmqv0$oav@srvr1.engin.umich.edu> premise@pluto.eecs.umich.edu (Sean Willson) writes: > I have a question for those who are using the Foundation Kit to > program under. I wish to create a NSMutableString Object, yet the only > init function I see in the specs is: > > - initWithCapacity:(unsigned int)capacity Initializes a newly allocated > mutable string object, giving it enough allocated memory to hold > capacity characters. > > The problem is that the length of the string I am creating can be very large > and even varies a lot. Is there an easy way to handle this by the NSString > object or would I have to create a control object to monitor the sizes > of my string object and when they were to large to create a new instance? > Thanks for the help....... > > Sean Willson > premise@pluto.eecs.umich.edu > > P.S. I am creating a MIME translation utility, and the size of the > mime file will not be know before hand. Sean, The doc isn't very helpful here, but the good news is you needn't worry about the capacity. initWithCapacity: will allow you to give an initial capacity for your string, but the string will allocate more memory as needed. You can use initWithCapacity if, for example, you know your string's approximate size and want to avoid it's having to grow itself, especially if it's likely to be very large. Remember that the entire interface for NSString is also available to NSMutableString's so: aString = [[NSMutableString alloc] init]; aString = [[NSMutableString alloc] initWithCapacity:256]; aString = [NSMutableString stringWithCString:"foobar"]; // retain if needed .. are all ways of creating an NSMutableString instance, among others. - Ken -- Ken Pelletier (ken@nika.com) NiKA Software 1207 W. Newport Ave. Chicago, IL 60657
From: Ray Ryan <rjrjr@lighthouse.com> Newsgroups: comp.sys.next.programmer Subject: Re: Java Date: 31 Mar 1995 15:55:46 GMT Organization: Lighthouse Design, Ltd. Distribution: world Message-ID: <3lh8m2$dvg@lighthouse.lighthouse.com> References: <byerzng5zvcmcvir@ductwork.mv.us.adobe.com> It seems to me that the Java web browser and server are much more interesting than the new language. The ability for the client to request machine independent programs and execute them in/on top of an HTML document is phenomenal. Every Web site should have little cartoon characters doing cartwheels across it! If they've done the virtual machine right, you could probably write a compiler for just about any high level language. Scheme, anybody? -- Ray Ryan, Lighthouse Design, Ltd. +1-415-570-7736 rjrjr@lighthouse.com http://www.lighthouse.com/~rjrjr/
From: mark@nextstep.dorm6.nctu.edu.tw (Lin Yi-chih) Newsgroups: comp.sys.next.programmer Subject: Re: ATM driver for NSFIP Date: 31 Mar 1995 19:25:43 GMT Organization: Dep. Computer Sci. & Information Eng., Chiao Tung Univ., Taiwan, R.O.C Distribution: World Message-ID: <3lhkvn$j98@news.csie.nctu.edu.tw> References: <3ldoid$eqd@pheidippides.axion.bt.co.uk> In article <3ldoid$eqd@pheidippides.axion.bt.co.uk> nigelc@drake.bt.co.uk(Nigel Champion) writes: > In article <D67oL0.3Ez@eunet.ch> lien@lysis.ch (Lien Pham) writes: > > Hi there, > > > > Did someone write a driver for an ATM network interface, or is anyone > > currently working on such a driver? I'm extremely interested! > > > > I am also VERY intrested > > -nige I hate to say that but *** me too *** PS: anybody know if SUN will write their ATM Networks card driver for NeXTSTEP? Mark - - - - - - - - - Taiwan NeXT User Group TeleCommunication and Networks Labs, Dep. of Communication Engineering National Chiao Tung University Hsinchu, Taiwan
From: mizuguch@kits.sfu.ca (Mark Hiroshi Mizuguchi) Newsgroups: comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software Subject: Q: old Draw.app Demo Date: 3 Apr 95 02:09:11 GMT Organization: Simon Fraser University Message-ID: <mizuguch.796874951@sfu.ca> Do anyone know of any ftp sites that have the old source for the Draw.app demo. By old I mean without all the new undo mechanisms. I am currently trying to come up with a simple multi-layer draw app. I dont need the undo functionality and am having a hard time understanding the demo with all the undo code. As well the app is taking up more disk space than I have allocated on our schools disks. e-mail responses appreciated. -- Mark Mizuguchi mizuguch@sfu.ca -- Mark Mizuguchi mizuguch@sfu.ca
Newsgroups: comp.sys.next.software,comp.sys.next.programmer From: bmarchan@quest.fdn.org (Benoit Marchant) Subject: What's your mind about GraphBuilder/Gaph Object Library ? Message-ID: <1995Apr3.085801.10087@quest.fdn.org> Keywords: graphing Sender: news@quest.fdn.org Organization: Quest International / Unilever - Neuilly, France Distribution: fr Date: Mon, 3 Apr 1995 08:58:01 GMT I'm looking for a graph kit to include in a custom application, does anyone already use GraphBuilder/Gaph Object Library ? How is it ? What else to do this job ? Benoit Marchant benoit@quest.fdn.org
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: Text + MiscKit question Date: 3 Apr 1995 13:26:05 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3lot1d$c9c@solaris.cc.vt.edu> First the text question, is there any way to get char positions of the visible text of a text object in a scrollview? I found Sharon Zakhour miniexample ConvertXYtoChar but that doesn't appear to work. Now the misckit question, how do I search only a selected piece of text using searchFor:mode:reverse:regexpr:cases:position:, only stopping when I have found every occurence of the word in the piece of selected text. Here's what I am trying [self setSel:0 :[self textLength]]; // not really what i want to do // but here to illustrate a point int start, length; int curMode = SelStartToSelEnd; NXSelPt startPt, endPt; // get the current selection [self getSel:&startPt :&endPt]; while ([self searchFor:[word stringValue] mode:curMode reverse:NO regexpr:reg cases:YES position:&start size:&length] != 0) { //.. do something // set new selection starting at end of old to [self setSel:(start+length) :(endPt.cp - (start+length))]; } This seems to find words some of the time, sometime finding words it missed after searching for something else. Note, that even if I select everything in the text this still doens't work the way I had hoped. Thanks John Stanhope
From: lee00074@mc.duke.edu (Ju-Sung Lee) Newsgroups: comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.misc,comp.soft-sys.nextstep Subject: NeXT Icon Web Site Wanted Date: 3 Apr 1995 13:34:49 GMT Organization: Duke University Medical Center Distribution: inet Message-ID: <3lothp$la8@news.duke.edu> I was told that there is some Web-site which contains many of the NeXT icons converted into .BMP files (bit-maps). Would someone please e-mail me that site (if it exists)? E-mail address: lee00074@mc.duke.edu Thanks (very much) in advance. Ju-Sung Lee
From: caraher@eid.anl.gov (PJ Caraher) Newsgroups: comp.sys.next.programmer Subject: Re: Newbie to Obj C and IB Date: 31 Mar 1995 17:29:02 GMT Organization: Argonne National Laboratory Distribution: world Message-ID: <3lhe4u$9it@milo.mcs.anl.gov> References: <D6BGtz.GKH@ul.ie> In article GKH@ul.ie, 9120092@news.ul.ie ( P O'Brien ) writes: >All this week I've been driven crazy by the Interface Builder and some code >I am working on. >For debugging and generally just keeping track of what my code is doing I want >to be able to write simple text like 'loading dsp now' to a status panel. >With one text field I can get this to work, however I require a scroll view so >that I can look at the history of execution. >I've gone through some examples like 'ScrollDoodScroll' and I think these are >too complex. Can a text window be set up where 'printf' writes to? >Any help is appreciated. > >Peter O'Brien >-- >============================================================================== > Peter O'Brien 9120092@ul.ie http://skynet.ul.ie/~woppi >============================================================================== Peter: If you run your App through the debugger your printf() statements will be written to the dbx terminal. PJC --- | | | My name is NOT Dave Rhodes, but you can send me $1 anyway! | | |
From: chris@opensource.com Newsgroups: comp.sys.next.programmer Subject: EOF and NSDate and NSCalendarDate QUESTION Date: 31 Mar 1995 18:07:18 GMT Organization: Rocky Mountain Internet Inc. Distribution: world Message-ID: <3lhgcm$o1r@potogold.rmii.com> I got a question. Why does this print todays date: cat > date.m << EOF #include "foundation/NSDate.h" main() { NSCalendarDate *aTime; aTime = [NSCalendarDate dateWithString:@"3:45" calendarFormat:@"%H:%M"]; NSLog([aTime description]); } EOF cc -o date date.m -lFoundation_s date Fri Mar 31 10:50:19 GMT-0700 1995 Moreover, how can I represent a length of time with all the support given to representing specific times. Chris
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: Re: Info on serial port access. Date: 3 Apr 1995 21:04:24 GMT Organization: Netcom Distribution: world Message-ID: <3lpnso$mqe@ixnews4.ix.netcom.com> References: <3lp1o9$nkp@barracuda.dadd.ti.com> In <3lp1o9$nkp@barracuda.dadd.ti.com> jhermann@pooh.msp.sc.ti.com (John Hermann) writes: > >Is there a good book/document that explains how to access >the serial ports on Mono NeXTstations? I have traversed >the man pages and digital librarian for on-line help, but >cannot find the programming info required to write a >controlling C language program. Any help appreciated. > >Best Regards > >John Hermann > Hi John, I was looking for documentation on how programming on serial port couple weeks ago. several people suggest me to use / buy serialport kit for BenaTong or HR Technologies. Benatong price is cheaper. I will contact them prettty soon. I'll let you know what happen next Kurniawan
From: jehu@blackbox.cl.ee.vt.edu (John Stanhope) Newsgroups: comp.sys.next.programmer Subject: Are there any tool to convert GNU info files to RTF Date: 3 Apr 1995 16:18:51 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3lp75b$mj6@solaris.cc.vt.edu> Subject says it all, looking to convert a set of info files to rtf. Thanks John
From: pww@bnr.ca (Peter Whittaker) Newsgroups: comp.sys.next.programmer Subject: Does putenv() exist under NeXTStep? Date: 3 Apr 1995 14:23:10 GMT Organization: Bell-Northern Research Ltd. Message-ID: <3lp0ce$cku@bcrkh13.bnr.ca> I'm porting some code from various flavours of UNIX to NeXTStep FIP; my code uses getenv() and putenv() to determine how it should behave based on the existence or lack thereof or certain environment variables. NeXTStep has the getenv() call, so I can determine if certain values are in the environment; trouble is, it doesn't have - at least as far as my RTFMing and Librarian-assisted searching can determine - a putenv() or equivalent call, so I can't stuff stuff back into the environment, for later retrieval. Is my RTFMing correct? Does putenv() truely not exist, or is it merely hiding somewhere less than obvious? If putenv() does not exist, can someone suggest an alternative? Creation of a NeXTStep specific object to handle this may be acceptable (i.e. overload the getenv() call, and maintain two environment lists: true and process-specific; having the process-specific environment list be inherited by all children of the setting process would be nice but is not a primary concern at this point). I'm running NeXTStep 3.3 FIP with a late beta of the 3.3 development environment. pww -- Peter Whittaker [~~~~~~~~~~~~~~~~~~~~~~~~~~] X.500 DS Specialist pww@entrust.com [ ] NT Secure Networks Ph: +1 613 765 2064 [ ] P.O. Box 3511, Station C FAX:+1 613 765 3520 [__________________________] Ottawa, Canada, K1Y 4H7
From: steve@stevek.ipac.net Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.hardware,comp.sys.next.bugs,comp.soft-sys.nextstep Subject: Re: FROZEN WORKSTATION!!! HEEEEEEEELP!!!! Date: Sun, 02 Apr 95 19:04:58 PDT Organization: Internet Public Access Corporation Distribution: inet Message-ID: <NEWTNews.24667.796874773.steve@stevek.ipac.net> References: <3lfptn$quc@news.eecs.nwu.edu> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII try bringing it up in single user mode (check your manual) and fsck the drive
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: DBKit & libMallocDebug == Oil & Water? Message-ID: <jpanicoD6H2oG.G23@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Mon, 3 Apr 1995 18:43:27 GMT Sender: jpanico@netcom18.netcom.com Hi, NSI 3.2 Developer 3.2 I have a DBKit app that normally runs without any crashes, but that reliably crashes when linked with libMallocDebug and certain simple fetches are performed. Is libMallocDebug known to have trouble with the DBKit? (incidentally, I'm using the new the "fixed" libMallocDebug that i downloaded from nextAnswers) Joe Panico jpanico@netcom.com
From: jharding@thor.tjhsst.edu (John Harding) Newsgroups: comp.sys.next.programmer Subject: takeStringValueFrom method Date: 3 Apr 1995 10:16:16 -0400 Organization: The Thomas Jefferson High School for Science and Technology Distribution: world Message-ID: <3lovvg$lsk@thor.tjhsst.edu> How would one go about implementing a takeStringValueFrom method in a self- written object? I looked in my docs, but all it said was that it uses the stringValue method. I have created a stringValue method which returns a pointer to the string, and created a takeStringValueFrom method, which is currently blank. Is that all I need to do? I think there's something else I need to do, since all the other takeStringValueFrom's return an object. Right now, I'm just returning self.
From: premise@pluto.eecs.umich.edu (Sean Willson) Newsgroups: comp.sys.next.programmer Subject: NSString init methods..... Date: 2 Apr 1995 18:38:24 GMT Organization: University of Michigan Engineering, Ann Arbor Message-ID: <3lmqv0$oav@srvr1.engin.umich.edu> I have a question for those who are using the Foundation Kit to program under. I wish to create a NSMutableString Object, yet the only init function I see in the specs is: - initWithCapacity:(unsigned int)capacity Initializes a newly allocated mutable string object, giving it enough allocated memory to hold capacity characters. The problem is that the length of the string I am creating can be very large and even varies a lot. Is there an easy way to handle this by the NSString object or would I have to create a control object to monitor the sizes of my string object and when they were to large to create a new instance? Thanks for the help....... Sean Willson premise@pluto.eecs.umich.edu P.S. I am creating a MIME translation utility, and the size of the mime file will not be know before hand. -- _________________________________________________________________________ | Sean M. Willson "Chance favors a prepared mind.." | | University of Michigan College of Engineering | | ASCII: premise@umich.edu NeXTMail: premise@pluto.eecs.umich.edu | | http://www.engin.umich.edu/~premise/ WWW Page (NeXT Stuff) | | NeXT Programmer (Artist) in training! | |_______________________________________________________________________|
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: DBKit vs. AccessKit for real world apps? Message-ID: <jpanicoD6Go98.1GB@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Mon, 3 Apr 1995 13:31:55 GMT Sender: jpanico@netcom20.netcom.com Hi, Is anyone out there using DBKit for an application that is actually used in a business (mission critical) setting? Alternatively, is anyone using VNP software's AccessKit for a real world commercial app? How stable and bug free is it? Is it easy to use? Did it save you a lot of development time? Any tips, caveats, gripes, plugs regarding either topic are appreciated. Thanks. Joe Panico jpanico@netcom.com
From: jhermann@pooh.msp.sc.ti.com (John Hermann) Newsgroups: comp.sys.next.programmer Subject: Info on serial port access. Date: 3 Apr 1995 14:46:33 GMT Organization: Design Automation Division, Texas Instruments. Message-ID: <3lp1o9$nkp@barracuda.dadd.ti.com> Is there a good book/document that explains how to access the serial ports on Mono NeXTstations? I have traversed the man pages and digital librarian for on-line help, but cannot find the programming info required to write a controlling C language program. Any help appreciated. Best Regards John Hermann
From: night@b65215.student.cwru.edu (John L. Millard) Newsgroups: comp.sys.next.programmer Subject: ncurses Date: 3 Apr 1995 16:40:39 GMT Organization: Case Western Reserve University, Cleveland, Ohio (USA) Message-ID: <3lp8e7$n5c@usenet.INS.CWRU.Edu> Hello all -- I've been trying my damndest to compile ncurses-1.8.6, but have failed every time with the same error -- the linker is barfing on undefined symbols (newscr, curscr, color_pairs) -- and, of course, the symbols are sitting right in the source directory, perfectly defined. I'm lost. Completely. So if anyone has the ncurses 185 or 186 library they would like to mail me (For m68k) or any clues as to why this damn thing won't link properly, I would greatly appreciate it! Thanks in advance! John p.s. The reason I'm going through the trouble of compiling this damn thing is for the latest version of NcFtp... so, if anyone managed to get ncftp-2.0.3 working, that would also be cool. :) ____________________________________________________________ | John L. Millard | You can live only once, but 4th Year Computer Engineering | if you do it right, once is Case Western Reserve Univ. | enough. night@b65215.student.cwru.edu | jlm13@po.cwru.edu | -- Unknown ______________________________|_____________________________ "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining." -- Jeff Raskin, interviewed in Doctor Dobb's Journal ____________________________________________________________
From: peter@bert.psyc.upei.ca (Peter Burka) Newsgroups: comp.sys.next.programmer Subject: Re: complete set of GNU tools for NS Date: 4 Apr 1995 02:52:37 GMT Organization: University of Prince Edward Island, Charlottetown, PEI Canada Distribution: world Message-ID: <3lqc9l$l7m@atlas.cs.upei.ca> References: <9503301450.AA12527@estel.uindy.edu> In article <9503301450.AA12527@estel.uindy.edu> steve@estel.uindy.edu (Steve Spicklemire) writes: > Hi all, > > I am wondering if anyone has managed to build a complete set of > GNU based tools (e.g., GNU compiler+libs but no InterfaceBuilder etc.) for > NS so that folks can build vanilla BSD apps without having to purchase the > complete NS-Developer package. > [snip] Since NeXT's cc is really gcc, anyway, you should be able to just copy that. I don't know about the libraries, though. If you can't use the NeXT ones, I think that gcc libraries compile for NeXT, anyway. -- Peter 'Beaker' Burka / GCS d--- h---- s+ g+ p? au a- w+ v++ C++ UL++++/X+++/ Prince Edward Island \ O++ P+ L+>++ 3 N++ K++ W++/--- M- V-\ po-- Y+ t+ 5- pburka@upei.ca / v b+++ D++ b- e+(*) u--- h* f- r- n- y-@ j++ r-- "If only we were weiner dogs our problems would be all solved"
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <bbum@friday.com> Message-ID: <199504032155.QAA02352@friday.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Bill Bumgarner <bbum@friday.com> Date: Mon, 3 Apr 95 16:54:59 -0500 Subject: Re: NXApp/How does it know? # I believe the start up routine crt0 salts the pointers away, # possibly in NXArgc,NXArgv so that applicaton can get to them. # I don't know what context you are asking the question in but # people usually wonder hwo the comand line defaults options are # read. It is either done in crt0 or in one of the application # object methods. crt0 is responsible for propagation of argv/argc to NXArgv/NXArgc -- check out the "p NXArgc" line below; it loaded crt0.s to resolve the symbol. But there is other Evilness going on. Specifically, when Application receives +new, it processes the argument vector and stores only those arguments it does not recognize as defaults into NXArgv/NXArgc -- but argv/argc ARE NOT UPDATED! That is, once you call [Application new], you *must* rely on NXArgv/NXArgc! (gdb) r FooBar -NXHost demiurge Breakpoint 1, main (argc=4, argv=0x3fffafc) at TestApp_main.m:9 (gdb) p argv[1] $6 = 0x3fffba5 "FooBar" (gdb) p argv[2] $7 = 0x3fffbac "-NXHost" (gdb) n // this caused [Application new] to be executed (gdb) p argc $8 = 4 // argc remains unchanged (gdb) p argv[1] $9 = 0x3fffba5 "FooBar" (gdb) p argv[2] $10 = 0x0 // but argv has been munged! (gdb) p NXArgc Reading in symbols for crt0.s...done. $11 = 2 (gdb) p NXArgv[1] $12 = 0x3fffba5 "FooBar" b.bum
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Does EOF work? Message-ID: <jpanicoD6IH8s.BtF@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Tue, 4 Apr 1995 12:55:40 GMT Sender: jpanico@netcom14.netcom.com Hi, Has anyone out there deployed an EOF based app in a mission critical (or business) setting yet? Is it stable/ bug free? Does EOF do away with the DBKit entirely, or just the access layer of the DBKit? Specifically, is there a new set of EOF ready UI objects that come with 3.3, or must you display EOF fetched data in the brain-damaged 3.2 DBKit display elements? Has EOF solved the memory leaks of the DBKit? Any insights appreciated. Thanks. Joe Panico jpanico@netcom.com
From: vchi@visgen.com (Vrijmoed Chi) Newsgroups: comp.sys.next.programmer Subject: Re: Java Date: 3 Apr 1995 16:30:29 GMT Organization: The Eye Research Institute of Canada Message-ID: <3lp7r5$qct@sator.eric.on.ca> References: <henry-3103951546390001@trilithon.com> In article <D621r6.CFp@cunews.carleton.ca> csaldanh@mae.carleton.ca (Chris Saldanha) writes: > It is described as: > "Java: A simple, object-oriented, distributed, interpreted, robust, > secure, architecture neutral, portable, high-performance, multithreaded, > and dynamic language." > > I'm not sure, but it looks like nothing special to me, being already used > to ObjC. In fact, this is pretty much the description of Objective-C I > give people... Anyone had any more exposure to this Java, other than just > marketing hype and whitepapers? > Java has a few strong points when compared with different oo language like Smalltalk, Objective-C, C++: Objective-C (NeXT's version): - No garbage collection - No built-in thread support (in the unit of an object) - No exception (only macro substitution) - No package organization and class name is globally visible - No interpreter Smalltalk (IBM Smalltalk, Digitalk Smalltalk): - No package organization and class name is globally visible - No built-in thread support (in the unit of an object) - No interface declaration (@protocol) C++: - No garbage collection - No built-in thread support (in the unit of an object) - No package organization - No interpreter - No dynamic binding (cannot use anonymous object) - No interface declaration (@protocol) IMHO, Java is trying to borrow all the good elements from different languages. We should see how this will work? ____________________________ Vrijmoed Chi
From: jhermann@pooh.msp.sc.ti.com (John Hermann) Newsgroups: comp.sys.next.programmer Subject: Re: Info on serial port access. Date: 4 Apr 1995 14:21:54 GMT Organization: Design Automation Division, Texas Instruments. Message-ID: <3lrkm2$i44@barracuda.dadd.ti.com> References: <3lp1o9$nkp@barracuda.dadd.ti.com> >John Hermann (jhermann@pooh.msp.sc.ti.com) wrote: >Is there a good book/document that explains how to access >the serial ports on Mono NeXTstations? I have traversed >the man pages and digital librarian for on-line help, but >cannot find the programming info required to write a >controlling C language program. Any help appreciated. > >Best Regards > >John Hermann Everyone, Thanks for the responses! I have found some information in the man pages, and digital librarian to help me out. I don't have e-mail access to people who responded, so I am responding via the newsgroup. Willem, please e-mail me the copy of your program for accessing the serial port; it will be very helpful to have actual functioning code. I am trying to understand how to control the signals going to the serial ports. Once this is understood, then I can try to build external hardware and control it via the serial ports. Any input appreciated. Best Regards, John Hermann
Newsgroups: comp.sys.next.programmer From: Paul_Lynch@plsys.com (Paul Lynch) Subject: Re: complete set of GNU tools for NS Organization: P & L Systems References: <3lqc9l$l7m@atlas.cs.upei.ca> Date: Tue, 4 Apr 1995 06:40:37 +0000 Message-ID: <1995Apr4.064037.23902@seer.demon.co.uk> Sender: usenet@demon.co.uk In article <3lqc9l$l7m@atlas.cs.upei.ca> peter@bert.psyc.upei.ca (Peter Burka) writes: > In article <9503301450.AA12527@estel.uindy.edu> steve@estel.uindy.edu (Steve > Spicklemire) writes: > > I am wondering if anyone has managed to build a complete set of > > GNU based tools (e.g., GNU compiler+libs but no InterfaceBuilder etc.) for > > NS so that folks can build vanilla BSD apps without having to purchase the > > complete NS-Developer package. > > [snip] > > Since NeXT's cc is really gcc, anyway, you should be able to just copy that. I > don't know about the libraries, though. If you can't use the NeXT ones, I > think that gcc libraries compile for NeXT, anyway. You won't get very far without the right headers, which NeXT only supply with the developer system. Paul -- Paul Lynch (NeXTmail) paul@plsys.com Tel: (01494)671501 9 Stable Lane, Seer Green, Fax: (01494)680228 Bucks, HP9 2YT, UK
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: comp.sys.next.programmer Subject: NeXT buys Objective-C tm Date: 4 Apr 1995 13:46:25 GMT Organization: University of Heidelberg, Germany Message-ID: <3lrijh$fus@sun0.urz.uni-heidelberg.de> Did you get this already ? On Stepwise, there's an Announcment that NeXT aquired the rights to Objective-C from Stepstone (see http://stepwise.com/NeXT/PR/pr11.html) and plans to submit its Objective-C language specification to standards bodies "for adoption as an open, industry-standard, object-oriented programming language." Are they now really commited to "open standards" ? Gregor -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
From: william@beirut.berkeley.edu (Andy Grosso) Newsgroups: comp.sys.next.programmer Subject: Dragging Files ? Date: 4 Apr 1995 08:29:48 GMT Organization: U.C. Berkeley Math. Department. Message-ID: <3lr01s$3i7@agate.berkeley.edu> I should know this, but I don't. And I can't find it anywhere in the docs. Suppose that the user drags a file from the file viewer onto a window in my app. I want to find out the name of the file being dragged (and that's it, really). So, I send my windows registerForDraggedTypes and this makes them suitable as draggingDestinations. Then what ? Does the workspace put the filename on the pasteboard ? Or does it put the entire file ? Or what ? Andy Grosso
From: buzz@marvin.isdn.cs.tu-berlin.de (Bastian Schlueter) Newsgroups: comp.sys.next.programmer Subject: DBTableView and text attributes Date: 5 Apr 1995 01:36:30 GMT Organization: Marvins home, a small place in Universe Message-ID: <3lss6u$3m4@marvin.isdn.cs.tu-berlin.de> Hello, i'm using a DBTableView and want to use to different text attributes for rows. Some rows should use black text and some should use gray text. Rows are dynamic. I would prefer to set the text color in the "- getValueFor:identifier at:(unsigned int)aPosition into:aValue" method. Anybod has an example how to do that?? Greetings Bastian
Belgium.EU.net!EU.net!howland.reston.ans.net!nntp.crl.com!crl6.crl.com!not-for-mail From: mcgredo@crl.com (Donald R. McGregor) Newsgroups: comp.sys.next.programmer Subject: CrashCatcher for HP Date: 4 Apr 1995 12:21:59 -0700 Organization: YoyoDyne Propulsion Systems Message-ID: <3ls68n$mm7@crl6.crl.com> Has anyone modified CrashCatcher to work with HP? The stack apparently grows in the other direction, but other than that, are there any differences in the layout of the stack and arguments? I recall something being said about how floats are handled in certain circumstances... -- Don McGregor | "The future lasts a long time." mcgredo@crl.com| --Chuck DeGaulle
Belgium.EU.net!EU.net!howland.reston.ans.net!pipex!sunic!sunic.sunet.se!news.lth.se!d89cb From: d89cb@efd.lth.se (Christian Brunschen) Newsgroups: comp.sys.next.programmer Subject: Re: takeStringValueFrom method Date: 4 Apr 1995 19:50:28 GMT Organization: Lund Institute of Technology, Sweden Message-ID: <3ls7u4$g4d@nic.lth.se> References: <3lovvg$lsk@thor.tjhsst.edu> NNTP-Posting-User: d89cb In article <3lovvg$lsk@thor.tjhsst.edu>, John Harding <jharding@thor.tjhsst.edu> wrote: >How would one go about implementing a takeStringValueFrom method in a self- >written object? I looked in my docs, but all it said was that it uses the >stringValue method. I have created a stringValue method which returns a >pointer to the string, and created a takeStringValueFrom method, which is >currently blank. Is that all I need to do? I think there's something else I >need to do, since all the other takeStringValueFrom's return an object. Right >now, I'm just returning self. > - takeStringValueFrom: anObject { return [ self setStringValue: [ anObject stringValue ] ]; } /* Of course, you also need: */ - setStringValue: (char *)aString { /* whatever you need to do to set a string value in your class */ } I hope this answers your question :-) (Of course, I'm probably wither right, or wrong. Pick one.) // Christian Brunschen -- | Christian Brunschen, Husmansv. 26, S-227 38 Lund, Sweden | | voice/fax/data +46 (0)46 139345, email d89cb@efd.lth.se | | PGP 2.2 Public Key available on request. | ObCelebrityQuote: | | "Oh, foo." | | - Andrew R. Koenig (ark@research.att.com) after dropping a piece | | of chalk during a lecture on C++ in Lund, Sweden, April 1993 |
Belgium.EU.net!EU.net!sun4nl!news.euro.net!p55.euronet.nl!ohra1nl From: ohra1nl@euronet.nl (OHRA1) Newsgroups: comp.sys.next.programmer Subject: perl Date: Tue, 4 Apr 1995 19:14:29 Organization: Euronet Internet Message-ID: <ohra1nl.1.00133E5E@euronet.nl> Summary: how to install perl 5.01 under nextstep 3.3 Keywords: perl,installing Hello, does any body know the correct settings to compile perl on under nextstep on a next color station. If I trie to compile it says only 96% can be compiled! Thank you very much. Greetings Richard
Newsgroups: comp.sys.next.programmer From: (Raul Alvarez) Subject: Re: Does EOF work? Message-ID: <1995Apr4.154605.6095@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <jpanicoD6IH8s.BtF@netcom.com> Date: Tue, 4 Apr 1995 15:46:05 GMT Joe Panico writes > Has anyone out there deployed an EOF based app in a mission critical > (or business) setting yet? Is it stable/ bug free? A business application. EOF is fairly bug free. I've encounted minor, bugs in EOModeler. There are several undocumented "features" that can be anowying to get around. > Does EOF do away with the DBKit entirely, or just the access layer of > the DBKit? Specifically, is there a new set of EOF ready UI objects > that come with 3.3, or must you display EOF fetched data in the brain-damaged > 3.2 DBKit display elements? Has EOF solved the memory leaks of the DBKit? EOF does away with DBKit. EOModeler is much better, and more stable that DBModeler. It allows you to map relationships like DBModeler. It also allows you to "flatten" joined attributes. Derived fields work better than in DBModeler. You can also view the results of your model on a data browser; this is an aid in debugging models. EOF solves the memory leaks by using the foundation kits retain/release paradigm of sharing memory among objects. The bad side to this is that our applications now have two object hierarchies, and casting is required to get rid of compile warnings.
Belgium.EU.net!EU.net!news.sprintlink.net!howland.reston.ans.net!pipex!lyra.csx.cam.ac.uk!can.pmms.cam.ac.uk!ts110 From: ts110@can.pmms.cam.ac.uk (Tomaz Slivnik) Newsgroups: comp.sys.next.programmer Subject: How to printf a long long? Date: 4 Apr 1995 20:44:51 GMT Organization: DPMMS University of Cambridge Message-ID: <3lsb43$jvg@lyra.csx.cam.ac.uk> What % format specifier do I pass to printf to print a long long? Surely this must be a stupid question, but I can't find the answer in the man page for printf or anywhere else in the online documentation (that's under 3.0). None of the books and reference cards on C I have handy mention this either. Thank you. Tomaz Slivnik
Belgium.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!uunet!psinntp!webprod.lehman.com!news From: jsafar@lehman.com (john safar) Newsgroups: comp.sys.next.programmer Subject: Graph Palette Needed! Date: 4 Apr 1995 18:10:59 GMT Organization: Lehman Brothers Message-ID: <3ls23j$cnr@webprod2.lehman.com> Hi, I am looking for a good Graph Palette and EASY TO PROGRAM. I am using/testing some that for some strange faustian reasons sold their programmer-friendly soul for a little bit more flexibility. Regards, ----------------------------------------------------------------- | Jean B. Safar email:jsafar@lehman.com (Next Mail OK!) | | | | "riverrun, past Eve and Adam's, from swerve of shore to bend | | of bay, brings us by a commodius vicus of recirculation back | | to Howth Castle ad Environs", does it make sens to you ? | | | | Applied Derivative Products Technology | | | | | | Lehman Brothers phone:(212) 526-1679 | | American Express Tower, | | 21th Floor FAX: (212) 526-0205 | | New York, NY 10285 uucp:jsafar@lehman.com | -----------------------------------------------------------------
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: takeStringValueFrom method Date: 4 Apr 1995 09:05:05 GMT Organization: Total System Software Distribution: world Message-ID: <3lr241$1ij@tssslab.TotSysSoft.com> References: <3lovvg$lsk@thor.tjhsst.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <3lovvg$lsk@thor.tjhsst.edu> jharding@thor.tjhsst.edu (John Harding) writes: }~ How would one go about implementing a takeStringValueFrom method }~ in a self-written object? I looked in my docs, but all it said was }~ that it uses the stringValue method. I have created a stringValue }~ method which returns a pointer to the string, and created a }~ takeStringValueFrom method, which is currently blank. Is that all }~ I need to do? I think there's something else I }~ need to do, since all the other takeStringValueFrom's return an }~ object. Right now, I'm just returning self. - takeStringValueFrom:sender { if (sender) { if ([sender respondsTo:@selector(stringValue)]) [self setStringValue:[sender stringValue]]; else if ([sender respondsTo:@selector(title)]) [self setStringValue:[sender title]]; // other tests if you also want selectedCell value // from a matrix sender... } } Note: MOST -takeStringValueFrom: metods ONLY use a -stringValue callback. +-+ Bruce Gingery Total System Software Cheyenne, WY USA We do consulting over Internet. E-Mail tss@TotSysSoft.com for quotes or more info. Homepage construction area:<URL:http://turnpike.net/metro/bagingry/> NEXT IN LINE magazine staff technical writer Bruce Gingery <bgingery@Wyoming.COM> OR <bruce@TotSysSoft.com> Multimedia: NeXTmail(tm) preferred MIME-mail welcome
Belgium.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!psuvax1!news.cc.swarthmore.edu!netnews.upenn.edu!red.seas.upenn.edu!sfeldman From: sfeldman@red.seas.upenn.edu (Sharon M. Feldman) Newsgroups: comp.sys.next.programmer Subject: Re: Info on serial port access. Date: 4 Apr 1995 17:39:13 GMT Organization: University of Pennsylvania Message-ID: <3ls081$d86@netnews.upenn.edu> References: <3lp1o9$nkp@barracuda.dadd.ti.com> <3lrkm2$i44@barracuda.dadd.ti.com> John Hermann (jhermann@pooh.msp.sc.ti.com) wrote: : I am trying to understand how to control the signals going : to the serial ports. Once this is understood, then I can : try to build external hardware and control it via the serial : ports. Any input appreciated. MiscKit!! It has source (doesn't it?) for a great serial port object that uses ioctl to do whatever your heart desires, plus you can extend it since you have sources... Get MiscKit at the following neighborhood object grocers: ftp://cs.orst.edu/software/NeXT/sources/classes/MiscKit1.4.1.s.gnutar.gz ftp://ftp.et.byu.edu/next/misckit/MiscKit1.4.1.s.gnutar.gz and others. Chris nagelc1@sb.com
Newsgroups: comp.sys.next.programmer,comp.lang.postscript From: andrew@ellcia.demon.co.uk (andrew) Subject: alphaimage Keywords: postscript, PS, DPS, NeXTSTEP Organization: Arzana Limited Date: Tue, 4 Apr 1995 15:17:58 +0000 Message-ID: <D6Inty.3xw@ellcia.demon.co.uk> Sender: usenet@demon.co.uk Would anyone know what the postscript parameters are to the postscript operator "alphaimage". It's C (DPS) counterpart PSalphaimage() takes no arguments, but I know that the postscript operator does. It's these arguments I'm trying to find, and establish their meanings. The "Programming the Display Postscript System with NeXTSTEP" book, references the operator, but gives no documentation or explanation what-so-ever (groan!). Any help would be great. Andrew D. Forkes
Newsgroups: comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!decwrl!adobe!usenet From: pasqua@mv.us.adobe.com (Joe Pasqua) Subject: Re: alphaimage Message-ID: <1995Apr4.224933.27193@adobe.com> Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Incorporated References: <D6Inty.3xw@ellcia.demon.co.uk> Date: Tue, 4 Apr 1995 22:49:33 GMT In article <D6Inty.3xw@ellcia.demon.co.uk> andrew@ellcia.demon.co.uk (andrew) writes: > > Would anyone know what the postscript parameters are to the postscript > operator "alphaimage". It's C (DPS) counterpart PSalphaimage() takes no > arguments, but I know that the postscript operator does. It's these > arguments I'm trying to find, and establish their meanings. The > "Programming the Display Postscript System with NeXTSTEP" book, references > the operator, but gives no documentation or explanation what-so-ever > (groan!). > > Any help would be great. > > Andrew D. Forkes Here is the documentation from the NeXT General Reference. This operator is a NEXTSTEP only addition to Display PostScript. ------------------------- alphaimage pixelswide pixelshigh bits/sample matrix datasrc0[...datasrcn] multiproc ncolors alphaimage - Renders an image whose samples include an alpha component. (Most programmers should use NXImageBitmap() instead of alphaimage.) This operator is similar to the standard colorimage operator (as documented by Adobe Systems). However, note the following: When supplying the data components, alpha is always given last - either as the last data source (datasrcn) if the data is given in separate vectors, or as the last element in a set of interleaved data. The ncolors operand doesn't account for alpha - the value of ncolors is the number of color components only. ERRORS invalidid, limitcheck, rangecheck, stackunderflow, typecheck, undefined, undefinedresult -- Joe Pasqua Adobe Systems Incorporated
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: gnu.gcc.help,comp.sys.next.programmer Subject: gcc263 on NEXTSTEP/HP:"got signal 6" Date: 5 Apr 1995 19:44:18 GMT Organization: University of Heidelberg, Germany Message-ID: <3lurui$3ug@sun0.urz.uni-heidelberg.de> I try to compile gcc-2.6.3 on a HP712 running NEXTSTEP 3.2. Compiler is NeXT's cc based on gcc-2.5.8. Since gcc-2.6.3 lacks config files for hppa1.1 and NEXTSTEP, I tried to move the config files from NeXT's 2.5.8 compiler the the 2.6.3 distribution. Main difference seems to be the assembler format, since NeXT uses gas 1.38 instead of HP-UX's as. I finally got xgcc across dummy.c, but then it crashes for enquire.c: ./xgcc -B./ -DIN_GCC -g -I./include -DNO_MEM -DNO_LONG_DOUBLE_IO -O0 -I. -c enquire.c xgcc: Internal compiler error: program cc1 got fatal signal 6 Where can I search for the cause of this error ? Gregor Hoffleit -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
Newsgroups: comp.sys.next.programmer,comp.lang.postscript From: karsten@yarc.com (Karsten Jeppesen) Subject: Re: alphaimage Message-ID: <karsten-0604950246190001@192.9.200.7> Sender: news@yarc.com Organization: YARC Systems Corp References: <D6Inty.3xw@ellcia.demon.co.uk> Date: Thu, 6 Apr 1995 09:46:19 GMT In article <D6Inty.3xw@ellcia.demon.co.uk>, andrew@ellcia.demon.co.uk (andrew) wrote: > Would anyone know what the postscript parameters are to the postscript > operator "alphaimage". It's C (DPS) counterpart PSalphaimage() takes no > arguments, but I know that the postscript operator does. It's these > arguments I'm trying to find, and establish their meanings. The > "Programming the Display Postscript System with NeXTSTEP" book, references > the operator, but gives no documentation or explanation what-so-ever > (groan!). > There is no such operator. It must be a PostScript procedure.
Newsgroups: comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!fdn.fr!sxpo.fdn.org!sicots1!usenet From: chris@aptime.fdn.org Subject: Re: takeStringValueFrom method Message-ID: <D6KFyH.3oM@aptime.fdn.org> Sender: usenet@aptime.fdn.org (News Operator) Organization: C3iS - APTIME // Paris, France References: <3lovvg$lsk@thor.tjhsst.edu> Date: Wed, 5 Apr 1995 14:23:05 GMT In article <3lovvg$lsk@thor.tjhsst.edu> jharding@thor.tjhsst.edu (John Harding) writes: > How would one go about implementing a takeStringValueFrom method in a self- > written object? I looked in my docs, but all it said was that it uses the > stringValue method. I have created a stringValue method which returns a > pointer to the string, and created a takeStringValueFrom method, which is > currently blank. Is that all I need to do? I think there's something else I > need to do, since all the other takeStringValueFrom's return an object. Right > now, I'm just returning self. The right message is - takeStringValueFrom:anotherObject. It's anotherObject which must have a stringValue method.
Belgium.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!news.alpha.net!news.mathworks.com!panix!zip.eecs.umich.edu!usenet From: rasmussn@jupiter.eecs.umich.edu (Craig E Rasmussen) Newsgroups: comp.sys.next.programmer Subject: Tcl/Tk Date: 5 Apr 1995 14:22:38 GMT Organization: University of Michigan EECS Dept. Message-ID: <3lu93e$cnj@zip.eecs.umich.edu> I have been wondering about the popularity of yet another interpreted language. Why is Tcl/Tk so popular in the C++/X world? Actually, what I'm really after is why is Tcl/Tk not popular in the ObjC/NeXTSTEP world? What void does C++/X have (that Tcl/Tk fills) that ObjC/NeXTSTEP doesn't have? Or I don't know, can anyone see a use for Tcl in the NeXTSTEP environment? Let me start of this with the obvious. > Why is Tcl/Tk so popular in the C++/X world? 1. It is the easiest way to get up an X application. 2. It increases portablility. Craig Rasmussen University of Michigan
From: thomas@zippy.sonoma.edu (Thomas Poff) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Re: Anyone built SATAN 1.0 on NS/3.2 (moto)? Date: 6 Apr 1995 08:33:59 GMT Organization: Sonoma State University, Rohnert Park, Ca. Message-ID: <3m091n$71b@nic-nac.CSU.net> References: <3lut55$mao@nntp3.u.washington.edu> Ack! Shouldn't Santa have lots of security holes (lack of features) with regard to NeXTStep because of the way that NFS works? I found a copy of the passwd file in /LocalLibrary/Images/People today. I was wondering... why would NFS put the passwd file there! {&-o
From: mckelvey@sleepy (James_W_McKelvey) Newsgroups: comp.sys.next.programmer Subject: dyld Date: 6 Apr 1995 00:53:46 GMT Organization: On-Ramp; Individual Internet Connections; Dallas/Ft Worth/Houston, TX USA Message-ID: <3lve2q$rsa@news.onramp.net> I see that 3.3 Developer has what must be a new ld, dyld. But I can't find any man pages for it, or a single reference in the online docs. Does this info exist anywhere?
Belgium.EU.net!EU.net!howland.reston.ans.net!spool.mu.edu!news.clark.edu!netnews.nwnet.net!news.u.washington.edu!root From: wrb@biostr.washington.edu (William Barker) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Anyone built SATAN 1.0 on NS/3.2 (moto)? Date: 5 Apr 1995 20:04:53 GMT Organization: University of Washington Message-ID: <3lut55$mao@nntp3.u.washington.edu> Subject says it all. I tried, but it isn't preconfiged for NS, and I didn't want to re-invent the wheel. Besides, I've also got SGIs, and it builds cleanly out of the box on them. Thanks in advance. bb -- Bill Barker Biological Structure, SM-20 University of Washington Seattle WA 98195 (206) 543-7315 "In Wine there is Wisdom, In Beer there is Strength; In Water is Bacteria." --Old German Saying.
From: pdavis@copernicus.bbn.com (Peter Davis) Newsgroups: comp.sys.next.programmer,comp.lang.postscript Subject: Re: alphaimage Followup-To: comp.sys.next.programmer,comp.lang.postscript Date: 6 Apr 1995 18:39:09 GMT Organization: Bolt, Beranek and Newman Inc. Message-ID: <3m1cgd$nlc@info-server.bbn.com> References: <D6Inty.3xw@ellcia.demon.co.uk> <karsten-0604950246190001@192.9.200.7> Karsten Jeppesen (karsten@yarc.com) wrote: : In article <D6Inty.3xw@ellcia.demon.co.uk>, andrew@ellcia.demon.co.uk : (andrew) wrote: : > Would anyone know what the postscript parameters are to the postscript : > operator "alphaimage". It's C (DPS) counterpart PSalphaimage() takes no : > arguments, but I know that the postscript operator does. It's these : > arguments I'm trying to find, and establish their meanings. The : > "Programming the Display Postscript System with NeXTSTEP" book, references : > the operator, but gives no documentation or explanation what-so-ever : > (groan!). : > : There is no such operator. It must be a PostScript procedure. The 'alphaimage' operator is a NeXT extension to the PostScript language. It works with their displays, and, I assume, their printer software as well. If it's not documented in the "purple" book, then I'd suggest you call Adobe. -pd -- Peter Davis "Education is not the 617/873-4145 BBN Educational Technologies filling of a pail, but FAX: 617/873-2455 150 Cambridge Park Drive the lighting of a fire." pdavis@bbn.com Cambridge, MA 02140 -- W. B. Yeats
From: root@terra (Operator) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Re: Anyone built SATAN 1.0 on NS/3.2 (moto)? Date: 6 Apr 1995 20:24:02 GMT Organization: Earthlink Network, Inc. Message-ID: <3m1il2$koj@mars.earthlink.net> References: <3lut55$mao@nntp3.u.washington.edu> <3m091n$71b@nic-nac.CSU.net> <Pine.NXT.3.91.950406121628.12071F-100000@pear> Bapi Gupta <bapi@artsci.wustl.edu> wrote: [snip] >I was trying to install satan 1.0 today but had problems relating to typedefs >not defined in sys/types.h because _POSIX_SOURCE is not defined on my system >(black 3.2). I don't know what _POSIX_SOURCE is or how to define it, etc. >Can someone help me on this one? What the hell is POSIX anyway? > POSIX (Portable Operating System Interface) is the IEEE standard for portable code. It is based on UNIX but other OS's can be POSIX compliant. As I previously had trouble compiling a short snip of POSIX code I am not sure how truly POSIX compliant NeXTStep is. BTW, does anyone know where I can get the SATAN source code? Felipe A. Rodriguez # ...it cannot be called ingenuity to kill far@earthlink.net # one's fellow citizens, to betray friends, Agoura Hills, CA # to be without faith, without mercy, without # religion; by these means one can aquire power # but not glory. # (NeXTmail prefered) # --Nicolo, Machiavelli (MIMEmail welcome) #
From: jim.anderson@cyberstore.ca (Jim Anderson) Newsgroups: comp.sys.mac.wanted,comp.sys.mentor,comp.sys.mips,comp.sys.misc,comp.sys.ncr,comp.sys.newton,comp.sys.newton.misc,comp.sys.newton.programmer,comp.sys.next.advocacy,comp.sys.next.bugs,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.misc,comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.northstar,comp.sys.novell,comp.sys.nsc,comp.sys.nsc.32k,comp.sys.palmtops,comp.sys.pen,comp.sys.powerpc,comp.sys.prime,comp.sys.proteon,comp.sys.psion,comp.sys.pyramid,comp.sys.sequent Subject: comdex on cd-rom Date: 6 Apr 1995 21:04:53 GMT Organization: Cyberstore Systems Distribution: inet Message-ID: <3m1l1l$4bb@scipio.cyberstore.ca> Mime-Version: 1.0 CD-ROM of ALL COMDEX (This is the worlds largest computer trade show-ie all the newest and coolest in software and computer hardware)(Las Vegas, Nov.1994) brochures for $49.95 US (Money Order) Scanned in at 200 DPI, line art with corresponding database.(Windows,DOS) Mail money order and where you want your CD-ROM mailed to: First National Data Bank Box 24008, Kelowna, V1Y 9P9, BC, Canada Please allow 2 weeks for delivery.
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: Dragging Files ? Date: 6 Apr 1995 19:18:50 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3m1eqq$dp3@news.next.com> References: <3lr01s$3i7@agate.berkeley.edu> Andy Grosso writes > I should know this, but I don't. And I can't find it anywhere > in the docs. Suppose that the user drags a file from > the file viewer onto a window in my app. I want to find out > the name of the file being dragged (and that's it, really). > > So, I send my windows registerForDraggedTypes and this makes > them suitable as draggingDestinations. > > Then what ? Does the workspace put the filename on the pasteboard ? > Or does it put the entire file ? Or what ? > > Andy Grosso > > > The Workspace will put the filename on the drag-drop pboard as NXFilenamePboardType data. -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
From: Bapi Gupta <bapi@artsci.wustl.edu> Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Re: Anyone built SATAN 1.0 on NS/3.2 (moto)? Date: Thu, 6 Apr 1995 12:26:13 -0500 Organization: Washington University in St. Louis, MO USA Message-ID: <Pine.NXT.3.91.950406121628.12071F-100000@pear> References: <3lut55$mao@nntp3.u.washington.edu> <3m091n$71b@nic-nac.CSU.net> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <3m091n$71b@nic-nac.CSU.net> On 6 Apr 1995, Thomas Poff wrote: > Ack! > > Shouldn't Santa have lots of security holes (lack of features) > with regard to NeXTStep because of the way that NFS works? We just corrected some NFS security problems with default access not being defined and being assumed for 'unknown' machines to be read/write! Make sure your exports have an explicit access= property, along with any root= property (though I'm sure I'm the only one who didn't know this!). I was trying to install satan 1.0 today but had problems relating to typedefs not defined in sys/types.h because _POSIX_SOURCE is not defined on my system (black 3.2). I don't know what _POSIX_SOURCE is or how to define it, etc. Can someone help me on this one? What the hell is POSIX anyway? > I found a copy of the passwd file in /LocalLibrary/Images/People > today. I was wondering... why would NFS put the passwd file > there! {&-o Got one too, now that you mention it. It is short and I too have no idea why it is there. Ashish (Bapi) Gupta bapi@artsci.wustl.edu
Belgium.EU.net!EU.net!howland.reston.ans.net!pipex!dircon!steffi.dircon.co.uk!usenet From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Does EOF work? Date: 05 Apr 1995 13:35:38 +0100 Organization: me organized? That's a joke! Message-ID: <robertznfpyt5gvwk8@steffi.dircon.co.uk> References: <jpanicoD6IH8s.BtF@netcom.com> <1995Apr4.154605.6095@il.us.swissbank.com> In-reply-to: 's message of Tue, 4 Apr 1995 15:46:05 GMT To: (Raul Alvarez) <Raul> writes: >Joe Panico writes >>Has anyone out there deployed an EOF based app in a mission critical >>(or business) setting yet? Is it stable/ bug free? >A business application. EOF is fairly bug free. I've encounted minor, bugs >in EOModeler. There are several undocumented "features" that can be >anowying to get around. >>Does EOF do away with the DBKit entirely, or just the access layer of >>the DBKit? Specifically, is there a new set of EOF ready UI objects >>that come with 3.3, or must you display EOF fetched data in the >brain-damaged >>3.2 DBKit display elements? Has EOF solved the memory leaks of the >DBKit? >EOF does away with DBKit. >EOModeler is much better, and more stable that DBModeler. It allows you to >map relationships like DBModeler. It also allows you to "flatten" joined >attributes. Derived fields work better than in DBModeler. You can also >view the results of your model on a data browser; this is an aid in >debugging models. >EOF solves the memory leaks by using the foundation kits retain/release >paradigm of sharing memory among objects. The bad side to this is that our >applications now have two object hierarchies, and casting is required to >get rid of compile warnings. Can somebody clarify the case when EOF does leak with the circular reference's probably? Is this related to reflexive qualifiers? -- "Mary ate a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
Belgium.EU.net!EU.net!howland.reston.ans.net!pipex!dircon!steffi.dircon.co.uk!usenet From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: DBTableView and text attributes Date: 05 Apr 1995 13:38:08 +0100 Organization: me organized? That's a joke! Message-ID: <robertznfpysvlfvlx@steffi.dircon.co.uk> References: <3lss6u$3m4@marvin.isdn.cs.tu-berlin.de> In-reply-to: buzz@marvin.isdn.cs.tu-berlin.de's message of 5 Apr 1995 01:36:30 GMT To: buzz@marvin.isdn.cs.tu-berlin.de (Bastian Schlueter) <buzz@marvin.isdn.cs.tu-berlin.de> writes: >Hello, >i'm using a DBTableView and want to use to different text attributes >for rows. Some rows should use black text and some should use gray >text. Rows are dynamic. I would prefer to set the text color in the >"- getValueFor:identifier at:(unsigned int)aPosition into:aValue" >method. >Anybod has an example how to do that?? >Greetings > Bastian Override getValueFor: ..... and set the properties on the drawCell (Assuming editable formatters and in general with respect to alignment issues using Cell's in formatters provides a lot more flexibility that using DBTextFormatter's) all you need to do is set up the cell's foreground and background colors and call drawCell:insideView: to render the cell's contents in the gridview. Good luck. -- "Mary ate a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
From: jharding@thor.tjhsst.edu (John Harding) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Re: Anyone built SATAN 1.0 on NS/3.2 (moto)? Date: 6 Apr 1995 07:48:03 -0400 Organization: The Thomas Jefferson High School for Science and Technology Distribution: world Message-ID: <3m0kdj$o6k@thor.tjhsst.edu> References: <3lut55$mao@nntp3.u.washington.edu> <3m091n$71b@nic-nac.CSU.net> In article <3m091n$71b@nic-nac.CSU.net>, Thomas Poff <thomas@zippy.sonoma.edu> wrote: >I found a copy of the passwd file in /LocalLibrary/Images/People >today. I was wondering... why would NFS put the passwd file >there! {&-o That's because of how Mail.app works with displaying the pictures of users who send you mail. For some reason, it couldn't possibly just use the /etc/passwd, it has to have its own special copy...
Newsgroups: comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!ix.netcom.com!netcom.com!jpanico From: jpanico@netcom.com (Joe Panico) Subject: Re: DBTableView and text attributes Message-ID: <jpanicoD6L524.C62@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <3lss6u$3m4@marvin.isdn.cs.tu-berlin.de> Date: Wed, 5 Apr 1995 23:25:16 GMT Sender: jpanico@netcom.netcom.com Bastian Schlueter (buzz@marvin.isdn.cs.tu-berlin.de) wrote: : Hello, : i'm using a DBTableView and want to use to different text attributes : for rows. Some rows should use black text and some should use gray : text. Rows are dynamic. I would prefer to set the text color in the : "- getValueFor:identifier at:(unsigned int)aPosition into:aValue" : method. : Anybod has an example how to do that?? : Greetings : Bastian There is a mini-example on the NeXT archives, and NeXTanswers, called Boolean Formatter. It shows how to create a custom subclass of DBFormatter, and how to install it in the DBTableView. It doesn't deal specifically with background color, but you simple need to add the grey background in the overridden DrawFieldAt:::::: method. Hope this sorta helps :) Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!ix.netcom.com!netcom.com!jpanico From: jpanico@netcom.com (Joe Panico) Subject: A button in DBTableView cell? Message-ID: <jpanicoD6L578.CM7@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 5 Apr 1995 23:28:20 GMT Sender: jpanico@netcom.netcom.com Hi, I would like to replace a column of boolean stringformatted values in a DBTableView with a simple togle switch that can be used to display and set the values. Did someone mention a demo of this a while back, or am I imagining things? Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.programmer From: jhall@barbados.umhc.umn.edu (Jeff Hallgren) Subject: Re: Anyone built SATAN 1.0 on NS/3.2 (moto)? Message-ID: <D6nGEq.DH3@news.cis.umn.edu> Sender: news@news.cis.umn.edu (Usenet News Administration) Organization: University of Minnesota, Twin Cities References: <3m0kdj$o6k@thor.tjhsst.edu> Date: Fri, 7 Apr 1995 05:28:10 GMT In article <3m0kdj$o6k@thor.tjhsst.edu> jharding@thor.tjhsst.edu (John Harding) writes: > In article <3m091n$71b@nic-nac.CSU.net>, > Thomas Poff <thomas@zippy.sonoma.edu> wrote: > >I found a copy of the passwd file in /LocalLibrary/Images/People > >today. I was wondering... why would NFS put the passwd file > >there! {&-o > > That's because of how Mail.app works with displaying the pictures of users > who send you mail. For some reason, it couldn't possibly just use the > /etc/passwd, it has to have its own special copy... No it couldn't/wouldn't. In addition you want to display pictures of people who don't have accounts on your system... Here's what I did about SATAN. (Combining help from various sources) Make a shell script called "Mosaic" and put it in /usr/local/bin (or wherever). After "reconfig" make sure your config/paths.pl file has the line: $MOSAIC="/usr/local/bin/Mosaic"; > Here is the shell script. > #!/bin/sh > > echo "run OmniWeb as root and open url $@" > /LocalApps/OmniWeb.app/openURL $@ > echo -n "hit return to quit your favorite security program: " > read a > You might be able to do an "/usr/bin/open -a OmniWeb $@" but I haven't tried it. And then: > Also edit perl/html.pl, sub process_html_request, and after > ($HTML_CWD = "file:$script") =~ s/\/[^\/]*$//; > > add > > $HTML_CWD="/$HTML_CWD"; > $script="/$script"; > Edit the Makefile in src/misc in 2 places: #CFLAGS = -O -I. $(XFLAGS) CFLAGS = -posix -O -I. $(XFLAGS) $(BIN)/safe_finger: safe_finger.c # $(CC) $(CFLAGS) -o $@ $? $(CC) -O -I. $(XFLAGS) -o $@ $? Do a "make bsd". safe_finger.c has a problem, the putenv() call. Apparently, there is no petenv() on the NEXT. You'll have to figure this one out for yourself or beseech the Gods (-=EPS=-) for help. I'm not saying what I did... You'll get a couple of warnings about redefined macros: tcp_scan.c:35: warning: redefinition of macro offsetof udp_scan.c:32: warning: redefinition of macro offsetof fping.c:298: warning: redefinition of macro bcopy Start OmniWeb as root, Start satan from a terminal window To rerun satan you must completely quit and relaunch OmniWeb first because satan isn't to smart about unique URLs and you'll get browser cache complications. Anybody writing a module that understands Netinfo? --- Jeff Hallgren "You are Gunther Heindrickson from Appenzell, you moved to Grindelwald to drive the cog train to Muren." quote from an A! episode. jhall@tahiti.umhc.umn.edu (NeXT/MIME Mail OK)
Newsgroups: comp.sys.next.programmer From: luke@research.canon.oz.au (Luke Kendall) Subject: Suggestion for big improvement to all scrollbars Message-ID: <D6n4Eu.ELH@research.canon.oz.au> Keywords: scrolling, enhancement, marked views Sender: news@research.canon.oz.au (Usenet News) Organization: Canon Information Systems Research Australia Date: Fri, 7 Apr 1995 01:06:29 GMT (With luck, someone from NeXT will read this, and it might end up being added to Nextstep 3.4 or 4.0 or ... :-) First off, I'd just like to say that the UI for the scrollbars under Nextstep are by far the best I've seen in any window system. I have a suggestion for an improvement that I believe would make them even better: The ability to `mark' views so that you can return to a previous view with a single mouse-click. (Much like you mark and go back to places in `vi'.) The feature is especially useful if the re-draw time on a view is long (so you wouldn't waste time doing many jumps or scrolls trying to go back to the place of interest), or when there is so much to scroll through that it's hard to find the previous place (like a terminal window with tens of thousands of lines `behind' it). Here's the suggested UI: The Mark command stores the current position of the scrollbars, and the current zoom factor of the view. (Often, of course, there will just be one scrollbar - probably vertical - and the zoom will often be 1:1, as in a terminal window.) As well as storing this information internally, a thin line is drawn into the scrollbars under the centre of the slider. You'll get an idea of what I'm talking about if you think of how the excellent FileMerge application places marks in scrollbars. However, the code for interpreting mouse events in scrollbars should change, to also do a hit detection test on these marks before resorting to the normal jump calculation. In other words, you can `snap' to these marks. And the final, best part, is that when doing a special mouse click (I would suggest, using the Command key when you click on one of these marks in a scrollbar), the matching `other' scrollbar and the zoomfactor are restored at the same time. In this way, in an application that supports horizontal and vertical scrolling, and zooming, you can re-position yourself exactly back at a previous view of the data by a single Command-click in a scroll bar. To make it still better, the 1st 26 or 52 of these could be named with a single letter, also drawn into the scrollbar, to make it easy to work out which view is which when you have a lot of them. (The letter could be available for use in the method interface to the facility, then, too.) Alternate-click for example could be used to delete a mark; or you could use a special command to delete a named mark, or you could get rid of a named mark by re-using the name, or ... luke -- Luke Kendall, Senior Software Engineer. | Net: luke@research.canon.oz.au "Now let us look at the points above infinity." - Henri Cohen.
From: doug@rcf.rsmas.miami.edu Newsgroups: comp.sys.next.programmer Subject: remote control of apps Date: 7 Apr 1995 15:18:05 GMT Organization: RSMAS/University of Miami, Miami, FL Message-ID: <3m3l3d$9u1@umigw.miami.edu> Dear most helpful NeXT users/programmers: From within Mathematica, I am generating a graphic image, prepending it with the Mathematica postscript definitions using e.g., Run["psfix graphic.mps > graphic.ps"] and concatenating this image with an encapsulated postscript image, e.g., Run["cat graphic.ps an-eps-file.eps > finalgraphic.eps"] I can open the finalgraphic.eps under Preview and print it using the GUI. However, I want to be able to control opening the file, printing, and closing the file from within Mathematica using either Unix commands, running a script file, or by some other means. Two problems so far: (1) I can open the file under Preview from within Mathematica using the NeXT unix command `open', i.e., Run["open finalgraphic.eps"], but can't find a convenient unix command to close the file. (2) Printing the file from within Mathematica, i.e., Run["lpr finalgraphic.eps"] generates a separate page each for graphic.ps and an-eps-file.eps. I've tried using the -epsf option to psfix. This allows me to print the concatenated image from within Mathematica, but the (full size) .eps image generated by Mathematica is not the same as a full size .eps image generated from within Diagram! My most straight-forward approach would seem to be manipulating the Preview commands (print + close) from within Mathematica. Any thoughts or advice from the gurus would be deeply appreciated. Thanks. doug@rcf.rsmas.miami.edu
From: cadilhac@arles.univ-rennes1.fr (Nicolas Cadilhac) Newsgroups: comp.sys.next.programmer Subject: Q : Memory problem in the free function Date: 7 Apr 1995 08:07:55 GMT Organization: Universite de Rennes 1, France Message-ID: <3m2rsr$i2b@news.univ-rennes1.fr> Hello, My program often crashes in a function named nxzonefreenolock (I can see in gdb). What's the exact signification of this and what does this function ? Thnks for any help. -- Nicolas Cadilhac ---------------- INSERM CJF 90-12 Clinique neurologique Hopital Pontchaillou 35033 Rennes Cedex
From: cdb@xedoc.com.au (Cameron Bromley) Newsgroups: comp.sys.next.programmer Subject: Re: DBKit vs. AccessKit for real world apps? Date: 7 Apr 1995 05:33:44 GMT Organization: Xedoc Software Development Pty Ltd Message-ID: <3m2iro$db2@yarrina.connect.com.au> References: <jpanicoD6Go98.1GB@netcom.com> Joe Panico (jpanico@netcom.com) wrote: : Hi, : Is anyone out there using DBKit for an application that is actually used : in a business (mission critical) setting? : Alternatively, is anyone using VNP software's AccessKit for a real world : commercial app? How stable and bug free is it? Is it easy to use? Did it : save you a lot of development time? : Any tips, caveats, gripes, plugs regarding either topic are appreciated. : Thanks. : Joe Panico : jpanico@netcom.com Use AccessKit, unless you are solely concerned with displaying data. It's stable, bug-free, easy to use and saved me a lot of time. Not much more to say. No affiliations with VNP, but a happy customer. They are always responsive to suggestions, questions, whatever. The documentation isn't fantastic, but the sample apps were enough to get me going. In conjuction with UIBinder, the AccessKit will save you a lot of time. Cameron. -- ---------------------------------------------------------------- Cameron Bromley Email : cdb@xedoc.com.au Xedoc Software Development Pty. Ltd. Fax : +61-3-214-0102 Unit 11, 663 Victoria St, Phone : +61-3-214-0199 Abbotsford, VIC, 3067, Australia
From: night@b65215.student.cwru.edu (John L. Millard) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3lp8e7$n5c@usenet.INS.CWRU.Edu> Control: cancel <3lp8e7$n5c@usenet.INS.CWRU.Edu> Date: 7 Apr 1995 12:33:04 GMT Organization: Case Western Reserve University, Cleveland, Ohio (USA) Message-ID: <3m3be1$612@usenet.INS.CWRU.Edu> Article cancelled from within tin [v1.2 PL2]
Newsgroups: comp.sys.next.programmer Belgium.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!newsie.dmc.com!carrara!news From: dekorte@unh.bos.marble.edu (Steve Dekorte) Subject: PDOKit Message-ID: <D6MC35.J2@marble.com> Sender: news@marble.com Organization: Marble Associates, Inc. Date: Thu, 6 Apr 1995 14:54:40 GMT Anyone know where I can find some source code examples of PDOKit apps? I remember seeing a "Chat" app some tim ago, but I can't seem to find it now. Thanks for any info, Steve D
From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott) Newsgroups: comp.sys.next.programmer Subject: Re: Anyone built SATAN 1.0 on NS/3.2 (moto)? Date: 7 Apr 1995 22:02:53 GMT Organization: University of California, Santa Barbara Distribution: world Message-ID: <3m4cqd$lub@yuggoth.ucsb.edu> References: <D6nGEq.DH3@news.cis.umn.edu> All it took for me to get satan compiled under 3.2 was to add the following to the top level Makefile and do 'make next': next: @$(MAKE) all LIBS= XFLAGS="-posix -D__STRICT_BSD__ -I/usr/include/ansi -I/usr/include/bsd -DAUTH_GID_T=int" ..plus the following patch to safe_finger.c: *** safe_finger.c.orig Mon Mar 20 12:28:02 1995 --- safe_finger.c Thu Apr 6 16:34:12 1995 *************** *** 27,32 **** --- 27,38 ---- #include <ctype.h> #include <pwd.h> + #ifdef NeXT + #ifndef isascii + #define isascii(c) ((unsigned)(c)<=0177) + #endif + #endif + extern void exit(); /* Local stuff */ *************** *** 76,85 **** --- 82,93 ---- /* * Redirect our standard input through the raw finger command. */ + #ifndef NeXT if (putenv(path)) { fprintf(stderr, "%s: putenv: out of memory", argv[0]); exit(1); } + #endif argv[0] = FINGER_PROGRAM; finger_pid = pipe_stdin(argv); You can substitute a putenv function if you have source for one. WARNING: Running satan at level 2 on a NeXT really fouls things up -- you get hundreds of console errors from inetd, etc. -- Douglas Scott | Senior Development Engineer Tel: (805) 893-8352 | Center for Computer Music Research and Composition Internet (NeXTMail ok): | University of California, Santa Barbara <doug@ccmrc.ucsb.edu> | http://www.ccmrc.ucsb.edu/
From: object@crl.com (Robert Smith) Newsgroups: comp.sys.next.programmer Subject: NSDate Intel bug Date: 7 Apr 1995 13:00:35 -0700 Organization: CRL Network Services (415) 705-6060 [Login: guest] Message-ID: <3m45l3$97i@crl.crl.com> Has anyone used NSdate on more than one platform including Intel? Incorrect date arithmetic only happens to me on the Intel binary.
Newsgroups: comp.sys.next.programmer From: thinkjoy@summer.snu.ac.kr (Shin Dong-Jun) Subject: Looking for Magzine about NS Message-ID: <1995Apr7.152525.15738@news.snu.ac.kr> Sender: usenet@news.snu.ac.kr (NEWS POSTER) Organization: SNU,KOREA Date: Fri, 7 Apr 95 15:25:25 GMT I am looking for magazine about NS programming or etc. If you know,plese answer for me. and how can I get the magazine in other country,too. Thanks for reading.
Belgium.EU.net!EU.net!howland.reston.ans.net!pipex!sunic!sunic.sunet.se!news.chalmers.se!usenet From: nazari@hegel3.cs.chalmers.se.u.cs.chalmers.se (Nader Nazari,5415) Newsgroups: comp.sys.next.programmer Subject: Help! on NXReadPixel Date: 7 Apr 1995 13:30:20 GMT Organization: Chalmers University of Technology Message-ID: <3m3epc$oed@nyheter.chalmers.se> Is there any one who know the function " NXColor NXReadPixel(NXPint*) " The testing program is very easy: I have a subclass of View and I paint it in the begining with NXSetColor. In the other method "mouseDown(NXEvent*)", I catch a point, convert it to the view,s coordinate and read the color with NXReadPixel, But when I convert the color to RGB I get (0,0,0) only . I use lockFocus and unlock but I can not catch the color. How I can read the color of a pixel in a customView? Ps The View coordinate is 0.0 - 1.0 Please help me if you can < nazari@cs@chalmers.se >
Newsgroups: comp.sys.next.programmer From: brianw@sounds.wa.com (Brian Willoughby) Subject: What? (Re: Will 3.3 apps run on 3.2?) Message-ID: <D6M38M.3MH@sounds.wa.com> Summary: NEXTSTEP_DEPLOYMENT_TARGET missing from Lightning9I Organization: Sound Consulting, Bellevue, WA, USA References: <gslD66r2J.2pz@netcom.com> <RDL.95Mar31003844@world.std.com> Date: Thu, 6 Apr 1995 11:43:34 GMT In article <RDL.95Mar31003844@world.std.com>, Robert La Ferla <rdl@world.std.com> wrote: >They should... There's a macro definition in the Makefile.preamable: > >## Specify the deployment target for which to build this code. Setting this to >## 3.3 will allow use of the new style shared libraries and is required for >## dynamic library projects. >## (Note: this will eventually become settable in PB, but for now, you must >## modify this line to get the new behavior of the compiler >## and dynamic link editor). >NEXTSTEP_DEPLOYMENT_TARGET = 3.2 This sounded like important news for someone who just purchased NEXTSTEP Developer 3.3 (like me), but a quick grep through /NextDeveloper/Makefiles/app shows that NEXTSTEP_DEPLOYMENT_TARGET does not exist anywhere! Not in the Makefile.preamble template in that directory, nor in any of the included makefiles. Robert (and others), is this possibly part of some other development package from NeXT, such as a beta version or perhaps from EOF? I have fresh CD-ROMs from NeXT for NEXTSTEP USER & DEVELOPER RELEASE / VERSION 3.3 and have installed everything on my NeXTdimension (except emacs, TeX, and GNUSource). -- Brian Willoughby Software Design Engineer, BSEE from NCSU NeXTmail welcome Sound Consulting: Software Design and Development BrianW@SoundS.WA.com Bellevue, WA
Belgium.EU.net!EU.net!howland.reston.ans.net!news2.near.net!satisfied.apocalypse.org!news.mathworks.com!zombie.ncsc.mil!paladin.american.edu!news From: tm8025a@newssrv.soc.american.edu (Torrey McMahon) Newsgroups: comp.sys.next.programmer,comp.sys.next.sysadmin Subject: WP 6.0 to 5.1 translator Date: 7 Apr 1995 19:39:05 GMT Organization: The American University, Washington DC Message-ID: <3m44cp$srf@paladin.american.edu> Since WordPerfect orphaned Next WP as anyone written or thought of writing a translator for WP 6.0 documents into 5.1 documents? I work at a University that uses WP for Next every day. No day goes by that I am asked to convert a 6.0 PC document to 5.1 and I am starting to get tired of walking to the nearest PC with 6.0, starting up WP...you get the picture. What does anyone think it would entail? Programming is not my forte but would be an educational process and worth any work I would do. Any pointers would be great. -- Torrey McMahon
Newsgroups: comp.sys.next.programmer From: fabien@free.fdn.org (Fabien Roy) Subject: Re: Info on serial port access. Message-ID: <1995Apr3.184433.8386@free.fdn.org> Sender: news@free.fdn.org Organization: Fabien Roy Consultant, Paris, France References: <3lp1o9$nkp@barracuda.dadd.ti.com> Date: Mon, 3 Apr 1995 18:44:33 GMT In article <3lp1o9$nkp@barracuda.dadd.ti.com> jhermann@pooh.msp.sc.ti.com (John Hermann) writes: > Is there a good book/document that explains how to access > the serial ports on Mono NeXTstations? I have traversed > the man pages and digital librarian for on-line help, but > cannot find the programming info required to write a > controlling C language program. Any help appreciated. > > Best Regards > > John Hermann See TIOCGETP and TIOCSETP ioctls (man ioctl, /usr/include/bsd/sys/ioctl.h) Hope this helps. Fabien -- --------------------------------------------------------------------- Fabien_Roy@free.fdn.org (NextMail/MIME accepted) Fabien Roy Consultant NEXTSTEP/OPENSTEP/EOF Consultant, SYBASE DBA 10 rue de la DEFENSE 93100 MONTREUIL, France Tel: 33 1 45 28 32 23 Fax: 33 1 45 28 32 23
Newsgroups: comp.sys.next.software,comp.sys.next.programmer From: Fabien_Roy@free.fdn.org (Fabien Roy) Subject: features.h still missing in NS 3.3 HP,MOTO,INTEL,SPARC? Message-ID: <1995Apr6.170704.16330@free.fdn.org> Sender: news@free.fdn.org Organization: Fabien Roy Consultant, Paris, France Date: Thu, 6 Apr 1995 17:07:04 GMT Could some body run this find script and check the consistency of the machine dependant include file features.h and mail the resulting file to me. find /NextDeveloper/Headers -name features.h -print Thanks Fabien -- --------------------------------------------------------------------- Fabien_Roy@free.fdn.org (NextMail/MIME accepted) Fabien Roy Consultant NEXTSTEP/OPENSTEP/EOF Consultant, SYBASE DBA 10 rue de la DEFENSE 93100 MONTREUIL, France Tel: 33 1 45 28 32 23 Fax: 33 1 45 28 32 23
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: Suggestion for big improvement to all scrollbars Date: 7 Apr 1995 21:56:15 GMT Organization: Total System Software Distribution: world Message-ID: <3m4cdv$2c8@tssslab.TotSysSoft.com> References: <D6n4Eu.ELH@research.canon.oz.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <D6n4Eu.ELH@research.canon.oz.au> luke@research.canon.oz.au (Luke Kendall) writes: }~ (With luck, someone from NeXT will read this, and it might end up }~ being added to Nextstep 3.4 or 4.0 or ... :-) }~ }~ First off, I'd just like to say that the UI for the scrollbars under }~ Nextstep are by far the best I've seen in any window system. }~ }~ I have a suggestion for an improvement that I believe would make }~ them even better: }~ }~ The ability to `mark' views so that you can return to a previous }~ view with a single mouse-click. (Much like you mark and go back }~ to places in `vi'.) }~ [munch] }~ Alternate-click for example could be used to delete a }~ mark; or you could use a special command to delete a named mark, }~ or you could get rid of a named mark by re-using the name, or ... GREAT IDEA Luke! I'd suggest re-using the Browser's > triangle for vertical scroll- bars, and an inverted version of the PullDown's equivalent for marking horizontal scroll-bars. This would allow the "letters" you suggested to be also composited if implemented. OR use comparable marks as would be used on the (largely undocumented) Ruler object for centering tabs. This gives a bigger mouse target than a simple line and makes it easy to distinguish between traditional click-at-position and a click-at-exact mark - if that NEEDS distinguishing. I'd suggest using the Alt-mouse for MOVING existing marks, rather than for deleting them, however. Use Shift-mouse, Control-mouse or Command-mouse to hilight - then the <- delete key to delete the mark or the Enter or RETURN key to move that mark to the CURRENT position. The only problem I see is possibly slowing down the Text object which already has so much loaded into it, and which is (perhaps) the biggest user of scroll bars. +-+ Bruce Gingery Total System Software Cheyenne, WY USA We do consulting over Internet. E-Mail tss@TotSysSoft.com for quotes or more info. Homepage construction area:<URL:http://turnpike.net/metro/bagingry/> NEXT IN LINE magazine staff technical writer Bruce Gingery <bgingery@Wyoming.COM> OR <bruce@TotSysSoft.com> Multimedia: NeXTmail(tm) preferred MIME-mail welcome
Belgium.EU.net!EU.net!howland.reston.ans.net!news.starnet.net!wupost!newsreader.wustl.edu!papaya!bapi From: Bapi Gupta <bapi@artsci.wustl.edu> Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Re: Anyone built SATAN 1.0 on NS/3.2 (moto)? Date: Fri, 7 Apr 1995 14:45:47 -0500 Organization: Washington University in St. Louis, MO USA Message-ID: <Pine.NXT.3.91.950407144000.22875E-100000@papaya> References: <3lut55$mao@nntp3.u.washington.edu> <3m091n$71b@nic-nac.CSU.net> <199504071504.AA158647086@casbah.acns.nwu.edu> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <199504071504.AA158647086@casbah.acns.nwu.edu> On Fri, 7 Apr 1995 jweiss@casbah.acns.nwu.edu wrote: > Someone in our IS group mentioned to me that SATAN reported our NeXTs had > exported / and other filesystems to everyone. I checked the exports: > > bogart> /usr/etc/exportfs > / -access=,root=hepburn:lucas:meena:siqin,anon=-1 > /clients -access=,root=hepburn:lucas:meena:siqin,anon=-1 > > Which I thought were correct. I've tried to mount these from > supposedly unauthorized machines and cannot. Is this a false postive > from Sata or , a misconfigure of NFSmanager by me or just a plain security > hole in NS 3.2? Before we added the -access parameters to our mounts we did in fact have friendly reports of several people mounting our disks on their systems with root access! All reports from the same sources indicate this is no longer possible after the -access was added. We also changed most of our access to be read/write instead of root. I haven't gotten satan to run yet, but I do think it is a false positive. Ashish (Bapi) Gupta bapi@artsci.wustl.edu
Belgium.EU.net!EU.net!howland.reston.ans.net!torn!news.bc.net!unixg.ubc.ca!rover.ucs.ualberta.ca!news.ucalgary.ca!news From: macrae@geo.ucalgary.ca (Andrew MacRae) Newsgroups: comp.sys.next.programmer Subject: Re: Anyone built SATAN 1.0 on NS/3.2 (moto)? Followup-To: comp.sys.next.sysadmin Date: 7 Apr 1995 19:21:41 GMT Organization: The University of Calgary Message-ID: <3m43c5$ag2@ds2.acs.ucalgary.ca> References: <Pine.NXT.3.91.950406121628.12071F-100000@pear> In article <Pine.NXT.3.91.950406121628.12071F-100000@pear> Bapi Gupta <bapi@artsci.wustl.edu> writes: > > On 6 Apr 1995, Thomas Poff wrote: > > > Ack! > > > > Shouldn't Santa have lots of security holes (lack of features) > > with regard to NeXTStep because of the way that NFS works? > > We just corrected some NFS security problems with default access not .. > > > I found a copy of the passwd file in /LocalLibrary/Images/People > > today. I was wondering... why would NFS put the passwd file > > there! {&-o > > Got one too, now that you mention it. It is short and I too have no > idea why it is there. It is for Mail.app, so it can associate images with users. The password field of the "passwd" file is not needed. Just delete the encoded passwords, and the potential security hole is gone, unless you consider userid's to be a security hole too (and you can delete user entries that do not have pictures if you want). Followups to comp.sys.next.sysadmin. -- -Andrew macrae@geo.ucalgary.ca home page: "http://geo.ucalgary.ca/~macrae/current_projects.html"
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: WP 6.0 to 5.1 translator Date: Sat, 8 Apr 1995 17:41:00 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950408184100.213AACUQ.malc@daneel> References: <3m44cp$srf@paladin.american.edu> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII > Since WordPerfect orphaned Next WP as anyone written or thought of > writing a translator for WP 6.0 documents into 5.1 documents? I > work at a University that uses WP for Next every day. No day goes > by that I am asked to convert a 6.0 PC document to 5.1 and I am > starting to get tired of walking to the nearest PC with 6.0, starting > up WP...you get the picture. > In case there's nothing else available, how about getting a copy of SoftPC...? I had a bit more than just a quick play with the demo recently, and was pleasantly surprised at how well it seemed to run (on an object.station). I'll probably see if I can get a copy soon, for just this sort of thing. Plus it means that others here get to see Windows running inside NEXTSTEP -- which often causes them to think awhile! :-) Have fun, mmalc.
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.programmer Subject: Re: NeXT buys Objective-C tm Date: 7 Apr 1995 18:02:36 GMT Organization: Vienna University of Economics and Business Administration Distribution: world Message-ID: <3m3uns$mfk@osiris.wu-wien.ac.at> References: <3lrijh$fus@sun0.urz.uni-heidelberg.de> Gregor Hoffleit (flight@mathi.uni-heidelberg.de) wrote: / Are they now really commited to "open standards" ? "As a software company, we recognize this is an open systems world," said Steve Jobs, NeXT Computer, Inc. ;-) -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@fvkma.tu-graz.ac.at GNU OpenStep Development Team, Manager of the Documentation Department http://fvkma.tu-graz.ac.at/gnustep/gnustep.html
From: mike@ceramics.cmpe.ubc.ca (Michael C. Cam) Newsgroups: comp.sys.next.programmer Subject: Background processes do not run properly after loging out Date: 7 Apr 1995 21:51:43 GMT Organization: The University of British Columbia Distribution: world Message-ID: <3m4c5f$ni8@nnrp.ucs.ubc.ca> Hi, I have a problem forking new processes from a background process. I have a program that generates eps image files that I convert to another type as they are being generated. The conversion is done by calling vfork() to generate another process and I use execl() to call the image conversion program. I also call wait() and resume the parent process after the child process is done. Everything works fine as long as I am logged in. The calling process runs in the background, the image conversion is done, and I get the files I want. But as soon as I logout, I get zero size files from the image conversion program. Before the calling process would stop, and so I run the parent process and the child processes from csh or nohup. But I still get zero size files. The child process needs to write files as part of the image conversion and this may have something to do with it but at this point I am unsure of anything. I have changed the permissions of the directories to fully writable but the problem still persists. Any ideas would be greatly appreciated. ..Mike.
Belgium.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!uunet!news.dsndata.com!wetware!nntp-hub.barrnet.net!news.NeXT.COM!usenet From: grio@next.com (Dan Grillo) Newsgroups: comp.sys.next.programmer Subject: Re: Does putenv() exist under NeXTStep? Date: 7 Apr 1995 23:51:34 GMT Organization: Technical Support, NeXT Computer, Inc. Message-ID: <3m4j66$m5e@news.next.com> References: <3lp0ce$cku@bcrkh13.bnr.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Versions: makemail 2.6p5 In article <3lp0ce$cku@bcrkh13.bnr.ca>, Peter Whittaker <pww@bnr.ca> wrote: > >If putenv() does not exist, can someone suggest an alternative? See #1893 for one solution. --Dan -- Dan Grillo dan_grillo@next.com (415) 780-2963 now in Bld1, back, Rside
Belgium.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!uunet!news.dsndata.com!wetware!nntp-hub.barrnet.net!news.NeXT.COM!usenet From: grio@next.com (Dan Grillo) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Re: Anyone built SATAN 1.0 on NS/3.2 (moto)? Date: 7 Apr 1995 23:52:06 GMT Organization: Technical Support, NeXT Computer, Inc. Message-ID: <3m4j76$m5g@news.next.com> References: <3lut55$mao@nntp3.u.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Versions: makemail 2.6p5 In article <3lut55$mao@nntp3.u.washington.edu>, William Barker <wrb@biostr.washington.edu> wrote: > >Subject says it all. I tried, but it isn't preconfiged for NS, and I >didn't want to re-invent the wheel. Besides, I've also got SGIs, and it >builds cleanly out of the box on them. See NeXTanswer #1893_Building_SATAN_for_NEXTSTEP.rtfd --Dan -- Dan Grillo dan_grillo@next.com (415) 780-2963 now in Bld1, back, Rside
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Info on serial port access. Date: 09 Apr 1995 09:07:52 +0100 Organization: me organized? That's a joke! Message-ID: <robertznfkyr7mvysk@steffi.dircon.co.uk> References: <3lp1o9$nkp@barracuda.dadd.ti.com> <3lpnso$mqe@ixnews4.ix.netcom.com> In-reply-to: kdarmawa@ix.netcom.com's message of 3 Apr 1995 21:04:24 GMT To: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Don't forget I _think_ there's some wrapper for serial ports in the Misckit also. I'd give it a look but I've also heard good things about the products you refer to. Cheers. -- "Mary ate a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: DBEditableFormatter mysteries Message-ID: <jpanicoD6o9K7.Hr5@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Fri, 7 Apr 1995 15:55:19 GMT Sender: jpanico@netcom7.netcom.com Hi, I have a DBTableView that has editable cells in a particular column. I have set the delegate of the DBEditableFormatter for that column, but the delegate is not being sent any formatterWillChangeValueFor or formatterDidChangeValueFor delegate messages. Then I tried subclassing DBEditableFormatter and inserting the new formatter class into the TableVector for that column. The new formatter is never sent any endEditing message that belong to the superclass. But I know I have got the right DBEditableFormatter, because in the custome subclass I have successfully overriden the - drawFieldAt::::: method. I'm just trying to get notification of when the value of a cell in this column has changed. Jeez, it shouldn't be this hard. Are there any magic invocations that need to be performed to get this sort of notification? Thanks for any help. Joe Panico jpanico@netcom.com
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP Positions Date: 9 Apr 1995 17:44:15 GMT Organization: Norden 1 Communications Message-ID: <3m96df$sut@news1.channel1.com> The OMNI GROUP is representing a number of companies that specialize in the NEXTSTEP platform. Many of these positions are with major companies. All positions require previous commercial NEXTSTEP experience. These positions offer relocation assistance. If interested, please fax or mail a hard copy resume. Thank You---Tom Gugger -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
Newsgroups: comp.sys.next.programmer From: tini@gurke.ping.de (Constantin Szallies) Subject: Free MIMEText Object around? Message-ID: <D6sDA0.190@gurke.ping.de> Summary: Looking for MIME-Class Keywords: MIME, newsreader Sender: usenet@gurke.ping.de Organization: Legalize THC Date: Sun, 9 Apr 1995 21:06:00 GMT I'm currently writing a newsreader and I would like to add MIME capabilities. Are there any PD MIME implementations around? I know of MPACK and MIME-lite, but a MIME class which is a subclass of text would be nice. The class should parse/unparse MIME stuff and display it in a text view. -- <--------------------------------------------------------------> | Constantin Szallies ||| tini@gurke.ping.de | | Emil Figge 7 44227 Dortmund (o o) Tel: 0231/7519681 | <------------------------------oOo--(_)--oOo------------------->
Newsgroups: comp.sys.next.programmer From: tini@gurke.ping.de (Constantin Szallies) Subject: "HashTable with string as key" question Message-ID: <D6sFJK.1EJ@gurke.ping.de> Keywords: hashtable Sender: usenet@gurke.ping.de Organization: Legalize THC Date: Sun, 9 Apr 1995 21:54:56 GMT I have a HashTable with strings as keys. I have the following questions: 1) When I do a char *aKey; .... [aTable insertKey:aKey value:i]; And aKey is already in the table. Does the hashtable keep a pointer to the old string or new string? 2) If I remove an entry with [aTable removeKey:aKey]; How do I deallocate the old string? removeKey: always returns nil. Thanx for any answer. -- <--------------------------------------------------------------> | Constantin Szallies ||| tini@gurke.ping.de | | Emil Figge 7 44227 Dortmund (o o) Tel: 0231/7519681 | <------------------------------oOo--(_)--oOo------------------->
From: chris@warped.com (Christopher Wolf) Newsgroups: comp.sys.next.programmer Subject: Displaying a fixed # of columns in a variable width scrollview? Date: 10 Apr 1995 00:18:29 GMT Organization: Cornell University Sender: caw5@cornell.edu (Verified) Distribution: world Message-ID: <3m9tgl$obc@newsstand.cit.cornell.edu> In Mail.app's compose windows text is wrapped at a fixed number of columns regardless of the width of the scrollview containing that text. I am trying to implement similar behavior and am not having any luck. Any advice on how to do this would be appreciated. I have experimented with setHorizResizable, setAutosizing:, setMinSize: and setMaxSize: none of which seem to have any effect. The text object still gets resized when the scrollView containing it is resized. Another thing I have tried is implementing the textWillResize: and textDidResize: delegate methods. From the text class documentation it seemed as if these should be called before and after the text object's frame is changed... in actuality I receive a textWillResize: every time a character is added to the text object and I never receive a textDidResize: message... very strange. If anyone could clear up my confusion or provide suggestions for an alternative way of achieving what I described in the first paragraph I would be really grateful. - Chris -- Christopher Wolf - chris@alchemy.geo.cornell.edu
From: eggman@barium.enema.com (Justin Blethrow) Newsgroups: comp.sys.next.programmer Subject: Objective C? Date: 10 Apr 1995 00:25:07 GMT Organization: University of California, Santa Cruz Message-ID: <3m9tt3$qc6@darkstar.UCSC.EDU> Could someone fill me in on Objective C? How does it compare to C++? I currently use C++ under dos/windows and linux -- and actually *like* C++ conventions -- though I hear that NS is a programmer's paradise. Is Objective C the de facto standard for NS? What sort of support is there for C++ under NeXTStep? I'm thinking about getting NS Academic, just to fool around, but I'd like some info before putting in the $299. Are there any appropriate faqs out there? Thanks in advance. Todd tapp@deeptht.armory.com
From: Cameron.Kay@kauri.vuw.ac.nz (Cameron Kay) Newsgroups: comp.sys.next.programmer Subject: New storage managment in foundation kits - retain/release Date: 10 Apr 1995 01:56:17 GMT Organization: Victoria Uni. of Wellington, NZ. Distribution: world Message-ID: <CAMERON.KAY.95Apr10135617@kauri.vuw.ac.nz> Hi, I'm trying to find you some information about the new auto release storage system in the foundation kit. Does anyone have any detailed documentation about how it works and how it used? If so could you email it to me please. Preferably in postscript of .rtfd format. - Cameron -- Email Cameron.Kay@kauri.vuw.ac.nz Post Computer Science Department Phone + 64 4 472 1000 x7032 (Work) Victoria University + 64 4 237 5895 (Home) P.O.Box 600 Fax + 64 4 495 5232 Wellington, New Zealand
From: hugh@furuike.twics.com Newsgroups: comp.sys.next.programmer Subject: Reverse replaceSelWithCell: ??? Date: Sat, 8 Apr 1995 06:17:35 GMT Organization: Twics Co. Ltd., Japan Message-ID: <950408151735.948AAC4E.hugh@furuike> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII Is there any way in which an ActionCell in a Text object can be replaced easily by a string? I've been looking through the docs, and I can't see an easy way to do this. Thanks. hugh +-----------------------------------------------------------+ | Hugh Ashton -- Furuike Systems | | Tokyo-to, Mitaka-shi, Jindaiji 2-35-51, Premier Niiya 201 | | (inside Japan) tel: 0422-31-7990 fax: 0422-31-7048 | | (international) tel: +81 422-31-7990 fax: +81 422-31-7048 | +-----------------------------------------------------------+ | email: hugh@furuike.twics.com | +-----------------------------------------------------------+
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 10 Apr 1995 04:15:14 GMT Organization: Digital Fix Development Message-ID: <3mabci$mj6@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff, but very short on disk space ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.next.com: See the below ftp://ftp.embl-heidelberg.de/pub/sci-tools/eduStep ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
From: olorin@clark.net (Rivendell Communications) Newsgroups: comp.sys.next.programmer Subject: free node trashed Date: 10 Apr 1995 10:15:29 GMT Organization: Clark Internet Services, Inc., Ellicott City, MD USA Message-ID: <3mb0g1$rdb@clarknet.clark.net> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit I have a C program that used malloc and free with a lot of pointers ( probably not as clean as it should be, but I didn't start from scratch and can't spend more time on it ) running on NeXTStep 3.2 in NeXT Box. It didn't use any NeXTStep GUI or object and probably best classified as a UNIX program. It crashed from time to time without much indication. So I set mallocate debug level to 16 to see if that will help. Now I have some messages like this : Free node trashed <hexdecimal address> What does this mean ? This message pop up on user screen which is connected to this program through telnet instead of stderr I expected. I think data structure must be corruppted at this point because the program hung or shut itself down a short time later probably another function trying to access corrupted data. Since this program run as a server in background, I don't know if gdb can help. How do programmers debug a program that fork out a child process and kill the parent process if the program might take couple day to reach a state of error anyway ?
From: nxcard@xs4all.nl (nxcard) Newsgroups: comp.sys.next.programmer Subject: TeX Date: 10 Apr 1995 13:01:48 GMT Organization: XS4ALL, networking for the masses Message-ID: <3mba7s$ogm@news.xs4all.nl> Summary: how to start tex Keywords: NeXTTeX Hello, I have a question for everybody using TeX on NeXT. I have version NSI3.3. Yesterday I tried to start TeX on my system, but it seems that it is installed in the wrong directory's, and more strange stuff.. What script do I need to use TeX? (aliases, softlinks, etc.) Futhermore I downloaded TeXMenu (4.1 I think) which is also not compatible with the installed stuff.. Please help! Thanks, Rene' Kuipers (nxcard@xs4all.nl) NeXTmail welcome! MimeMail to rene@nxcard.xs4all.nl
Newsgroups: comp.sys.next.programmer From: phef@cedar.demon.co.uk (Paul Heffernan) Subject: Re: Reverse replaceSelWithCell: ??? References: <950408151735.948AAC4E.hugh@furuike> Organization: Myorganisation Date: Mon, 10 Apr 1995 12:09:40 +0000 Message-ID: <797515780snz@cedar.demon.co.uk> Sender: usenet@demon.co.uk In article <950408151735.948AAC4E.hugh@furuike> hugh@furuike.twics.com writes: > Is there any way in which an ActionCell in a Text object can be replaced > easily by a string? I've been looking through the docs, and I can't see an > easy way to do this. > If you let me know what interface you want to this, I should be able to send you something to do the trick. E.g. something like the following? @interface Text(replaceCell) - replaceCell:aCell with:(const char *)text; @end Regards, Paul Heffernan. ----------------------------------------------- Cedar Systems email: phef@cedar.demon.co.uk telephone: +44 1242 239221 facsimile: +44 1242 254367 -----------------------------------------------
From: manu@thor (Emmanuel Collignon) Newsgroups: comp.sys.next.programmer Subject: ensoniq soundscape under NS Date: 10 Apr 1995 11:46:14 GMT Organization: Universite de La Rochelle Message-ID: <3mb5q6$r48@hpuniv.univ-lr.fr> Keywords: ensoniq,driver,nextstep I would like to write a driver for the Ensoniq Soundscape for NEXTSTEP. But to do this, i need some informations about how to program the sound card. Could you tell me where i could find such informations ?
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: comp.sys.next.advocacy,comp.sys.next.programmer Subject: CfV: eduStep and SciTools logo competition Date: 10 Apr 1995 14:21:43 GMT Organization: University of Heidelberg, Germany Message-ID: <3mbetn$jt0@sun0.urz.uni-heidelberg.de> Keywords: eduStep,SciTools,competitions The quest for a logo for the eduStep WWW server and the SciTools project is in the final round. The deadline for competition entries was March 31. Now it's your turn to choose your favorites. If you haven't yet submitted your vote, take a little bit time, have a look at the competitions entries at http://www.nmr.embl-heidelberg.de/eduStep/Wine.html and submit your votes UNTIL APRIL, 20, via email to tuparev@embl-heidelberg.de with subject: "eduStep wine" and one line with the number of the best logo in each category, e.g. eduStep: #x SciTools: #y The designers of the two logos with the most votes will receive a very special bottle of French wine! The results will be announced here and on eduStep and the logos will complete eduStep's and SciTools's look. About the eduStep WWW server: ---------------------------- http://www.nmr.embl-heidelberg.de/eduStep/ "A lot of people think we still sell to the education market. That could not be farther from the truth" -- Steve P. Jobs, Keynote, NEXTEXPO '94 At the very beginning, NeXT was a small company with a very friendly attitude to the education market. Times have changed. NeXT's current goal is to provide object-oriented technology solutions to the Fortune 500. But because they are still small, NeXT is focusing all their energy and innovation towards their new market niche. So support for the education market has been dropped and individual NeXT lovers have been forgotten altogether. This situation is extremely unstable and dangerous not just for researchers, but also for NeXT: today's students are the decision makers of tomorrow; the university is still the major supplier of new software (often free and high quality) and, most importantly, new and innovative ideas. The aim of this EMBL WWW server is to promote collaboration and information exchange between all researchers and educators working with NEXTSTEP/OpenStep, and to bridge the huge gap between the university and financial world. About the SciTools project: -------------------------- http://www.nmr.embl-heidelberg.de/eduStep/SciTools/SciTools.html The ``SciTools Project'' was started as an attempt to rectify the fundamental problem with present-day scientific computing: computer software too often hinders rather than enables scientific work. We want to re-define how scientists work with computers by creating a scientific computing environment based upon an object-oriented model of how we work rather than how badly computers are currently forcing us to work. Please feel free to browse through the eduStep information on the SciTools project - we hope you will be as excited as we are about the possibilities just right within our reach and will even consider joining our international and inter-disciplinary effort! -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: comp.sys.next.programmer Subject: FAT perl 5.0 ? Date: 10 Apr 1995 15:05:54 GMT Organization: University of Heidelberg, Germany Message-ID: <3mbhgi$jt0@sun0.urz.uni-heidelberg.de> Has anybody successfully made a FAT version of perl 5.0 ? Is it possible, and what prerequisites are necessary ? -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
From: schaefer@syrtis.geology.yale.edu Newsgroups: comp.sys.next.programmer Subject: gcc-2.6.3 Date: 10 Apr 95 10:29:42 Organization: Yale University Distribution: world Message-ID: <schaefer.95Apr10102942@syrtis> Mime-Version: 1.0 Content-Type: text/plain I am trying to compile gcc-2.6.3, so that I can then try and compile g77. I haven't had any luck with it so far. The standard configure files do not include my system, an HP running NeXTSTEP 3.2. I know it must be possible - the cc on this system is gcc, but an earlier version. I have tried putting in what I thought were the right configure files from the installed gcc, and I have tried not using configure files at all, but copying over a working Makefile from an earlier version of gcc and a dding in links myself. Clearly I am not doing it right, however. Has anyone successfully compiled this? Or does anyone have a g77 binary for this architecture ; ) ? ++++++++++++++++++++++++++++++++++++++++++++++++++++ Martha W. Schaefer Yale University Department of Geology and Geophysics P.O.Box 208109 New Haven, CT 06520-8109 203-432-3116(office) 203-432-3134(fax) schaefer@syrtis.geology.yale.edu (NeXTMail accepted)
From: Annard Brouwer <annard@thi.nl> Newsgroups: comp.sys.next.programmer Subject: speed of databases based on IXKit? Date: 10 Apr 1995 13:35:55 GMT Organization: TeleHolding International, Amsterdam, the Netherlands Distribution: world Message-ID: <3mbc7r$9j@exit.thi.nl> Hello, We are thinking of using IXKit for databases with a maximum of tens of thousands of records. I just tried QuickBase but it wasn't quick enough. I need access times of maximal 1 or perhaps 2 seconds on queries. Does anybody know if IXKit is capable of achieving this? Thanks, Annard -- Annard Brouwer Software Engineer NeXT|MIME mail appreciated! TeleHolding International BV Amsterdam, the Netherlands
From: chris@opensource.com Newsgroups: comp.sys.next.programmer Subject: text layout for reporting Date: 10 Apr 1995 20:41:41 GMT Organization: Rocky Mountain Internet Inc. Distribution: world Message-ID: <3mc565$q7o@potogold.rmii.com> Keywords: text layout report I have a need to generate columns of left justified data, and was thinking RTF in a text object seemed a good idea. My initial investigation didn't lead me to any way to express this in rtf. Could someone who has confidence in their answer let me know why this is/isn't a stupid idea. I would really like to make use of the other formatting features available for 'free' under RTF which I would have difficulty emulating with postscript. Also another area of need would be multiple columns of text on one page. Or in general, what are people doing to solve various common reporting needs.
From: erik@sultan.ping.de (Erik Dörnenburg) Newsgroups: comp.sys.next.programmer Subject: NXProxy vs. conformsTo: Date: 10 Apr 1995 23:37:30 GMT Organization: The Sultans of Ping F.C. Message-ID: <3mcffq$36m@sultan.ping.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Since NXProxies should be as invisible as possible they forward almost every method they receive to the remote object. There are only few methods listed in the documentation which an NXProxy has to handle on its own. ConformsTo: is not mentioned but is implemented by NXProxy and returns whatever is appropriate for a Proxy, ie. sending a conformsTo: message to an object (which is remote) does not return whether this object conforms to the protocol but returns whether NXProxy conforms to that protocol. In my application, however, I need to find out whether the remote object conforms to the protocol. My workaround so far is to subclass NXProxy, make this class pose as NXProxy, override conformsTo and check whether NXProxy or the local class with the name of the class the proxy represents conforms to the protocol. - (BOOL)conformsTo:(Protocol *)aProtocol { return [NXProxy conformsTo:aProtocol] || [objc_getClass([[self class] name]) conformsTo:aProtocol]; } Obviously, the problem is that I hav to link the remote class into my program. thanks in advance erik __________________________________________________ Erik Dörnenburg, erik@sultan.ping.de (NeXT/MIME/PGP) Adolfstraße 25, 44793 Bochum, Germany, Tel: 0234-681027
From: tm8025a@newssrv.soc.american.edu (Torrey McMahon) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Re: WP 6.0 to 5.1 translator Date: 11 Apr 1995 04:22:00 GMT Organization: The American University, Washington DC Message-ID: <3md059$gik@paladin.american.edu> References: <3m44cp$srf@paladin.american.edu> In article <3m44cp$srf@paladin.american.edu> tm8025a@newssrv.soc.american.edu (Torrey McMahon) writes: :Since WordPerfect orphaned Next WP as anyone written or thought of writing a :translator for WP 6.0 documents into 5.1 documents? I work at a University :that uses WP for Next every day. No day goes by that I am asked to convert a :6.0 PC document to 5.1 and I am starting to get tired of walking to the :nearest PC with 6.0, starting up WP...you get the picture. : :What does anyone think it would entail? Programming is not my forte but would :be an educational process and worth any work I would do. Any pointers would be :great. I am afraid I forgot to add some pertinent info. Please forgive me. SoftPc would be great but.... 1) The machines are 8 meg's a piece, Motorala Turbo Stations. Soon to be increased hopefully but right now have problems, sometimes, with memory. SoftPc makes things worse, much worse. I have installed ver. 3.0 and it runs like 3 toed sloth on Valium, Vicadine AND morphine. 2) We handle about 1000 users. Setting up a harddisk file for all of them would be really disk consuming. 3) It would not be worth the time and expense of buying the new version of SoftPc, setting it up, and administrating it just to convert the documents. We have no other need, at the moment, for SoftPc. Also...I would like to put some programming to actual use. That is a minor one reason but a reason none the less. Thanks to the people that have responded. Any more info out there? (I know about WriteUp from AFS and am looking into it in case anyone had that idea.) --- Torrey McMahon
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: HELP: Unable to Uncompress .Z files Date: 11 Apr 1995 06:35:10 GMT Organization: Netcom Distribution: world Message-ID: <3md7uu$obl@ixnews2.ix.netcom.com> Hi I'm having problem when I try to uncompress .Z files from orst site. I try to uncompress the files by typing: zcat filename.Z | tar -xvf - The process stopped in the middle of uncompression and prompt me "Check Sum Error" Can somebody tell me what I did wrong ? Thanks in advance Leon
From: wfc@cl.cam.ac.uk (W F Clocksin) Newsgroups: comp.sys.next.programmer Subject: Example for Embedded Cells in Text? Date: 11 Apr 1995 09:17:55 GMT Organization: University of Cambridge, England Message-ID: <3mdhg3$66v@lyra.csx.cam.ac.uk> Can anybody point me to example code that uses embedded Cells in Text objects? The purpose is for implementing page number markers (like in WriteNow), so in one situation they are rendered as the marker, but in other situations they are rendered as the current page number. Is there a good way to do this other than by using embedded Cells? W.F. Clocksin Computer Laboratory University of Cambridge
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.programmer Subject: Re: Looking for Magzine about NS Date: 11 Apr 1995 11:27:52 GMT Organization: University of Innsbruck, Austria Distribution: world Message-ID: <3mdp3o$aef@news.uibk.ac.at> References: <1995Apr7.152525.15738@news.snu.ac.kr> Shin Dong-Jun (thinkjoy@summer.snu.ac.kr) wrote: / I am looking for magazine about NS programming or etc. There is NeXT IN LINE (NIL) and OpenStep Solutions. OpenStep Solutions is only available with JOOP or the Object Magazine. Have a look at http://www.sigs.com -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@fvkma.tu-graz.ac.at GNU OpenStep Development Team, Manager of the Documentation Department http://fvkma.tu-graz.ac.at/gnustep/gnustep.html
From: chris@CU-DIALUP-0620.CIT.CORNELL.EDU (Christopher Wolf) Newsgroups: comp.sys.next.programmer Subject: Re: Displaying a fixed # of columns in a variable width scrollview? Date: 11 Apr 1995 11:41:14 GMT Organization: Cornell University Sender: caw5@cornell.edu (Verified) Distribution: world Message-ID: <3mdpsq$n0r@newsstand.cit.cornell.edu> In article <3mbvos$ke@tssslab.TotSysSoft.com> Bruce Gingery wrote: >In article <3m9tgl$obc@newsstand.cit.cornell.edu> chris@warped.com >(Christopher Wolf) writes: >}~ In Mail.app's compose windows text is wrapped at a fixed number >}~ of columns regardless of the width of the scrollview containing >}~ that text. I am trying to implement similar behavior and am >}~ not having any luck. Any advice on how to do this would be >}~ appreciated. > > I've not checked to see if Mail.app works this way, but an easy >way to do it is to set the background of the ScrollView to the same >color as the background of the Text object. Then just don't resize >the Text object horizontally. The visual appearance is the same, >but the text does not rewrap. Thanks for the suggestion. Perhaps my original post was unclear but this was the approach I initially tried. My problem is that the text objects insists on resizing itself horizontally even though it's set up as setHorizResizable: NO and setAutoSizing: NX_NOTSIZABLE. Is there something additional that I need to do to get this to work? Thanks. - Chris -- Christopher Wolf - chris@alchemy.geo.cornell.edu
Newsgroups: comp.sys.next.programmer From: Cedar@cedar.demon.co.uk (Cedar Systems) Subject: Re: Example for Embedded Cells in Text? References: <3mdhg3$66v@lyra.csx.cam.ac.uk> Organization: Myorganisation Date: Tue, 11 Apr 1995 11:25:45 +0000 Message-ID: <797599545snz@cedar.demon.co.uk> Sender: usenet@demon.co.uk In article <3mdhg3$66v@lyra.csx.cam.ac.uk> wfc@cl.cam.ac.uk "W F Clocksin" writes: > Can anybody point me to example code that uses embedded Cells in Text objects? > > The purpose is for implementing page number markers (like in WriteNow), so in > one situation they are rendered as the marker, but in other situations they are > > rendered as the current page number. Is there a good way to do this other than > > by using embedded Cells? > > W.F. Clocksin > Computer Laboratory > University of Cambridge > Yes, get hold of Jayson Adams' ImageText example from one of the archives. This example is about embedding Cells in Text objects. Paul Heffernan ----------------------------------------------- Cedar Systems email: Cedar@cedar.demon.co.uk telephone: +44 1242 239221 facsimile: +44 1242 254367 -----------------------------------------------
Newsgroups: comp.sys.next.programmer From: howardd@il.us.swissbank.com (Denise Howard) Subject: Re: HELP: Unable to Uncompress .Z files Message-ID: <1995Apr11.151447.4498@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3md7uu$obl@ixnews2.ix.netcom.com> Date: Tue, 11 Apr 1995 15:14:47 GMT Kurniawan Darmawangsa writes > Hi I'm having problem when I try to uncompress .Z files from orst site. > > I try to uncompress the files by typing: > zcat filename.Z | tar -xvf - > The process stopped in the middle of uncompression and prompt me "Check > Sum Error" > > Can somebody tell me what I did wrong ? Is this simply a .Z file, or a .tar.Z? If it's the former, then that's your problem. Try typing simply: uncompress filename.Z If it's the latter (.tar.Z) then it's possible your download transmission was somehow corrupted. Try downloading it again. Denise -- Denise Howard \/ howardd@swissbank.com Swiss Bank Corporation \/ deniseh@mcs.com Chicago, IL \/ [NeXT, MIME and ASCII mail welcome] (312) 554-6298 \/ "Older and Bolder!"
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: Displaying a fixed # of columns in a variable width scrollview? Date: 10 Apr 1995 19:09:16 GMT Organization: Total System Software Distribution: world Message-ID: <3mbvos$ke@tssslab.TotSysSoft.com> References: <3m9tgl$obc@newsstand.cit.cornell.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <3m9tgl$obc@newsstand.cit.cornell.edu> chris@warped.com (Christopher Wolf) writes: }~ In Mail.app's compose windows text is wrapped at a fixed number }~ of columns regardless of the width of the scrollview containing }~ that text. I am trying to implement similar behavior and am }~ not having any luck. Any advice on how to do this would be }~ appreciated. I've not checked to see if Mail.app works this way, but an easy way to do it is to set the background of the ScrollView to the same color as the background of the Text object. Then just don't resize the Text object horizontally. The visual appearance is the same, but the text does not rewrap. +-+ Bruce Gingery Total System Software Cheyenne, WY USA We do consulting over Internet. E-Mail tss@TotSysSoft.com for quotes or more info. Homepage construction area:<URL:http://turnpike.net/metro/bagingry/> NEXT IN LINE magazine staff technical writer Bruce Gingery <bgingery@Wyoming.COM> OR <bruce@TotSysSoft.com> Multimedia: NeXTmail(tm) preferred MIME-mail welcome
From: tm8025a@newssrv.soc.american.edu (Torrey McMahon) Newsgroups: comp.sys.next.programmer Subject: SATAN 1.1.1 Date: 11 Apr 1995 18:16:29 GMT Organization: The American University, Washington DC Message-ID: <3meh1t$r97@paladin.american.edu> Has anyone compiled the new version? I get the following messages. 2:10pm -> make bsd cd src/misc; make "LIBS=" "XFLAGS=-DAUTH_GID_T=int" "RPCGEN=rpcgen" cc -O -I. -DAUTH_GID_T=int -c md5.c cc -O -I. -DAUTH_GID_T=int -c md5c.c cc -O -I. -DAUTH_GID_T=int -o ../../bin/md5 md5.o md5c.o cc -O -I. -DAUTH_GID_T=int -o ../../bin/sys_socket sys_socket.c cc -O -I. -DAUTH_GID_T=int -o ../../bin/timeout timeout.c -posix cc -O -I. -DAUTH_GID_T=int -o ../../bin/rcmd rcmd.c cc -O -I. -DAUTH_GID_T=int -o ../../bin/safe_finger safe_finger.c putenv.c -posix putenv.c: In function `putenv': putenv.c:11: warning: assignment makes pointer from integer without a cast putenv.c:19: warning: assignment makes pointer from integer without a cast putenv.c:52: warning: assignment makes pointer from integer without a cast putenv.c:63: warning: assignment makes pointer from integer without a cast ld: Undefined symbols: _isascii *** Exit 1 Stop. *** Exit 1 Stop. *** Exit 1 Stop. Exit 1 I followed the instructions in NextAnswers but I suppose they may have been outmoded by this new version. -- Torrey McMahon
Newsgroups: comp.sys.next.programmer From: tom@icgned.nl (Tom Hageman) Subject: Re: SATAN 1.1.1 Message-ID: <D6wwzI.Es4@icgned.nl> Sender: news@icgned.nl Organization: IC Group References: <3meh1t$r97@paladin.american.edu> Date: Wed, 12 Apr 1995 08:02:06 GMT That's fast. I wonder when we'll get to SATAN 6.6.6... Sorry. Couldn't resist :-) --- __/__/__/__/ Tom Hageman <tom@basil.icce.rug.nl> [NeXTmail/Mime OK] __/ __/_/ IC Group <tom@icgned.nl> (work) __/__/__/ "...to baldly go where no one has gone before." __/ _/_/ -- star trek TNG
From: mark@nextstep.dorm6.nctu.edu.tw (Lin Yi-chih) Newsgroups: comp.sys.next.programmer Subject: How to use a MiscFindPanel with Multi .nib? Date: 9 Apr 1995 08:15:10 GMT Organization: Dep. Computer Sci. & Information Eng., Chiao Tung Univ., Taiwan, R.O.C Distribution: World Message-ID: <3m852e$7uu@news.csie.nctu.edu.tw> It' O.K if I just work with the single .nib file, but fail when I want to use Multiple .nib file. Mark
Belgium.EU.net!EU.net!howland.reston.ans.net!swrinde!gatech!paladin.american.edu!news From: tm8025a@newssrv.soc.american.edu (Torrey McMahon) Newsgroups: comp.sys.next.programmer Subject: Re: SATAN 1.1.1 Date: 12 Apr 1995 18:14:13 GMT Organization: The American University, Washington DC Message-ID: <3mh59l$il1@paladin.american.edu> References: <3meh1t$r97@paladin.american.edu> In article <3meh1t$r97@paladin.american.edu> tm8025a@newssrv.soc.american.edu (Torrey McMahon) writes: :Has anyone compiled the new version? I get the following messages. : <Messages deleted....> Well I solved my own problem. I accidentally appended "-posix" to the safefinger putenv line in the misc/makefile. I got a bunch of other messages after removing it but it compiled correctly. Thanks for the help folks. --- Torrey McMahon
From: jksmyth@eos.ncsu.edu (James Kidd Smyth) Newsgroups: comp.sys.next.programmer Subject: Sound files and DSP questions Date: 12 Apr 1995 19:51:08 GMT Organization: North Carolina State University Distribution: world Message-ID: <3mhavc$14r@taco.cc.ncsu.edu> Sound files and DSP questions I am trying to take the ascii output of the SoundEditor.app which is saved in a .snd file, do a fast fourier tranform on it, and observe the resulting spectrum. What i need to know is how this output is saved. I assume that the ascii text is a direct result of the 8-bit sample pattern. The problem with this is as follows: The 255mulaw scale used by the sampler is, for standard PCM, coded so that a numerically smaller binary word is not necessarily a lower sound level sample. Thus I need to 'decode' the sample bytes into actual sound levels to get correct results. The dilema is that when the sound editor plots the time domain signal it either knows how to decode the samples OR the output is already decoded in the .snd file. This brings me to a related problem. i have gone though the files in the appliction and can't find the actual code for the plotting I would like to reuse this in my project. What i need is some info on the beginning of the .snd file so that I can simply save my FFT'd file as a .snd file and have the SoundEditor plot this as if it were the apps own output. Therefore, I need to know what is needed, or important, at the start of the .snd file so that the Editor can work with my .snd file! Any help would be appreciated. Also, any other problems heretofore unseen. thanks, james smyth jksmyth@eos.ncsu.edu
From: tm8025a@newssrv.soc.american.edu (Torrey McMahon) Newsgroups: comp.sys.next.programmer Subject: Re: SATAN 1.1.1 Date: 12 Apr 1995 20:55:12 GMT Organization: The American University, Washington DC Message-ID: <3mheng$l6r@paladin.american.edu> References: <3mh59l$il1@paladin.american.edu> In article <3mh59l$il1@paladin.american.edu> tm8025a@newssrv.soc.american.edu (Torrey McMahon) writes: :In article <3meh1t$r97@paladin.american.edu> tm8025a@newssrv.soc.american.edu :(Torrey McMahon) writes: ::Has anyone compiled the new version? I get the following messages. :: :<Messages deleted....> : :Well I solved my own problem. I accidentally appended "-posix" to the :safefinger putenv line in the misc/makefile. I got a bunch of other messages :after removing it but it compiled correctly. : :Thanks for the help folks. : In case people are wondering, if you follow the NeXTAnswers document on Satan 1.0 it will get 1.1.1 up and working also. Some warnings about redefinitions but that is about it. -- Torrey McMahon
From: Sushil Nachnani <sknachnani@lbl.gov> Newsgroups: comp.sys.next.programmer Subject: Form and FormCell uses Date: 12 Apr 1995 22:07:45 GMT Organization: Lawrence Berkeley Laboratory, Berkeley CA Message-ID: <3mhivh$jb@overload.lbl.gov> Does anyone have pointers or source code to use of Form and FormCell in IB? How do you use Form graphically in Interface Builder? Any help/suggestions welcome. Also are there any level-meter/dial type objects floating around. Sushil
Newsgroups: comp.sys.next.programmer From: lng@netcom.com (Lap Yan Larry Ng) Subject: compressed help Message-ID: <lngD6y0np.3y0@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 12 Apr 1995 22:19:00 GMT Sender: lng@netcom3.netcom.com I would like to change help files at run time which means no compression for the standard Help directory. How can I avoid the standard make rule that invokes compresshelp ? Please send answer to mdesilva@lamrc.com. Thanks
From: jehu@blackbox.cl.ee.vt.edu (John Stanhope) Newsgroups: comp.sys.next.programmer,comp.sys.next.sysadmin Subject: Need some help with Turbo's serial ports Date: 12 Apr 1995 14:39:07 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3mgomb$vc@solaris.cc.vt.edu> I am using the misckits serial port object and having some problems with the serial ports. It seems to think that the ports are all ways busy (errno = 16). The way I have stuff setup the file descriptor for the port should always get closed when the program ends. Is there a way, without rebooting, to refresh the serial ports? FYI, I am trying to use the misckit example TinyTerm to connect with a 68hc11 board. This works just fine on intel hardware (hard to believe) but I also had to make the cable to connect the NeXT with the serial port on the board. I used the schematic NeXT-to-Modem Cable (MiniDIN-8 to DB-25) in the admin docs. On intel I just used my regular modem cable. Any comments? Thanks John Stanhope
From: ghost@ghost.neosoft.com (Mark C. Allman) Newsgroups: comp.sys.next.programmer Subject: Re: TeX Date: 12 Apr 1995 02:53:47 GMT Organization: NeoSoft Internet Services +1 713 968 5800 Message-ID: <3mffbr$7hc@uuneo.neosoft.com> References: <3mba7s$ogm@news.xs4all.nl> Keywords: NeXT, TeX, LaTeX In article <3mba7s$ogm@news.xs4all.nl> nxcard@xs4all.nl (nxcard) writes: > Hello, > I have a question for everybody using TeX on NeXT. I have version NSI3.3. > > Yesterday I tried to start TeX on my system, but it seems that it is > installed in the wrong directory's, and more strange stuff.. > > What script do I need to use TeX? (aliases, softlinks, etc.) > > Futhermore I downloaded TeXMenu (4.1 I think) which is also not > compatible with the installed stuff.. > > Please help! > > Thanks, Rene' Kuipers > (nxcard@xs4all.nl) > NeXTmail welcome! > MimeMail to rene@nxcard.xs4all.nl I have used (La)TeX to write one textbook ("Modern Astrodynamics", Princeton U. Press) and are starting a second. Over the course of development I've run into a few challenges. So far, there's _nothing_ that LaTeX can't do (so far). Are you aware of the environment variables (I believe these are the uses): TEXFORMATS <== points to the library of TeX formats TEXINPUTS <== points to the library of TeX inputs TEXFONTS <== paths to where the TeX Font Metrics (.tfm) files are. TEXPOOL <== base directory where TeX is installed. Files in this directory include: Make_Fonts formats fonts (linked to /NextLibrary/Fonts/TeXFonts) inputs makeindex ps src tex.pool TEXEDIT <== editor used when "edit" selected in TeX translator. On my system these are set to: TEXFORMATS=/usr/lib/tex/formats TEXINPUTS=.:/usr/lib/tex/inputs TEXFONTS=/usr/lib/tex/fonts/tfm TEXPOOL=/usr/lib/tex TEXEDIT=/bin/emacs %s I've also upgraded to LaTeX2e and added AMSLaTeX. There is a TeX archive site at ftp.shsu.edu. TeXMenu has been tried several years ago but appeared annoying. So I can't answer any question on it. Questions are welcome. -- Mark Allman -- Grad. Student, Physics, Univ. of Houston -- ghost@ghost.neosoft.com
Newsgroups: comp.sys.next.programmer From: Cedar@cedar.demon.co.uk (Cedar Systems) Subject: Re: How do I find where the tab stops are located in a text object? Distribution: world References: <3mh0b7$6ii@solaris.cc.vt.edu> Organization: Myorganisation Date: Thu, 13 Apr 1995 08:50:09 +0000 Message-ID: <797763009snz@cedar.demon.co.uk> Sender: usenet@demon.co.uk In article <3mh0b7$6ii@solaris.cc.vt.edu> jehu@vt.edu "john stanhope" writes: > > > I have some text in a text object and I want to > be able to change the tab stops. How do I find > out where they are and how do I change them to > something meaningful (4 spaces/8 spaces for a > tab) ? > > Thanks > Jehu > Tab stop positions are stored in an NXTextStyle structure. The Text object maintains an array of NXRuns in it's theRuns instance variable. Each NXRun stores formatting information about a consecutive run of characters of that format. Each NXRun has a pointer to an NXTextStyle structure describing the indentation, alignment and tab stop positions for the characters represented by the NXRun. Tab positions are expressed in points (1/72 inch) rather than characters, so in order to set tabs that would reflect a particular number of characters, you would need to be using a non proportional font such as Ohlfs or Courier. You can get a copy of the default NXTextStyle for the Text with the defaultParaStyle method, and change the style with either the setParaStyle: or setSelFont:paraStyle: methods. (These methods will copy the NXTextStyle structure you pass, so either declare your structure statically or free it if you malloc it.) Hope this is of some help. Paul Heffernan ----------------------------------------------- Cedar Systems email: phef@cedar.demon.co.uk telephone: +44 1242 239221 facsimile: +44 1242 254367 -----------------------------------------------
From: hcole@zia.nrcabq.com Newsgroups: comp.sys.next.programmer Subject: GNU compiler for Quad fat? Date: 12 Apr 1995 23:56:11 GMT Organization: Engineering International Inc., Public Internet Access Distribution: world Message-ID: <3mhpar$g3a@mack.rt66.com> There was a posting recently about the GNU 2.5.8 compiler on the ftp.informatik.uni-muenchen.de site which would allow generation of Quad fat executables. Unfortunately, several machine-dependent header files are not contained in the distribution. Are these files available legally? Where? Thanks, please, for any help. - HRC -
From: mneher@homer1.ive.mrg.uswest.com (Mark_Tyler_Neher) Newsgroups: comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.misc Subject: Sequencing Software Date: 13 Apr 1995 14:42:52 GMT Organization: U S WEST Marketing Resources Message-ID: <3mjd9c$cbr@engineer.mrg.uswest.com> Is there a MIDI sequencer out there for the NeXT, either free or a pay product?? I am running on black hardware. Also, how do you hook up said black box to a MIDI device?? I have MIDI to MIDI cables, but I think I remember hearing that it would run out of a serial port on the NeXT. Is there a converter, or a serial to MIDI cable?? Thanks in advance, MTN
Newsgroups: comp.sys.next.programmer From: erwin@dutnak2.tn.tudelft.nl (Erwin Giling) Subject: Looking for scientific readout GUI Objects Message-ID: <erwin.797694409@dutnak2> Sender: news@news.tudelft.nl (UseNet News System) Organization: Delft University of Technology Date: Wed, 12 Apr 1995 13:46:49 GMT Dear Nextstep friend, I've just started to put together a quick GUI prototype for a scientific instrument controller application. In the standard classes, there are no digital VU-meters, dial controllers, digital readouts etc. that are commonly found on the front panels of scientific instruments. I'm looking for such objects (a la LabView/LabWindows). Do you have a clue on where to start looking? Thanks, Erwin Giling
Newsgroups: comp.sys.next.programmer From: sargent@ch1d271nwk (Jeff Sargent) Subject: Workspace Mgr Errors & Netinfo? Message-ID: <1995Apr12.135048.14946@il.us.swissbank.com> Keywords: Workspace Manager Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division Date: Wed, 12 Apr 1995 13:50:48 GMT Lately I've been getting "Workspace Manager Errors" when autolaunching a group of custom applications. Occasionally the last thing I'll see in the console (before being logged out) is a netinfo timeout message. At least one of my apps DOES do make a netinfo call on launch, so I may try to remove it. Question -- can netinfo timeouts cause Workspace Manager Errors? What else can cause these? Is there a definative list somewhere of common causes of Workspace Manager Errors? (ok, you can stop laughing now!). Thanks for any insight... - Jeff
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: How do I find where the tab stops are located in a text object? Date: 12 Apr 1995 16:49:43 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3mh0b7$6ii@solaris.cc.vt.edu> I have some text in a text object and I want to be able to change the tab stops. How do I find out where they are and how do I change them to something meaningful (4 spaces/8 spaces for a tab) ? Thanks Jehu
From: rongreen@visgen.com (Ron Green) Newsgroups: comp.sys.next.programmer Subject: Help: NSObject Category Date: 13 Apr 1995 17:44:57 GMT Organization: The Eye Research Institute of Canada Message-ID: <3mjnup$jvv@sator.eric.on.ca> Keywords: NSObject Could someone please send me the category extensions for NSObject which allow it to be used with InterfaceBuilder. Thanks in advance. --------------------------------------------------------------------- Ron Green || Work: (416) 363-5976 Visible Genetics, Inc. || Fax: (416) 369-5126 399 Bathurst Street, MP-6 || Home: (416) 345-9980 Toronto, Ontario M5T 2S8 || Email: rongreen@visgen.com
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: RZToDoList - adding services, cancel bug fix Date: 13 Apr 1995 18:15:00 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3mjpn4$4sv@news.next.com> Hi - Here is a bug fix and a feature for my recent submission RZToDoList. I'll upload complete source again after things slow down, instead of after every suggestion. In the meantime, I'll post interesting mods to this group... BUG: Pressing "Cancel" in the "Do you really want to delete" panel deletes the entry anyway. FIX: in [ToDoController remove:] change NX_ALERTOTHER to NX_ALERTALTERNATE SUGGESTION: How about services support? FIX: okay, here it is: [ToDoController appDidInit:] add these declarations: const char *sendTypes[3]; sendTypes[0] = NXAsciiPboardType; sendTypes[1] = NXRTFPboardType; sendTypes[2] = NULL; and put this before "return self;" /* services support */ [NXApp registerServicesMenuSendTypes:sendTypes andReturnTypes:NULL]; [[NXApp appListener] setServicesDelegate:self]; [ToDoController] add this method: /* services support */ - addItem:(id)pasteboard userData:(const char *)userData error:(char **)msg { [self pasteFromPasteboard:pasteboard]; return self; } [tdcPasteboard pasteFromPasteboard:] change it to this: - pasteFromPasteboard:(Pasteboard *)pboard { const char * const *types; char *data; int len; id pasteList; ToDoListPBoardType = NXUniqueStringNoCopy(ToDoListPBoardType); types = [pboard types]; if(IncludesType(types, ToDoListPBoardType)) { if([pboard readType:ToDoListPBoardType data:&data length:&len]) { pasteList = NXReadObjectFromBuffer(data, len); [todoList appendList:pasteList]; [pboard deallocatePasteboardData:data length:len]; [self dirty:nil]; [self update]; [self selectItem:[pasteList objectAt:0]]; pasteList = [pasteList free]; } } else { /* check for ASCII or RTF data on pboard */ NXStream *s = NULL; if(IncludesType(types, NXRTFPboardType)) { s = [pboard readTypeToStream:NXRTFPboardType]; } else if(IncludesType(types, NXAsciiPboardType)) { s = [pboard readTypeToStream:NXAsciiPboardType]; } if(s) { id item = [[ToDoItem alloc] init]; [item setSubject:"<Pasteboard>"]; [item setDataFromStream:s]; NXCloseMemory(s, NX_FREEBUFFER); [todoList addObject:item]; [self dirty:nil]; [self update]; [self selectItem:item]; } } return self; } Finally, create a file named "services" and add it to the projects "Other Resources" suitcase. Here is it's contents: -------- SNIP --------- Message: addItem Port: RZToDoList Send Type: NXAsciiPboardType Send Type: NXRTFPboardType Menu Item: RZToDoList/Add Item --------- SNIP -------- This will allow you to create ToDo items from any ASCII or RTF selection. Z -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
From: tm8025a@newssrv.soc.american.edu (Torrey McMahon) Newsgroups: comp.sys.next.programmer Subject: Make problems Date: 12 Apr 1995 18:20:13 GMT Organization: The American University, Washington DC Message-ID: <3mh5kt$ind@paladin.american.edu> I have been trying to compile the following programs for 3.3/3.2: GNUFinger 1.37 ----> I have the Next diffs but they were for 2.1 Rufinger .4 NCFTP 2.0.3 I have left off the messages I get but if any one is interested I can send them their way. Also, if anyone would be kind enough to send me their makefiles or configs or whatever. Thanks for helping out a makefile novice. -- Torrey McMahon
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: Sound files and DSP questions Date: Thu, 13 Apr 1995 12:17:56 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Distribution: world Message-ID: <950413131756.215AACUQ.malc@daneel> References: <3mhavc$14r@taco.cc.ncsu.edu> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII > I am trying to take the ascii output of the SoundEditor.app which > is saved in a .snd file, do a fast fourier tranform on it, and > observe the resulting spectrum. > Umm, ASCII output of SoundEditor...?! You mean you're doing sndconvert on the .snd file? > What i need to know is how this output is saved. I assume that the > ascii text is a direct result of the 8-bit sample pattern. The > problem with this is as follows: The 255mulaw scale used by the > sampler is, for standard PCM, coded so that a numerically smaller > binary word is not necessarily a lower sound level sample. Thus I > need to 'decode' the sample bytes into actual sound levels to get > correct results. > I suspect you'd be better converting the signal to 16-bit linear prior to doing anything with it -- and then you'd be better coding your fft program such that it read in binary, ideally a .snd file (the format is very simple, so there's no real problem). > i have gone though the files in the appliction and can't find the > actual code for the plotting I would like to reuse this in my > project. > Just use a SoundView object. There's no code to look for -- it "just works" (well, umm, so not always, but...) > What i need is some info on the beginning of the .snd file so that > I can simply save my FFT'd file as a .snd file and have the > SoundEditor plot this as if it were the apps own output. > The sound struct is defined in soundstruct.h typedef struct { int magic; /* must be equal to SND_MAGIC */ int dataLocation; /* Offset or pointer to the raw data */ int dataSize; /* Number of bytes of data in the raw data */ int dataFormat; /* The data format code */ int samplingRate; /* The sampling rate */ int channelCount; /* The number of channels */ char info[4]; /* Textual information relating to the sound. */ } SNDSoundStruct; There's a lot of documentation about it in various other places. > Therefore, I need to know what is needed, or important, at the > start of the .snd file so that the Editor can work with my .snd > file! > This confuses me a tad... Do I take it you're just producing one fft frame for the whole of the sound file? Or are you calculating many and actually want to see a spectrogram? If the latter, you'll have to write your own code for it, or grab something like Sonogram, or Perry Cook's Resolab. If you're really desparate, I hacked together something to record sounds and then display a DFT which you might care to look at (although some of it is a bit complicated as it is necessarily multi-threaded as it's supposed to work as the fromt end to a speech-recognition system). Some of the code, particularly the display stuff, is horrendous as I wrote it a couple of years ago and never fixed it after I knew better, but hey, it worked even after I just dropped it into the new app! Have fun, mmalc. posn. research facilitator where institute for language speech and hearing sheffield university c/o department of computer science regent court 211 portobello street sheffield s1 4dp england vox (+44) 114 282 5594 fax (+44) 114 278 0972 email m.crawford@dcs.shef.ac.uk NeXTMail, SunMail, MIME welcome http://www.dcs.shef.ac.uk/
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/System admin/$40hr/Long term/DC Area Date: 13 Apr 1995 19:58:15 GMT Organization: Norden 1 Communications Message-ID: <3mjvon$4o@news1.channel1.com> Position---------------------System administrator Platform---------------------NEXTSTEP Experience required----------2yrs+ commercial Type of position-------------contract Length of assignment---------1yr+ Rate of pay------------------$40hr Area-------------------------Greater DC Area To be considered-------------Fax resume or mail a hard copy. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
Belgium.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!caen!zip.eecs.umich.edu!usenet From: rasmussn@jupiter.eecs.umich.edu (Craig E Rasmussen) Newsgroups: comp.sys.next.programmer Subject: Installing Palettes in new Interface Builder Date: 13 Apr 1995 16:51:41 GMT Organization: University of Michigan EECS Dept. Message-ID: <3mjkqt$6s0@zip.eecs.umich.edu> I have installed the new Interface Builder shipped with EOF Release 1.0 Beta. Now my custom palette won't install by double clicking on it in the Preferences panel. Neither will the example TToolsPalette from NeXT either. Am I doing something obviously wrong? Craig Rasmussen University of Michigan
Belgium.EU.net!EU.net!howland.reston.ans.net!gatech!paladin.american.edu!news From: tm8025a@newssrv.soc.american.edu (Torrey McMahon) Newsgroups: comp.sys.next.programmer Subject: Re: Make problems----GNUFinger 1.37 Date: 13 Apr 1995 23:16:16 GMT Organization: The American University, Washington DC Message-ID: <3mkbc0$d5m@paladin.american.edu> References: <3mh5kt$ind@paladin.american.edu> In article <3mh5kt$ind@paladin.american.edu> tm8025a@newssrv.soc.american.edu (Torrey McMahon) writes: :I have been trying to compile the following programs for 3.3/3.2: : :GNUFinger 1.37 ----> I have the Next diffs but they were for 2.1 I applied the diffs from informatik, they succeded. I got the following messages after make. <Lots of good compiles.....deleted> cc -O -c -I./../include -I./.. -DDIRENT=1 -DDIRENT=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_UT_HOST=1 -DHAVE_FCNTL_H=1 -Dpid_t=int -DHAVE_ST_RDEV=1 -DHAVE_TM_ZONE=1 -DWORDS_BIGENDIAN=1 -DHAVE_LONG_FILE_NAMES=1 -DHAVE_RESTARTABLE_SYSCALLS=1 -DHAVE_DEV_CONSOLE=1 tcp.c tcp.c: In function `tcp_to_service': tcp.c:107: warning: passing arg 2 of `connect' from incompatible pointer type tcp.c:112: warning: passing arg 2 of `connect' from incompatible pointer type <More deleted....> cc -O -c -I./../include -I./.. -DDIRENT=1 -DDIRENT=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_UT_HOST=1 -DHAVE_FCNTL_H=1 -Dpid_t=int -DHAVE_ST_RDEV=1 -DHAVE_TM_ZONE=1 -DWORDS_BIGENDIAN=1 -DHAVE_LONG_FILE_NAMES=1 -DHAVE_RESTARTABLE_SYSCALLS=1 -DHAVE_DEV_CONSOLE=1 mail.c mail.c: In function `mail_expand': mail.c:175: warning: passing arg 1 of `gethostbyaddr' from incompatible pointer type mail.c: In function `mail_list': mail.c:298: warning: passing arg 1 of `gethostbyaddr' from incompatible pointer type cc -O -c -I./../include -I./.. -DDIRENT=1 -DDIRENT=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_UT_HOST=1 -DHAVE_FCNTL_H=1 -Dpid_t=int -DHAVE_ST_RDEV=1 -DHAVE_TM_ZONE=1 -DWORDS_BIGENDIAN=1 -DHAVE_LONG_FILE_NAMES=1 -DHAVE_RESTARTABLE_SYSCALLS=1 -DHAVE_DEV_CONSOLE=1 savedir.c savedir.c:69: undefined type, found `DIR' Any info appreciated -- Torrey McMahon
Newsgroups: comp.sys.next.programmer blekul11!ccsdec1.ufsia.ac.be!reks.uia.ac.be!idefix.CS.kuleuven.ac.be!Belgium.EU.net!EU.net!uunet!in1.uu.net!swissbank!root From: (Raul Alvarez) Subject: Re: Sequencing Software Message-ID: <1995Apr13.162737.28140@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3mjd9c$cbr@engineer.mrg.uswest.com> Date: Thu, 13 Apr 1995 16:27:37 GMT Mark_Tyler_Neher writes > Is there a MIDI sequencer out there for the NeXT, either free or a pay > product?? I am running on black hardware. Also, how do you hook up said > black box to a MIDI device?? I have MIDI to MIDI cables, but I think I > remember hearing that it would run out of a serial port on the NeXT. Is > there a converter, or a serial to MIDI cable?? You can get free midi sw if you get Music Kit from a NeXT ftp site. It comes with several source examples. You need a Mac midi converter. Be careful here, you specifically need one that has its own power supply. If you get Music Kit, I believe is has several suggested and tested midi converters.
Newsgroups: comp.sys.next.programmer From: 9120092@news.ul.ie ( P O'Brien ) Subject: checking popuplists ... Message-ID: <D7039C.4t6@ul.ie> Sender: usenet@ul.ie Organization: University of Limerick Date: Fri, 14 Apr 1995 01:10:24 GMT I'm using a number of pop-up lists all with the same options in order to allow the user to set a sequence of events. I have an array to make things easier to shuffle out the irrelevent options. The array is defined as const char * actionSequence[NUMBER_OF_ACTIONS]; I fill this array with the values from the pop-up lists like this: actionSequence[0] = [actionSequence1 title]; actionSequence[1] = [actionSequence2 title]; etc... I can display actionSequence in the debugger terminal using fprintf. And I want to be able to filter out every actionSequence with the value 'None'. However when test actionSequence if it equals the string 'None' it returns false even though in the debugger window it's displayed as 'None'. I've tried check for \0 at the end of the string, and can't think of any other way of checking the value of actionSequence[i]. Any ideas? -- ============================================================================== Peter O'Brien 9120092@ul.ie http://skynet.ul.ie/~woppi MiniCall 1550 125887 ==============================================================================
From: dave@meena.feinberg.nwu.edu (David A. Johnson) Newsgroups: comp.sys.next.programmer Subject: gcc Date: 14 Apr 1995 13:44:06 GMT Organization: Northwestern University, Evanston, IL, US Distribution: world Message-ID: <3mlu76$7dj@news.acns.nwu.edu> Keywords: c++, c, g++, gnu, gcc, cc++ Hello out there.... I just installed Nextstep 3.3 for one of our Research Fellows and along with it NextDeveloper. He wants to use g++. However when he compiles using g++ he gets an error that the system can't find gcc. Does anyone have any idea on what I need to do? I tried running the Makefile's in /NextDeveloper/Source/GNU/cc and /NextDeveloper/Source/GNU/cc/cc and it produced all the other executables other than gcc*. Thank's in advance, david..... aka dave@meena.feinberg.nwu.edu, dave@freebucks.feinberg.nwu.edu
From: cadilhac@arles.univ-rennes1.fr (Nicolas Cadilhac) Newsgroups: comp.sys.next.programmer Subject: Q : Gdb V4.7 and NextStep Dev 3.3 Date: 13 Apr 1995 15:00:43 GMT Organization: Universite de Rennes 1, France Message-ID: <3mjear$du4@news.univ-rennes1.fr> We recently upgraded our version of NextStep Dev 3.2 to 3.3. Programs developped on 3.2 and re-compiled with 3.3 can not now be debbugged with Gdb V4.7 without dramatic errors occuring in the Gdb interface : the order of methods is inverted in the Gdb browser window. Does anybody also noticed this problem ? Thanks for answering. -- Nicolas Cadilhac ---------------- INSERM CJF 90-12 Clinique neurologique Hopital Pontchaillou 35033 Rennes Cedex
From: yuanchie@usc.edu (Yuan-Chieh Hsu) Newsgroups: comp.sys.next.programmer,comp.sys.next.marketplace Subject: cmsg cancel <3lg4l0$d2f@girtab.usc.edu> Control: cancel <3lg4l0$d2f@girtab.usc.edu> Date: 14 Apr 1995 23:00:51 -0700 Organization: University of Southern California, Los Angeles, CA Sender: yuanchie@girtab.usc.edu Message-ID: <3mnnej$4qq@girtab.usc.edu> References: <D661rv.EC@nyro.com> <3lg4l0$d2f@girtab.usc.edu> <3lg4l0$d2f@girtab.usc.edu> was cancelled from within rn.
Newsgroups: comp.sys.next.programmer From: brianw@sounds.wa.com (Brian Willoughby) Subject: 3.3; Edit: Stack Frames browser window gets inverted during debugging Message-ID: <D728zE.8GE@sounds.wa.com> Organization: Sound Consulting, Bellevue, WA, USA Date: Sat, 15 Apr 1995 05:09:14 GMT bug_next log number 67326 Date: Thu, 6 Apr 95 05:28:19 -0700 BugVersion: 7 Topic: Edit Title: Stack Frames browser window gets inverted during debugging session Severity: Unavoidable Bug Reported_Version: lightning9i Sites: SoundS Description: When debugging an application with ProjectBuilder on my freshly installed NEXTSTEP 3.3 USER + DEVELOPER system, I find that the Stack Frames browser window in Edit.app gets out of whack. This is a serious problem, considering the $749 purchase price of NEXTSTEP DEVELOPER 3.3 I have purchased every release from 2.1 to 3.3 and have never run across such a serious impediment to development. Compared to release 3.2, the Stack Frames are listed in reverse order now - main() is at the bottom of the list and the current method is at the top of the first browser column. This much of the change is probably a feature - I consider it an improvement. However, after a certain amount of debugging activity, using Step and Next in the gdb control panel that is part of Edit.app, I find that the browser action is inverted from the text appearing in the first column. For example, consider the following stack frames: -[TtysController update] > -[Controller loadTtysWindow:] > -[Object perform:with:] -[Application sendAction:to:from:] -[Control sendAction:to:] -[Matrix sendAction:to:] -[Matrix sendAction] -[Matrix performKeyEquivalent:] -[Panel commandKey:]; -[Application sendEvent] -[Application run] main > The bug that I am reporting is this: when I click on "-[TtysController update] >" in the first column of the browser, the second column is filled with the automatic variables for the correct method. However, Edit.app proceeds to load App_main.m into a window and highlight the line containing " [NXApp run];" as if I had clicked on the browser at "main >". The remainder of the browserItems are reversed as well. Whatever I click on in the first column of the stack frames browser, a window is loaded and code is highlighted for the method or function on the opposite end of the matrix. Hardware Configuration: Processor: MC680x0 (68040) Processor speed: 25 MHz Primary memory: 40.00 MB (48.00 MB NeXTdimension) Hostname: sounds Customer_Contact: Brian Willoughby <brianw@sounds.wa.com> -- Brian Willoughby Software Design Engineer, BSEE from NCSU NeXTmail welcome Sound Consulting: Software Design and Development BrianW@SoundS.WA.com Bellevue, WA
Newsgroups: comp.sys.next.programmer From: saty@next2.togliatti.su (S.A. TsYbanov) Subject: Wanted: keymapping data structure. Message-ID: <D72rt0.87K@ladem.tlt.ru> Sender: usenet@ladem.tlt.ru (Mr. Usenet) Organization: JV Ladem Date: Sat, 15 Apr 1995 11:55:48 GMT Hi ! Wanted: keymapping data structure ( w.mapping part of NXKeyMapping type ) and structure of .keymapping file. Please answer to E-mail address saty@next2.togliatti.su. NeXT-mail will be accepted !!!!!
From: Leon von Stauber <leonvs@ccwf.cc.utexas.edu> Newsgroups: comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.misc Subject: Re: Sequencing Software Date: 15 Apr 1995 17:51:36 GMT Organization: The University of Texas at Austin, Austin, Texas Message-ID: <3mp138$q22@geraldo.cc.utexas.edu> References: <3mjd9c$cbr@engineer.mrg.uswest.com> mneher@homer1.ive.mrg.uswest.com (Mark_Tyler_Neher) wrote: > Is there a MIDI sequencer out there for the NeXT, either free or a pay > product?? I am running on black hardware. Also, how do you hook up said > black box to a MIDI device?? I have MIDI to MIDI cables, but I think I > remember hearing that it would run out of a serial port on the NeXT. Is > there a converter, or a serial to MIDI cable?? For a little bit of info, check out the followups to the post on comp.sys.next.misc by Faizel Dakri called 'Requesting info on black hardware'.
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Example for Embedded Cells in Text? Date: 15 Apr 1995 22:59:13 +0100 Organization: me organized? That's a joke! Message-ID: <robertznfbzikkmpcx@steffi.dircon.co.uk> References: <3mdhg3$66v@lyra.csx.cam.ac.uk> <797599545snz@cedar.demon.co.uk> In-reply-to: Cedar@cedar.demon.co.uk's message of Tue, 11 Apr 1995 11:25:45 +0000 To: Cedar@cedar.demon.co.uk (Cedar Systems) <Cedar@cedar.demon.co.uk> writes: >In article <3mdhg3$66v@lyra.csx.cam.ac.uk> > wfc@cl.cam.ac.uk "W F Clocksin" writes: >>Can anybody point me to example code that uses embedded Cells in Text objects? >> >>The purpose is for implementing page number markers (like in WriteNow), so in >>one situation they are rendered as the marker, but in other situations they are >> >>rendered as the current page number. Is there a good way to do this other than >> >>by using embedded Cells? >> >>W.F. Clocksin >>Computer Laboratory >>University of Cambridge I believe the example you want to look at is EmbeddedGraphic. -- "Mary ate a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
From: daniels222@aol.com (DanielS222) Newsgroups: comp.sys.next.programmer Subject: My computer made me stressed & depressed--positive ions Date: 15 Apr 1995 21:29:46 -0400 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3mprua$ksu@newsbf02.news.aol.com> Hello Netters, On 2/14/95 CBS Evening News with Connie Chung, Dr. Bob Arnot did a story about negative ions and their effect on mood. They talked about a study done at Columbia University where exposure to a high density negative ion generator was as effective in treating winter depression as medication. I became very interested because I have suffered from depression and anxiety for years, and I did some research on the benefits of negative ions. This research turned out to be especially interesting to me because I found a newspaper article discussing the fact that computer monitors emit positive ions - the opposite of negative ions. The article says computer monitors give off large amounts of positive ions and can actually cause depression, stress, fatigue, etc. in people who sit in front of computers a lot - like all of us Netters - and that we need negative ion replenishment. After reading the article, I realized that I always felt especially irritable, stressed, and depressed after long days in front of my computer. In doing the research, I found that negative ions have shown to be therapeutic for stress, irritability, fatigue, depression, etc. So I purchased a small, high density generator and it has given me substantial relief from my symptoms. If any of you would like me to e-mail you that newspaper article, the transcript of the CBS news story, as well as the other research that I have compiled, just e-mail me at DanielS222@aol.com. -dan
Newsgroups: comp.sys.next.programmer,comp.lang.postscript From: wiml@netcom.com (William Lewis) Subject: Re: alphaimage Message-ID: <wimlD73v3B.HpM@netcom.com> Keywords: postscript, PS, DPS, NeXTSTEP Organization: The Seattle Group References: <D6Inty.3xw@ellcia.demon.co.uk> Date: Sun, 16 Apr 1995 02:04:23 GMT Sender: wiml@netcom4.netcom.com In article <D6Inty.3xw@ellcia.demon.co.uk>, andrew <andrew@ellcia.demon.co.uk> wrote: >Would anyone know what the postscript parameters are to the postscript >operator "alphaimage". The online docs on my NeXT have this to say about "alphaimage" (line-wrapped and marked up from the original RTF): USAGE pixelswide pixelshigh bits/sample matrix datasrc0[...datasrcn] multiproc ncolors alphaimage - Renders an image whose samples include an alpha component. (Most programmers should use NXImageBitmap() instead of alphaimage.) This operator is similar to the standard colorimage operator (as documented by Adobe Systems). However, note the following: * When supplying the data components, alpha is always given last --- either as the last data source (datasrcn) if the data is given in separate vectors, or as the last element in a set of interleaved data. * The ncolors operand doesn't account for alpha --- the value of ncolors is the number of color components only. ERRORS invalidid, limitcheck, rangecheck, stackunderflow, typecheck, undefined, undefinedresult I hope this helps. -- William "Wim" Lewis * wiml@netcom.com * Seattle, WA, USA
From: louie@va.pubnix.com (Louis A. Mamakos) Newsgroups: comp.sys.next.programmer Subject: Re: Info on serial port access. Date: 16 Apr 1995 14:10:45 -0400 Organization: Pubnix Access Systems (Virginia) Message-ID: <3mrmj5$e92@pub01.va.pubnix.com> References: <3lp1o9$nkp@barracuda.dadd.ti.com> <3lpnso$mqe@ixnews4.ix.netcom.com> <robertznfkyr7mvysk@steffi.dircon.co.uk> From the shell, try: man 2 open man 4 tty man 4 termios man 5 zs for the generic, portable UNIX interface to serial character-special devices. Louis Mamakos
From: Ondra Cada <oc@hukatronic.cz> Newsgroups: comp.sys.next.programmer Subject: Re: Wanted: keymapping data structure. Date: 16 Apr 1995 21:33:03 +0200 Organization: Hukatronic, Ltd. Sender: daemon@news.eunet.cz Message-ID: <3mrrdf$aaa@news.eunet.cz> In comp.sys.next.programmer article <D72rt0.87K@ladem.tlt.ru> saty@next2.togliatti.su (S.A. TsYbanov) wrote: > Wanted: keymapping data structure ( w.mapping part of NXKeyMapping I'm posting reply here for three good reasons: * suppose others might be interested and/or might add some info I don't know, and * want to ask something: TO ALL: how to (programmatically) get the proper keyboard code on any NS (so to select the best keyboard from .keymapping file)? There should be _some_ method to do it - Preferences do this, for example... * moreover, I need to try if my posting channel works well (so, S.A. - and anybody interested as well - send me email reply please to ocs@earn.cvut.cz) Well, to business. As far as I know, the .keymapping file is 'fat', embedding more 'keyboards' this way: 'KYM1' // signature keyboard.code // 4 bytes, big endian (beware on white!) ?don't know? // 4 bytes, seems to be zero mapping.length // 4 bytes, big endian mapping // described below .... // any number of keyboards .... // keyboard.code...mapping <end of file> // _NO_ trailing indicator! This was simple; but the 'mapping' - exactly same as the mapping part of NXKeyMapping type - I don't understand well. Overall structure: ?flags? // 4 bytes, meaning unknown ?stuff? 0xff // variable length field finished by 0xff key... // keys go in scan order, 1 (Escape) first stuff // extra functions, key sequences etc Every key is described by one byte type and none to eight value shorts (# of values determined by type byte). Any two-byte value represents one code: ASCII byte // ASCII code or function # assigned to key mode byte // 0 normal ASCII, 1 symbol, 0xfe function There are mode bytes 0x0a, 0x18 as well; even Keyboard.app itself (NS 3.2) reports errors on them (wow?!?) Sorry, function #s (for mode 0xfe) unknown. Type bytes - known to me - are: 0xff no values, exact meaning unknown (extras, eg key sequence) 0x00 1 value, regardless modifiers 0x02 2 values: no shift / shifted 0x04 2 values, like 0x02 (Alpha key? nothing sure) 0x10 2 values, like 0x02 (Alpha key? nothing sure) 0x06 4 values: none / Shift / Ctrl / Shift-Ctrl 0x0a 4 values, like 0x06 (Alpha key? nothing sure) 0x0c 4 values, like 0x06 (Alpha key? nothing sure) 0x0e 8 values: none / Shift / Ctrl / Shift-Ctrl / same with Alt 0x0d 8 values, like 0x0e, Alpha key Again sorry, don't know how to find last key - ie start of the extra stuff at end of mapping - and don't understand format of the latter. Should you be lucky finding this, let me please know... Regards, -- Ondra Cada ocs@earn.cvut.cz NeXTMAIL and MIME OK (please do not reply to hukatronic.cz)
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 17 Apr 1995 04:15:10 GMT Organization: Digital Fix Development Message-ID: <3msq0e$oah@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment - Status reports on GNUStep, a freely-available implementation of OpenStep now being developed NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.nmr.embl-heidelberg.de/pub/next/ eduStep ftp://ftp.next.com: See below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
From: daniels222@aol.com (DanielS222) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3mprua$ksu@newsbf02.news.aol.com> Control: cancel <3mprua$ksu@newsbf02.news.aol.com> Date: 17 Apr 1995 11:00:47 -0400 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <-3mprua$ksu@newsbf02.news.aol.com> Please cancel this posting
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: How do I find where the tab stops are located in a text object? Date: 17 Apr 1995 20:45:01 +0100 Organization: me organized? That's a joke! Message-ID: <robertznf9yejaylr5@steffi.dircon.co.uk> References: <3mh0b7$6ii@solaris.cc.vt.edu> <797763009snz@cedar.demon.co.uk> In-reply-to: Cedar@cedar.demon.co.uk's message of Thu, 13 Apr 1995 08:50:09 +0000 To: Cedar@cedar.demon.co.uk (Cedar Systems) <Cedar@cedar.demon.co.uk> writes: >In article <3mh0b7$6ii@solaris.cc.vt.edu> jehu@vt.edu "john stanhope" writes: >> >> >>I have some text in a text object and I want to >>be able to change the tab stops. How do I find >>out where they are and how do I change them to >>something meaningful (4 spaces/8 spaces for a >>tab) ? >> >>Thanks >>Jehu >> >Tab stop positions are stored in an NXTextStyle structure. The Text object >maintains an array of NXRuns in it's theRuns instance variable. Each NXRun >stores formatting information about a consecutive run of characters of that >format. Each NXRun has a pointer to an NXTextStyle structure describing >the indentation, alignment and tab stop positions for the characters >represented by the NXRun. >Tab positions are expressed in points (1/72 inch) rather than characters, so >in order to set tabs that would reflect a particular number of characters, you >would need to be using a non proportional font such as Ohlfs or Courier. >You can get a copy of the default NXTextStyle for the Text with the >defaultParaStyle method, and change the style with either the setParaStyle: >or setSelFont:paraStyle: methods. (These methods will copy the NXTextStyle >structure you pass, so either declare your structure statically or free it >if you malloc it.) >Hope this is of some help. Here's what I have in my library on this subject. Assumes monofont text object. - setTheScrollview:anObj { theScrollview=anObj; theText=[anObj docView]; [theText setDelegate:self]; [theText setCharFilter:EmacsFilter]; if (!classStyle) { int i; classStyle=(NXTextStyle *) [theText defaultParaStyle]; free(classStyle->tabs); classStyle->tabs=(NXTabStop *) malloc(6*sizeof(NXTabStop)); classStyle->numTabs=6; for (i=0;i<6;i++) { classStyle->tabs[i].kind=0; classStyle->tabs[i].x=36*i; } } return self; } -- "Mary ate a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
Newsgroups: comp.sys.next.programmer From: yoshida@fermi.bsd.uchicago.edu (Hiro Yoshida) Subject: Help: How can I change the grayscale of a bitmap image Message-ID: <D77Iwp.MDF@midway.uchicago.edu> Keywords: grayscale,bitmap images Sender: news@midway.uchicago.edu (News Administrator) Organization: University of Chicago -- Academic Information Technologies Date: Tue, 18 Apr 1995 01:31:37 GMT Dear NeXT programmers: I'm currently trying to make a program which displays a grayscale bitmap image (a medical image) quickly. Does anyone know how to change its grayscale quickly? Typically, the size of an image is 512x512, a nd I need the same speed as the one we see in a ColorWell pallet object. (As you might know, the color of the ColorWell changes "on the fly" as you select a color from the ColorPanel. I need this type of quick response.) Currently, I'm using a method for NXBitmapImageRep to keep an image as follows: im = [[NXBitmapImageRep alloc] initData: imagedata pixelsWide: 512 pixelsHigh: 512 bitsPerSample: 8 samplesPerPixel: 1 hasAlpha: NO isPlanar: NO colorSpace: NX_OneIsWhiteColorSpace bytesPerRow: 512 bitsPerPixel: 8]; The content of im is shown on a view by using standard -drawSelf: method which calls composite:fromRect:toPoint method. Any suggestions or code fragments would be appreciated. _________________________________________________________ Hiro Yoshida Department of Radiology The University of Chicago E-mail: yoshida @fermi.bsd.uchicago.edu as the one we see in a ColorWell pallet object. (As you might know, the color of the ColorWell changes "on the fly" as you select a color from the ColorPanel. I need this type of quick response.) Currently, I'm using a method for NXBitmapImageRep to keep an image as follows: im = [[NXBitmapImageRep alloc] initData: imagedata pixelsWide: 512 pixelsHigh: 512 bitsPerSample: 8 samplesPerPixel: 1 hasAlpha: NO isPlanar: NO colorSpace: NX_OneIsWhiteColorSpace bytesPerRow: 512 bitsPerPixel: 8]; The content of im is shown on a view by using standard -drawSelf: method which calls composite:fromRect:toPoint method. Any suggestions or code fragments would be appreciated. _________________________________________________________ Hiro Yoshida Department of Radiology The University of Chicago E-mail: yoshida
Newsgroups: comp.sys.next.programmer From: keith@TraPac.com (Keith Carpenter) Subject: EOF adaptor for ODBC? Message-ID: <D77D94.188@trapac.com> Sender: keith@trapac.com (Keith Carpenter) Organization: Trans Pacific Container Service Corporation Date: Mon, 17 Apr 1995 23:29:26 GMT In the days before EOF, NeXT had a database solutions guide that once listed a DBkit adaptor for ODBC (either themselves or a third party). Does anyone know if an EOF adaptor for ODBC is available or in the works? Keith Keith@TraPac.com
From: daniels222@aol.com (DanielS222) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3mprua$ksu@newsbf02.news.aol.com> Message-ID: <cancel.3mprua$ksu@newsbf02.news.aol.com> Date: 17 Apr 1995 08:07:50 GMT Control: cancel <3mprua$ksu@newsbf02.news.aol.com> spam
Newsgroups: comp.sys.next.programmer Subject: nohup part of a app. Message-ID: <1995Apr17.105653.47691@cc.usu.edu> From: mike@hobbs.chem.usu.edu (Michael Emmel) Date: 17 Apr 95 10:56:53 MDT Distribution: world Hello I'm working on a Numerical application that has a interactive interface I would like to launch the App set up the numerical stuff then be able to run it in forground background or let the numerical part continue after logging off and then allow me to restart the gui and check it at a later date. Must I treat the numerial part as a separate program and use nohup to actually start it? This forces me to always run the numerical kernel in background. Once I do this as far as I know there's no way to bring a background process to foreground once you logged off and log back in. I'm thinking the simplest way is to run the numerical kernel under nohup and have a distributed objects connection with the rest of the gui. If anybody done something like this before or can suggest a better way let me know I'd like to have it were I can move the numerical kernel in and out of background with logins and log outs and archiving the rest of the app but I can't quite figure out how to do it. Mike
From: NormC1@ix.netcom.com (Norm Crouse) Newsgroups: dc.jobs,misc.jobs.contract,misc.jobs.misc,us.jobs.contract,comp.sys.next.marketplace,comp.sys.next.programmer Subject: NextStep, C++/RDBMS-No.VA. Date: 18 Apr 1995 12:24:36 GMT Organization: Netcom Distribution: world Message-ID: <3n0b24$red@ixnews4.ix.netcom.com> two immediate openings (one in Tyson Corner, VA and one in Arlington, VA) for NEXTSTEP Developers with Objective C or C++ and RDBMS experience for 12 Mo.+ assignments. One position is providing full life cycle development of a Provisioning System. Working on the GUI end and providing OOP in a team environment. The other position is providing full life cycle development of systems which sell products to the consumer and companies through the INTERNET. If you have these skills and are interested in long term contract assignements, please call Beth Benjoar-COMSYS Technical Services at (301) 921-3659 or (800) 9COMSYS. You may also fax your resume to her attention at (301) 921-3700.
From: seanl@jujube.cs.umd.edu (Sean Luke) Newsgroups: comp.sys.next.programmer Subject: Re: Sequencing Software Date: 18 Apr 1995 15:10:34 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Message-ID: <3n0kpa$pp@mimsy.cs.umd.edu> References: <3mjd9c$cbr@engineer.mrg.uswest.com> <1995Apr13.162737.28140@il.us.swissbank.com> Raul Alvarez () wrote: >You can get free midi sw if you get Music Kit from a NeXT ftp site. It >comes with several source examples. Yes, but this isn't for users who are faint of heart. He's looking for a sequencer. The common sequencer for the NeXT (in commercial form) is Sequence, previously marketed by Pinnacle Research. Perhaps Ralph could tell us who's selling it these days? >You need a Mac midi converter. Be careful here, you specifically need one >that has its own power supply. If you get Music Kit, I believe is has >several suggested and tested midi converters. Correct. A large number of Mac MIDI boxes do NOT work with the NeXT, because they're hard-coded to the Mac's more standard serial port configuration than the NeXT's slightly off-beat one. Try before you buy. Sean Luke seanl@cs.umd.edu
From: rmyers@dec5200.acs.uci.edu (Richard Myers) Newsgroups: comp.sys.next.programmer Subject: Beta testers wanted: ChaosViewer Date: 18 Apr 1995 14:33:48 GMT Organization: University of California, Irvine Message-ID: <3n0ikc$sek@news.service.uci.edu> Summary: Beta test Keywords: Beta test, Mandelbrot I'm looking for a few beta-testers for a chaos viewer. You must: have 3.1 or higher. have the compiler be willing to install the MiscKit (1.4.1+) I'd prefer folks who have done chaos stuff before (Mandelbrot, JuliaBrot, etc...) This will be TotalChaos 2.0. GNU'd software. It's very stable, I'm mostly looking for some feedback and any chaos types you're interested in implementing (this is bundle-loading software). Kurt
Newsgroups: comp.sys.next.programmer,comp.lang.objective-c From: g8uccl@mighty (Charles Lloyd) Subject: Stack Overflow handling Message-ID: <1995Apr18.151629.12082@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae Date: Tue, 18 Apr 1995 15:16:29 GMT I'm looking for an example of how to handle stack overflow. Any pointers? Catch-22: I have tried registering a signal handler for SIGSEGV, but when the stack overflows, there's no more room on the stack to even call my handler, so I then get an SIGILL (illegal instruction). Charles.
From: cmc@ltp.bcm.tmc.edu (Costa Colbert) Newsgroups: comp.sys.next.programmer Subject: How to compile MAB project from command line Date: 18 Apr 1995 17:58:11 GMT Organization: Baylor College of Medicine, Houston, Tx Distribution: world Message-ID: <3n0ujj$8tk@gazette.bcm.tmc.edu> I have a fairly complicated build that I need to do from the command line. If I just do a 'make' from the command line, I only get the architecture for the localhost. If I use 'build' from the project manager then everything builds correctly for all architectures. In other words, I can't seem to get the information in project builder's preferences (ie the architecture list) to be reflected in my make. What does project builder actually do when you click build? thanks in advance, Costa Colbert
From: mark@jehu.extern.ucsd.edu Newsgroups: comp.sys.next.programmer,comp.sys.next.misc Subject: RenderMan/animation recommendations Date: 18 Apr 1995 19:16:05 GMT Organization: University of California at San Diego Distribution: world Message-ID: <3n135l$7sk@network.ucsd.edu> Keywords: 3dkit, renderman, animation I would like to include some animation in an application that I'm working on. The animation would be simple: dice rolling across a table (yes, its a craps game!). Would using the 3DKit be overkill for such a project? If not, what are some recommended books to read or applications to look at? Is there a simple 3D rendering application that I could use to make individual frames for the animation? Any other suggestions would be appreciated... -- ================================================================== Mark Trombino trombino@wendy.ucsd.edu Center For Research in Computing the Arts, U.C.S.D. ==================================================================
From: ken@niles (Ken) Newsgroups: comp.sys.next.programmer Subject: EOF Adaptors Date: 18 Apr 1995 23:00:15 GMT Organization: Duke University, Durham, NC, USA Message-ID: <3n1g9v$nod@news.duke.edu> Does anyone know when the EOF adaptor for Interbase will be available? Thanks Ken McKee Duke University Medical Center
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: How to compile MAB project from command line Date: 18 Apr 1995 23:25:21 GMT Organization: School of Computer Science, McGill Univ. Distribution: world Message-ID: <SAMURAI.95Apr18192521@maggie.cs.mcgill.ca> References: <3n0ujj$8tk@gazette.bcm.tmc.edu> In-reply-to: cmc@ltp.bcm.tmc.edu's message of 18 Apr 1995 17:58:11 GMT <cmc@ltp.bcm.tmc.edu> writes: >I have a fairly complicated build that I need to do from the command >line. If I just do a 'make' from the command line, I only get the >architecture for the localhost. If I use 'build' from the project manager >then everything builds correctly for all architectures. In other words, I >can't seem to get the information in project builder's preferences (ie the >architecture list) to be reflected in my make. What does project builder >actually do when you click build? make TARGET_ARCHS="i386 m68k hppa sparc" This is helpful sometimes: [random] [/] /usr/lib/arch_tool -archify_list i386 m68k hppa sparc -arch i386 -arch m68k -arch hppa -arch sparc [random] [/] - db -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: Nextstep/System Administrator/$45hr/Long Term Date: 18 Apr 1995 22:07:02 GMT Organization: Norden 1 Communications Message-ID: <3n1d66$505@news1.channel1.com> Position------------------------System Administrator Platform------------------------NEXTSTEP Experience required-------------2yrs+ Type of position----------------Contract Rate of pay---------------------$45hr Length of assignment------------Long term To be considered----------------Fax r4esume or mail a hard copy. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
Newsgroups: comp.sys.next.software,comp.sys.next.programmer From: Gerben_Wierda@RnA.NL Subject: Can SoftPC 4.0 handle BC4.5 and/or Delphi? Message-ID: <D793GM.5Ep@RnA.NL> Sender: gerben@RnA.NL (Gerben Wierda) Organization: G.R.O.S.S. Date: Tue, 18 Apr 1995 21:53:10 GMT Just curious. SoftPC at some point couldn't handle BC3 (Borland C++ 3.0) so I wondered if a NS 3.3 + SoftPC 4.0 env would handle a BC 4.5 and/or Delphi development env. -- gerben@rna.nl (Gerben Wierda) NEXTSTEP RD242 "If you don't know where you're going, any road will take you there" Paraphrased in Alice in Wonderland, originally from the Talmud.
Newsgroups: comp.sys.next.programmer From: andy_belk@il.us.swissbank.com (Andy Belk) Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v112.1) Subject: Driver for HP Infra-Red port ? Date: Tue, 18 Apr 1995 13:40:58 +0000 Message-ID: <9504182342.AA00678@ch1d313nwk> Sender: usenet@demon.co.uk Hi all, I'm not amazingly Intel-aware so this may be a silly question. I was wondering if a special driver is needed for the interesting little Infra-Red port on the front of my HP Vectra here ? If so, does anyone have a driver for it ? Alternatively, could someone tell me how I might get it to transmit and receive data with the Netwons/HP200s/MagicLinks that I and other colleagues have ? Thanks for any info, Andy Belk belka@il.us.swissbank.com
Newsgroups: comp.sys.next.programmer From: dbhinz@znih.rmnug.org (David Hinz) Subject: IPC library Message-ID: <1995Apr19.050457.3047@nugget.rmNUG.ORG> Sender: dbhinz@nugget.rmNUG.ORG Organization: Rocky Mountain NeXT Users' Group Date: Wed, 19 Apr 1995 05:04:57 GMT Need to get information on the company that has written a System V IPC (semaphore, shared memory, etc.) library for NeXTstep. Post or e-mail to: dhinz@mcimail.com or dbhinz@znih.rmnug.org -- {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} { } { David Hinz } { Hz Computing Technologies }
Newsgroups: comp.sys.next.programmer From: gery@ares.fdn.fr(Gery_Divry) Subject: Re: RenderMan/animation recommendations Message-ID: <1995Apr19.075204.1806@ares.fdn.fr> Sender: news@ares.fdn.fr Organization: ARES - Lyon, France. References: <3n135l$7sk@network.ucsd.edu> Date: Wed, 19 Apr 1995 07:52:04 GMT In article <3n135l$7sk@network.ucsd.edu> mark@jehu.extern.ucsd.edu writes: > I would like to include some animation in an application that I'm working > on. The animation would be simple: dice rolling across a table (yes, its > a craps game!). > > Would using the 3DKit be overkill for such a project? If not, what are > some recommended books to read or applications to look at? > > Is there a simple 3D rendering application that I could use to make > individual frames for the animation? > > Any other suggestions would be appreciated... > > -- > ================================================================== > Mark Trombino > trombino@wendy.ucsd.edu > Center For Research in Computing the Arts, U.C.S.D. > ================================================================== Hello First .... You SHOULD BUY the "Renderman Companion" from Steve Upstill Ref 50868 Addison Wesley You can Use the 3D Kit....BUT.... Your are not sure that the 3D kit will be supported in the future by NeXT ... ( it seems it will not supported on Openstep) then you can generate 3D RIB File with multiple frames which generate multiple tiff files and then use a software like VDO Converter to create NEXTIME ANIMATION If you need help mail me ... Gery DIVRY ( ZZVolume Daddy ) ARES Publisher 8, rue Victor Lagrange Phone: (+33) 72 80 16 30 69007 LYON Fax: (+33) 72 80 16 32 France Email: gery@ares.fdn.org Earth, Solar System, Galaxy MW1 NeXT Mail accepted
Newsgroups: comp.sys.next.programmer From: tom@icgned.nl (Tom Hageman) Subject: Re: How to compile MAB project from command line Message-ID: <D79urn.AA5@icgned.nl> Sender: news@icgned.nl Organization: IC Group References: <3n0ujj$8tk@gazette.bcm.tmc.edu> Date: Wed, 19 Apr 1995 07:42:58 GMT In article <3n0ujj$8tk@gazette.bcm.tmc.edu> cmc@ltp.bcm.tmc.edu (Costa Colbert) writes: > > I have a fairly complicated build that I need to do from the command > line. If I just do a 'make' from the command line, I only get the > architecture for the localhost. If I use 'build' from the project manager > then everything builds correctly for all architectures. In other words, I > can't seem to get the information in project builder's preferences (ie the > architecture list) to be reflected in my make. What does project builder > actually do when you click build? make TARGET_ARCHS='m68k i386 hppa sparc' --- __/__/__/__/ Tom Hageman <tom@basil.icce.rug.nl> [NeXTmail/Mime OK] __/ __/_/ IC Group <tom@icgned.nl> (work) __/__/__/ "...to baldly go where no one has gone before." __/ _/_/ -- star trek TNG
From: rmyers@dec5200.acs.uci.edu (Richard Myers) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3n0ikc$sek@news.service.uci.edu> Control: cancel <3n0ikc$sek@news.service.uci.edu> Date: 19 Apr 1995 12:32:01 GMT Organization: University of California, Irvine Message-ID: <3n2vs1$3lf@news.service.uci.edu> <3n0ikc$sek@news.service.uci.edu> was cancelled from within trn.
From: rmyers@dec5200.acs.uci.edu (Richard Myers) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3n0ikc$sek@news.service.uci.edu> Control: cancel <3n0ikc$sek@news.service.uci.edu> Date: 19 Apr 1995 12:32:12 GMT Organization: University of California, Irvine Message-ID: <3n2vsc$3lg@news.service.uci.edu> <3n0ikc$sek@news.service.uci.edu> was cancelled from within trn.
From: hship@sinistar.cac.stratus.com (Howard Ship) Newsgroups: comp.sys.next.programmer Subject: OEF: Strange Oracle message Date: 19 Apr 1995 16:20:01 GMT Organization: Stratus Computer Inc, Marlboro MA Message-ID: <3n3d7h$c3p@transfer.stratus.com> I'm just beginning to start expirmenting with EOF (EOF 1.1, NextDev 3.3, Intel). My database is on Oracle 6. I have a modest database (with a single row, actually). When I send my EOController a fetch:, I get an error panel: *** -transactionNestingLevel only defined for abstract class. Define -[OracleContext transactionNestingLevel]! Any clues here? Many of the EOF examples for Oracle work just fine. -- HELLO, everybody, I'm a HUMAN!! Howard Ship hship@cac.stratus.com `84 GPz 750 "I lurk not, neither do I flame." [NeXT Mail 3.3 / MIME Mail OK]
From: kevins@sandman.bmd.com (Kevin Solie) Newsgroups: comp.sys.next.programmer Subject: NXReportError is pissing me off! Date: 20 Apr 1995 02:34:00 GMT Organization: STARnet, L.L.C. Message-ID: <3n4h6o$j4m@news.starnet.net> Ok. Am I missing the boat or what with this new run time system for the Foundation Kit. When I make a code mistake, like send a message to an object that it does not respond to, I get this damn "Unknown error code 100003 in NXReportError" and it drops my program back to the main runtime event loop. Am I doing something wrong? Have I lost my mind? This is really a pain in the ass because I can't trace it easily. With the standard Object errors at lease it would jump ship and allow me to see where it crashed from gdb. What gives? --- Kevin Solie Director of Development: benchMark Developments, Inc. Object Engineer: Tapestry Computing
From: Greg_Anderson@afs.com (Gregory H. Anderson) Newsgroups: comp.sys.next.programmer Subject: Backwards stack frames in 3.3 Edit.app debug browser Date: 19 Apr 1995 21:41:15 GMT Organization: Anderson Financial Systems Inc. Message-ID: <3n401r$d93@shelob.afs.com> (For the fortunate people who haven't bothered to upgrade to 3.3 yet, the basic problem is that the authors of Edit.app decided to reverse the order of the stack frames in the debug browser -- a good idea, since you're usually most interested in the most recent frames -- but neglected to sync the instructions passed to gdb in the Terminal window. As a result, when you click on what looks like the most recent stack frame in the browser, Edit focuses on the source file for the oldest stack frame. It's exactly backwards.) I know Bruce Gingery or somebody reported the problem. Has NeXT come clean about when we will see a patch? I just looked on NeXTanswers, and I couldn't find anything. There is no way the patch can wait for 4.0, because the graphical debugger is entirely unusable in this state. It's not like my products never have bugs, but there's no way this should have gotten past even the most minimal sanity check. Did anyone in QA run these apps together even ONCE before shipping? How did they debug their own code? Grrrrrrr..... -- Gregory H. Anderson | "Honey, there're few programming Gaffer/Best Boy/Key Grip | problems that can't be solved Anderson Financial Systems | with duct tape." -- 'Father' Duke greg@afs.com (NeXTmail OK) | (paraphrased), Doonesbury, 2/17/95
From: rajaram@ces.cwru.edu (Palaniappan Rajaram) Newsgroups: comp.sys.next.programmer Subject: Question regarding the # of database connections made by an app. Date: 19 Apr 1995 22:10:50 GMT Organization: Computer Engineering and Science, Case Western Reserve University Message-ID: <3n41pb$b2f@usenet.INS.CWRU.Edu> Hi, Whenever I run an application ( in the NextStep environment ) it makes two connections to the database. For example, if I run three applications accessing the same database server, they seem to make 3*2=6 connections. Is this normal ? If the database server is licenced only for 5 users, situations like these cause a problem. Is there any way out of this? Or is getting a licence for more number of users, the only solution to this. In our case, we are using Sybase and it costs about $1000/- per user, which is not cost effective. Could somebody suggest some solution to #################################################################### Newsgroups: comp.sys.next.programmer Path: news.informatik.uni-muenchen.de!lrz-muenchen.de!fauern!imp.ch!chsun!usenet From: lamb@eqt.ch (Alexander Lamb) Subject: Memory leaks, swap file, foundation Message-ID: <D7CB3I.8C8@eunet.ch> Sender: usenet@eunet.ch Organization: EUnet AG, Switzerland Date: Thu, 20 Apr 1995 15:30:53 GMT Lines: 27 Hello, I am developing a large application that caches in memory real time data comming from Market data feeds. To do this I am using version 1.0 of the foundation kit (the one comming with EOF1.0) and especially NSDictionary and NSString classes. My app starts out at approximately 40 mega bytes of virtual size, then steadily growths up to 100 and more with no reason. I do have an EOApplication as Application subclass, therefore the release mechanism should work. My questions are : 1. Is the foundation totally memory leaks free ? 2. When an app is larger than the available memory, can it create a problem with the swap file size ? 3. what app can I use to check the leaks (MallocDebug doesn't seem to work, and leaks crashes everything) ? Thanks, Alexander Lamb Expert Quantitative Trading Geneva / Switzerland
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: How to tar files ? Date: 20 Apr 1995 06:31:45 GMT Organization: Netcom Distribution: world Message-ID: <3n4v4h$rmq@ixnews4.ix.netcom.com> References: <3n4h6o$j4m@news.starnet.net> Hi I am sorry if the question is too dumb :-( I am having problem in "tar" several files. It kept give me error "cannot open /dev/rxt0". Is there anyway to archive it to the files rather than to the tape. Please email me, I fell bad to waste the internet bandwith Thanks in advance Kurniawan
From: Patrick Stein Newsgroups: comp.sys.next.programmer Subject: Re: Memory leaks, swap file, foundation Date: 20 Apr 1995 22:13:53 GMT Organization: Institut fuer Informatik der Universitaet Muenchen Distribution: world Message-ID: <3n6mb1$qpf@arcadia.informatik.uni-muenchen.de> References: <D7CB3I.8C8@eunet.ch> Hiho ! > To do this I am using version 1.0 of the foundation kit (the one comming > with EOF1.0) and especially NSDictionary and NSString classes. > 1. Is the foundation totally memory leaks free ? I had a similiar problem with just using DO and Foundation Kit ( e.g. the [object copy] method ) - but it looks to me that they've fixed that in the newer version. --- gimme a smile :) - jolly =================================================================== Jolly alias Patrick Stein jolly@cis.uni-muenchen.de =================================================================== " System designers who do not allow users to type ahead ought to be tarred and feathered, or worse yet, be forced to use their own system. " - a.s.tanenbaum ===================================================================
Newsgroups: comp.sys.next.programmer From: andre@icgned.nl (Andre Kraak) Subject: performFileOperation question Message-ID: <D7CAwv.DDr@icgned.nl> Keywords: workspace, fileoperation, delegate Sender: news@icgned.nl Organization: IC Group Date: Thu, 20 Apr 1995 15:26:54 GMT I am trying to make a simple filebrowser. I am using the workspace to do the fileoperations. This is done with the methode 'performFileOperation: source: destination: files: options:'. I read in the documentation that when a positieve integer is returned by this methode the delegate methode 'app: fileOperationCompleted:' is called. Now when I copy files all is ok, but when I try to move, destroy or recycle files the delegate methode isn't called. Is this a known bug. The following code implements functions: In the code 'filebrowser' is a pointer to a NXBrowser and the delegate is set correctly. - concludeDragOperation:(id <NXDraggingInfo>)sender { // reading files from pasteboard and placing them tab seperated in // files variable. if ('move operation) op = [[Application workspace] performFileOperation: WSM_MOVE_OPERATION source: 'source' destination: 'dest' files: files options: ""]; else op = [[Application workspace] performFileOperation: WSM_COPY_OPERATION source: 'source' destination: 'dest' files: files options: ""]; if (op == 0) // if operation was performed synchronously and succeeded if (fileBrowser) [fileBrowser reloadColumn: [fileBrowser lastColumn]]; return self; } - app:sender fileOperationCompleted:(int)operation { if (fileBrowser) [fileBrowser reloadColumn: [fileBrowser lastColumn]]; return self; } Does anyone know the answer to my problem. Please mail me. THANKS Email: andre@icgned.nl
From: kevins@sandman.bmd.com (Kevin Solie) Newsgroups: comp.sys.next.programmer Subject: Re: NXReportError is pissing me off! (SOLUTION) Date: 20 Apr 1995 22:12:25 GMT Organization: STARnet, L.L.C. Message-ID: <3n6m89$rtj@news.starnet.net> References: <3n4h6o$j4m@news.starnet.net> Thanks to all who replied. In a nutshell I was indeed missing the boat. Now that I have successfully exhumed my head from my butt I will RTFM. In particular the exception handling portions. Kevin
From: ayis@falcon.udel.edu (Ayis Theseas Pyrros) Newsgroups: comp.sys.next.programmer Subject: X11 Developer Lib(s) for Intel Date: 20 Apr 1995 19:33:30 GMT Organization: University of Delaware Distribution: World Message-ID: <3n6cua$pm0@news.udel.edu> Keywords: X11, Intel, NEXTSTEP Does anyway have the X11 libs compiled FAT? In addition the developer tools, such as xmkmf? Source or compiled; anything would be helpful! Thanks in advance. -Ayis ----- Send all replies to ayis@ouzo.esg.com ----- PS: Free would be preferable.
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/Career Position/ILL Date: 21 Apr 1995 00:53:05 GMT Organization: Norden 1 Communications Message-ID: <3n6vli$ng@news1.channel1.com> Position-----------------------Programmer/analyst/developer Platform-----------------------NEXTSTEP Language-----------------------Objective C A plus-------------------------DB Kit or EOF A plus-------------------------Sybase or Oracle Type of position---------------Career Position Type of company----------------Major Opportunity--------------------Outstanding Benefits-----------------------Excellent Relocation---------------------Company assistance To be considered---------------Fax resume or mail a hard copy. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
Newsgroups: comp.sys.next.programmer Subject: PROLOG for NEXTSTEP (commercial or PD)? Message-ID: <1995Apr20.164701.44709@yogi.urz.unibas.ch> From: krampe@hoopy (Dirk Krampe) Date: 20 Apr 95 16:47:01 MET I am looking for a PROLOG implementation for NEXTSTEP (commercial or pd). Is there someone who can give me a hint? Thanks Dirk =================================================================== Dirk Krampe phone: ++41 61 267 3254 (office) Universitaet Basel ++49 7621 77909 (private) Institut fuer Informatik / WWZ fax: ++41 61 267 3251 Petersgraben 51 email: krampe@ifi.wwz.unibas.ch CH-4051 Basel (NeXT-Mail accepted) ===================================================================
From: steve@xray.rice.edu (Steve Ludtke) Newsgroups: comp.sys.next.programmer Subject: Renderman support in NS 4.0 ??? Date: 20 Apr 1995 15:25:01 GMT Organization: Rice University, Houston, Texas Message-ID: <3n5ucd$f0c@larry.rice.edu> I've heard some rumors that Renderman wouldn't be supported in NS 4.0. I'm not as concerned about OpenStep, but having written a couple of big apps that use Renderman, I would be quite annoyed if it vanished. Does anyone know for sure or have a good rumor??? -- ------------------------------------------------------------------------- Steve Ludtke | Physics Dept., Rice Univ. steve@ion.rice.edu | stevel@alumni.caltech.edu | "Don't just sit in silence when you 72335,1537 @ compuserve | know what to do."
From: xinwei@otter.Stanford.EDU (Sha Xin Wei) Newsgroups: comp.multimedia,comp.sys.next.software,comp.sys.next.programmer Subject: MBONE Date: 21 Apr 1995 01:03:09 GMT Organization: Stanford University Message-ID: <3n708d$s8q@nntp.Stanford.EDU> References: <3n5m8u$10m@newsbf02.news.aol.com> Keywords: video internet Has MBONE (multicast video) been ported to NeXTSTEP? Where can I get it? Who's ported MBONE to non-X windows OS? --- Sha Xin Wei mathematics and scientific simulations distributed media mail: Academic Software Development Sweet Hall 415 Stanford University Stanford CA 94305-3090 USA telephone: 415/725-3152 (work,msg) 415/725-8240 (fax) internet: xinwei@jessica.stanford.edu nextmail: xinwei@otter.stanford.edu www url: http://www-leland.stanford.edu/~xinwei map url: http://www-pcd.stanford.edu/cgi-bin/map/map.html?sweet+hall
From: cknittel@fbma.tuwien.ac.at (Christoph KNITTEL) Newsgroups: comp.sys.next.programmer Subject: Programming libInterceptor? Date: 21 Apr 1995 08:40:02 GMT Organization: Vienna University of Technology, Austria Message-ID: <3n7r13$oe2@news.tuwien.ac.at> I have to develop a (simple) Doom-like 3D game for a computer graphics project. Of course I want to do it under NEXSTEP. ;-) However, using the NXImageBitmapRep class or NXDrawBitmap() for drawing seems much to slow for a 3D graphics engine. I have heard that Doom II for NEXTSTEP (which performs really well) uses the shared library libInterceptor. nm /usr/shlib/libInterceptor_s.A.shlib reveils interesting classes and methods: 0d007a70 t -[NXDirectBitmap _mapFramebufferForScreen:] ... 0d0076cc t -[NXDirectBitmap pixelEncoding] ... 0d0060f8 t -[NXFramebuffer initFromScreen:andMapIfPossible:] Unfortunately, under NS 3.2, there is no documentation for libInterceptor and I can't even find any include files for it! Where can I get them? How can I use this library? Christoph Knittel
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: Re: NXReportError is pissing me off! Date: 20 Apr 1995 20:53:45 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3n6hkp$mjd@news.next.com> References: <3n4h6o$j4m@news.starnet.net> In article <3n4h6o$j4m@news.starnet.net> kevins@sandman.bmd.com (Kevin Solie) writes: > Ok. Am I missing the boat or what with this new run time system for the > Foundation Kit. When I make a code mistake, like send a message to an > object that it does not respond to, I get this damn "Unknown error code > 100003 in NXReportError" and it drops my program back to the main > runtime event loop. Am I doing something wrong? Have I lost my mind? > This is really a pain in the ass because I can't trace it easily. With > the standard Object errors at lease it would jump ship and allow me to > see where it crashed from gdb. In gdb, break on "[NSException raise]". Then you can get a backtrace, po the exception (self at that point), do what you like. It's too bad we had to maintain backwards compatibility with the old exception system, or you wouldn't be seeing "Unknown error code 100003 in NXReportError", and we could have done some cooler stuff with exception handling, but... Christopher Kane Foundation
From: staypufed@aol.com (Staypufed) Newsgroups: comp.sys.next.programmer Subject: Re: X11 Developer Lib(s) for Intel Date: 21 Apr 1995 01:42:28 -0400 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3n7gk4$gjm@newsbf02.news.aol.com> References: <3n6cua$pm0@news.udel.edu> Pencom software sells a X11 product for the NeXT. (512) 343-6666 Sam Griffith Jr. Staypufed@aol.com
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: DBKit master-slave weirdness Message-ID: <jpanicoD7CoJr.Gzq@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Thu, 20 Apr 1995 20:21:26 GMT Sender: jpanico@netcom14.netcom.com Hi, I understand that DBKit is no longer supported, but I need to solve this problem until upgrading to EOF. Under NS 3.2 I have a master-slave DBTableView setup, just like the one in the NeXT DBKit chapter entitled "project"-- there is a separate DBModule for each table, and they are "linked" by dropping the to-many relationship from the Master module onto the slave. By sending a deleteRecord message to the slave module and then sending a save message, I can successfully delete slave records. But I can't get the last record in the slave table to go away. Sending the delete to the slave module, for the last record, will delete it from the display, but the save does not commit the deletion to the server. Has anyone seen this bizarre behaviour? Is there a workaround? Thanks for any help. Joe Panico jpanico@netcom.com
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: Printing in the 3Dkit Date: 20 Apr 1995 21:32:00 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3n6jsg$f2l@solaris.cc.vt.edu> I want to be able to print the world as rendered by the quickrender, is this possible? I was hoping there would be an easy way to create an eps/ps file from what is displayed on screen by subclasses of N3DCamera. If this is not possible, are there any freely available tools for creating flat constant shaded renderings from RIBs that are not bitmapped images? I don't have the disk space to do 20-30, 300 dpi renderings. Thanks John Stanhope
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <mt1!stwo@netcom.com> From: MROP Development <mt1!stwo@netcom.com> Message-ID: <9504202312.AA00554@mt1.mantech.com> Date: Thu, 20 Apr 95 16:13:15 -0700 Subject: Pull-down menu in ScrollView I have an example of how a pop-up menu can be attached to a ScrollView using the IB and it works well. In the debugger I see that the pop-up object is a Button with a ButtonCell within it. It displays and acts just like a pop-up window ought to . I have an application that needs a window with a pull-down menu for each of my data objects. I create a PopUpList object, which contains a Matrix, comprised of MenuCells. The first MenuCell is displayed on the ScrollView but without the triangle icon and does not behave as a menu should when clicked on. Any one out there that can help me? I would really appreciate it. Thank You. Dennis Warn
Newsgroups: comp.sys.next.programmer From: gery@ares.fdn.fr(Gery_Divry) Subject: Re: Renderman support in NS 4.0 ??? Message-ID: <1995Apr21.093714.513@ares.fdn.fr> Sender: news@ares.fdn.fr Organization: ARES - Lyon, France. References: <3n5ucd$f0c@larry.rice.edu> Date: Fri, 21 Apr 1995 09:37:14 GMT In article <3n5ucd$f0c@larry.rice.edu> steve@xray.rice.edu (Steve Ludtke) writes: > I've heard some rumors that Renderman wouldn't be supported in NS 4.0. I'm not > as concerned about OpenStep, but having written a couple of big apps that use > Renderman, I would be quite annoyed if it vanished. Does anyone know for sure > or have a good rumor??? > > -- > ------------------------------------------------------------------------- > Steve Ludtke | Physics Dept., Rice Univ. > steve@ion.rice.edu | > stevel@alumni.caltech.edu | "Don't just sit in silence when you > 72335,1537 @ compuserve | know what to do." The same for me ????? Gery DIVRY ( ZZVolume Daddy ) ARES Publisher 8, rue Victor Lagrange Phone: (+33) 72 80 16 30 69007 LYON Fax: (+33) 72 80 16 32 France Email: gery@ares.fdn.org Earth, Solar System, Galaxy MW1 NeXT Mail accepted
Newsgroups: comp.sys.next.programmer From: precipi!neekibo (Hugues RICHARD) Subject: Re: Help: How can I change the grayscale of a bitmap image Message-ID: <1995Apr20.201903.2877@precipice.fdn.fr> Sender: neekibo@precipice.fdn.fr Organization: Individual - Dijon, France. References: <D77Iwp.MDF@midway.uchicago.edu> Date: Thu, 20 Apr 1995 20:19:03 GMT In article <D77Iwp.MDF@midway.uchicago.edu> yoshida@fermi.bsd.uchicago.edu (Hiro Yoshida) writes: > Dear NeXT programmers: > > I'm currently trying to make a program which displays a grayscale bitmap image (a medical image) quickly. Does anyone know how to change its grayscale quickly? Typically, the size of an image is 512x512, a > > nd I need the same speed as the one we see in a ColorWell pallet object. (As you might know, the color of the ColorWell changes "on the fly" as you select a color from the ColorPanel. I need this type of quick response.) > > Currently, I'm using a method for NXBitmapImageRep to keep an image as follows: I had such a need but not inside an app. I had to display a B&W scanned image on the whole screen of my non turbo NXStation from white to black throught grey levels. For this work, I wrote a PS script running in pft. I used compositing (PlusL operator because it doesn't use alpha and so goes faster). On my NXStation non turbo, without any other task on the system, I got 14fps with an 542x760 image. Mail me if you want the script (but it is hard PS hack:-) Hugues. a method for NXBit$B7D(J@ -- -------------------------------------------------------------------- neekibo@precipice.fdn.fr - France (small NeXTMail OK) ------------ NS3.2 ------------ NS3.0J ------------ :-) ------------
From: cknittel@fbma.tuwien.ac.at (Christoph KNITTEL) Newsgroups: comp.sys.next.programmer Subject: Re: DBKit master-slave weirdness Date: 21 Apr 1995 08:22:51 GMT Organization: Vienna University of Technology, Austria Message-ID: <3n7q0r$oe2@news.tuwien.ac.at> References: <jpanicoD7CoJr.Gzq@netcom.com> Joe Panico (jpanico@netcom.com) wrote: : Hi, : I understand that DBKit is no longer supported, but I need to solve this : problem until upgrading to EOF. : Under NS 3.2 : I have a master-slave DBTableView setup, just like the one in the NeXT DBKit : chapter entitled "project"-- there is a separate DBModule for each table, : and they are "linked" by dropping the to-many relationship from the Master : module onto the slave. By sending a deleteRecord message to the slave : module and then sending a save message, I can successfully delete slave : records. But I can't get the last record in the slave table to go away. Sending : the delete to the slave module, for the last record, will delete it from the : display, but the save does not commit the deletion to the server. Has anyone : seen this bizarre behaviour? Is there a workaround? This is a bug in the NS 3.2 dbkit. Under NS 3.3 deleting the last record works perfectly. I remember that there is a workaround: If [databaseModule saveChanges:self]; does not work, try [recordList saveModifications]; (where "recordList" is [[databaseModule rootFetchGroup] recordList]). Maybe you'll need both statements. ;-) I remember getting it to work after playing around for some time. Does deleting the last record from the master tableview work? Christoph
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: Sequencing Software Date: 21 Apr 1995 21:53:41 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3n99h5$fd@news.next.com> References: <3n0kpa$pp@mimsy.cs.umd.edu> Sean Luke writes > Raul Alvarez () wrote: > > >You can get free midi sw if you get Music Kit from a NeXT ftp site. It > >comes with several source examples. > > Yes, but this isn't for users who are faint of heart. He's looking for a > sequencer. The common sequencer for the NeXT (in commercial > form) is Sequence, previously marketed by Pinnacle Research. Perhaps > Ralph could tell us who's selling it these days? > Well, from what I can tell, it isn't be sold at all these days. It's kind of a shame to have the app under wraps but it isn't one of the ones that came along with me when I left the company... Ralph -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: Backwards stack frames in 3.3 Edit.app debug browser Message-ID: <D7D5Jy.or@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems References: <3n401r$d93@shelob.afs.com> Date: Fri, 21 Apr 1995 02:28:46 GMT Gregory H. Anderson writes > the basic problem is that the authors of Edit.app decided to reverse > the order of the stack frames in the debug browser -- a good idea, ... > but neglected to sync the instructions passed to gdb > ... there's no way this should have gotten past even the most minimal > sanity check. Did anyone in QA run these apps together even ONCE sure makes me glad I rushed for the $800 limited time offer. As an alternative, the latest version of SuperDebugger works with NS3.3, and is well worth the price IMHO. -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: DBKit master-slave weirdness Message-ID: <jpanicoD7DyHG.2Go@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <jpanicoD7CoJr.Gzq@netcom.com> <3n7q0r$oe2@news.tuwien.ac.at> Date: Fri, 21 Apr 1995 12:53:39 GMT Sender: jpanico@netcom20.netcom.com : Does deleting the last record from the master tableview work? For some reason, yes. : Christoph Thanks very much for the help. Joe Panico jpanico@netcom.com
From: richard@runner.uucp@usc.edu (Richard Ruth) Newsgroups: comp.sys.next.programmer Subject: Serial Ports and Perl5 - How? Date: 21 Apr 1995 21:50:18 -0700 Organization: runner Message-ID: <3na1ua$npt@runner.uucp> I need to access the serial port on this NeXTStation and would like to do it from Perl5. Are there any extensions / scripts for Perl serial port access? Any suggestions would be appreciated. -- Richard richard%runner.uucp@usc.edu (ok to send NeXT Mail)
From: mark_bessey@next.com (Mark Bessey) Newsgroups: comp.sys.next.programmer Subject: Re: Driver for HP Infra-Red port ? Date: 21 Apr 1995 18:11:14 GMT Organization: NeXT Computer, Inc. Message-ID: <3n8sg2$snr@news.next.com> References: <9504182342.AA00678@ch1d313nwk> > Andy Belk writes > Hi all, I'm not amazingly Intel-aware so this > may be a silly question. I was wondering if a > special driver is needed for the interesting little > Infra-Red port on the front of my HP Vectra here ? > If so, does anyone have a driver for it ? > Alternatively, could someone tell me how I might get > it to transmit and receive data with the > Netwons/HP200s/MagicLinks that I and other colleagues > have ? > Thanks for any info, > Andy Belk > belka@il.us.swissbank.com Actually, it should just work - The IR port should be serial port COM1 or COM2 (set in the BIOS). As far as interfacing to PDA's goes, you might want to check in (for instance) the Newton newsgroups. Let us know if you have any success with the IR port - I wanted to test it on one of the Vectras in the lab here, but we didn't have anything to recieve the signals with... -Mark -- Mark Bessey NeXT Computer, Inc Software Quality Assurance -->I DON'T SPEAK FOR NeXT <--
From: aitken@coho.halcyon.com (William E. Aitken) Newsgroups: comp.sys.next.programmer Subject: Simple Interface Builder Question Date: 22 Apr 1995 09:40:14 GMT Organization: NW NEXUS, Inc. -- Internet Made Easy (206) 455-3505 Message-ID: <3naitu$23a@news1.halcyon.com> I apologize in advance for the length of the question, but I think most of the material is necessary to make things sufficiently concrete to allow us to make intelligent discussion. Consider the following UI: < Text > The < represents a button with a left arrow icon on it, the > represents a button with a right arrow on it, and the word text represents a non-editable, non-selectable text field. The purpose of the UI is to allow the input of an integer value valCur from the range [valMin...valMax). Pressing < decrements valCur, pressing > increments valCur. Text is updated to reflect valCur; moreover, when valCur is valMin the < button is disabled, and when valCur is valMax - 1, the > button is disabled. Suppose also that I want to be able to programmatically set valCur. Finally, whenever valCur changes, some real code should be called. This suggests that there needs to be some class somewhere with these instance variables: { id buttonDown; id buttonUp; id text; int valMin; int valCur; int valMax; } and at least these methods. - incrementValue:sender; - decrementValue:sender; - setValCur:(int)valNew; The method setValCur:(int)valNew does most of the work. It performs bounds checking, sends enable/disable messages to buttonUp and buttonDown as appropriate. It updates the text. It sets valCur to valNew. And if valCur changes it arranges that the real code is executed. decrementValue:sender and incrementValue:sender provide convenient actions for the < and > buttons to be attached to. The problem is where to put this code. I have considered three options. Option 1) Just put it into the class that contains the real code. This makes calling the real code and accessing valCur form the real code easy but isn't very modular. Moreover, it doesn't really generalize very well to the case where there are two or more such interfaces. Option 2) Create a subclass of control for this sort of control. But now I have to go to a lot of trouble to compose my interface in Interface Builder. My guess is that this would be the right way to go if I planned on using this UI element a zillion times, but it hardly seems worthwhile for a couple instances in a single App. Option 3) Create a new intermediary class IClass to stand between the UI elements and the class that does the real work. This class would have the instance variables and methods given above plus one more instance variable id target; When valCur changes, setValCur: would send target some message. But what message? Fixing the message is (i) inelegant, (ii) limits reusablity A LOT, and (iii) doesn't work well if there are more than one of these controls. Alternatively, we could have one more instance variable SEL action; and we could send action to target whenever valCur changes. The problem is setting things up. We ought to be able to control drag from an instance of IClass to out RealWork object and make the connection in IB; however, this doesn't work. Instead, the best I seem able to do is to have the awakeFromNib method of our RealWork object send a message to each IClass object it knows about to initialize action and target appropriately. This is slightly messy, and I'm vaguely bothered about reliability. Am I missing something? Is there a better way? Perhaps my design is completely wrong, or not in the spirit of NextStep [what _is_ the right capitalization these days?]? Perhaps I need to upgrade from 3.0 [I have the CDRoms for 3.[123] sitting on my desk, but never seem to find the time to do the upgrades, maybe when I get my copy of EOF. Any comments would be welcome. Thanks in advance, Bill. -- William E. Aitken | Formal verification is the email: aitken@halcyon.com | future of computer science --- Snail: 8500 148th Ave NE #H1026 Redmond WA | Always has been, always will be. ===============================================================================
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Simple Interface Builder Question Date: 22 Apr 1995 12:19:26 +0100 Organization: me organized? That's a joke! Message-ID: <robertzneyy5poaksh@steffi.dircon.co.uk> References: <3naitu$23a@news1.halcyon.com> In-reply-to: aitken@coho.halcyon.com's message of 22 Apr 1995 09:40:14 GMT To: aitken@coho.halcyon.com (William E. Aitken) I suggest that you try looking at some of the palettes in the MiscKit. also Andy Stone did DualActingSliderCell a long time which seems to be what you want. You could find his original code and work from that. It's basically all done via the SliderCell subclass. How you got about the design will depend largely on how much functionality you want in IB. -- "Mary ate a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
Newsgroups: comp.sys.next.programmer From: ian.stephenson@insignia.co.uk Subject: Re: Can SoftPC 4.0 handle BC4.5 and/or Delphi? Message-ID: <D7EM72.9yy@isltd.insignia.com> Sender: news@isltd.insignia.com (Usenet News) Organization: Insignia Solutions Ltd References: <D793GM.5Ep@RnA.NL> Date: Fri, 21 Apr 1995 21:25:49 GMT In article <D793GM.5Ep@RnA.NL> Gerben_Wierda@RnA.NL writes: > Just curious. SoftPC at some point couldn't handle BC3 (Borland C++ 3.0) so I > wondered if a NS 3.3 + SoftPC 4.0 env would handle a BC 4.5 and/or Delphi > development env. > > -- I haven't looked at Borland C specifically, but I spent some time looking at Borland's DOS extender - specifically in Paradox for DOS. Alas there's a bug in the Borland DOS extender that pervents it running on SPC. Without going into the details they do someting stupid such that it won't work on a machine which has a DPMI host installed. In principle it would crash in the same way on a real PC. They have fixed it in the very latest versions, and/or Delphi. Paradox for windows seems to work OK. Ian
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: PROLOG for NEXTSTEP (commercial or PD)? Date: 22 Apr 1995 20:45:28 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95Apr22164528@maggie.cs.mcgill.ca> References: <1995Apr20.164701.44709@yogi.urz.unibas.ch> In-reply-to: krampe@hoopy's message of 20 Apr 95 16:47:01 MET <krampe@hoopy> writes: >I am looking for a PROLOG implementation for NEXTSTEP (commercial or >pd). Is there someone who can give me a hint? cprolog works on NEXTSTEP. It's at sonata somewhere... if you can't find it, let me know and I'll email it to you. - db -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: Programming libInterceptor? Date: 22 Apr 1995 20:49:24 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95Apr22164925@maggie.cs.mcgill.ca> References: <3n7r13$oe2@news.tuwien.ac.at> In-reply-to: cknittel@fbma.tuwien.ac.at's message of 21 Apr 1995 08:40:02 GMT <cknittel@fbma.tuwien.ac.at> writes: >I have to develop a (simple) Doom-like 3D game for a computer graphics project. >Of course I want to do it under NEXSTEP. ;-) >However, using the NXImageBitmapRep class or NXDrawBitmap() for drawing seems >much to slow for a 3D graphics engine. I have heard that Doom II for NEXTSTEP >(which performs really well) uses the shared library libInterceptor. The interceptor requires you get special non-disclosure from NeXT, and since they don't want to support it from release to release, they require that you pay them $1000, and you need what they think is a good reason to get it. They will actively discourage you from using it. Hopefully under 4.0 they'll release it similar to the way Microsoft has WinG for fast framebuffer access... Go ahead and use NXDrawBitmap(). If you have all the parameters right, you can still get 20-30 frames per second on a mode 13h sized screen. - db -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
From: object@crl.com (Robert Smith) Newsgroups: comp.sys.next.programmer Subject: Dissolving tiff files in info panel Date: 23 Apr 1995 15:44:51 -0700 Organization: CRL Network Services (415) 705-6060 [Login: guest] Message-ID: <3nel93$m6b@crl.crl.com> How does Workspace Manager dissolve the pictures of the developers into each other, when you click on the names? I would like to do something like this except take up the entire info panel. Any suggestions?
From: fedor@hopper.Colorado.EDU (Adam Fedor) Newsgroups: comp.sys.next.programmer Subject: How do I write a MutableValue class? Date: 23 Apr 1995 23:57:40 GMT Organization: University of Colorado, Boulder Distribution: usa Message-ID: <3nephk$oe5@lace.Colorado.EDU> Originator: fedor@hopper.Colorado.EDU How can I subclass NSValue so as to create a MutableValue class? Perhaps I don't have a really good reason for doing this, but then maybe you could answer the more general question: If NSMutable{Dictionary, String, etc} didn't exist, how would I write them, knowing only the published specifications for the non-mutable classes? Class clusters may be nice, but sometimes even the simplest extensions seem insanely complex. -- Adam Fedor. CU, Boulder | Fudd's Law of Opposition: Push something fedor@boulder.colorado.edu (W) | hard enough and it will fall over. adam@bastille.rmnug.org (H,NeXTMail)|
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 24 Apr 1995 04:15:12 GMT Organization: Digital Fix Development Message-ID: <3nf8kg$omj@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment - Status reports on GNUStep, a freely-available implementation of OpenStep now being developed NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.nmr.embl-heidelberg.de/pub/next/ eduStep ftp://ftp.next.com: See below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: Simple Question about using cc in Nextstep Date: 24 Apr 1995 05:20:21 GMT Organization: Netcom Distribution: world Message-ID: <3nfcel$412@ixnews4.ix.netcom.com> Hi friends, I have an annoying problem working in Nextstep. NS is BSD UNIX, so I wrote codes for my assignment in NS, I compiled it using cc -g -o myprog myprog.m...... It get compiled with no problems, however when I do "ls" I saw the name of the program become "myprog*" instead of just "myprog". When I try to run the program by just typing "myprog", it prompts me with "file not found" or something like that. Is there anybody have a way to solve this problem? I still can run this program in the workspace. However I want to know if I can call it terminal command line. Kurniawan
From: robert@steffi.dircon.co.uk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Simple Question about using cc in Nextstep Date: 24 Apr 1995 11:13:49 +0100 Organization: me organized? That's a joke! Message-ID: <robertznevyylomp9a@steffi.dircon.co.uk> References: <3nfcel$412@ixnews4.ix.netcom.com> In-reply-to: kdarmawa@ix.netcom.com's message of 24 Apr 1995 05:20:21 GMT To: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) <kdarmawa@ix.netcom.com> writes: >Hi friends, I have an annoying problem working in Nextstep. >NS is BSD UNIX, so I wrote codes for my assignment in NS, I compiled it >using cc -g -o myprog myprog.m...... >It get compiled with no problems, however when I do "ls" I saw the name >of the program become "myprog*" instead of just "myprog". That's just ls telling your it's executable. >When I try to run the program by just typing "myprog", it prompts me >with "file not found" or something like that. Try adding . to your path. What does ./myprog do? -- "Mary ate a little lamb and punk rock isn't dead" (PGP key: send email with Subject: request pgp key)
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: Dissolving tiff files in info panel Date: Mon, 24 Apr 1995 11:37:27 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950424123727.982AACUf.malc@daneel> References: <3nel93$m6b@crl.crl.com> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII This is what I did a long time ago for something similar -- it works, but I don't think it's necessarily the most elegant solution... anyone else? - cycle:sender { NXRect rect; unsigned int item, amt, holdFrames; NXPoint origin = {0.0, 0.0}; [self lockFocus]; [self getBounds:&rect]; [[theImageList objectAt:0] composite:NX_COPY toPoint:&origin]; holdFrames = 1 + (int)[speedSlider maxValue] - [speedSlider intValue]; /* this could probably be done a bit better... hold at end states with constant compositing time?? */ if ([compositeSwitch state]) { for (item = 1; item <= [theImageList count]; item++) { [currentItemText setIntValue:item]; for (amt = 0; amt <= holdFrames; amt++) { [[theImageList objectAt:(item - 1)] composite:NX_COPY toPoint:&origin]; [[theImageList objectAt:item] dissolve:(float)amt/(float)holdFrames toPoint:&origin]; [window flushWindow]; } } /* this is not very elegant - what about DPSTimedEntries ? */ else { ... } [self unlockFocus]; return self; } Have fun, mmalc.
From: wfc@cl.cam.ac.uk (W F Clocksin) Newsgroups: comp.sys.next.programmer Subject: Dimensioned TextFields? Date: 24 Apr 1995 13:38:57 GMT Organization: University of Cambridge, England Message-ID: <3ng9lh$i3s@lyra.csx.cam.ac.uk> Has anyone implemented text fields (for use in Forms) that may include the dimension of the value? For example, "16 pt" or "25.4 mm" ought to be valid entries that could return their units (and/or a value normalised to some default unit) if asked. Has something like this been implemented in MiscKit or other GUI libraries?
From: cadilhac@arles.univ-rennes1.fr (Nicolas Cadilhac) Newsgroups: comp.sys.next.programmer Subject: Q:precompiled headers in ProjectBuilder Date: 24 Apr 1995 16:11:35 GMT Organization: Universite de Rennes 1, France Message-ID: <3ngijn$2ih@news.univ-rennes1.fr> Hello, I'm just trying to use precompiled headers. In projectBuilder, it fails because it searches the command pc (I guess It means precomp). Is it a common command ? Maybe I deleted it ... Thanks for any help. -- Nicolas Cadilhac ---------------- INSERM CJF 90-12 Clinique neurologique Hopital Pontchaillou 35033 Rennes Cedex
Newsgroups: comp.sys.next.programmer From: dfevans@bbcr.uwaterloo.ca (David Evans) Subject: Re: Dissolving tiff files in info panel Message-ID: <D7JsL5.2H1@watserv3.uwaterloo.ca> Sender: news@watserv3.uwaterloo.ca Organization: University of Waterloo References: <3nel93$m6b@crl.crl.com> <950424123727.982AACUf.malc@daneel> Date: Mon, 24 Apr 1995 16:31:52 GMT In article <950424123727.982AACUf.malc@daneel>, mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> wrote: >This is what I did a long time ago for something similar -- it works, but I >don't think it's necessarily the most elegant solution... anyone else? > stuff I can't remember if this is possible (no NS documentation handy--am in front of a Sparc ELC), but how about compositing the images with varying degreese of alpha? -- David Evans dfevans@bbcr.uwaterloo.ca Computer/Synth Junkie "Default is the value selected by the University of Waterloo composer overridden by your command." Waterloo, Ontario, Canada - Roland TR-707 Manual
Newsgroups: comp.sys.next.programmer From: Jacques Garbi Subject: I can't load all my palettes. Why ? Message-ID: <D7GCLx.4pG@touga.vd.alphanet.ch> Sender: jacques@touga.vd.alphanet.ch (Jacques Garbi) Organization: Touga Management SA Date: Sat, 22 Apr 1995 19:53:56 GMT Hi, I downloaded some palettes from the Net, but I can't load them all at the same time and having them "uninstalled" in the preferences panel in IB.app. What happens is I can work with all of them until I quit IB. When I start it again, a panel comes up telling me there is a NXReading error and IB doesn't launch. To correct that, I'm obliged to remove ~/.NeXT/defaults.nibd. IB launches again but only the 4 standard palettes are there and I have to reload all the palettes that I want. And on next time, it does the same thing again. I tried everything about the palettes themselves but it seems that they are all fine and it's only a question of quantity. By not "uninstalling" them via the preferences panel, I can have many more loaded without any problems. The only thing is that IB takes a long time to load in that case because it must load all the palettes on opening. So I'd really like to be able to "uninstall" the palettes, so they are all available but do not stand in the way. Is there any way to correct that ? Thanks in advance to e-mail me directly your answers. I'll post a summary. --- Dr. Jacques GARBI TOUGA MANAGEMENT Ltd. Av. Davel 18 1004 Lausanne Switzerland Phone/Fax : 011 41 21 648 44 07 NeXTMail : jacques@touga.vd.alphanet.ch
From: Tim Pugh <tpugh@oce.orst.edu> Newsgroups: comp.sys.next.programmer Subject: Re: Dimensioned TextFields? Date: 24 Apr 1995 21:25:51 GMT Organization: University Computing Services - Oregon State University Message-ID: <3nh50v$9fi@gaia.ucs.orst.edu> References: <3ng9lh$i3s@lyra.csx.cam.ac.uk> Yep. I've done it. The dimensioned text fields are subclasses of Form and TextField. The text field displays a given unit of measure and internally maintains a program or application unit of measure. The unit title is displayed in a cell next to the text field. The unit title can be either a text field or a button with a popup list attached for user interaction. The dimensioned text field can be dragged from a Interface Builder palette, and the unit classification and unit of measure set from an IB inspector. To get the program value, you would make a connection from the dimensioned text field to an object instance and use -IntValueFrom:, -floatValueFrom:, or -doubleValueFrom: messages to receive the value or -intValue, -floatValue, -doubleValue messages. The value returned is not the displayed value, rather the displayed value converted to program units. The dimensioned text field communicates with a flat file unit conversion database server. The server uses distributed objects for communications. The unit database currently has over 27 unit classifications, and new units classification or units of measure can easily be added to the database. The software library is called VESUnitsKit. If you are interested, I'd be happy to send you more information. - Tim - Visual Engineering Solutions 5127 Value Court SE Salem, Oregon 97306 USA tpugh@ves.com voice: 1-503-581-1442 fax: 1-503-588-0126 In article <3ng9lh$i3s@lyra.csx.cam.ac.uk> wfc@cl.cam.ac.uk (W F Clocksin) writes: > Has anyone implemented text fields (for use in Forms) that may include the > dimension of the value? For example, "16 pt" or "25.4 mm" ought to be valid > entries that could return their units (and/or a value normalised to some > default unit) if asked. Has something like this been implemented in MiscKit or > other GUI libraries? -- -------------------------------------------------------------- Tim F. Pugh email: tpugh@oce.orst.edu Oceanic and Atmospheric Sciences voice: 503-737-2270 Oregon State University fax: 503-737-2064 NeXTmail ok!
From: dougm@akira (Douglas McClure) Newsgroups: comp.sys.next.programmer Subject: Pascal sub-procedures in Obj-C? Date: 24 Apr 1995 22:16:27 GMT Organization: Abbott Laboratories Message-ID: <3nh7vr$bej@kelso.pprd.abbott.com> A long, long time ago, back before I became enlightened and learned C, and then really turned on the light and learned Obj-C, I remember Pascal. Actaully, I only remember using it for one semester at school before moving on. But something just struck me while I was programming away today, wouldn't it be nice to have a Pascal-like sub-procedure in Obj-C? For example, I was working on a program where I had to implement two very short methods to respond to two buttons so that I could return a value when I did a runModalFor:. I would have liked to just had those methods declared in the method where the runModalFor: was called and thusly limited their scope to the time the modal session was running. Possible? Beneficial? Inanely stupid? Just sorta curious if anyone else thought this could be a cool idea and/or if there was a way to implement something like this as it stands now. -d
Newsgroups: comp.sys.next.programmer From: andrew@ellcia.demon.co.uk (andrew) Subject: Bundles and file extensions Keywords: dynamic bundles, file icons, file extensions Organization: Arzana Limited Date: Mon, 24 Apr 1995 15:55:58 +0000 Message-ID: <D7JqxB.717@ellcia.demon.co.uk> Sender: usenet@demon.co.uk As a bundle, it is not "directly" apparent how to let the workspace manager know you offer a new kind of file extension and icon for that extension. Would it be possible to link in the relevant section ? If so, would the workspace manager look for it, if it wasn't in a .app wrapper ? Or maybe there is a simpler way to register the extension with the workspace manager ? Anyone tackled this issue before ? I have a sneaky feeling NeXT didn't expect bundles to add new file extension and icons ... could be wrong though (fingers crossed 8) Any advice gladly received, Andrew D. Forkes
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <paul@Praktos.be> Message-ID: <9504241404.AA00387@hercules.Praktos.be> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Paul Janssens <paul@Praktos.be> Date: Mon, 24 Apr 95 15:02:02 +0100 Subject: delegation semantics: respondsTo: ? Is there a formal rule that you have to call respondsTo: before sending a delegate method? NEXT's objects allow delegates to implement any number of the documented delegate methods, so I assume respondsTo: is used, but the Objective-C manual doesn't mention semantics of delegatemethod calls. Paul
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Pascal sub-procedures in Obj-C? Date: 25 Apr 1995 14:10:59 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Apr25161059@cobra.es.ele.tue.nl> References: <3nh7vr$bej@kelso.pprd.abbott.com> In-reply-to: dougm@akira's message of 24 Apr 1995 22:16:27 GMT In article <3nh7vr$bej@kelso.pprd.abbott.com> dougm@akira (Douglas McClure) writes: But something just struck me while I was programming away today, wouldn't it be nice to have a Pascal-like sub-procedure in Obj-C? With the right version of GCC (maybe next's is too, I dunno), you can use nested *functions*. For example, I was working on a program where I had to implement two very short methods to respond to two buttons so that I could return a value when I did a runModalFor:. I would have liked to just had those methods declared in the method where the runModalFor: was called and thusly limited their scope to the time the modal session was running. Supposing that one could actually do that, i.e. having nested *methods*, not counting the overhead of adding the two methods to the methods implemented by the class' instances upon entering the lexcial scope and removing them upon exiting, how'd you connect to the methods in IB? On another note, what would be the point of nested methods? Possible? Beneficial? Inanely stupid? Just sorta curious if anyone else thought this could be a cool idea and/or if there was a way to implement something like this as it stands now. It is possible---everything is, even people using MSDOS in 1995. I'd call it inanely stupid before thinking of it being benificial. --Tiggr
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: delegation semantics: respondsTo: ? Date: 25 Apr 1995 14:14:51 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Apr25161451@cobra.es.ele.tue.nl> References: <9504241404.AA00387@hercules.Praktos.be> In-reply-to: Paul Janssens's message of Mon, 24 Apr 95 15:02:02 +0100 In article <9504241404.AA00387@hercules.Praktos.be> Paul Janssens <paul@Praktos.be> writes: Is there a formal rule that you have to call respondsTo: before sending a delegate method? NEXT's objects allow delegates to implement any number of the documented delegate methods, so I assume respondsTo: is used, but You don't *have to*. If you think it is acceptable for the delegate to implement some of your delegate methods but not all, test for the response before attempting to send the message. If you think your delegate should implement all your delegate methods, define a protocol and demand `-setDelegate: (id <MyKindOfDelegate>) some_object'. the Objective-C manual doesn't mention semantics of delegatemethod calls. That's because delegation is not an inherent part of the language. --Tiggr
From: schellenbg_s@fhrz10.fh-frankfurt.de Newsgroups: comp.sys.next.programmer Subject: UNIX signals on NEXTSTEP/Mach-OS Message-ID: <1995Apr24.230846.94@fhrz10.fh-frankfurt.de> Date: 24 Apr 95 23:08:46 TCPWA Organization: Fachhochschule Frankfurt am Main I have a problem with UNIX signals on a HP 712 running NEXTSTEP. I'm writing a program that will execute in the background and can therefore only be influenced by signals and similar mechanisms. It establishes a signal handler for SIGHUP, SIGTERM, SIGQUIT etc. with the signal() system call. I have established an exit handler with atexit. The signal handling function does nothing more than to exit(0) and by this invoking the exit handling function. This worked fine since a few days ago. The program grew bigger and bigger and now sending a signal (typing a Control-C when started in foreground) causes not only this very process to exit, but THE WHOLE MACHINE STOPS EXECUTION !!!!!!!!! Sometimes the mouse pointer and cursor stand still and don't accept any input nor the machine respond to any tries via network (not even ping). On other occasions the system just REBOOTS!!! I'm NOT the superuser when I'm developing programs. Is there any secret about hand H
Newsgroups: comp.sys.next.programmer From: pelletk@il.us.swissbank.com (Ken Pelletier) Subject: Re: delegation semantics: respondsTo: ? Message-ID: <1995Apr25.170309.10012@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <9504241404.AA00387@hercules.Praktos.be> Date: Tue, 25 Apr 1995 17:03:09 GMT writes > > Is there a formal rule that you have to call respondsTo: before sending a > delegate method? NEXT's objects allow delegates to implement any number of the > documented delegate methods, so I assume respondsTo: is used, but the > Objective-C manual doesn't mention semantics of delegatemethod calls. > > Paul There are no formal rules on how to implement delegation, but the commonly-used pattern is as you describe it: if there's a delegate, and that delegate can respond to the message, send it. Try setting a breakpoint in respondsTo: (or implementing respondsTo: in an object of your own that's the delegate of some kit object) just prior to causing some event that triggers a message to a delegate and watch the fun begin. Another useful arrangement is to have the class which is delegating responsibilities send delegate message(s) to self if self can respond but the delegate can't respond. This allows a subclass to take on the any of the delegated responsibilities and provide the desired behavior where a delegate can't. You can also provide a default implementation in the base class itself if you choose. All of the dispatching of delegate messages (to whomever can respond) can easily be abstracted and provided either in your base class or perhaps a category of NSObject or Object if you'd like to use it more widely. - Ken -- ________________o__________________ | \ | | Ken Pelletier | | NiKA Software | | 1207 W. Newport Ave. __| | Chicago, IL 60657 | / _________________________________
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: UNIX signals on NEXTSTEP/Mach-OS Date: 25 Apr 1995 19:04:45 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Apr25210445@cobra.es.ele.tue.nl> References: <1995Apr24.230846.94@fhrz10.fh-frankfurt.de> In-reply-to: schellenbg_s@fhrz10.fh-frankfurt.de's message of 24 Apr 95 23:08:46 TCPWA In article <1995Apr24.230846.94@fhrz10.fh-frankfurt.de> schellenbg_s@fhrz10.fh-frankfurt.de writes: I'm writing a program that will execute in the background and can therefore only be influenced by signals and similar mechanisms. This assertion is wrong, since, luckily, IPC has been invented long ago. This worked fine since a few days ago. Since or until? The program grew bigger and bigger and now sending a signal (typing a Control-C when started in foreground) causes not only this very process to exit, but THE WHOLE MACHINE STOPS EXECUTION !!!!!!!!! Probably, a programming error by you triggers a kernel bug. What does the debugger tell you? What does actually go wrong? When does it happen? I'm NOT the superuser when I'm developing programs. Programming contains two difficult parts: the concepts and the debugging. The first part is up to you. The second part sometimes comes down to identifying bugs in the compiler, libraries or the kernel. --Tiggr
Newsgroups: comp.sys.next.programmer From: carl@zimmer.csufresno.edu (Carl C Edwards) Subject: cc or gcc on NeXT Message-ID: <D7Ltun.Mv9@CSUFresno.EDU> Sender: news@CSUFresno.EDU Organization: California State University, Fresno Date: Tue, 25 Apr 1995 18:54:22 GMT Hello all, Our school has a mathmatica lab running on NeXT machines, but I can't find any development tools. whereis and find for cc turn up nothing but the cc man page is installed? Where would cc usally be kept? I nothing is installed can I get binaries or are they purchase only? Thanks for your time, cce10@csufresno.edu
From: Ian Feldberg <ian.feldberg@jhuapl.edu> Newsgroups: comp.sys.next.programmer Subject: serial port asserting problems Date: 25 Apr 1995 22:21:17 GMT Organization: Johns Hopkins University Applied Physics Lab, Laurel, MD, USA Message-ID: <3njskt$32@aplinfo.jhuapl.edu> Anyone, When opening a serial port with modem control, e.g., ttyfa, RTS is asserted until the port is closed. To work with our modem we need RTS to be asserted when a transmission is ready; then begin transmission when the modem asserts CTS. When the message is transmitted the modem expects to see RTS deasserted and so forth. I have tried to use ioctl calls with TIOCMSET/TIOCMGET but have been unable to get them to work. Can the serial port be made to operate the way we want? Is ioctl the right approach? Would a different driver, e.g., Mux, help? - Ian Feldberg (ian.feldberg@jhuapl.edu)
From: barry@starfire.ucsd.edu (Barry Merriman) Newsgroups: comp.sys.next.programmer Subject: go to line numbers in Edit Date: 26 Apr 1995 00:52:56 GMT Organization: UCSD SOE Distribution: world Message-ID: <3nk5h8$ec2@deadmin.ucsd.edu> I recently installed the 3.1 version of Edit, and I don't see any way to go to a given line number? Help? -- Barry Merriman UCSD Fusion Energy Research Center UCLA Dept. of Math bmerriman@fusion.ucsd.edu (Internet; NeXTMail is welcome)
Newsgroups: comp.sys.next.programmer From: precipi!neekibo (Hugues RICHARD) Subject: Re: Simple Question about using cc in Nextstep Message-ID: <1995Apr25.180901.3719@precipice.fdn.fr> Sender: neekibo@precipice.fdn.fr Organization: Individual - Dijon, France. References: <3nfcel$412@ixnews4.ix.netcom.com> Date: Tue, 25 Apr 1995 18:09:01 GMT In article <3nfcel$412@ixnews4.ix.netcom.com> kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) writes: > Hi friends, I have an annoying problem working in Nextstep. > > NS is BSD UNIX, so I wrote codes for my assignment in NS, I compiled it > using cc -g -o myprog myprog.m...... > > It get compiled with no problems, however when I do "ls" I saw the name > of the program become "myprog*" instead of just "myprog". "*" means that myprog is executable (something like ..x..x..x) Try "ls /bin" to verify... > When I try to run the program by just typing "myprog", it prompts me > with "file not found" or something like that. first, I guess that you try to run it being root, no ? second, which version of NS do you have ? Hugues. g -o myprog myprog.m...... > > It get compiled with no problems, however when I do "ls" I saw the name > of the program become "myprog*" instead of just "myprog". "*" means that myprog is executable (something like ..x..x..x) Try "ls /bin" to verify... > When I try to run the program by just typi -- -------------------------------------------------------------------- neekibo@precipice.fdn.fr - France (small NeXTMail OK) ------------ NS3.2 ------------ NS3.0J ------------ :-) ------------
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: Re: go to line numbers in Edit Date: 26 Apr 1995 06:20:18 GMT Organization: Netcom Distribution: world Message-ID: <3nkon2$r8k@ixnews3.ix.netcom.com> References: <3nk5h8$ec2@deadmin.ucsd.edu> In <3nk5h8$ec2@deadmin.ucsd.edu> barry@starfire.ucsd.edu (Barry Merriman) writes: > >I recently installed the 3.1 version of Edit, and I >don't see any way to go to a given line number? Help? > > > >-- >Barry Merriman >UCSD Fusion Energy Research Center >UCLA Dept. of Math >bmerriman@fusion.ucsd.edu (Internet; NeXTMail is welcome) > > I also want to know how to do this. Kurniawan
From: rsmallwo@islandnet.com Newsgroups: comp.sys.next.programmer Subject: NS 4.0 - Availability & New Debugger Features Date: Wed, 26 Apr 1995 01:40:57 GMT Organization: Island Net in Victoria, B.C. Canada Message-ID: <950425184057.288AAD6E.rsmallwo@canada> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII Hi, When is NS 4.0 beta expected to be made available? With 4.0, I am particularly interested in the new debugger features that have been included; I have heard they are doing significant improvements to it. Is there any documentation I could refer to on these new features? Thanks in Advance. Rhys Smallwood
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: NXReportError is pissing me off! Message-ID: <D7MABu.1zF@id.com> Sender: randy@id.com (Randy) Organization: Intrinsic Development Corporation, Inc. References: <3n6hkp$mjd@news.next.com> Date: Wed, 26 Apr 1995 00:50:17 GMT In article <3n6hkp$mjd@news.next.com> ckane@next.com (Christopher Kane) writes: > In article <3n4h6o$j4m@news.starnet.net> kevins@sandman.bmd.com > (Kevin Solie) writes: > > Ok. Am I missing the boat or what with this new run time system for > > the Foundation Kit. When I make a code mistake, like send a message to > > an object that it does not respond to, I get this damn "Unknown error > > code 100003 in NXReportError"... > > It's too bad we had to maintain backwards compatibility with the old > exception system, or you wouldn't be seeing "Unknown error code 100003 > in NXReportError", and we could have done some cooler stuff with > exception handling, but... See NeXTanswer #1820 for a way to install a top-level error handler that will report a better error message. This was fixed in EOF 1.1. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: Memory leaks, swap file, foundation Message-ID: <D7MACs.206@id.com> Sender: randy@id.com (Randy) Organization: Intrinsic Development Corporation, Inc. References: <D7CB3I.8C8@eunet.ch> Date: Wed, 26 Apr 1995 00:50:52 GMT In article <D7CB3I.8C8@eunet.ch> lamb@eqt.ch (Alexander Lamb) writes: > ... > 3. what app can I use to check the leaks (MallocDebug doesn't seem to > work, and leaks crashes everything) ? See NeXTanswer #1820, "EOF Debugging Tips" for tips on how to use MallocDebug with Foundation and EOF. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Simple Question about using cc in Nextstep Date: 26 Apr 1995 09:15:47 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Apr26111547@cobra.es.ele.tue.nl> References: <3nfcel$412@ixnews4.ix.netcom.com> <1995Apr25.180901.3719@precipice.fdn.fr> In-reply-to: precipi!neekibo's message of Tue, 25 Apr 1995 18:09:01 GMT In article <1995Apr25.180901.3719@precipice.fdn.fr> precipi!neekibo (Hugues RICHARD) writes: "*" means that myprog is executable (something like ..x..x..x) Try "ls /bin" to verify... Try /bin/ls to skip command aliasing and see the `*' after the name drop. > When I try to run the program by just typing "myprog", it prompts me > with "file not found" or something like that. first, I guess that you try to run it being root, no ? second, which version of NS do you have ? The NS version does not matter. Try typing ./myprog. After that, read some manuals about shells. --Tiggr
From: dcoyle@kakapo.mpi-hd.mpg.de (David A. Coyle) Newsgroups: comp.sys.next.programmer Subject: Re: go to line numbers in Edit Date: 26 Apr 1995 09:24:27 GMT Organization: University of Heidelberg, Germany Message-ID: <3nl3gb$hqh@sun0.urz.uni-heidelberg.de> References: <3nk5h8$ec2@deadmin.ucsd.edu> <3nkon2$r8k@ixnews3.ix.netcom.com> Edit->Find->line range (command-l) I think that you need to be in the developer mode (set in Preferences). Dave
Newsgroups: comp.sys.next.programmer From: ian.stephenson@insignia.co.uk Subject: Re: go to line numbers in Edit Message-ID: <D7Mz7s.Cwv@isltd.insignia.com> Sender: news@isltd.insignia.com (Usenet News) Organization: Insignia Solutions Ltd References: <3nkon2$r8k@ixnews3.ix.netcom.com> Date: Wed, 26 Apr 1995 09:47:52 GMT In article <3nkon2$r8k@ixnews3.ix.netcom.com> kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) writes: > In <3nk5h8$ec2@deadmin.ucsd.edu> barry@starfire.ucsd.edu (Barry > Merriman) writes: > > > >I recently installed the 3.1 version of Edit, and I > >don't see any way to go to a given line number? Help? > > > > > > > >-- You have to turn "developer mode" on from the preferences menu. NeXT time its run the menu item will appear - cmd-l is the short cut. Ian
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <paul@Praktos.be> Message-ID: <9504251752.AA00525@hercules.Praktos.be> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Paul Janssens <paul@Praktos.be> Date: Tue, 25 Apr 95 18:49:45 +0100 Subject: disabling exception catching with DO Shoot me if this is in the manual, but is there a simple way to disable the catching of exceptions while processing a remote call? If I call a server routine from a client that raises an exception on the server, my toplevel exception handler on the server never gets called, because the DO stuff has is own exception catcher. Thanx in advance, Paul
From: wfung@linus.smcm.edu (William Fung) Newsgroups: comp.sys.next.programmer Subject: C library functions.... Date: 26 Apr 1995 12:56:25 GMT Organization: University of Maryland, College Park Message-ID: <3nlftp$o6d@hecate.umd.edu> Hi All: I was wondering where is the standard C library functions located on the blackbox. Is /lib/libsys_s.a the right one. If so, how can I view the "fat" file? Thanks in advance! -- E-mail address: wfung@oyster.smcm.edu Phone number : 301-862-0414 St. Mary's College of Maryland St. Mary's City, MD 20686
From: Randy_Tidd@next.com (Randy Tidd) Newsgroups: comp.sys.next.programmer Subject: New EOF and Foundation NeXTanswers Date: 26 Apr 1995 14:40:41 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3nlm19$29l@news.next.com> There are many new EOF and Foundation NeXTanswers! Here is a complete list: EOF: 1820 EOF Debugging Tips 1822 MS SQL Adaptor 1853 Using Oracle7 NOWAIT Locks with EOF 1882 EOF NeXTanswers Overview 1896 Using EOModeler with Oracle 1897 Using EOF with Oracle SQLNet 1898 Using sampler for profiling EOF 1906 Using Undo with Sets of EOControllers 1907 Relocating the Sybase interfaces File 1908 Updating Master Object Immediately on Insert Or Delete in Detail Controller 1914 Releasing EOControllers in nibs 1915 EOFaults and Infinite Loops 1917 EOF 1.1 Fetch Performance Foundation: 1720 Debugging code loaded by NSBundle 1721 Encoding Foundation classes with Distributed Objects 1722 Using autorelease pools without EOF 1885 NSDate Comparisons Are Incorrect 1890 Building Foundation Header 1905 Foundation Version Dependencies NeXTanswers are available via anonymous FTP from ftp.next.com, and on the web at http://www.next.com/NeXTanswers/. See NeXTanswer #1882 for an overview of EOF-related NeXTanswers and support, and NeXTanswer #1000 for more information on obtaining NeXTanswers themselves. Randy Tidd NeXT Premium Developer Support
From: willers@butp.unibe.ch (Moritz Willers) Newsgroups: comp.sys.next.programmer Subject: Re: UNIX signals on NEXTSTEP/Mach-OS Date: 26 Apr 1995 15:20:56 GMT Message-ID: <3nloco$ksu@aragorn.unibe.ch> References: <1995Apr24.230846.94@fhrz10.fh-frankfurt.de> schellenbg_s@fhrz10.fh-frankfurt.de writes > I have a problem with UNIX signals on a HP 712 running NEXTSTEP. I'm > writing a program that will execute in the background and can therefore > only be influenced by signals and similar mechanisms. > It establishes a signal handler for SIGHUP, SIGTERM, SIGQUIT etc. with > the signal() system call. I have established an exit handler with atexit. > The signal handling function does nothing more than to exit(0) and by > this invoking the exit handling function. This worked fine since a few > days ago. The program grew bigger and bigger and now sending a signal > (typing a Control-C when started in foreground) causes not only this > very process to exit, but > THE WHOLE MACHINE STOPS EXECUTION !!!!!!!!! > Sometimes the mouse pointer and cursor stand still and don't accept any > input nor the machine respond to any tries via network (not even ping). > On other occasions the system just REBOOTS!!! > I'm NOT the superuser when I'm developing programs. > Is there any secret about hand > Hallo Sonja, Ein Signal wird nicht nur an den Prozess sondern an die ganze Prozessgruppe geschickt. Wenn der parent process eines childs geht, wird init (the parent of all processes) parent process (zu ueberpruefen mit getppid() in child). Wenn Du jetzt noch die pgrp auf etwas "Schlechtes" setzt (durch setpgrp(0, getppid())), koennten signale an alle Prozesse geraten. Bist Du sicher, dass der ganze Rechner stoppt und nicht nur das GUI? Ich hatte das Problem mal mit nextispell, als es vom WM aus gestartet wurde und ein SIGSTOP nicht nur nextispell sondern alle anderen Prozesse in der pgrp auch das Siganl erhielten, da war das ganze GUI gestopped. Vielleicht hilft schon ein setpgrp(0, getpid()). Aber so wie's aussieht, haelt bei Dir ja der ganze Rechner an. Haesslich. Vielleicht hilft's auf die Spur, Gruss - Moritz -- Moritz Willers Institute of Theoretical Physics Sidlerstrasse 5 3012 Bern, Switzerland willers@butp.unibe.ch (NeXTMail, MIME)
From: iss004@cips2.gm.fh-koeln.de (Joerg Passenberg) Newsgroups: gnu.gcc.help,comp.sys.next.programmer Subject: gcc 2.6.3 on NS 3.3/3.2: Internal Error Date: 26 Apr 1995 20:13:08 GMT Organization: Fachhochschule Koeln FB-Informatik (Germany). Message-ID: <3nm9gk$6hi@nets1.GM.FH-Koeln.DE> Hello ! I'm trying to compile gcc 2.6.3 on a Nextstep 3.3 with NS 3.2 Developer. After some time i got the following error: $ make bootstrap make CC="cc -traditional-cpp" libdir=/usr/local/lib LANGUAGES=c cc -traditional-cpp -c -DIN_GCC -g -I. -I. -I./config emit-rtl.c cc: Internal compiler error: program as got fatal signal 11 *** Exit 1 Stop. *** Exit 1 Stop. Any sugestions ? -- Joerg Passenberg | Internet: iss004@cips2.gm.fh-koeln.de | (NeXTMail/MIME appreciated) Alte Hofstr.31 | http://www.gm.fh-koeln.de/~iss004 51709 Marienheide NEW | Phone: +49 2264 29817 Germany NEW | Fax: +49 2264 29817
From: searchsa@ix.netcom.com (Mark L. Robbins) Newsgroups: comp.sys.next.programmer Subject: NEXT PROGRAMMER Date: 26 Apr 1995 18:01:20 GMT Organization: Netcom Distribution: world Message-ID: <3nm1pg$pnq@ixnews4.ix.netcom.com> POSITION: NEXT PROGRAMMER COMPANY: One of the largest shipping companies on the West Coast COMPENSATION: Open depending upon experience REQUIREMENTS: Seeking individual with NEXT Programming skills or will hire recent college graduate who studied “NEXT” or will consider recent college graduate with “C” Programming skills. Outstanding opportunity to join this leading transportation company who uses the latest technology. Excellent opportunity for growth and advancement. If you are interested in this position, please contact Mark Robbins, Search Solutions Associates, (415) 898-1800 or FAX resume to (415) 898-2439 or E-mail us at searchsa@ix.netcom.com.
From: willers@butp.unibe.ch (Moritz Willers) Newsgroups: comp.sys.next.programmer Subject: Re: UNIX signals on NEXTSTEP/Mach-OS Date: 26 Apr 1995 15:22:29 GMT Message-ID: <3nlofl$kvv@aragorn.unibe.ch> References: <1995Apr24.230846.94@fhrz10.fh-frankfurt.de> Sorry about the German in this news group. I pressed cmd-R and thought I was answering by email to Sonja. Should have pressed cmd-M :-) Sorry, -- Moritz Willers Institute of Theoretical Physics Sidlerstrasse 5 3012 Bern, Switzerland willers@butp.unibe.ch (NeXTMail, MIME)
From: esky@marathon.cs.ucla.edu (Eskandar Ensafi) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Enhancements (forwarding, overloading) to the run-time system. Date: 26 Apr 1995 22:58:21 GMT Organization: UCLA CS Department, Los Angeles, CA Distribution: world Message-ID: <3nmj6d$1sn@delphi.cs.ucla.edu> Hello, Since NeXt has acquired the source code for Stepstone Objective-C and since they've been cleaning up their foundation classes for the OpenStep specification, I would like to suggest the following change and additions to Objective-C. 1. Forwarding ---------- The -forward:: method is inadequate. It can only reliably return values whose size == sizeof(id), which is a bummer. I suggest changing ``-forward:(SEL)aSelector:(marg_list)argFrame'' to a simpler, more useful method called -forward:(SEL)aSelector. The run-time system, either through objc_msgSend() or objc_msgSendSuper(), will call -forward: when an object can't respond to a message. The -forward: method should return the id of an object that can handle the message. If this object still can't respond, it too is sent a -forward: message, and so on, until either an object can respond or -forward: returns nil (inherited from Object, causing a run-time error). When a returned id can respond to the message, the run-time system will jump to the address of the method's implementation using the returned id as the receiver of the message. To clarify: (source)---> [obj msg:arg]; (compiler)-> objc_msgSend(obj, @selector(msg), arg); (run-time)-> 1. Is "obj" a class object? A. If so, is it initialized? a. If not, try to send +initialize. 2. Look up method for selector "msg" in the receiver's class. A. If it exists, jump to the address of the method's implementation. B. Otherwise, try to forward. a. Look up method for +/-forward:. 1) If it exists, call it. A) If it returns nil, go to step C (error). B) Otherwise, make the returned object the receiver and go to step 2 (look up method). 2) Otherwise, go to step C (error). C. If all fails, try to generate an error by sending "obj" a +/-doesNotRecognize: message. 2. Operator Overloading -------------------- Mixing C++ with Obejctive-C doesn't solve the problem of overloading in Objective-C classes. I don't think it would be too hard to add overloading to the Objective-C compiler. Here's the proposed syntax: +/- selector:... @operator(op); // The "op" and "selector:" take the same // number of arguments; this is how the // unary + operator will be distinguished // from the binary + operator. For example: /* List.h Copyright 1988, 1989 NeXT, Inc. DEFINED AS: A common class HEADER FILES: objc/List.h */ @interface List : Object { @public id *dataPtr; /* data of the List object */ unsigned numElements; /* Actual number of elements */ unsigned maxElements; /* Total allocated elements */ } +new; /* ... */ - (BOOL)isEqual:anObject @operator(==); /* ... */ - addObject:anObject @operator(+=); - removeObject:anObject @operator(-=); /* ... */ - free; /* ... */ @end Overloading will only work for statically typed objects. For example: id foo = [Object new]; id aList = [List new]; List *bList = [List new]; aList += foo; // Bad! Will increment aList pointer by foo bytes! bList += foo; // Good! Compiler will treat this as [bList addObject:foo]; 3. Static Binding -------------- Stepstone's compiler had it. It would be nice to see it in NeXT/GNU. I won't be around to respond to any replies for about a week or two, so if you want to make sure that I don't miss your reply, please e-mail it to me. Otherwise, talk about this behind my back as much as you want :-) Later, Eskandar -- KiNDa LiKe a DoG WiTH SeVeN PuPiLS iN iTS eYe L E F T H A N D KiNDa LiKe a MaDNeSS THaT ReFuSeS To SuBSiDe B L A C K KiNDa LiKe eVeRYTHiNG You WaNT JuST WiTHiN YouR GRaSP - - - - - - - - KiNDa LiKe HoW a BaNSHee-WaiL DaNCeS oN a LiViNG HeaRT... D a n z i g
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer,comp.sys.next.software Subject: Adding PS font characters Date: 26 Apr 1995 20:04:19 GMT Organization: Stanford University Message-ID: <3nm903$a5g@nntp.Stanford.EDU> I am trying to add a few special characters to the supplied NeXT fonts; for example, I need a u-ring. As there is already an a-ring, I thought that the format to be added for composited characters would be the same. I added this to the Times-Roman.afm file: CC uring 2 ; PCC u 0 0 ; PCC ring 84 0 ; Also I increased the table count entry correspondingly. Still, I won't get a u-ring. Can someone tell me what's wrong? I don't need a whole special character set, just a few additions to my usual font which I would like to map with the Keyboard.app in an alternative setting. Thanks, - Stan --- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss CS Guy | | | stanj@cs.stanford.edu NeXTmail / MIME | When you find yourself | | http://www-leland.stanford.edu/~stanj/ | in a hole, stop digging | | Box 2642, Stanford, CA 94309, USA | | +-------------------------------------------+-------------------------+
From: Dario Ringach <dario> Newsgroups: comp.sys.next.programmer,comp.sys.next.hardware Subject: (no subject) Date: 26 Apr 1995 22:08:18 GMT Organization: New York University Message-ID: <3nmg8i$d8f@cmcl2.NYU.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit To: Can,one,have,multiple,screens,on,one,host,w/NextStep? Is it possible to have more than one screen with NextStep/Intel? That is, I'd like to have applications shown on two different sreens, move between them with the mouse, and both being controlled by the same machine... Thanks in advance... -- Dario Ringach | office: (212) 998-7614 lab: (212) 998-7730 Center for Neural Science | home: (212) 727-9346 fax: (212) 995-4011 New York University | e-mail: dario@cns.nyu.edu
From: Dario Ringach <dario> Newsgroups: comp.sys.next.programmer,comp.sys.next.hardware Subject: (no subject) Date: 26 Apr 1995 22:08:34 GMT Organization: New York University Message-ID: <3nmg92$d8f@cmcl2.NYU.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit To: Can,one,have,multiple,screens,on,one,host,w/NextStep? Is it possible to have more than one screen with NextStep/Intel? That is, I'd like to have applications shown on two different sreens, move between them with the mouse, and both being controlled by the same machine... Thanks in advance... -- Dario Ringach | office: (212) 998-7614 lab: (212) 998-7730 Center for Neural Science | home: (212) 727-9346 fax: (212) 995-4011 New York University | e-mail: dario@cns.nyu.edu
From: Dario Ringach <dario> Newsgroups: comp.sys.next.programmer,comp.sys.next.hardware Subject: Can one have multiple screens on one host w/NextStep Date: 26 Apr 1995 22:09:29 GMT Organization: New York University Message-ID: <3nmgap$d8f@cmcl2.NYU.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Is it possible to have more than one screen with NextStep/Intel? That is, I'd like to have applications shown on two different sreens, move between them with the mouse, and both being controlled by the same machine... Thanks in advance... -- Dario Ringach | office: (212) 998-7614 lab: (212) 998-7730 Center for Neural Science | home: (212) 727-9346 fax: (212) 995-4011 New York University | e-mail: dario@cns.nyu.edu
From: freeman@euler.csc.cornell-iowa.edu (James H. Freeman) Newsgroups: comp.sys.next.programmer Subject: What is proper handling of POSIX problems? Date: 27 Apr 1995 01:47:18 GMT Organization: University of Iowa, Iowa City, IA, USA Distribution: world Message-ID: <3nmt36$m1i@nexus.uiowa.edu> Keywords: POSIX APACHE Quick question: I had troubles compiling apache.0.6.2, the new httpd server. With help from someone else, I finally realized the problem was that some POSIX contructs were not getting defined. Specifically, the problems were with FD_CLOEXEC, S_IRGRP, S_IROTH and mode_t. I noticed a large segment of code in httpd.h in which other POSIX constructs were define. So I defined the above items in that section and the compilation worked fine. I realize that defining _POSIX_SOURCE will not work. Is there a better way to handle this situation than to continue to add required definitions by hand? Thanks for your time. Jim -- Dr. James H.Freeman freeman@Cornell-Iowa.edu (Nextmail OK) Department of Mathematics (Mime accepted) Cornell College 319-895-4393(office) 600 First Street West 319-895-6866(home) Mount Vernon, Iowa 52314-1098
Newsgroups: comp.sys.next.programmer From: gmd@hazel.north.de (Gerriet M. Denkmann) Subject: Debugging a Bundle - How to ? Message-ID: <D7oLH8.8LG@hazel.north.de> Keywords: Debugging, Bundle Sender: gerriet@hazel.north.de (Gerriet M. Denkmann) Organization: Great Mathematical Developments, Inc. Date: Thu, 27 Apr 1995 06:46:19 GMT Well how do I use gdb to debug a bundle? Let's assume I have some program (without the source code) (e.g. EOModeler.app), which at some time loads a bundle (e.g. MyAdaptor.dbadaptor), of which I do have the source, and which contains some bugs. What to do now? I tried the gdb command attach and several others, but the problem just proved to be beyond my mental capabilities. Any helpful hints would be greatly appreciated! (NS3.2 on black - if it would make a real difference, I could install 3.3) Gerriet.
From: jharding@thor.tjhsst.edu (John Harding) Newsgroups: comp.sys.next.programmer Subject: Linking DSP libraries Date: 26 Apr 1995 06:37:39 -0400 Organization: The Thomas Jefferson High School for Science and Technology Distribution: world Message-ID: <3nl7pj$gob@thor.tjhsst.edu> I've got a bit of a strange problem. I'm trying to compile a program that uses the DSP Array Processing libraries. It compiles fine, but won't link in the library. (NextStep 2.1, Black hardware) cc -larrayproc MyProgram.c The linker then yells at me for all of my DSP calls. /usr/lib/libarrayproc.a is there. It's probably some stupid mistake I'm making, but I can't for the life of me think of what it is. Any help would be appreciated.
From: kiwi@cs.tu-berlin.de (Axel Habermann) Newsgroups: comp.sys.next.programmer,comp.sys.next.hardware Subject: Re: Can one have multiple screens on one host w/NextStep Followup-To: comp.sys.next.programmer,comp.sys.next.hardware Date: 27 Apr 1995 11:38:04 GMT Organization: Technical University of Berlin, Germany Message-ID: <3nnvms$ncj@news.cs.tu-berlin.de> References: <3nmgap$d8f@cmcl2.NYU.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Dario Ringach (dario) wrote: : Is it possible to have more than one screen with NextStep/Intel? : That is, I'd like to have applications shown on two different sreens, : move between them with the mouse, and both being controlled by the : same machine... ELSA has graphics cards and driver available for such a task. Look into the recent postings on comp.sys.next.announce and you should find what you're looking for. Axel -- Axel Habermann kiwi@cs.tu-berlin.de \\|// Muellerstr. 145 kiwi@buran.fb10.tu-berlin.de )o o( D-13353 Berlin (Wedding) \ | / Fon: +49 30 45478986 (privat) 030 314 23 281 (uni) \~/
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 27 Apr 1995 05:55:08 GMT Organization: Eindhoven University of Technology, The Netherlands Distribution: world Message-ID: <TIGGR.95Apr27075508@cobra.es.ele.tue.nl> References: <3nmj6d$1sn@delphi.cs.ucla.edu> In-reply-to: esky@marathon.cs.ucla.edu's message of 26 Apr 1995 22:58:21 GMT In article <3nmj6d$1sn@delphi.cs.ucla.edu> esky@marathon.cs.ucla.edu (Eskandar Ensafi) writes: 3. Static Binding -------------- Stepstone's compiler had it. It would be nice to see it in NeXT/GNU. Static binding is a bad idea, since it limits the possibilities of class posing and categories. --Tiggr
From: grio@next.com (Dan Grillo) Newsgroups: comp.sys.next.programmer Subject: Re: New EOF and Foundation NeXTanswers Date: 27 Apr 1995 05:58:36 GMT Organization: Technical Support, NeXT Computer, Inc. Message-ID: <3nnbqc$66q@news.next.com> References: <3nlm19$29l@news.next.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Versions: makemail 2.7 In article <3nlm19$29l@news.next.com>, Randy Tidd <Randy_Tidd@next.com> wrote: > >NeXTanswers are available via anonymous FTP from ftp.next.com, and on the >web at http://www.next.com/NeXTanswers/. > >Randy Tidd >NeXT Premium Developer Support Hey Randy, don't forget nextanswers@next.com, our BBS, and fax back too. :-) Dan Grillo Developer Support Engineer NeXT Technical Support -- Dan Grillo dan_grillo@next.com (415) 780-2963 now in Bld1, back, Rside
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer From: pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. In-Reply-To: esky@marathon.cs.ucla.edu's message of 26 Apr 1995 22:58:21 GMT Message-ID: <PFKEB.95Apr26214155@kaon.SLAC.Stanford.EDU> Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: <3nmj6d$1sn@delphi.cs.ucla.edu> Date: Thu, 27 Apr 1995 04:41:55 GMT >>>>> On 26 Apr 1995 22:58:21 GMT, esky@marathon.cs.ucla.edu (Eskandar Ensafi) said: > Since NeXt has acquired the source code for Stepstone Objective-C The recent announcement did not say that NeXT had obtained Stepstone source code. It said NeXT had acquired Objective-C as a trademark. NeXT long ago abandoned the Stepstone preprocessor in favor of their own source code modifications to gcc. Already with NeXTStep 0.8 you had a gcc base compiler. -- Paul F. Kunz Paul_Kunz@slac.stanford.edu (NeXT mail ok) Stanford Linear Accelerator Center, Stanford University Voice: (415) 926-2884 (NeXT) Fax: (415) 926-3587
Newsgroups: comp.sys.next.programmer From: mapdjb@bath.ac.uk (D J Batey) Subject: Re: gcc Message-ID: <D7pC47.B56@bath.ac.uk> Keywords: c++, c, g++, gnu, gcc, cc++ Organization: School of Mathematical Sciences, University of Bath, UK References: <3mlu76$7dj@news.acns.nwu.edu> Date: Thu, 27 Apr 1995 16:21:42 GMT cc on NeXTStep 3.3. *is* gcc, g++ and all. They renamed it in order to confuse us mere mortals. Just use cc and all should be hunky dory, although it is an old version..., 2.2 I think. I upgraded ours to 2.6 cos someone insisted their code wouldn't compile properly without it. Duncan.
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer From: jbright@stimpy (Jason Bright) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Message-ID: <D7p71o.Ds1@cunews.carleton.ca> Followup-To: comp.lang.objective-c,comp.sys.next.programmer Sender: news@cunews.carleton.ca (News Administrator) Organization: Carleton University References: <3nmj6d$1sn@delphi.cs.ucla.edu> Date: Thu, 27 Apr 1995 14:32:12 GMT Eskandar Ensafi (esky@marathon.cs.ucla.edu) wrote: <munch> : 2. Operator Overloading : -------------------- : Mixing C++ with Obejctive-C doesn't solve the problem of overloading : in Objective-C classes. I don't think it would be too hard to add : overloading to the Objective-C compiler. Here's the proposed syntax: YUK!!!! I know this has the possibility of descending into a religious war about syntax, oo design methodologies, etc, but I can not think of one good reason to mangle the language to support this feature. It's mere typographic eye candy, and your given example shows a very nasty pitfall. The niceity of Objective-C is that (for the most part, unless you are an obsessively anal programmer) you don't need static binding (in a lot of cases, what you want to do CAN"T be done with static binding- or at least not very nicely). It's a convenience for convenience sake, and is rarely implemented true to the spirit of the operator (I just want to scream everytime I see some C++ hacker using an overloaded '+' to ADD two strings....it's not addition, it's concatenation. It's a totally different operation, so don't use the same operator!!). It doesn't add any overall functionality to the language. No thanks. The only thing IMHO that could be worse than this would be trying to graft in multiple inheritance. double YUK. JUST SAY NO. just my $0.02 j jbright@stimpy.carleton.ca bright@slacker.org bright@ingenia.com
From: mark@nextstep.dorm6.nctu.edu.tw (Lin Yi-chih) Newsgroups: comp.sys.next.programmer Subject: How to drag-and-drop and double-click in Text ? Date: 27 Apr 1995 05:03:42 GMT Organization: Dep. Computer Sci. & Information Eng., Chiao Tung Univ., Taiwan, R.O.C Distribution: World Message-ID: <3nn8je$b9m@news.csie.nctu.edu.tw> Is there any miniexample to show the feature in Edit.app, like drag-and-drop the picture to outside and double-click to open a file in Edit.app? Many Thanks, Mark
Newsgroups: comp.sys.next.programmer From: gery@ares.fdn.fr(Gery_Divry) Subject: Re: go to line numbers in Edit Message-ID: <1995Apr27.155529.13394@ares.fdn.fr> Sender: news@ares.fdn.fr Organization: ARES - Lyon, France. References: <3nkon2$r8k@ixnews3.ix.netcom.com> Date: Thu, 27 Apr 1995 15:55:29 GMT In article <3nkon2$r8k@ixnews3.ix.netcom.com> kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) writes: > In <3nk5h8$ec2@deadmin.ucsd.edu> barry@starfire.ucsd.edu (Barry > Merriman) writes: > > > >I recently installed the 3.1 version of Edit, and I > >don't see any way to go to a given line number? Help? > > > > > > > >-- > >Barry Merriman > >UCSD Fusion Energy Research Center > >UCLA Dept. of Math > >bmerriman@fusion.ucsd.edu (Internet; NeXTMail is welcome) > > > > > I also want to know how to do this. > > Kurniawan Configure Edit as Developper in the preferences (Developper mode) quit Edit relaunch it you can acces a line number by (Command)l or in the menu Edit > Search > LineRange Sincerely Gery DIVRY ( ZZVolume Developper ) ARES Publisher 8, rue Victor Lagrange Phone: (+33) 72 80 16 30 69007 LYON Fax: (+33) 72 80 16 32 France Email: gery@ares.fdn.org Earth, Solar System, Galaxy MW1 NeXT Mail accepted
From: Randy_Tidd@next.com (Randy Tidd) Newsgroups: comp.sys.next.programmer Subject: Re: How do I write a MutableValue class? Date: 27 Apr 1995 18:47:29 GMT Organization: NeXT Computer, Inc. Distribution: usa Message-ID: <3noos1$aod@news.next.com> References: <3nephk$oe5@lace.Colorado.EDU> In article <3nephk$oe5@lace.Colorado.EDU> fedor@hopper.Colorado.EDU (Adam Fedor) writes: > How can I subclass NSValue so as to create a MutableValue class? Perhaps > I don't have a really good reason for doing this, but then maybe you > could answer the more general question: If NSMutable{Dictionary, String, > etc} didn't exist, how would I write them, knowing only the published > specifications for the non-mutable classes? Check out the "Creating Subclasses Within a Class Cluster" docs in IntroFoundation.rtfd. It recommends three approaches for adding to a class cluster, with example code for each. It is true that adding a class to a class cluster is more complex than simply subclassing, but the class clusters are set up so that adding a subclass shouldn't be necessary, or at least only in unusual circumstances. Like subclassing a regular class, once you add to a class cluster once or twice to get the hang of it you'll probably find that it is not "insanely complex"! Hope this helps, Randy Tidd NeXT Premium Developer Support
From: seanl@jujube.cs.umd.edu (Sean Luke) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Followup-To: comp.lang.objective-c,comp.sys.next.programmer Date: 27 Apr 1995 20:23:00 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Distribution: world Message-ID: <3nouf4$p0c@mimsy.cs.umd.edu> References: <3nmj6d$1sn@delphi.cs.ucla.edu> Eskandar Ensafi (esky@marathon.cs.ucla.edu) wrote: >2. Operator Overloading > -------------------- > Mixing C++ with Obejctive-C doesn't solve the problem of overloading > in Objective-C classes. I don't think it would be too hard to add > overloading to the Objective-C compiler. Here's the proposed syntax: > +/- selector:... @operator(op); // The "op" and "selector:" take the same > // number of arguments; this is how the > // unary + operator will be distinguished > // from the binary + operator. I disagree with this (who doubted? :-) Operator Overloading is too much rope. It extends the denotational sematics of the language, which for most of us mere mortals means more syntax for us to keep in our heads. This is _never_ good. True, op operloading does make some math perceptively easier. But even mathematicians will agree that after years of running out of new symbols to describe new things, the math field's textbooks have overloaded symbols (i.e. operators) so badly that most texts must list and explicitly describe what the symbols represent in an appendix. The last thing good programmers would want to do is transfer this mess to an already overburdened _computer_language_. My wish list would include: TRUE MULTIPLE INHERITANCE Use a depth-first strategy if you like. The syntax could look like: @interface _object-name_ : _superclass_ _superclass_ _etc._ (_Category_) <_protocol_> CLASS DATA Data could optionally begin with a "-" or "+". If it begins with neither, it's assumed to be "-". As in: @interface myObject: Object { int x; - char* q; + char y[100]; } ... This is VERY easy to implement, even if it just moves the + stuff out into the header file as global static member data. Sean Luke U Maryland at College Park seanl@cs.umd.edu Today's Chemical: Aluminum Zirconium Tetrachlorohydrex GLY
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: comp.sys.next.programmer Subject: Re: gcc Date: 27 Apr 1995 20:16:31 GMT Organization: University of Heidelberg, Germany Message-ID: <3nou2v$pd2@sun0.urz.uni-heidelberg.de> References: <3mlu76$7dj@news.acns.nwu.edu> <D7pC47.B56@bath.ac.uk> D J Batey (mapdjb@bath.ac.uk) wrote: : cc on NeXTStep 3.3. *is* gcc, g++ and all. They renamed it in order to : confuse us mere mortals. Just use cc and all should be hunky dory, : although it is an old version..., 2.2 I think. I upgraded ours to 2.6 : cos someone insisted their code wouldn't compile properly without it. Hmm. Not exactly. NEXTSTEP 3.2 cc is _based_on_ gcc 2.2.2, 3.3 and 3.2/HP cc is _based_on_ gcc 2.5.8, but there are some small (but important) additions NeXT made to GNU's gcc distribution: - Objective-C++ - FAT binary support (-arch) - NEXTSTEP/HP-PA configuration files - ??? So if you compile GNU's most recent release (2.6.3), you will miss the above. This leaves us without g77 and gpc on HP-PA. Apart from this, you're right. Gregor -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Belgium.EU.net!EU.net!news.sprintlink.net!hookup!news.mathworks.com!gatech!newsfeed.pitt.edu!uunet!swissbank!root From: hendryj@mcs.com Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Message-ID: <1995Apr27.232612.6593@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3nouf4$p0c@mimsy.cs.umd.edu> Date: Thu, 27 Apr 1995 23:26:12 GMT Sean Luke writes > TRUE MULTIPLE INHERITANCE > > Use a depth-first strategy if you like. The syntax could look like: > > @interface _object-name_ : _superclass_ _superclass_ _etc._ (_Category_) > <_protocol_> Which brings up the question: With multiple inheritance, what class(es?) does a Category apply to? Would it really be desireable to have a category which applies to such a wide range of classes? (Sometimes, yes, but IMHO it raises the potential for unintended interactions) -- Jonathan Hendry Vanguard Software Corp. Jon_Hendry@vanguard.com Any similarity between the views expressed herein and the views of Vanguard Software, Swiss Bank Corp., or any individuals living, dead, or undead is entirely coincidental.
From: peter@netz.hrz.uni-siegen.de (Peter Merz) Newsgroups: comp.sys.next.programmer Subject: FractalView Beta-Testers wanted Date: 21 Apr 1995 13:12:20 GMT Organization: Computer Center, University of Siegen, Germany Message-ID: <3n8avl$f9c@si-nic.hrz.uni-siegen.de> I wrote an application for calculating fractals like mandelbrot and julia sets similar to the app Mandelbrot that comes with NeXTStep as a demo programm. Since the application seems to be stable I've uploaded the beta version to our ftp server. If you're interested you have to do the following: 1) optain the binary from ftp://ftp.uni-siegen.de/pub/NeXT/local/FractalView-0.9beta.I.tar.gz 2) drop me a short mail that you're going to test it. 3) If you encountered any bugs or have any suggestions send me a mail with a report. 4) that's it! Peter. -- -- Peter Merz, merz@informatik.uni-siegen.de --
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Debugging a Bundle - How to ? Date: 27 Apr 1995 15:42:22 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3noe0u$9tn@darkstar.UCSC.EDU> References: <D7oLH8.8LG@hazel.north.de> In article <D7oLH8.8LG@hazel.north.de> gmd@hazel.north.de (Gerriet M. Denkmann) writes: > Well how do I use gdb to debug a bundle? > > Let's assume I have some program (without the source code) (e.g. > EOModeler.app), which at some time loads a bundle (e.g. > MyAdaptor.dbadaptor), of which I do have the source, and which contains > some bugs. > > What to do now? > > I tried the gdb command attach and several others, but the problem just > proved to be beyond my mental capabilities. > > Any helpful hints would be greatly appreciated! > Either run the app (e.g., EOModeler.app/EOModeler) under gdb or attach as you've indicated. Then stop the execution (attach does that for you) and use the "future-break" command to set a breakpoint at a function, method, line, etc. in your bundle source (make sure the bundle source is in the directory search path by using the "directory" command). Then resume execution. As each bundle is loaded, gdb will attempt to set the breakpoint specified in your future-break command. When the desired bundle is loaded, the breakpoint should be set and gdb should work as if the "break" command had been used. > (NS3.2 on black - if it would make a real difference, I could install 3.3) > Shouldn't matter, although I don't know whether 3.3 Developer's gdb has changed. Art
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <doug@thoughtful.com> Date: Thu, 27 Apr 95 15:52:57 -0600 From: doug@thoughtful.com (Douglas Simons) Message-ID: <9504272152.AA06373@thoughtful.com> Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Cc: esky@marathon.cs.ucla.edu (Eskandar Ensafi) My $.02 on the proposed enhancements: > 1. Forwarding Great idea! Well thought-out improvement to the forwarding mechanism. Do it, NeXT! If necessary, for backward compatibility, send the old-style forward message before giving up and calling doesNotRecognize: > 2. Operator Overloading On the one hand, operator overloading seems like a really cool idea. On the other hand, it looks like it could lead to some very bad problems. I think the other hand wins out: I don't want to see bList += foo; in some code, and not know whether it's incrementing a pointer or sending a message to the bList object. And there's probably no way the compiler can warn me if I accidentally try to use this syntax to send a message to an object when I forgot that it was declared as an id instead of statically typed. Overall, a bad idea -- if it gets implemented, I'll plan to avoid using it. > 3. Static Binding I'm not familiar with how Stepstone had this implemented. I'd be curious to hear other's comments on this and how it might work. Cheers, Doug Simons Thoughtful Software
Newsgroups: comp.protocols.tcp-ip.domains,comp.sys.next.programmer Belgium.EU.net!EU.net!news.sprintlink.net!hookup!solaris.cc.vt.edu!news.mathworks.com!gatech!swrinde!sgiblab!cgl!conrad From: conrad@cgl.ucsf.edu (Conrad Huang %CGL) Subject: problem with BIND 4.9.3 beta 17 on black hardware Message-ID: <conrad.799023861@cgl.ucsf.edu> Sender: news@cgl.ucsf.edu (USENET News System) Organization: UCSF Computer Graphics Lab Date: Thu, 27 Apr 1995 23:04:21 GMT A few weeks ago, I posted an article asking whether anyone has had problems with BIND 4.9.3 beta 17 hanging on a NeXT machine. Only one person answered (thank you, Jack) and he had no problems. After BIND hung several more times, I looked into the problem in more detail. The symptoms of the problem are that named does not answer queries and consumes 99% CPU time on our NeXT Turbo. If I stop the process and attach a debugger to it, this is the output I get from a backtrace (edited for readability): #0 0x50089ee in swtch_pri () #1 0x5024738 in cthread_yield () #2 0x502471e in mutex_wait_lock () #3 0x502e26e in _malloc_fork_prepare () #4 0x502e23e in _cthread_fork_prepare () #5 0x500857e in fork () #6 0xd9ba in tryxfer () at ns_maint.c:887 #7 0xd934 in endxfer () at ns_maint.c:862 #8 0x50083ac in _sigtramp () #9 0x50090b8 in nxzonemalloc () #10 0x5009968 in malloc () #11 0x6694 in savename (name=0x3fff78c "17.49.218.128.in-addr.arpa", len=2) at db_save.c:89 #12 0x649a in nlookup (name=0x3fff78c "17.49.218.128.in-addr.arpa", htpp=0x3ffe4f4, fname=0x3ffe4d8, insert=8) at db_lookup.c:149 #13 0x6a46 in db_update (name=0x3fff78c "17.49.218.128.in-addr.arpa", odp=0x1f2768, newdp=0x1f2768, flags=1, htp=0x1faa24) at db_update.c:224 #14 0x55a4 in db_load (filename=0x1f26f0 "xxx49.rev.bak", in_origin=0x3ffe58c "zzzz.xxx.ucsf.EDU", zp=0x223cc, def_domain=0x0) at db_load.c:699 #15 0xdabe in loadxfer () at ns_maint.c:917 #16 0xb2a0 in main (argc=1, argv=0x5002bc4, envp=0x3fffd8c) at ns_main.c:611 #6 through #10 indicate that, in the middle of a malloc() call, a SIGCHLD was signaled when a zone transfer completed. The tryxfer() shows that named was trying to start another zone transfer. #0 through #5 indicate that fork() was trying to clean up something in the malloc() package and is becoming deadlocked because #9 or #10 has the lock but cannot proceed. At this point, the process hangs in a busy wait, eating up CPU time but doing nothing else (matching the symptoms). This is my analysis of the problem, and (assuming I am right) I have the following questions: Why does fork() on NEXTSTEP need to mess with malloc()? Why does named try to do something as complicated as starting a new process in a signal handler? (From the code, it appears that starting a new process potentially requires calls to malloc(), making this problem more general than just on NEXTSTEP systems.) I think the reason the problem shows up at our site is because our nameserver acts as the secondary for 41 zones. The chances of a zone transfer completing in the middle of something critical is probably greater than at many other sites. Can some of the experts in this forum take a look at my reasoning and let me know if it sounds correct? I've put in code to work around this problem. So if my analysis is wrong, I'd like to know about it. Thanks in advance, Conrad Huang conrad@cgl.ucsf.edu
From: jerry@tivoli.com (Jerry Frain) Newsgroups: comp.sys.next.programmer Subject: strcoll(3) wants three args? Date: 28 Apr 95 05:39:30 GMT Organization: Tivoli Systems Inc., Austin, TX Message-ID: <jerry.799047570@tivoli.com> Like so many other strange and broken things I've found (or not found) on my NextStep 3.2 box, in /NextDeveloper/Headers/ansi/string.h, the following prototype is given for strcoll(3): int strcoll(char *to, size_t maxsize, const char *from); There is also a definition for strcoll in libsys. Every other platform I've seen defines the prototype as: int strcoll(const char *to, const char *from); I can't find ANY documentation on strcoll(3) for NextStep. No man pages, no online docs, etc. What gives? What is the meaning of this mutant prototype? Inquiring minds want (need) to know, -- Jerry Frain | Tivoli Systems, Inc. | "You can have my Indy Jerry.Frain@Tivoli.COM | 9442 Capital of Texas Hwy N| when you pry it from Phone: (512) 794-9070 | Austin, TX 78759, USA | my cold, dead fingers."
Belgium.EU.net!EU.net!howland.reston.ans.net!news.nic.surfnet.nl!tuegate.tue.nl!tuegate.tue.nl!tiggr From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Followup-To: comp.lang.objective-c Date: 28 Apr 1995 10:05:15 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Apr28120515@cobra.es.ele.tue.nl> References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nouf4$p0c@mimsy.cs.umd.edu> In-reply-to: seanl@jujube.cs.umd.edu's message of 27 Apr 1995 20:23:00 GMT In article <3nouf4$p0c@mimsy.cs.umd.edu> seanl@jujube.cs.umd.edu (Sean Luke) writes: TRUE MULTIPLE INHERITANCE Use a depth-first strategy if you like. The syntax could look like: What are (would be) the semantics? CLASS DATA Data could optionally begin with a "-" or "+". If it begins with neither, it's assumed to be "-". As in: Again, what are the semantics? --Tiggr
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: strcoll(3) wants three args? Date: 28 Apr 1995 16:06:14 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3nr3pm$k8a@darkstar.UCSC.EDU> References: <jerry.799047570@tivoli.com> In article <jerry.799047570@tivoli.com> jerry@tivoli.com (Jerry Frain) writes: > Like so many other strange and broken things I've found (or not found) > on my NextStep 3.2 box, in /NextDeveloper/Headers/ansi/string.h, the > following prototype is given for strcoll(3): > > int strcoll(char *to, size_t maxsize, const char *from); > > There is also a definition for strcoll in libsys. > > Every other platform I've seen defines the prototype as: > > int strcoll(const char *to, const char *from); > > I can't find ANY documentation on strcoll(3) for NextStep. No man > pages, no online docs, etc. What gives? What is the meaning of this > mutant prototype? > I don't know about 3.3 Dev, but through 3.2, NeXT has not updated the old 4.3BSD man pages that it inherited to include the ANSI C library. I finally went out and purchased an ANSI C reference manual so that I had some documentation for the functions that have changed significantly from 4.3BSD :-( But the good news is that NeXT's ANSI C implementation seems to be quite good, including strcoll() which according to my reference is correctly defined exactly as NeXT has done so, not with only 2 arguments as suggested. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: da_pate@pavo.concordia.ca (PATERSON, DAVID ANDREW) Newsgroups: comp.sys.next.programmer Subject: Atari 8-bit Homecoming Followup-To: comp.sys.atari.8bit Date: 28 Apr 1995 00:15 -0500 Organization: Concordia University Distribution: world Message-ID: <28APR199500153905@pavo.concordia.ca> News-Software: VAX/VMS VNEWS 1.41 Everyone got their start with computers somewhere. For some, it was a card reader, for others a fleeting glimpse of tape reels. But for many others "computer" will always bring back images of the Zylon fleet attacking your bases in Star Raiders. If that's you, then comp.sys.atari.8bit would like to welcome you back home. If you got your start with the Atari 8-bit line, the 400,800, xl or xe, whether you're Bob Polin, Doug Neubauer, Russ Wetmore or John Smith, we at comp.sys.atari.8bit would like to hear from you. Stop by and say hello. Tell us what you've been up to lately. And maybe dust off that old 800 for another round of Star Raiders, or Preppie, or Blue Max, or MULE, or Archon, or... ||| 6502 > 486 ||| Dave Paterson / | \ DA_PATE@pavo.concordia.ca (Mail address changes 28 Apr. Watch here for details...)
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer From: scottc@agora.rdrop.com (Scott Christley) Subject: JOB OPENING - Multimedia Programmer Sender: news@agora.rdrop.com (USENET News) Organization: RainDrop Laboratories Message-ID: <D7qDAF.Bzu@agora.rdrop.com> Date: Fri, 28 Apr 1995 05:44:38 GMT ANNOUNCEMENT Two Job Openings ---------------- Multimedia company is looking to hire two knowledgeable programmers for an important project. The positions offer a high level of responsibility and personal freedom; we will be working together in a small group to design and implement the next generation of multimedia authoring tools. If you have been looking to get into multimedia then this is your chance! We offer a highly attractive compensation package. The positions will be located in Cleveland, Ohio; and relocation assistance is available. YOU ARE--- highly motivated love to program thrive on problem solving individualistic research minded Job Requirements ---------------- MS or PhD in Computer Science or related field Working knowledge in one or more of these research areas: Artificial Intelligence Fuzzy Logic Expert Systems Neural Networks Natural Language Processing Knowledge Representation Computer Graphics specifically 3D modelling and animation Network protocols Distributed algorithms Speech Synthesis Working knowledge in these practical areas: Programming Languages - C, C++, Objective-C Operating Systems - NEXTSTEP, UNIX, Windows 95/NT GUIs - WIN32, OpenStep, X Windows PC hardware configuration Pluses: Digital video and audio Artistic design Multimedia title production Please email intent to apply to scottc@agora.rdrop.com, be sure to include your email address and US mailing address. You will be sent a small test with a series of questions that you should answer and return as soon as possible. This is not a questionaire!! Answer these questions as truthfully and thoroughly as you can; we use this test to help us gauge your working knowledge in various areas of computer science. Though we prefer email, we will accept US mail at this address: Scott Christley 2014 NW Glisan #211 Portland, OR 97209
Belgium.EU.net!EU.net!howland.reston.ans.net!nntp.crl.com!crl11.crl.com!not-for-mail From: object@crl.com (Robert Smith) Newsgroups: comp.sys.next.programmer Subject: Atlanta Consultant Needed Date: 28 Apr 1995 00:59:40 -0700 Organization: CRL Dialup Internet Access (415) 705-6060 [Login: guest] Message-ID: <3nq79c$1e5@crl11.crl.com>
Belgium.EU.net!EU.net!howland.reston.ans.net!news.cac.psu.edu!news.pop.psu.edu!ra.nrl.navy.mil!cs.umd.edu!ringding.cs.umd.edu!seanl From: seanl@ringding.cs.umd.edu (Sean Luke) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Followup-To: comp.lang.objective-c,comp.sys.next.programmer Date: 28 Apr 1995 01:33:50 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Message-ID: <3npglu$bdg@mimsy.cs.umd.edu> References: <3nouf4$p0c@mimsy.cs.umd.edu> <1995Apr27.232612.6593@il.us.swissbank.com> hendryj@mcs.com wrote: >Sean Luke writes >> TRUE MULTIPLE INHERITANCE >> >> Use a depth-first strategy if you like. The syntax could look like: >> >> @interface _object-name_ : _superclass_ _superclass_ _etc._ (_Category_) >> <_protocol_> >Which brings up the question: With multiple inheritance, what class(es?) does >a Category apply to? Would it really be desireable to have a category which >applies to such a wide range of classes? (Sometimes, yes, but IMHO it >raises the potential for unintended interactions) Category was a gadget invented to provide some of the stuff multiple inheritance gives for free. The way I'd do it is: (_Category_) indicates you're adding methods to the existing methods for _object-name_, and that's it. 'Course, that's what's going on already... Sean Luke U Maryland at College Park seanl@cs.umd.edu Today's Chemical: Aluminum Zirconium Tetrachlorohydrex GLY
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Message-ID: <1995Apr28.150242.4127@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3nmj6d$1sn@delphi.cs.ucla.edu> Date: Fri, 28 Apr 1995 15:02:42 GMT Eskandar Ensafi writes > 1. Forwarding > ---------- > > The -forward:: method is inadequate. It can only reliably return values > whose size == sizeof(id), which is a bummer. > I agree with this. The forwarding mechanism should be extended to allow more flexibility in both return value types and greater (and easier) control over the arguments. > I suggest changing ``-forward:(SEL)aSelector:(marg_list)argFrame'' to a > simpler, more useful method called -forward:(SEL)aSelector. The run-time > system, either through objc_msgSend() or objc_msgSendSuper(), will call > -forward: when an object can't respond to a message. The -forward: method > should return the id of an object that can handle the message. If this > object still can't respond, it too is sent a -forward: message, and so on, > until either an object can respond or -forward: returns nil (inherited > from Object, causing a run-time error). > On the surface, this seems like a good idea, but it limits you to using the same selector that was called in the original message. I have some -forward:: implementations that do not use the original selector, but on a context dependent basis, return the result of a different message. One of the places where I take advantage of this flexibility is in a category of EOGenericRecord which normally has its data accessed through -valuesForKeys: methods. In my -forward:: implementation, it checks the name of the selector to see if it matches any of the key names for the data, or if it matches a -set... name with a key name. If so, it build an NSArray with the key and returns the result of -valuesForKeys:. If you take a look at the -forwardInvocation: and the NSInvocation class in OpenStep, they are heading both toward and away from our goal. It still doesn't allow different sized return types, and does not allow a different selector to be used. However it does provide a simpler mechanism for accessing and changing the method parameters. My suggestion would to make the NSInvocation either mutable, or allow a new NSInvocation instance to be used instead of the one passed to -forwardInvocation:. Additionally, it should support different sized return types using the following mechanism: if a type is sizeof(void *), then it can be returned directly, otherwise, a pointer to the return value is returned (actually, for all I know it may behave this way). -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Belgium.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!news1.channel1.com!ehutch From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXT Developers/Career Positions/4 States Date: 28 Apr 1995 15:50:11 GMT Organization: Norden 1 Communications Message-ID: <3nr2rj$6dd@news1.channel1.com> Positions-------------------Programmers/analysts/developers Platform--------------------NEXTSTEP Language--------------------Objective C Type of positions-----------Career positions Type of companies-----------Major A plus----------------------DB Kit or EOF Opportunities---------------Outstanding Relocation------------------Company assistance Areas-----------------------FLA, Carolina, IN, ILL To be considered------------Fax resume or mail a hard copy. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: Peter.D.Clark@eng.sun.com (Pete Clark) Newsgroups: comp.sys.next.programmer Subject: Re: OpenStep Status? Date: 28 Apr 1995 22:06:53 GMT Organization: Sun Microsystems Inc., Mountain View, CA Distribution: world Message-ID: <3nrott$bvq@engnews2.Eng.Sun.COM> References: <3nrico$rh9@mark.ucdavis.edu> In article <3nrico$rh9@mark.ucdavis.edu> heberlei@cs.ucdavis.edu (Louis Todd Heberlein) writes: > Does anyone know what is the status of OpenStep? Why, yes, actually, I do. :-) > Are the in Beta, golden Beta? Is there any estimated > ship time? Come to SunWorld in May for an update. -- *************************************************************************** Pete Clark | The thinking man looks at the world and SunSoft Object Products Group | sees a comedy. The feeling man looks Peter.D.Clark@eng.sun.com (NeXTMail) | at the world and sees a tragedy. ***************************************************************************
From: erikkay@next.com (Erik Kay) Newsgroups: comp.sys.next.programmer Subject: Re: Dissolving tiff files in info panel Date: 28 Apr 1995 22:12:19 GMT Organization: NeXT Computer, Inc. Message-ID: <3nrp83$ho8@news.next.com> References: <3nel93$m6b@crl.crl.com> In article <3nel93$m6b@crl.crl.com> object@crl.com (Robert Smith) writes: ] How does Workspace Manager dissolve the pictures of the developers into ] each other, when you click on the names? I would like to do something ] like this except take up the entire info panel. Any suggestions? There's an example (and ready for use in Info panels!) in a little game I did a couple of years ago called "Splat". You can get it from the various NEXTSTEP ftp sites, or from my web page: http://www.next.com/~erikkay/ The source you'd be looking for is in EKInfoManager.m. hope that helps, Erik
From: heberlei@cs.ucdavis.edu (Louis Todd Heberlein) Newsgroups: comp.sys.next.programmer Subject: OpenStep Status? Date: 28 Apr 1995 20:15:20 GMT Organization: University of California, Davis Message-ID: <3nrico$rh9@mark.ucdavis.edu> Does anyone know what is the status of OpenStep? Are the in Beta, golden Beta? Is there any estimated ship time? Thanks, Todd Heberlein heberlei@cs.ucdavis.edu
Belgium.EU.net!EU.net!howland.reston.ans.net!swrinde!sgiblab!uhog.mit.edu!news.mathworks.com!uunet!news.inhouse.compuserve.com!news.production.compuserve.com!news From: Clay Goret <76543.3652@CompuServe.COM> Newsgroups: comp.sys.next.programmer Subject: Problems with performQuery and IXFileFinder Date: 28 Apr 1995 17:43:12 GMT Organization: HCGS Message-ID: <3nr9fg$fo8$1@mhadg.production.compuserve.com> I am having a problem using the IXFileFinder class. When I query the file finder using performQuery:atPath:forSender:, it seems to attempt to scan fo r modified or deleted files, regardless of whether I use any and all of the following: [fileFinder setUpdatesAutomatically: FALSE]; [fileFinder setScansForModifiedFiles: FALSE]; [fileFinder setRemovesAutomatically: FALSE]; I know it is scanning for modified or deleted files because my sender respo nds to willTryPath and willAddFile. It seems as if the updateIndexAtPath:forSender is really updating the file finder index, but if I perform a second update, I don't recieve any willAdd File messages, indicating that the index was not added to. Alternatively, the performQuery:atPath:forSender: could be ignoring the flags set to false by the above messages, since *every* time I call it I get willAddFile messages for every file in the path. If anyone has an answer, or even better, a clear example of how this thing should work please feel free to email me (76543,3652@compuserve.com) or pos t. Thanks in advance Clay 76543,3652@compuserve.com \EXIT
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer,comp.lang.objective-c Subject: Re: Stack Overflow handling Followup-To: comp.sys.next.programmer Date: 28 Apr 1995 15:08:02 GMT Organization: The University of York, UK Distribution: world Message-ID: <3nr0ci$hcg@mailer.york.ac.uk> References: <1995Apr18.151629.12082@almserv.uucp> Charles Lloyd (g8uccl@mighty) wrote: > I'm looking for an example of how to handle stack overflow. Any pointers? > Catch-22: I have tried registering a signal handler for SIGSEGV, but when > the stack overflows, there's no more room on the stack to even call my > handler, so I then get an SIGILL (illegal instruction). you can register a separate stack to be used with sigvec and sigstack. here's a quick demo (which works, under NS3.0, at least). hope it helps (and that i'm not the 20th person posting this...) cheers, rog. #include <libc.h> #include <setjmp.h> jmp_buf oops; /* * signal handler - it handles the SIGSEGV signal, and then jumps * back onto the original stack where error handling can take place */ void handler(int sig) { printf("taking interrupt ok - now jumping\n"); longjmp(oops, 1); } /* function that overflows the stack */ void fn(int x) { fn(x + 1); } main() { if (setjmp(oops) != 0) { sigsetmask(0); /* unblock the signal again */ printf("stack overflow handled...\n"); exit(0); } { static char stk[1024]; struct sigstack ss; ss.ss_sp = stk + sizeof(stk) - 1; /* N.B. stacks grow downwards */ ss.ss_onstack = 0; sigstack(&ss, (struct sigstack *)0); } { struct sigvec sv; sv.sv_handler = handler; sv.sv_mask = 0; sv.sv_flags = SV_ONSTACK; sigvec(SIGSEGV, &sv, (struct sigvec *)0); } fn(0); }
From: object@crl.com (Robert Smith) Newsgroups: comp.sys.next.programmer Subject: Atlants NeXT Consultant Date: 28 Apr 1995 18:20:23 -0700 Organization: CRL Dialup Internet Access (415) 705-6060 [Login: guest] Message-ID: <3ns48n$ku4@crl7.crl.com> The Object Shop is looking for an Atlanta area consultant. Call us at (404)524-4492.
Newsgroups: comp.sys.next.programmer From: g8uccl@fnma.com (Charles Lloyd) Subject: NX_RAISE from exception thread Message-ID: <1995Apr28.222517.9167@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae Date: Fri, 28 Apr 1995 22:25:17 GMT Given that I've had trouble with signals, I am trying to use mach exception handling. I need an example of how to affect an NX-RAISE() in an errant thread from the exception handling thread. I suspect that I'll need to use thread_get/set_state(), but an example would be a big help. Thanks, Charles.
From: misha@trotsky.nebo.org (Misha M. Melikov) Newsgroups: comp.sys.next.programmer Subject: Re: Backwards stack frames in 3.3 Edit.app debug browser Date: 29 Apr 1995 04:35:07 GMT Organization: Seanet Online Services, Seattle WA Message-ID: <3nsflr$1ud@kaleka.seanet.com> References: <3n401r$d93@shelob.afs.com> In article <3n401r$d93@shelob.afs.com> Greg_Anderson@afs.com (Gregory H. Anderson) writes: > (For the fortunate people who haven't bothered to upgrade to 3.3 yet, > the basic problem is that the authors of Edit.app decided to reverse > the order of the stack frames in the debug browser -- a good idea, > since you're usually most interested in the most recent frames -- > but neglected to sync the instructions passed to gdb in the Terminal > window. As a result, when you click on what looks like the most recent > stack frame in the browser, Edit focuses on the source file for the > oldest stack frame. It's exactly backwards.) > 8< snip >8 To fix this problem I copied /usr/lib/GdbClient.bundle from 3.2. I have also had to install the 3.2 gdb (/bin/gdb) All seams to work quite well. _________________________________________________________________ Misha M. Melikov Object Software Development Ltd. Columbia Seafirst Center 701 Fifth Ave., Suite 6801 Seattle, WA 98104 fMX
Newsgroups: comp.sys.next.programmer From: g8uccl@fnma.com (Charles Lloyd) Subject: Signal handling in presence of NXApp Message-ID: <1995Apr28.222124.9075@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae Date: Fri, 28 Apr 1995 22:21:24 GMT I need an example showing how to write a signal handler in the presence of the Application event loop. In test apps, I have no problem getting a handler to work repeatedly, but as soon as I put the handler code into an appkit app, the handler can only be invoked once, and then it hangs things. Charles.
From: ghost@ghost.neosoft.com (Mark C. Allman) Newsgroups: comp.sys.next.programmer Subject: Re: strcoll(3) wants three args? Date: 29 Apr 1995 02:14:28 GMT Organization: NeoSoft Internet Services +1 713 968 5800 Distribution: world Message-ID: <3ns7e4$fqq@uuneo.neosoft.com> References: <3nr3pm$k8a@darkstar.UCSC.EDU> Keywords: NeXt, Perl In article <3nr3pm$k8a@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: > In article <jerry.799047570@tivoli.com> jerry@tivoli.com (Jerry Frain) > writes: > > Like so many other strange and broken things I've found (or not found) > > on my NextStep 3.2 box, in /NextDeveloper/Headers/ansi/string.h, the > > following prototype is given for strcoll(3): > > > > int strcoll(char *to, size_t maxsize, const char *from); > > > > There is also a definition for strcoll in libsys. > > > > Every other platform I've seen defines the prototype as: > > > > int strcoll(const char *to, const char *from); > > > > I can't find ANY documentation on strcoll(3) for NextStep. No man > > pages, no online docs, etc. What gives? What is the meaning of this > > mutant prototype? > > > I don't know about 3.3 Dev, but through 3.2, NeXT has not updated the > old 4.3BSD man pages that it inherited to include the ANSI C library. I > finally went out and purchased an ANSI C reference manual so that I had > some documentation for the functions that have changed significantly from > 4.3BSD :-( > > But the good news is that NeXT's ANSI C implementation seems to be > quite good, including strcoll() which according to my reference is > correctly defined exactly as NeXT has done so, not with only 2 arguments > as suggested. Ah, but are you ready for Posix??? Yes, the Posix version of strcoll has 3 arguments!! It's such a joy bouncing back and forth... By the way, this problem comes up when building Perl 5. -- Mark Allman -- Space Shuttle Ascent Flight Design/Analysis, Rockwell Space Ops. Co. -- Grad. Student, Physics, Univ. of Houston -- ghost@ghost.neosoft.com
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer From: jagrant@emr1.emr.ca (John Grant) Subject: Re: JOB OPENING - Multimedia Programmer Message-ID: <D7rq6t.LqF@emr1.emr.ca> Organization: Energy, Mines, and Resources, Ottawa References: <D7qDAF.Bzu@agora.rdrop.com> Date: Fri, 28 Apr 1995 23:20:53 GMT In article <D7qDAF.Bzu@agora.rdrop.com> scottc@agora.rdrop.com (Scott Christley) writes: > >ANNOUNCEMENT > >Two Job Openings >---------------- [...yet another job offering...] The continual stream of job offerings to these groups is reassuring about the health of the industry, but it does raise the noise level measurably. I'd like to see the creation of a new group: comp.os.ms-windows.programmer.jobs or perhaps a more general: comp.os.ms-windows.jobs I know there are other .job groups, but a dedicated Windows programmer .jobs group would seem to be useful. -- John A. Grant jagrant@emr1.emr.ca Airborne Geophysics Geological Survey of Canada, Ottawa
From: st931178@pip.cc.brandeis.edu (Ari Lanin) Newsgroups: comp.sys.next.programmer Subject: Wanted: Video Driver Date: Sat, 29 Apr 1995 02:18:20 -0500 Organization: Brandeis University Message-ID: <st931178-2904950218200001@129.64.112.87> There currently is no NeXTStep Intel video driver for the Cirrus Logic 6440 video circuitry. This circuitry is used by several popular Intel notebook systems, systems which have dominated the portable market (the TI Laptop 4000M is one example, as it is the current top system). Ironically, the only driver which works with it is the generic 2-bit NeXT video driver. If anyone has any informtion about how to get an 8-bit driver, or how to get information about obtaining one, it would be greatly appreciated. If there is no such driver, is there any way to get NeXT to make one, to get the information needed to program one, or to find someone to do it (any takers?). -Ari
From: dicosmo@lotus.ens.fr (Roberto DiCosmo) Newsgroups: comp.sys.next.programmer Subject: Video Drivers: Configuration Keys and Video Modes Date: 29 Apr 1995 15:23:12 GMT Organization: Ecole Normale Superieure Distribution: world Message-ID: <DICOSMO.95Apr29172312@lotus.ens.fr> I have two separate issues I wish to bring to your attention: 1) the "Display Modes" configuration key for drivers supporting different video modes: I seem to miss something of its working 2) the kind of video mode required by the IOSVGADisplay class (it is not specified anywhere I looked in the documentation, and I am getting quite wierd results in my tentative driver for a Cirrus Logic CD6440) 3) this point is just for people a NeXT: from what I could understand, it should not be big deal to support 8-bit color also on chips, like the Cirrus Logic 6440, that do not have linear frame addressing. Even if slower, sloppy/whatever, it would still be color! Can you at least give it a try? Please? Pleeaaseee ? :-) 1) the "Display Modes" configuration key ---------------------------------------- I put the "Display Modes" keyword in the Localizable.strings of the English.lproj, exactly as per documentation, and in configure I can select what I want, but when booting, the call [self selectMode:modeTable count:modeTableCount valid:NULL]; always returns -1. What am I missing here? I looked into the code for the S3 driver, but it is quite involved, and anyway it seems to do just the same call! Do I need to initialize some other structure somewhere? 2) What kind of video mode is required by the IOSVGADisplay class ? ------------------------------------------------------------------- SVGA cards have a lot of video modes available: packed 256 colors, planar 16 color etc. etc. I did not find in the IOSVGADisplay documentation a clear statement about which mode one should put the chip in, for the system to use it properly. To be more precise, as a first step towards writing a driver for an external monitor at 1024x768 resolution (2bit grayscale only, unfortunately), for the Cirrus Logic GD6440, I wrote one for the regular 640x480 resolution, assuming that planar mode 16 colors is ok. Starting from the source of the GD542X that comes with NeXTSTEP, and using the pretty useful WHATVGA program by Finn Thoegersen, I grabbed the register configuration of the GD6440 in 640x480 planar 16 colors mode, modified the GD542X source, also adding the code to check for the 64XX chips by Manfred Brands, compiled and tested. The result is kind of wierd: the system starts up without recognising the configuration keys (well, not big deal at this point), clears the screen pretty well, but then what I get is a very distorted image with the login panel cut into several overlapping pieces/copies that are vertically squeezed by a factor of two roughly. Also, all the graphics is in the upper half of the display, with the lower half plain white but for a narrow band with some vertical lines at the very bottom of the screen. It seems like one line each two is wrapped around in a strange way, that gives the "squeezed aspect" and the cut copies. Wierder: the mouse cursor actually works extremely well: it is not distorted and can move across the full screen. Only when it changes shape from pointer to insertion bar (happens when it passes where the password field should be on the screen) it creates a squeezed copy in two places in the upper half of the screen, where all the graphics is squeezed. My question is: how is it possible that the mouse pointer is properly drawed all around the screen, while all the rest of the graphics is squeezed up and cut/duplicated in the upper half of the screen? Also, when turning off the machine, the panel saying "please wait until it is safe to turn off the computer" is displayed correctly!!!! (even wierder, unless it is the standard VGA driver that has taken over at that point). Am I using the wrong video mode? What am I missing here? Any help idea or suggestion is greatly welcome. -- Roberto Di Cosmo <dicosmo@dmi.ens.fr>, http://www.ens.fr/users/dicosmo/index.html LIENS Ecole Normale Superieure 45, Rue d'Ulm 75005 Paris FRANCE
From: dicosmo@lotus.ens.fr (Roberto DiCosmo) Newsgroups: comp.sys.next.programmer Subject: Re: Wanted: Video Driver Date: 29 Apr 1995 15:27:13 GMT Organization: Ecole Normale Superieure Message-ID: <DICOSMO.95Apr29172713@lotus.ens.fr> References: <st931178-2904950218200001@129.64.112.87> In-reply-to: st931178@pip.cc.brandeis.edu's message of Sat, 29 Apr 1995 02:18:20 -0500 I would pay something for a 6440 color support. Right now I am spending some spare time at least to have an external screen at reasonable resolution: 10224x768, but with wierd results. see my postings ... -- Roberto Di Cosmo <dicosmo@dmi.ens.fr>, http://www.ens.fr/users/dicosmo/index.html LIENS Ecole Normale Superieure 45, Rue d'Ulm 75005 Paris FRANCE
From: JNGF89A@prodigy.com (Herbert Jacksoniii) Newsgroups: comp.sys.next.programmer Subject: 3D graphics and rotating? Date: 29 Apr 1995 17:44:44 GMT Organization: Prodigy Services Company 1-800-PRODIGY Distribution: world Message-ID: <3nttuc$ang@usenetw1.news.prodigy.com> I was wondering if anyone here can tell me how to write a program in Qbasic that will allow me to plot a three dimensional point...how can I get three axis on the screen, and then tell the computer to plot a (x,y, z) point. First I need to know how to do this before I learn how to rotate, although I do know that rotating involves many matrices. Well, if anyone could be of any help, I would really appreciate it. If you could, just respond here or even at Prodigy, at JNGF89A Thanks, Herb
From: nelson@grasshopper.santafe.edu (Nelson Minar) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 28 Apr 1995 16:27:27 GMT Organization: self Message-ID: <3nr51f$o3b@tierra.santafe.edu> References: <3nmj6d$1sn@delphi.cs.ucla.edu> NO! No operator overloading. Honestly, you don't want it. But I have my own list of "I'd like that", too. I'd even consider working on implementing them if I thought there was any chance they'd ever be adopted as a "standard", say maybe in gcc. Is there any serious interest in extending Objective C? NeXT said something about maybe ANSI-fying Objective C, that could be the opportunity. The main thing I want are class variables. They're trivial to implement, easy to understand, and useful. Don't tell me about the standard workaround hack: I know about that. I think the feature should be in the language. -- __ nelson@santafe.edu \/ http://www.santafe.edu/~nelson/
From: oc@hukatronic.cz (Ondra Cada) Newsgroups: comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 29 Apr 1995 16:36:57 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9504290811.AA10813@ocs.hukatronic.cz> References: <3npglu$bdg@mimsy.cs.umd.edu> In article <3npglu$bdg@mimsy.cs.umd.edu> seanl@ringding.cs.umd.edu (Sean Luke) writes: > Category was a gadget invented to provide some of the stuff multiple > inheritance gives for free. Surely. I personally would say the reasonable features of multiple inheritance, omitting the weird ones :) Anyway, in my personal opinion, MI can be easily replaced by forwarding (hopefully using improved forward mechanism, suggested a few msgs ago in this thread). Please, _no_ MI and _no_ operator overloading in ObjC for me. On the other hand, I personally would _very_ appreciate default parameters in ObjC messages, probably using standard initializers in method declaration: -someMethod:par xxx:(int)x=10 yyy:y=nil zzz:(BOOL)z=NO www:w=@"None"; Then one can use eg '[... someMethod:u yyy:v]', which would be equivalent to '[... someMethod:u xxx:10 yyy:v zzz:NO www:@"None"]'. It should be relatively easy to implement; I believe it will save lot of legwork: -xxx:x yyy:y { .... } -xxx:x { return [self xxx:x yyy:nil]; } -xxx { return [self xxx:nil]; } Secondly, I would prefer @private properties declared in @implementation, not in @interface. But here I cannot imagine reasonable implementation. Third opinion, what about special receiver 'mainClass', allowing to address methods replaced by a category? I don't know implementation details of category mechanism in ObjC, so I don't know if this could be implemented easily or not. -- Ondra Cada ocs@earn.cvut.cz NeXTMAIL and MIME OK (please do not reply to hukatronic.cz)
From: hcole@zia.nrcabq.com Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: GS Corp CD not mountable? Date: 29 Apr 1995 21:59:21 GMT Organization: Engineering International Inc., Public Internet Access Distribution: world Message-ID: <3nucrp$plq@mack.rt66.com> Folks, What formats are supposed to be read by a black NeXT CDROM? I have no trouble reading NeXT CDROM's (ie upgrade CD's etc), and no trouble playing music CD's with CDPlayer, however, I just received the Solutions Suite CD from GS Corp, and it refuses to mount. Ditto for a Symantec CD for PC's. In the console window, I can see the software checking for the different formats. Console output: Disk is Write Protected probing for CDROM probing for DOS probing for mac probing for cdaudio at which point the disk is ejected. GS isn't sure what is causing this behavior, and I don't think it's a problem with the hardware. Any suggestions, comments, or even snide remarks are welcome. - HRC -
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer From: gdkuch@neumann.uwaterloo.ca (Jerry Kuch) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Message-ID: <D7tKBp.1I4@undergrad.math.uwaterloo.ca> Sender: news@undergrad.math.uwaterloo.ca (news spool owner) Organization: University of Waterloo References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nr51f$o3b@tierra.santafe.edu> Date: Sat, 29 Apr 1995 23:09:25 GMT In article <3nr51f$o3b@tierra.santafe.edu>, Nelson Minar <nelson@santafe.edu> wrote: > >NO! No operator overloading. Honestly, you don't want it. What's so awful about simple operator overloading like the ability to modify the usual binary operators to handle arithmetic on new classes such as matrices, complex numbers, or whatever? I would find: MatResult = Mat1 + Mat2; a good deal nicer to read than: MatResult = (Matrix *)MatrixAdd(Mat1,Mat2); or similar. It's syntactic sugar, sure, but it's fairly innocuous sugar. Now multiple inheritance... there's something that I can see good arguments against and even then I'm not religious about its inclusion as long as we can somehow train people not to use it moronically and implement it in a non-gauche manner. >But I have my own list of "I'd like that", too. I'd even consider >working on implementing them if I thought there was any chance they'd >ever be adopted as a "standard", say maybe in gcc. Is there any >serious interest in extending Objective C? NeXT said something about >maybe ANSI-fying Objective C, that could be the opportunity. With NeXT's purchase of the rights to Objective C, they're not talking supposedly seriously about trying to get an ANSI-standard for the language. I'd like to see that since it would be nice for it to be able to flourish as an alternative to the increasingly cancerous C++. >The main thing I want are class variables. They're trivial to >implement, easy to understand, and useful. Don't tell me about the >standard workaround hack: I know about that. I think the feature >should be in the language. I wouldn't mind seeing this either, although I'd rather see overloading of binary operators first, which would be reasonably easy to implement even at the preprocessor level as well. -- Jerry Kuch, EMail: gdkuch@neumann.uwaterloo.ca, NeXTMAIL acceptable. IMPORTANT NEWS: As reported in VARIETY, GAMERA - DAIKAIJU KUCHU KESSEN brought in $751,805 in thirteen theaters in Tokyo during its second week of release. This brings the film's two-week total to $1,633,888.
From: them@slip.net (David Mandala) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer Subject: Re: JOB OPENING - Multimedia Programmer Date: Sat, 29 Apr 1995 16:54:02 LOCAL Organization: Slip.Net Message-ID: <them.30.0003E271@slip.net> References: <D7qDAF.Bzu@agora.rdrop.com> <D7rq6t.LqF@emr1.emr.ca> In article <D7rq6t.LqF@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes: >From: jagrant@emr1.emr.ca (John Grant)>Subject: Re: JOB OPENING - Multimedia Programmer > The continual stream of job offerings to these groups is reassuring > about the health of the industry, but it does raise the noise level > measurably. > I'd like to see the creation of a new group: > comp.os.ms-windows.programmer.jobs > or perhaps a more general: > comp.os.ms-windows.jobs > I know there are other .job groups, but a dedicated Windows programmer > .jobs group would seem to be useful. Hmmm... and why would you assume that all multimedia programming jobs are WINDOZ only????? Most multimedia is done under dos for speed which Windoz has a lack of.
Newsgroups: comp.sys.next.bugs,comp.sys.next.programmer From: dimitri@duti609a.twi.tudelft.nl (Dimitri Tischenko) Subject: 3.3 Dev C++ bug Sender: news@dutiws.twi.tudelft.nl (TWI News Administration) Organization: Delft University of Technology Date: Sat, 29 Apr 1995 07:23:08 GMT Message-ID: <D7sCIL.qw@dutiws.twi.tudelft.nl> Unless I'm fooled by C++'s delicate exceptions, this is a bug. The following program, while correct, does not compile with NeXT's 3.3 cc++ (version cc-437.2.6, gcc version 2.5.8). I have found no workaround. What I did find was that in a less complex situation, when A1 and A2 both declare one abstract method instead of two, the order in which the classes are inherited by B is significant. If the class whose method is ovveridden first, is inherited first, the program compiles. Otherwize, you get the same error as in the program below. === example program #include <stdio.h> class A1 { public: virtual void f1(void) = 0; virtual void g1(void) = 0; }; class A2 { public: virtual void f2(void) = 0; virtual void g2(void) = 0; }; class B : public A1, public A2 { }; class C : public B { public: virtual void f1(void) {printf("C::f1\n"); } virtual void f2(void) {printf("C::f2\n"); } }; class D : public C { public: virtual void g1(void) {printf("D::g1\n"); } virtual void g2(void) {printf("D::g2\n"); } }; main(void) { D d; d.f1(); d.g2(); } === Dimitri -- +------------------------------------------------------------------------+ | Dimitri Tischenko | D.B.Tischenko@TWI.TUDelft.NL | NeXTmail preferred! | +------------------------------------+-----------------------------------+ | Delft University of Technology | NeGeN | | Fac Applied Math & Computer Science| NEXTSTEP Gebruikers Nederland | | Dep of Statistics, Probabilitistics| NiNe | | and Operations Research | NEXTSTEP In the Netherlands | +------------------------------------+-----------------------------------+
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer From: pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. In-Reply-To: gdkuch@neumann.uwaterloo.ca's message of Sat, 29 Apr 1995 23:09:25 GMT Message-ID: <PFKEB.95Apr29194710@kaon.SLAC.Stanford.EDU> Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nr51f$o3b@tierra.santafe.edu> <D7tKBp.1I4@undergrad.math.uwaterloo.ca> Date: Sun, 30 Apr 1995 02:47:10 GMT >>>>> On Sat, 29 Apr 1995 23:09:25 GMT, gdkuch@neumann.uwaterloo.ca (Jerry Kuch) said: > What's so awful about simple operator overloading like the ability > to modify the usual binary operators to handle arithmetic on new > classes such as matrices, complex numbers, or whatever? I would > find: > MatResult = Mat1 + Mat2; Looks innocent enough, but I think it opens a can of worms. It seems to me that a lot of what people in this group call yuk in C++ is because of operator overloaing. In C++, the above sum is one by object 'Mat1' and it returns a temporary object which is the sum that must be copied to the result object. One also needs to worry about MatResult = aScalar * Mat1; MatResult = Mat1 * aScalar; MatResult = aScalar * (Mat1 + Mat2); MatResult = Mat1 + Mat2 + Mat3; < etc > To support this, C++ needs function signatures whereby a function is only unique by name AND the number and type of arguments which introduces a complex name managling scheme. I think operator overloading leads to a lot of the complexity of C++. But I also think it is good think for numerical work. But IMHO, if you want it, use C++ and leave Objective-C alone. Of course, if GNU gcc supported Objective-C++ (like NeXT's cc does) then you could have it either way. Now that's a worthwhile extension to gcc! Now, back to preparing my first lecture on C++ for physicists. -- Paul F. Kunz Paul_Kunz@slac.stanford.edu (NeXT mail ok) Stanford Linear Accelerator Center, Stanford University Voice: (415) 926-2884 (NeXT) Fax: (415) 926-3587
From: d89cb@efd.lth.se (Christian Brunschen) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: cmsg cancel <3nvj4k$7bg@nic.lth.se> Control: cancel <3nvj4k$7bg@nic.lth.se> Date: 30 Apr 1995 08:54:02 GMT Organization: Lund Institute of Technology, Sweden Message-ID: <3nvj7a$7bo@nic.lth.se> NNTP-Posting-User: d89cb <3nvj4k$7bg@nic.lth.se> was cancelled from within trn.
From: d89cb@efd.lth.se (Christian Brunschen) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 30 Apr 1995 08:55:02 GMT Organization: Lund Institute of Technology, Sweden Message-ID: <3nvj96$7bv@nic.lth.se> References: <3nmj6d$1sn@delphi.cs.ucla.edu> NNTP-Posting-User: d89cb In article <3nmj6d$1sn@delphi.cs.ucla.edu>, Eskandar Ensafi <esky@marathon.cs.ucla.edu> wrote: > >Hello, > >Since NeXt has acquired the source code for Stepstone Objective-C and >since they've been cleaning up their foundation classes for the OpenStep >specification, I would like to suggest the following change and additions >to Objective-C. > >1. Forwarding > ---------- > > The -forward:: method is inadequate. It can only reliably return values > whose size == sizeof(id), which is a bummer. If you look at the OpenStep specification, you'll see that NeXT are more than aware of that -- and have fixed it. > > I suggest changing ``-forward:(SEL)aSelector:(marg_list)argFrame'' to a > simpler, more useful method called -forward:(SEL)aSelector. The run-time > system, either through objc_msgSend() or objc_msgSendSuper(), will call > -forward: when an object can't respond to a message. The -forward: method > should return the id of an object that can handle the message. If this > object still can't respond, it too is sent a -forward: message, and so on, > until either an object can respond or -forward: returns nil (inherited > from Object, causing a run-time error). > > When a returned id can respond to the message, the run-time system will > jump to the address of the method's implementation using the returned id > as the receiver of the message. This, as I would put it, sucks -- especially compared to what NeXT have already done in OpenStep. To clarify: The new "forward" method is actually - (void) forwardInvocation (NSInvocation *)invocation; So, what's this "NSInvocation" stuff? Well, it's a new class defined in OpenStep. It contains _all_) information about the message that is being attempted: the target, the selector, the argument types, the individual arguments themselves, the return type, and the return value. _Any_ type can be returned by this. No more stupid limitation to ids (or other pointers). Inside the forwardInvocation: method, you can do whatever you want with the invocation. You use a well-defined objective-c interface to the NSInvocation class to get at all aspects of the message invocation, through the NSInvocation class. You can get and set each argument to your heart's content, and set the return value, and whatever. In your scenario above, the only useful thing the forward: method can do is forwarding messages. However, with the OpenStep approach, I can do whatever I want, including handle the call myself, or pass it on to another object with modified arguments, or pass it on to _several_ different objects, or .... (get my drift?) Also note that you yourself can construct your own NSInvocation object, at runtime, and then dispatch it and collect the return value. > >2. Operator Overloading > -------------------- > > Mixing C++ with Obejctive-C doesn't solve the problem of overloading > in Objective-C classes. I don't think it would be too hard to add > overloading to the Objective-C compiler. Here's the proposed syntax: First of all, there is no "overloading problem" in Objective-C. The reason wjy C++ has operator overloading is _not_ that it has some great value in the object-oriented sense -- but rather that C++ was designed to be a "better C" first, and an object-oriented language second. It does this rather well, but I prefer Objective-C, where an operator is an operator, and a method is a method. (Of course, we could allow certain names for methods -- "+" for instance -- but it should still be handles like an ordinary method call: [object1 +: object2]; ) The problem with "operator overloading" is inherent in the way that C++ and Objective-C were constructed: On top of an existing language (C). If you take a look at Smalltalk, for instance, there is no such problem: Everything is a method, because everything is an object. Yes, integers are objects! To add two integers, you send one of them a message (called "+") with another integer as an argument. No operator overloading in sight. Again, back to the differences between C++ and Objective-C: In C++, the object-oriented stuff is designed to mimic the existing C language -- hence, operators have to be catered for, so that C++ classes can look as similar to C types as possible. And for this purpose, they're great -- but they add a _loyt_ of interesting complexity to the code necessary to implement the classes. In Objective-C, in contrast, the object-oriented stuff is clearly separated from the "C" parts of the language: method calls have a syntax that greatly differs from function calls in C, Objective-C has its own type system (with runtime type information and stuff). You will note that ain most code, (apart from variable declarations), _every_ reference to an object is either in the header of a method declaration/definition, or inside a method call -- where it is bracketed inside [], and clearly different from the "C" language parts of the program (the for() loops, the integers, the floats ...) If you start adding overloading to Objective-C you're going to destroy that distinction. And I beleive that in a hybrid language such as Objective-C, this distinction is valuable (even necessary); contrast this, again, wiuth Smalltalk, where everything is an object, so no such distinction is necessary or even useful. >3. Static Binding > -------------- > Stepstone's compiler had it. It would be nice to see it in NeXT/GNU. Well, this _could_ be useful in some situations -- but, if you put that in, then a lot of the power of being able to use poseAs: for instance, is going to vanish, because posing will have no effect. As I see it, the losses far outweigh the gain. The incredible flexibility of the runtime system is what, in my view, makes Objective-C a much better language (for my purposes) than C++. Of course, this flexibility is expected in Smalltalk, for instance, but Smalltalk isn't quite as compiled as Objective-C is. > >Later, > >Eskandar > >-- >KiNDa LiKe a DoG WiTH SeVeN PuPiLS iN iTS eYe L E F T H A N D >KiNDa LiKe a MaDNeSS THaT ReFuSeS To SuBSiDe B L A C K >KiNDa LiKe eVeRYTHiNG You WaNT JuST WiTHiN YouR GRaSP - - - - - - - - >KiNDa LiKe HoW a BaNSHee-WaiL DaNCeS oN a LiViNG HeaRT... D a n z i g // Christian Brunschen -- | Christian Brunschen, Husmansv. 26, S-227 38 Lund, Sweden | | voice/fax/data +46 (0)46 139345, email d89cb@efd.lth.se | | PGP 2.2 Public Key available on request. | ObCelebrityQuote: | | "Oh, foo." | | - Andrew R. Koenig (ark@research.att.com) after dropping a piece | | of chalk during a lecture on C++ in Lund, Sweden, April 1993 |
From: julie5000@aol.com (Julie5000) Newsgroups: comp.sys.next.programmer Subject: ===>> Call *internationally* SUPER-CHEAP/ from any country!!! Date: 30 Apr 1995 14:02:39 -0400 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3o0jbv$o2e@newsbf02.news.aol.com> ===>> Call *internationally* SUPER-CHEAP/ from any country!!! Hi, My name is Julie Conners. I make a lot of calls overseas . Six months ago I just found a USA international long distance company that charges very, very cheap rates for all calls originating in any country and terminating in any other country. If you forward this completed form back to them at: rajesh@freenet.fsu.edu they will send you email describing all their savings programs. Please do not email me as I am just a happy customer and a *busy* student. I don't have time to even complete my thesis in time, let alone run my part-time software business! Email them directly at: rajesh@freenet.fsu.edu If you sign-up, I get a $2.00 finder's fee from their agent. :) *-----------------------cut here--------------------------------* Request for more free info on International Calling Plans: email this form back to: rajesh@freenet.fsu.edu (sorry, but no form sent back = no response) my name is: my internet email address is: the main 2 countries I would be calling between: 30 Julie Conners *-----------------------cut here--------------------------------* he will send you a full description on the company's savings plans for international long distance, without any obligation to sign-up. If you like what you see you can send back the application and he will get you set-up within 2-30 days after he gets your application back by fax or by mail. It only took 2 days for him to set me up and my parents up (who are overseas). Please don't forget to fill-in and forward back the above form. Requests for info without the form filled in will go unanswered. Sorry. :( They can also arrange it so my family (who still lives overseas) can call me for a lot less than they would pay through the long distance tel. company there. My family can even call their friends in other countries for less than they would pay from the loca telco. The local telco. overseas can do nothing about this nice way of *bypassing* them. :) They bill in 6 second increments, with a 30-second minimum (great for quick faxes). This means that if I talk for 1 minute and 6 seconds I pay only for 1.1 minutes, not 2 minutes. But the best part of all is that it is a flat rate pricing. I can call *anytime* at all for the same price. I don't have to wake someone up there or wait till the weekend to call. Here are their rates in US Dollars to *all* countries *from the USA* (NOTE: from countries other than the USA back to the USA with their call-back program, add 10 cents per minute to the below rates; for calls originating in a country other than the USA and terminating in a country other than the USA, add the two countries rates below together and then add on 20 cents to calculate the total cost from one country to another) COUNTRY $/Minute ------- ----------- AFGHANISTAN 1.37 ALBANIA 1.10 ALGERIA 1.00 AMERICAN SAMOA .80 ANDORRA .54 ANGOLA 1.60 ANGUILLA .66 ANTIGUA .66 ARGENTINA .75 ARMENIA 1.20 ARUBA 1.10 ASCENSION ISLAND 1.59 AUSTRALIA .41 AUSTRIA .45 AZERBAIJAN 1.10 BAHAMAS .38 BAHRAIN 1.06 BANGLADESH 1.75 BARBADOS .66 BELARUS .85 BELGIUM .45 BELIZE .75 BENIN 1.55 BERMUDA .66 BHUTAN 3.64 BOLIVIA .75 BOTSWANA 1.38 BRAZIL .75 BRITISH VIRGIN ISL .66 BRUNEI .99 BULGARIA .85 BURKINA FASO 1.92 BURUNDI .92 CAMBODIA 2.08 CAMEROON 1.85 CANADA .22 CAPE VERDE ISLAND 1.61 CAYMAN ISLANDS .66 CENTAL AFRICAN REP 3.40 CHAD 3.52 CHILE .75 CHINA 1.40 CHRISTMAS ISLAND 2.68 COLOMBIA .75 COMOROS ISLAND 3.52 CONGO 1.18 COOK ISLANDS 3.71 COSTA RICA .75 CROATIA .85 CUBA 1.20 CYPRUS 1.27 CZECHOSLOVAKIA .85 DENMARK .45 DJIBOUTI 1.82 DOMINICA .66 DOMINICAN REPUBLIC .72 ECUADOR .75 EGYPT 1.02 EL SALVADOR .75 EQUATORIAL GUINEA 3.30 ESTONIA .85 ETHIOPIA 1.72 FAEROE ISLANDS .45 FALKLAND ISLANDS .75 FIJI ISLANDS 1.76 FINLAND .45 FRANCE .41 FRENCH ANTILLES .75 FRENCH GUIANA .75 FRENCH POLYNESIA 1.60 GABON, REP OF 1.43 GAMBIA 1.20 GEORGIA 1.10 GERMANY, EAST .41 GERMANY, WEST .41 GHANA 1.00 GIBRALTAR 1.30 GREECE .50 GREENLAND .97 GRENADA .66 GUADELOUPE .75 GUAM .66 GUANTANAMO BAY .75 GUATEMALA .75 GUINEA 2.02 GUINEA BISSAU 2.38 GUYANA .75 HAITI .75 HONDURAS .75 HONG KONG .51 HUNGARY .85 ICELAND .45 INDIA .98 INDONESIA 1.21 IRAN 1.88 IRAQ 1.64 IRELAND, REP OF .45 ISRAEL .89 ITALY .45 IVORY COAST 1.54 JAMAICA .66 JAPAN .45 JORDAN .95 KAZAKHSTAN 1.95 KENYA 1.30 KOREA .74 KYRGYZSTAN 1.10 KUWAIT 1.06 LAOS 2.94 LATVIA .85 LEBANON 1.33 LESOTHO 1.42 LIBERIA .79 LIBYA 1.39 LIECHTENSTEIN .45 LITHUANIA .85 LUXEMBOURG .45 MACAO 1.45 MACEDONIA 1.30 MADAGASCAR 3.41 MALAWI 1.20 MALAYSIA 1.10 MALDIVES 2.79 MALI 2.27 MALTA 1.42 MARSHALL ISLANDS 1.71 MAURITANIA 2.34 MAURITIUS 2.38 MAYOTTE ISLAND 2.33 MICRONESIA 1.70 MOLDOVA 1.40 MONACO .45 MONGOLIA 2.65 MONTSERRAT .66 MOROCCO 1.47 MOZAMBIQUE 1.56 MYANMAR 3.17 NAMIBIA 1.23 NAURU 1.36 NEPAL 1.99 NETHERLANDS .45 NETHERLANDS ANT .75 NEVIS 1.19 NEW ZEALAND .55 NICARAGUA .75 NIGER 2.02 NIGERIA .88 NIUE 2.73 NORWAY .45 OMAN 1.48 PAKISTAN 1.49 PALAU 2.71 PANAMA .75 PAPUA NEW GUINEA 1.44 PARAGUAY .75 PERU .75 PHILIPPINES .89 POLAND .85 PORTUGAL .50 QATAR 1.11 REUNION ISLAND 2.34 NEW CALEDONIA 1.55 ROMANIA 1.15 RUSSIA (CIS) .85 RWANDA 2.43 SAIPAN 1.05 SAN MARINO 1.20 SAO TOME & PRINCIPE 1.95 SAUDI ARABIA .89 SENEGAL 1.10 SERBIA .85 SEYCHELLES ISLANDS 1.70 SIERRA LEONE 3.24 SINGAPORE .41 SLOVENIA 1.05 SOLOMON ISLANDS 1.66 SOUTH AFRICA .69 SPAIN .50 SRI LANKA 1.21 ST. HELENA 2.33 ST. KITTS .66 ST. LUCIA .66 ST. PIERRE & MIQUEL .75 ST. VINCENT .66 SUDAN 2.76 SURINAME .75 SWAZILAND 1.38 SWEDEN .35 SWITZERLAND .45 SYRIA 2.15 TAIWAN, REP OF .61 TAJIKISTAN 1.20 TANZANIA 1.16 THAILAND 1.10 TOGO, REP OF 1.56 TONGA 2.12 TRINIDAD & TOBAGO .66 TUNISIA 1.14 TURKEY 1.11 TURKMENISTAN 2.35 TURKS & CAICOS .66 TUVALU 2.82 UGANDA 1.40 UKRAINE .85 UNITED ARAB EMIRATE .92 UNITED KINGDOM .35 URUGUAY .75 UZBEKISTAN 1.20 VANUATO 3.45 VATICAN CITY .85 VENEZUELA .75 VIETNAM 2.07 WALLIS 3.01 YEMEN ARAB REPUBLIC 1.03 YEMEN DEM REP 1.03 YUGOSLAVIA .85 ZAIRE 1.34 ZAMBIA 1.12 ZIMBABWE 1.45 MEXICO: Rate PER Step MIN ---- --- 1 .36 2 .36 3 .57 4 .71 5 .71 6 .91 7 .95 8 1.06 Please don't forget to fill-in and forward back the form near the top of this message. Requests for info without the form filled in will go unanswered. Sorry. :( Sincerely, Julie Conners
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer Subject: Re: JOB OPENING - Multimedia Programmer Date: Sun, 30 Apr 1995 19:05:57 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950430200557.1240AACUG.malc@daneel> References: <D7qDAF.Bzu@agora.rdrop.com> <D7rq6t.LqF@emr1.emr.ca> <them.30.0003E271@slip.net> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII > Hmmm... and why would you assume that all multimedia programming > jobs are WINDOZ only????? Most multimedia is done under dos for > speed which Windoz has a lack of. > ... and much multimedia (e.g. Doom as the most conspicuous product) is done under NEXTSTEP, because having the best development tools helps even more... ;-) Have fun, mmalc.
From: english@primenet.com (Lawson English) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer Subject: Re: JOB OPENING - Multimedia Programmer Followup-To: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer Date: 30 Apr 1995 20:23:24 GMT Organization: Primenet Message-ID: <3o0rjs$61s@news4.primenet.com> References: <D7qDAF.Bzu@agora.rdrop.com> <D7rq6t.LqF@emr1.emr.ca> <them.30.0003E271@slip.net> <950430200557.1240AACUG.malc@daneel> mmalcolm Crawford (m.crawford@dcs.shef.ac.uk) wrote: : > Hmmm... and why would you assume that all multimedia programming : > jobs are WINDOZ only????? Most multimedia is done under dos for : > speed which Windoz has a lack of. : > : ... and much multimedia (e.g. Doom as the most conspicuous product) is done : under NEXTSTEP, because having the best development tools helps even more... : ;-) : Have fun, : mmalc. Most multi-media CD work has been done on Macs, because 1) MacroMind and other multi-media authoring systems were created first on Macs; 2) up until the last year or so, more Macs had CD-ROM drives than PC's did; 3) QuickTime is the cross-platform multi-media library of choice and it is more stable and feature-laden on the Mac than on the PC; 4) It is easier and cheaper to develop and support a Mac multi-media project and port it to the PC than the other way around. Debugging multi-media projects on the Mac generally means making sure that your application doesn't have a bug. Debugging them on PC's means first making sure that it isn't the specific clone that is causing the problems, and THEN debugging the application... -- ------------------------------------------------------------------------------- Lawson English __ __ ____ ___ ___ ____ english@primenet.com /__)/__) / / / / /_ /\ / /_ / / / \ / / / / /__ / \/ /___ / -------------------------------------------------------------------------------
From: julie5000@aol.com (Julie5000) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3o0jbv$o2e@newsbf02.news.aol.com> Control: cancel <3o0jbv$o2e@newsbf02.news.aol.com> Date: Sun, 30 Apr 1995 20:23:51 GMT Organization: OpenVision Technologies, Inc. Sender: root@newsbf02.news.aol.com Message-ID: <cancel.3o0jbv$o2e@newsbf02.news.aol.com> Cancelling spam. See explanation in news.admin.net-abuse.misc.
Control: cancel <D7rq6t.LqF@emr1.emr.ca> Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer From: jagrant@emr1.emr.ca (John Grant) Subject: cmsg cancel <D7rq6t.LqF@emr1.emr.ca> Message-ID: <D7vK0E.A08@emr1.emr.ca> Sender: jagrant@emr1.emr.ca (John Grant) Organization: Energy, Mines, and Resources, Ottawa References: <D7qDAF.Bzu@agora.rdrop.com> <D7rq6t.LqF@emr1.emr.ca> Date: Mon, 1 May 1995 00:57:50 GMT <D7rq6t.LqF@emr1.emr.ca> was cancelled from within rn. -- John A. Grant jagrant@emr1.emr.ca Airborne Geophysics Geological Survey of Canada, Ottawa
From: Shannon Rudee Newsgroups: comp.sys.next.programmer Subject: I need information about Virtual Realities!!!! Date: 1 May 1995 01:38:55 GMT Organization: Principia Message-ID: <3o1e3f$86t@spectre.prin.edu> I am looking for articles and information about Virtual Realities. I know that it has been used for a variety of things besides just games, and I am interested in finding out about how it is marketed as well as how it was started. Any information or suggestions for visual aids would be appreciated. Please send ideas or information to: sdr4621@spectre.prin.edu Any information would be appreciated. Thanks!! Shannon Rudee
From: them@slip.net (David Mandala) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer Subject: Re: JOB OPENING - Multimedia Programmer Date: Sun, 30 Apr 1995 19:20:36 LOCAL Organization: Slip.Net Message-ID: <them.33.00224268@slip.net> References: <D7qDAF.Bzu@agora.rdrop.com> <D7rq6t.LqF@emr1.emr.ca> <them.30.0003E271@slip.net> <950430200557.1240AACUG.malc@daneel> <3o0rjs$61s@news4.primenet.com> >: mmalc. >Most multi-media CD work has been done on Macs, because 1) MacroMind and >other multi-media authoring systems were created first on Macs; 2) up >until the last year or so, more Macs had CD-ROM drives than PC's did; 3) >QuickTime is the cross-platform multi-media library of choice and it is >more stable and feature-laden on the Mac than on the PC; 4) It is easier >and cheaper to develop and support a Mac multi-media project and port it to >the PC than the other way around. Debugging multi-media projects on the >Mac generally means making sure that your application doesn't have a bug. >Debugging them on PC's means first making sure that it isn't the specific >clone that is causing the problems, and THEN debugging the application... Hmmmm, given that multimedia started back before: a) the Macintosh, b) MacroMind and other multi-media authoring systems were created c) CD-ROM drives have little to nothing to do with multi-media d) see a above e) get a life moving from the mac to anything is a large pain. So many people seem to think that multimedia was started by Apple and the Macintosh computer. I'll admit its a great hype trip for Apple, however if one checks multimedia applications started happening around 1980 - 1981 and have continued forward from there (and thats only what started using CP/M, let alone any systems using UNIX). Yes, of recent times (last 5 years) the Macintosh has come into its own with authoring systems and such, and some day the prices may event come down enough to make the Macintosh a market, and the advent of Apple admitting defeat and allowing cloning which will allow second and third sources of computers. All of this will help the Macintosh computer line, but for now it is not the crown jewel of multimedia. Oh yea, the macintosh as a stable OS, come on, how about all the standard bombs that happen oh so often on the macintosh. Please........ get real.
From: finton@homer.cs.wisc.edu (David Finton) Newsgroups: comp.sys.next.programmer Subject: Looking for something like [someTextField isTextSelected] ?? Date: 1 May 1995 02:32:05 GMT Organization: University of WI, Madison -- Computer Sciences Dept. Message-ID: <3o1h75$at8@spool.cs.wisc.edu> I know that a TextField object recognizes the method selectText:, but I can't find a method to ask the TextField if its text has been selected. Is there a simple way to do this? I have a window with several TextFields. When the user clicks an action button, the app does a calculation and writes text into a scrollable text region. What I'd like is to return the cursor to the TextField which was being edited just before the user pushed the button, and select the text there. Therefore, I want to be able to query the TextFields when the button is pushed to see which of them is the active one. Is there a simple way to do this? I thought there might be a better way of doing this by making the separate TextFields a matrix of TextFields, except that I couldn't figure out how to make the different cells be of different lengths in Interface Builder. So I don't want to use a matrix here. Thanks for any and all tips! David Finton
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 1 May 1995 04:15:09 GMT Organization: Digital Fix Development Message-ID: <3o1n8d$qda@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment - Status reports on GNUStep, a freely-available implementation of OpenStep now being developed NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.nmr.embl-heidelberg.de/pub/next/ eduStep ftp://ftp.next.com: See below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
Newsgroups: comp.protocols.tcp-ip.domains,comp.sys.next.programmer From: marka@syd.dms.CSIRO.AU (Mark Andrews) Subject: Re: problem with BIND 4.9.3 beta 17 on black hardware Message-ID: <D7vJKC.D5n@syd.dms.CSIRO.AU> Sender: news@syd.dms.CSIRO.AU Organization: CSIRO Division of Mathematics and Statistics, Australia References: <conrad.799023861@cgl.ucsf.edu> Date: Mon, 1 May 1995 00:48:11 GMT In article <conrad.799023861@cgl.ucsf.edu> conrad@cgl.ucsf.edu (Conrad Huang %CGL) writes: >A few weeks ago, I posted an article asking whether anyone has had >problems with BIND 4.9.3 beta 17 hanging on a NeXT machine. Only one >person answered (thank you, Jack) and he had no problems. After BIND >hung several more times, I looked into the problem in more detail. > >The symptoms of the problem are that named does not answer queries and >consumes 99% CPU time on our NeXT Turbo. If I stop the process and >attach a debugger to it, this is the output I get from a backtrace >(edited for readability): > > #0 0x50089ee in swtch_pri () > #1 0x5024738 in cthread_yield () > #2 0x502471e in mutex_wait_lock () > #3 0x502e26e in _malloc_fork_prepare () > #4 0x502e23e in _cthread_fork_prepare () > #5 0x500857e in fork () > #6 0xd9ba in tryxfer () at ns_maint.c:887 > #7 0xd934 in endxfer () at ns_maint.c:862 > #8 0x50083ac in _sigtramp () > #9 0x50090b8 in nxzonemalloc () > #10 0x5009968 in malloc () > #11 0x6694 in savename (name=0x3fff78c "17.49.218.128.in-addr.arpa", > len=2) at db_save.c:89 > #12 0x649a in nlookup (name=0x3fff78c "17.49.218.128.in-addr.arpa", > htpp=0x3ffe4f4, fname=0x3ffe4d8, > insert=8) at db_lookup.c:149 > #13 0x6a46 in db_update (name=0x3fff78c "17.49.218.128.in-addr.arpa", > odp=0x1f2768, newdp=0x1f2768, flags=1, > htp=0x1faa24) at db_update.c:224 > #14 0x55a4 in db_load (filename=0x1f26f0 "xxx49.rev.bak", > in_origin=0x3ffe58c "zzzz.xxx.ucsf.EDU", > zp=0x223cc, def_domain=0x0) at db_load.c:699 > #15 0xdabe in loadxfer () at ns_maint.c:917 > #16 0xb2a0 in main (argc=1, argv=0x5002bc4, envp=0x3fffd8c) > at ns_main.c:611 > >#6 through #10 indicate that, in the middle of a malloc() call, a >SIGCHLD was signaled when a zone transfer completed. The tryxfer() shows >that named was trying to start another zone transfer. #0 through #5 >indicate that fork() was trying to clean up something in the malloc() >package and is becoming deadlocked because #9 or #10 has the lock but >cannot proceed. At this point, the process hangs in a busy wait, eating >up CPU time but doing nothing else (matching the symptoms). > >This is my analysis of the problem, and (assuming I am right) I have the >following questions: > > Why does fork() on NEXTSTEP need to mess with malloc()? > Why does named try to do something as complicated as starting > a new process in a signal handler? (From the code, it > appears that starting a new process potentially requires > calls to malloc(), making this problem more general than > just on NEXTSTEP systems.) > >I think the reason the problem shows up at our site is because our >nameserver acts as the secondary for 41 zones. The chances of a zone >transfer completing in the middle of something critical is probably >greater than at many other sites. > >Can some of the experts in this forum take a look at my reasoning and >let me know if it sounds correct? I've put in code to work around this >problem. So if my analysis is wrong, I'd like to know about it. > >Thanks in advance, > >Conrad Huang >conrad@cgl.ucsf.edu Your analysis looks correct. As a first step I would just set a flag and call sched_maint() instead of tryxfer() and call tryxfer() from the main loop. Mark
Newsgroups: comp.sys.next.programmer From: andrew@ellcia.demon.co.uk (andrew) Subject: Re: Bundles and file extensions Keywords: bundles, file, extensions, segment Organization: Arzana Limited Date: Mon, 1 May 1995 09:52:13 +0000 Message-ID: <D7w8r1.5LG@ellcia.demon.co.uk> Sender: usenet@demon.co.uk Just a quick follow up on my own recent post ... In response to: > > As a bundle, it is not "directly" apparent how to let the workspace > manager know you offer a new kind of file extension and icon for that > extension. > > Would it be possible to link in the relevant section ? If so, would the > workspace manager look for it, if it wasn't in a .app wrapper ? > > Or maybe there is a simpler way to register the extension with the > workspace manager ? > > Anyone tackled this issue before ? I have a sneaky feeling NeXT didn't > expect bundles to add new file extension and icons ... could be wrong > though (fingers crossed 8) > Just incase anyone else comes across this issue. NeXTSTEP doesn't yet cater for this type of situation. Which seems strange considering the possibilities offered by dynamic module loading. I did re-write various bundle makefile's to create the relevant section and icon within the bundle and then include the .iconheader file - but alas this was stumped by the compiler not letting you do it 8-( The only other way of achieving your own icons and file types for a bundle seems to be using a dummy app, such as "Unknown.app" (available at ftp.cs.orst.edu - /software/NeXT/sources/next-interface/Unknown.tar.Z) that has your requested file extension and icon registered with it. If anyone knows different though, I'd love to hear 8-) Best things --- Andrew D. Forkes
Newsgroups: comp.sys.next.programmer From: (Raul Alvarez) Subject: Re: JOB OPENING - Multimedia Programmer Message-ID: <1995May1.131308.25452@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <them.33.00224268@slip.net> Date: Mon, 1 May 1995 13:13:08 GMT What is multimedia? Isn't it when you combine sound, music, images and video? I think the first computers that were able to do all of these at the same time were the Atari ST, and the Amiga 1000. I still believe my Amiga 2000 does all of these things better than my 100MHz Pentium with PCI...
From: Christopher Caserio <ccaserio> Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 1 May 1995 16:38:55 GMT Organization: Micrognosis Message-ID: <3o32qv$53a@supernova.micrognosis.com> References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nvj96$7bv@nic.lth.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit d89cb@efd.lth.se (Christian Brunschen) wrote: > >>3. Static Binding >> -------------- >> Stepstone's compiler had it. It would be nice to see it in NeXT/GNU. > >Well, this _could_ be useful in some situations -- but, if you put >that in, then a lot of the power of being able to use poseAs: for >instance, is going to vanish, because posing will have no effect. As I >see it, the losses far outweigh the gain. The incredible flexibility >of the runtime system is what, in my view, makes Objective-C a much >better language (for my purposes) than C++. Of course, this >flexibility is expected in Smalltalk, for instance, but Smalltalk >isn't quite as compiled as Objective-C is. > The Stepstone implementation of static binding allows overloading. This was one of the requirements for that feature. Besides, the ICpak201 library used posing for many purposes, and we could not blow that away (at the time, anyway :-) There was a great deal of agonizing at Stepstone over just what was meant by static binding, or, as I prefer, early binding, in Objective-C. It allows a significant performance advantage over dynamic binding when you know the class of an object. The down side is a post-linking step to create the per-module virtual tables which are used to implement method calls to early-bound objects. Except on VMS, where the linker can create the tables on the fly. Posing is also *much* more complicated, as it involves scanning the virtual tables to patch method references. Gosh, that was fun to code, though... ------------------------------------------------------------------------------- Christopher P. Caserio Objex Consulting 203.596.7758 objex@pcnet.com 80 Randolph Avenue Waterbury, CT 06710
Newsgroups: comp.sys.next.programmer From: empath@netcom.com (Tim Triemstra) Subject: 3.2->3.3 breaks code?? Message-ID: <empathD7wsGC.J8o@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Mon, 1 May 1995 16:57:48 GMT Sender: empath@netcom10.netcom.com I wish I could come up with a better title, but I have a problem that was caused by the upgrade from 3.2 developer to 3.3. I'm assuming this isn't a bug but it is confusing me. I had a function that was supposed to be passed a typedef'd parameter which is a pointer to a function as a class member of a specified class. It looks something like (int)(MyClass::*)() but the paren's ay be off. Either way, the code to actually pass the function name DID work, although it may have had a warning, no way to see anymore. Now, I get a message of "CONVERSION TO NON-SCALAR TYPE REQUESTED" which I can't seem to decypher. If I try some other syntax to cast the function name I get improper data type messages, so I'm sure that the type I'm sending when I get the above message is the proper type. Could anyone suggest a way to get around this? I've tried telling the compiler to be real weak on checking but this just causes other errors before it even gets to my code. Any help or pointers would be GREATLY appreciated as this is pretty important. -- Tim Triemstra ... empath@netcom.com ... Detroiter at Heart The RED WINGS rule! They sometimes take a vacation during the holidays unfortunately.
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer From: patrick@vega.oes.amdahl.com (Patrick Horgan) Subject: Re: JOB OPENING - Multimedia Programmer Message-ID: <D7wvo5.Kz1@ccc.amdahl.com> Sender: netnews@ccc.amdahl.com (Usenet Administration) Organization: Amdahl Corporation References: <D7qDAF.Bzu@agora.rdrop.com> <D7rq6t.LqF@emr1.emr.ca> <them.30.0003E271@slip.net> <950430200557.1240AACUG.malc@daneel> <3o0rjs$61s@news4.primenet.com> Date: Mon, 1 May 1995 18:07:17 GMT What about Amigas? Sorry, couldn't resist. Patrick -- _______________________________________________________________________ / These opinions are mine, and not Amdahl's (except by coincidence;). \ | (\ | | Patrick J. Horgan Amdahl Corporation \\ Have | | patrick@amdahl.com 1250 East Arques Avenue \\ _ Sword | | Phone : (408)992-2779 P.O. Box 3470 M/S 316 \\/ Will | | FAX : (408)773-0833 Sunnyvale, CA 94088-3470 _/\\ Travel | \___________________________O16-2294________________________\)__________/
From: oc@hukatronic.cz (Ondra Cada) Newsgroups: comp.sys.next.programmer Subject: DO+exceptions Date: 1 May 1995 15:22:42 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9505011023.AA14241@ocs.hukatronic.cz> Hi all, Using DistributedObjects and exceptions I've met these problems - could somebody give explanation and/or suggest workaround? Thanx. 1) [NSException raise...] on server side really triggers exception on client side, but the variable 'exception' in client's handler seems to be uninitialized?!? 2) [NSException raise...] in server's _oneway_ method - does nothing if client is not an application - _kills the application client_ with message "Exception handlers were not properly removed. IOT trap" in errlog -- Ondra Cada ocs@earn.cvut.cz NeXTMAIL and MIME OK (please do not reply to hukatronic.cz)
Newsgroups: comp.sys.next.programmer From: slayton@netcom.com (csh) Subject: Chicago NUG Message-ID: <slaytonD7wyLC.FrF@netcom.com> Summary: Chicago NUG meeting Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Mon, 1 May 1995 19:10:24 GMT Sender: slayton@netcom9.netcom.com Does anyone know when the next NUG meeting is in downtown Chicago? Thanks. Stephen slayton@netcom.com p.s. I contacted the person in the FAQ, but he told me to contact universities. -- Stephen slayton@netcom.com
From: Mike Hostetter <Michael_Hostetter@JHUAPL.Edu> Newsgroups: comp.sys.next.programmer Subject: Class Attributes? -- help Date: 1 May 1995 20:08:53 GMT Organization: Johns Hopkins University Applied Physics Lab, Laurel, MD, USA Message-ID: <3o3f4l$jaf@aplinfo.jhuapl.edu> Sages All, I would like to create a class that has an attribute that is not available to the instances of the class (like the 'name' attribute(?) that is accessed by the '+ name' or '+ version' class methods of the Object class). Can anyone tell me how (or if) this is done? Thanks, Mike (new at NeXT programming)
From: schellenbg_s@fhrz10.fh-frankfurt.de Newsgroups: comp.sys.next.programmer Subject: Re: UNIX signals on NEXTSTEP/Mach-OS Message-ID: <1995May1.105631.98@fhrz10.fh-frankfurt.de> Date: 1 May 95 10:56:31 TCPWA References: <1995Apr24.230846.94@fhrz10.fh-frankfurt.de> <TIGGR.95Apr25210445@cobra.es.ele.tue.nl> Organization: Fachhochschule Frankfurt am Main In article <TIGGR.95Apr25210445@cobra.es.ele.tue.nl>, tiggr@es.ele.tue.nl (Pieter Schoenmakers) writes: > In article <1995Apr24.230846.94@fhrz10.fh-frankfurt.de> schellenbg_s@fhrz10.fh-frankfurt.de writes: > > I'm writing a program that will execute in the background and can > therefore only be influenced by signals and similar mechanisms. > > This assertion is wrong, since, luckily, IPC has been invented long ago. Yes, I know ;-). But because I want only to stop the process, have it dump its state or delay execution, I don't want to open named pipes or something like that. So I catch some signals and the user can just type "kill -signal pid" on a shell. > > This worked fine since a few days ago. > > Since or until? until, of course. Forgive me my poor english... > > The program grew bigger and bigger > and now sending a signal (typing a Control-C when started in foreground) > causes not only this very process to exit, but THE WHOLE MACHINE STOPS > EXECUTION !!!!!!!!! > > Probably, a programming error by you triggers a kernel bug. What does the > debugger tell you? What does actually go wrong? When does it happen? > > I'm NOT the superuser when I'm developing programs. > > Programming contains two difficult parts: the concepts and the debugging. > The first part is up to you. The second part sometimes comes down to > identifying bugs in the compiler, libraries or the kernel. --Tiggr I traced the problem back to closing a socket. I had trouble hanging the machine with a close on a yet closed socket some time ago, but fixed this bug in my program that wanted to close sockets twice. And so I didn't bother this strange behaviour anymore, although IMHO the close should just return an error that this was a bad file descriptor. But the actual socket that's being closed _is_ valid. I don't think that it has anything to do with UNIX signals at all now, because I had the problem described above outside any signal handling routine and I don't think that closing files or sockets is something you shouldn't do within a signal handling routine. Could it have something to do with Mach C-threads? Sonja Schellenberg, Schellenberg@fh-frankfurt.d400.de
Newsgroups: comp.sys.next.programmer From: 9116591@news.ul.ie ( Vincent Hayes ) Subject: Recording voice using a Pro Audio Spectrum and the Sound kit Message-ID: <D7yHE6.G2o@ul.ie> Sender: usenet@ul.ie Organization: University of Limerick Date: Tue, 2 May 1995 14:54:05 GMT Hi, I am having problems I am trying to use the the NXSound classes to do this. I set up the SoundIn device and attach the RecordStream to it as in the following piece of code. [NXSoundIn setUseSeparateThread:YES]; recordDevice = [[NXSoundIn alloc] init]; //setup sound in device myRecordStream = [[NXRecordStream alloc] initOnDevice:recordDevice]; [myRecordStream setDelegate:self]; [myRecordStream activate]; In a seperate thread I then pass the recordStream the size of the buffer I want recorded and the tag. [recordStream recordSize:SOUND_BUFFER_SIZE tag:willrecord]; When this sound is recorded it passes the buffer to the delegate method, this method transfers the buffer of sound across the network to another application which plays the sound back. The problem is, this works OK when using NeXT workstations i.e. the sound is recorded and playedback on the other workstation perfectly. When using a PC and a workstation the sound sent from the workstation to the PC is played back perfectly, but the sound sent from the PC to the workstation is distorted, when using two PC's the sound is distorted on both the PCs when played back. From this I presume it has to be the sound being recorded on the PC is corrupted before it is sent anywhere. I think the problem may be that the NXRecordStream only returns sound in a format of "a single channel of 8-bit mu-law samples at the CODEC sampling rate", this format can probably not be created by the Pro Audio Spectrum sound card. I have tried to get the RecordSream to return sounds in formats such as "16 bit linear, 8 bit linear at low or high sampling rates", but I have had no success, I have tried using the NXSoundParameters to control it but with no success. SNDStartRecording also seems to return sound only in "a single channel of 8-bit mu-law samples at the CODEC sampling rate" format, I have not been able to change this. I have been able to use to NeXT Sound application for recording sound samples, so I know its not a problem with the board. If anybody knows where the source code for this application is I would like to look at it, I think it should point me in the right direction. I would be most grateful if anyone who has information on recording sound using the Sound classes or any other way on a PC, would contact me through e-mail, I don't think this problem is specific to the Pro Audio Spectrum board. I think the problem could be a minor one but I've been working on it over the weekend and its driving me crazy now. Any help would be greatly appreciated i.e. free copy of software when its working (by the way, the projevt is a NeXTStep voice and video phone over a LAN, video is optional), thanks in advance. Regards Vincent Hayes e-mail 9116591@ul.ie
Newsgroups: comp.sys.next.programmer From: brouwer@minnie.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: Re: delegation semantics: respondsTo: ? Message-ID: <D7y73t.2wr@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany References: <9504241404.AA00387@hercules.Praktos.be> <TIGGR.95Apr25161451@cobra.es.ele.tue.nl> Date: Tue, 2 May 1995 11:11:50 GMT In <TIGGR.95Apr25161451@cobra.es.ele.tue.nl> tiggr@es.ele.tue.nl (Pieter Schoenmakers) writes: >In article <9504241404.AA00387@hercules.Praktos.be> Paul Janssens <paul@Praktos.be> writes: > Is there a formal rule that you have to call respondsTo: before sending a > delegate method? NEXT's objects allow delegates to implement any number > of the documented delegate methods, so I assume respondsTo: is used, but Yes, you just has to implement the methods he wants and NO, -respondsTo: is NOT used. It is done by defining a category for the Object class. If a delegate doesn't respond to method it goes right through him and is cought by Object's method. Those catch-all-methods shouldn't do anything but returning a constant value, because methods can override each other and you have a lot of them. Take a look at HeaderViewer, to how much methods Object responds to, and how much categories are defined for it. It catches just all delegate methods defines in the AppKit. >You don't *have to*. If you think it is acceptable for the delegate to >implement some of your delegate methods but not all, test for the response >before attempting to send the message. If you think your delegate should >implement all your delegate methods, define a protocol and demand Well, normally delegates should not be *forced* to implement any method. NXBrowser does it too in some way, but there a delegate is used for two different purposes. In fact, there should be to objects: one to provide the data (and corresponding to a protocol) and one to receive the delegate messages (of course, both objects could be identical). You see even NeXT's design is imperfect. Bye, Klaus Brouwer
Newsgroups: comp.sys.next.programmer From: empath@netcom.com (Tim Triemstra) Subject: What is an SHLIB?!?! Message-ID: <empathD7yEzJ.GMs@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Tue, 2 May 1995 14:02:07 GMT Sender: empath@netcom5.netcom.com I'm fairly new to NeXTSTEP programming so this may be a dumb question: What is an SHLIB and why is it giving me problems? I had a project developed under NextDev v3.2 which compiled flawlessly, now, under a machine with 3.3 developer installed it compiles and starts to link until I get addressing faults in SHLIB files (in /usr/shlib) This machine is currently not plugged into the network when building (It has network ability, I just unplug it when developing so as to not build the application against the real database - kinda hard to explain, but the build is local.) Any ideas how to get the build working? I'm positive that there aren't any 3.2 files on this machine either for user or developer since it was cleanly installed just a week ago. Thanks for any help! -- Tim Triemstra ... empath@netcom.com ... Detroiter at Heart The RED WINGS rule! They sometimes take a vacation during the playoffs unfortunately.
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: New interface objects in 3.3? Date: 2 May 1995 14:57:17 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3o5h8d$sa@darkstar.UCSC.EDU> References: <3o5aor$cuc@cosmos.imag.fr> In article <3o5aor$cuc@cosmos.imag.fr> arrouye@petole.imag.fr (Yves Arrouye) writes: > I would like to know if the tab viewer (used in IB former suitcase window) and > the hierarchical lists withy small dimples (used in the class view and in > OmniWeb's Bookmarks window) are available as interface objects in NS 3.3 (or > EOF 1.1): I cannot find them in any palette, nor do I have any idea of what > they could be named... > I don't believe these objects have been included by NeXT, but TabMatrixPalette is available at NS archive sites, I believe. The IB tab object is a compound object that includes both the tab control and a swap view. However, the TabMatrixPalette is only a tab matrix that can be used as a control for any purpose, including driving your favorite swap view. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: fedor@csn.org (Adam Fedor) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3o4f7s$1d6@lace.Colorado.EDU> Control: cancel <3o4f7s$1d6@lace.Colorado.EDU> Date: 2 May 1995 05:41:48 GMT Organization: University of Colorado, Boulder Distribution: usa Message-ID: <3o4gms$2l1@lace.Colorado.EDU> References: <3o4f7s$1d6@lace.Colorado.EDU> This message was cancelled from within rn. -- Adam Fedor. CU, Boulder | Fudd's Law of Opposition: Push something fedor@boulder.colorado.edu (W) | hard enough and it will fall over. adam@bastille.rmnug.org (H,NeXTMail)|
From: arrouye@petole.imag.fr (Yves Arrouye) Newsgroups: comp.sys.next.programmer Subject: New interface objects in 3.3? Date: 2 May 1995 13:06:35 GMT Organization: Institut IMAG, Grenoble, France Distribution: world Message-ID: <3o5aor$cuc@cosmos.imag.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hi, I would like to know if the tab viewer (used in IB former suitcase window) and the hierarchical lists withy small dimples (used in the class view and in OmniWeb's Bookmarks window) are available as interface objects in NS 3.3 (or EOF 1.1): I cannot find them in any palette, nor do I have any idea of what they could be named... Thanks for any help, Yves. -- Advocates for the C++ school claim that a well designed Yves Arrouye program does not need the extra flexibility (a lie), Yves.Arrouye@imag.fr while advocates for the Objective-C school claim that (33) 76 57 48 64 the errors are no problem in practice (another lie). NeXT Mail / MIME
From: Mike Inman <nims@cris.com> Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer Subject: Re: JOB OPENING - Multimedia Programmer Date: 2 May 1995 17:13:06 GMT Organization: Concentric Research Corporation Message-ID: <3o5p72$rnf@warp.cris.com> References: <D7qDAF.Bzu@agora.rdrop.com> <D7rq6t.LqF@emr1.emr.ca> <them.30.0003E271@slip.net> <950430200557.1240AACUG.malc@daneel> <3o0rjs$61s@news4.primenet.com> <them.33.00224268@slip.net> <3o5h4l$958@news.primenet.com> english@primenet.com (Lawson English) wrote: > > David Mandala (them@slip.net) wrote: ... SPAM SPAM SPAM SPAM wonderful SPAM I usually let it go, (this post is only adding to the problem) but if you're going to get a flame thread going, please attempt to restrict its scope. The REPLY and POST FOLLOWUP functions can let your replies fly all over the place. I'm sure the readers of these nine newsgroups would agree, restrict the scope of your flames, please.
From: mark@jehu.extern.ucsd.edu Newsgroups: comp.sys.next.programmer Subject: Playing sound in app Date: 2 May 1995 18:00:35 GMT Organization: University of California at San Diego Distribution: world Message-ID: <3o5s03$pjm@network.ucsd.edu> What's the best way to play sound files in an application? I'm using SNDPlaySoundfile to play short 8-bit mulaw sound files, and for some reason it only works when I run the app from the debugger and not if I run it from the WSM. Why would this be? Also, the description of SNDPlaySoundfile says that it plays the soundfile in the background, but all any actions that follow a call to SNDPlaySoundfile wait until the sound file is finished before executing. There's a noticable lag in the application whenever a sound gets played, which seems lame since I'm only using 8-bit sound. Any help is appreciated! -- ================================================================== Mark Trombino trombino@wendy.ucsd.edu Center For Research in Computing the Arts, U.C.S.D. ==================================================================
From: y90niemo@freya.isy.liu.se (NIELS MOLLER) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 02 May 1995 18:54:23 GMT Message-ID: <Y90NIEMO.95May2205423@freya.isy.liu.se> References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nvj96$7bv@nic.lth.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In-reply-to: d89cb@efd.lth.se's message of 30 Apr 1995 08:55:02 GMT In article <3nvj96$7bv@nic.lth.se> d89cb@efd.lth.se (Christian Brunschen) writes: >Hello, > >Since NeXt has acquired the source code for Stepstone Objective-C and >since they've been cleaning up their foundation classes for the OpenStep >specification, I would like to suggest the following change and additions >to Objective-C. > >1. Forwarding > ---------- > > The -forward:: method is inadequate. It can only reliably return values > whose size == sizeof(id), which is a bummer. If you look at the OpenStep specification, you'll see that NeXT are more than aware of that -- and have fixed it. > > I suggest changing ``-forward:(SEL)aSelector:(marg_list)argFrame'' to a > simpler, more useful method called -forward:(SEL)aSelector. The run-time > system, either through objc_msgSend() or objc_msgSendSuper(), will call > -forward: when an object can't respond to a message. The -forward: method > should return the id of an object that can handle the message. If this > object still can't respond, it too is sent a -forward: message, and so on, > until either an object can respond or -forward: returns nil (inherited > from Object, causing a run-time error). > > When a returned id can respond to the message, the run-time system will > jump to the address of the method's implementation using the returned id > as the receiver of the message. This, as I would put it, sucks -- especially compared to what NeXT have already done in OpenStep. To clarify: The new "forward" method is actually - (void) forwardInvocation (NSInvocation *)invocation; So, what's this "NSInvocation" stuff? Well, it's a new class defined in OpenStep. It contains _all_) information about the message that is being attempted: the target, the selector, the argument types, the individual arguments themselves, the return type, and the return value. Why not both of them? They have both two big advantages over the existing forward method, namely: They can return anything, and they ought to be portable. I don't know much about obj-c internals, but I think that the existing forward method is what breaks GNU-objc on AIX, as discussed in this group (is there anything else that __builtin_apply is used for?) The first alternative, forward: (SEL) aSelector, is very simple to implement, and has one main disadvantage: it is impossible for the forwarding object to send the message to several objects (of course, it is _possible_ to hack around this, by inventing some means for the forward method to return a list of objects, and somehow get the message through to all of them). However, it is useful and fairly efficient if you just want plain forwarding of a message to one object. NeXT's alternative is much more general and flexible. I guess it's non-trivial to implement, but it is probably worth it. A question: What classes and situations can you think of where the simple forward: aSelector method is inadequate? One class in libobjects comes to mind, the DelegateList, but I have no experience using that class. Regards, Niels
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Tue, 2 May 95 17:50:58 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505021550.AA01646@flexus> Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Dear experts, >>>>> Christian Brunschen writes: To clarify: The new "forward" method is actually - (void) forwardInvocation (NSInvocation *)invocation; So, what's this "NSInvocation" stuff? Well, it's a new class defined in OpenStep. It contains _all_) information about the message that is being attempted: the target, the selector, the argument types, the individual arguments themselves, the return type, and the return value. _Any_ type can be returned by this. No more stupid limitation to ids (or other pointers). <<<<< A stupid question: how does the receiving object, the run-time system, whatever, go about translating an objc_msgSend(id,SEL,...) call into an NSInvocation? Did the semantics of objc_msgSend change? As far as I understand it, SEL has so far always been uniqued to the message string, ignoring its signature. Am I mistaken? That means that you need static typing if multiple signatures exist (yuck), to get the arguments correctly encoded at compile time for the IMP (method) that will eventually execute the message. At run time, when the message gets sent, no such information is available. If the method exists, it will probably match the call (if dependencies are properly tracked by the make architecture). But if no method exists, so that forwardInvocation: is invoked, how does it get set up correctly? To illustrate: -(double)valueFor:(char)arg; vs. -(BOOL)valueFor:(double)arg will cause tremendous alignment and interpretation problems. For the rest, I agree with Christian's analysis of Objective-C as being a layer on top of the underlying C. It's supposed to be orthogonal to what's underneath: C, C++, and even Pascal or Fortran (isn't there an implementation for the latter language?). There's no name for the layer per se, but it's easy to construct names like Objective-Pascal, Objective-Fortran, ... (implementation requires somewhat more time). Actually, Objective-... objects are more in the league of SOM/CORBA stuff, as opposed to C++ objects. Our favourite language thus has the unique property of being a lingua franca from relatively small local objects (ultra-small objects like complex numbers will benefit from being encoded in C++), to fully distributed operation (which requires only some additions to the runtime system, none of that IDL compilation stuff). That gives direction to whatever change can still be made to the... well, let's call it a language, for simplicity's sake. 1. Forwarding: see my question above. 2. Operator Overloading: that's out, being too syntax-specific. 3. Static Binding: out, because of conflicts with poseAs and distributed operation. Any C-specific ``enhancements'' would be dialect forms only. Maybe they can enhance performance (static binding, inline compilation), but performance should be achieved instead by considering Amdahl's formula (I believe it's him) about increasing performance: If a fraction f of what needs to be done can be speeded up (accelerated) by a factor a, then the total speedup A will be only 1/((1-f)+f/a)=1/(1-(1-1/a)f). other: inline execution function virtual C++ method a : infinite about 3 about 2 (or less!) (If you don't agree with these figures, ask for my benchmark code.) That means: - Do encode complex numbers and little things like that as C++ objects, if you want, operator overloading and all. - Don't worry about the ``slowness'' of Objective-C if your method does a non-trivial amount of work: for just doing ``for(i=0;i<20;++i)'', a virtual C++ method is only about 10% better than Objective-C (15% compared to functions). For counting to 200, these figures become -17% and 2%. Hmm, can this happen? That's far too good to be true. And yet, I consistently get these figures, only changing between 20 and 200. With -O, I get 21%, 30%, 1.6%, 3%. - Just don't use Objective-... methods in inner loops of your program. There is a trick where you can get the address of the method for a specific class, which you can then use to speed things up with some arcane casting, but this is only an exceptional measure. This is the significance of having a hybrid language: flexibility and performance each have there own place. I'm writing an article about NEXTSTEP/OpenStep that includes a comparison of Objective-C/(P)DO with C++/CORBA and stuff. If you have any ideas or comments, they're welcome! Specifically, benchmarks that are more sophisticated (different numbers and types of arguments, and different sorts of method code), and war stories about Objective-C versus C++ in projects you've done. Where can I find archived materials that would be of interest? Thanks, Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. *** PS: I can't read or post to comp.lang.objective-c (aren't they lucky). Well, I could by logging into my mail relay and using tin or what, but that's a big hassle. PS: Who has any experience with ``intergalactic'' computing?
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 2 May 1995 03:00:03 GMT Organization: Rensselaer Polytechnic Institute, Troy NY, USA Distribution: world Message-ID: <3o477k$rof@usenet.rpi.edu> References: <3nmj6d$1sn@delphi.cs.ucla.edu> esky@marathon.cs.ucla.edu (Eskandar Ensafi) writes: > Since NeXt has acquired the source code for Stepstone Objective-C > and since they've been cleaning up their foundation classes for > the OpenStep specification, I would like to suggest the following > change and additions to Objective-C. I thought NeXT bought the rights to the name "Objective C", and not the source code for Stepstone's specific compiler. > 1. Forwarding > ---------- > > The -forward:: method is inadequate. It can only reliably > return values whose size == sizeof(id), which is a bummer. Some changes for forwarding would be nice, but one of the followups to this implies that there's already a better option. I don't know enough of the details of that to comment. > 2. Operator Overloading > -------------------- > > Mixing C++ with Obejctive-C doesn't solve the problem of > overloading in Objective-C classes. I don't think it would > be too hard to add overloading to the Objective-C compiler. Whether it's hard or not, I really do not want to see this. I've seen too many C++ aficionado's use operator overloading only to regret it later on. The "problem" of operator overloading is not that ObjectiveC doesn't allow it, it's that C++ does allow it... :-) > 3. Static Binding > -------------- > Stepstone's compiler had it. It would be nice to see it in > NeXT/GNU. I'm a bit uneasy about this, though it could be useful to have it in some circumstances. -- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu ITS Systems Programmer (handles NeXT-type mail) Rensselaer Polytechnic Institute; Troy NY USA
From: english@primenet.com (Lawson English) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer Subject: Re: JOB OPENING - Multimedia Programmer Followup-To: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer Date: 2 May 1995 14:55:17 GMT Organization: Primenet Message-ID: <3o5h4l$958@news.primenet.com> References: <D7qDAF.Bzu@agora.rdrop.com> <D7rq6t.LqF@emr1.emr.ca> <them.30.0003E271@slip.net> <950430200557.1240AACUG.malc@daneel> <3o0rjs$61s@news4.primenet.com> <them.33.00224268@slip.net> David Mandala (them@slip.net) wrote: [snipt Mac advocacy stuff from moi] : Hmmmm, given that multimedia started back before: a) the Macintosh, b) : MacroMind and other multi-media authoring systems were created c) CD-ROM : drives have little to nothing to do with multi-media d) see a above e) get a : life moving from the mac to anything is a large pain. a) define multi-media b) define how it was done back in 1980-81 c) define how one distributes multi-media without CD-ROM d)? e) are you saying that the jillions of different clones are easier to debug for than using machines made by a single company? : So many people seem to think that multimedia was started by Apple and the : Macintosh computer. I'll admit its a great hype trip for Apple, however if one : checks multimedia applications started happening around 1980 - 1981 and have : continued forward from there (and thats only what started using CP/M, let : alone any systems using UNIX). Are you meaning to imply that CP/M started before UNIX and that CP/M systems were doing multi-media ~15 years ago? Not for commercial uses, I think. : Yes, of recent times (last 5 years) the Macintosh has come into its own with : authoring systems and such, and some day the prices may event come down enough : to make the Macintosh a market, and the advent of Apple admitting defeat and : allowing cloning which will allow second and third sources of computers. All : of this will help the Macintosh computer line, but for now it is not the crown : jewel of multimedia. As I said, most multi-media development is done on the Mac. 1) the original multi-media development system for the Mac was HyperCard, which produced such illustrious forerunners to Myst as Manhole, Cosmic Osmo, etc. 2) when PowerMacs first came out, they were cheaper than Pentiums. Apple hasn't been able to keep up with demand, so the prices havent fallen as fast as on the Pentium side. As well, a PowerComputing 604-based Mac clone will cost far less than a P6-based PC. Check out their current "inflated" (according to themselves) pricing by sending e-mail to info.powercc.com. : Oh yea, the macintosh as a stable OS, come on, how about all the standard : bombs that happen oh so often on the macintosh. Please........ get real. How is it that BYTE couldn't even complete some of their benchmarks comparing beta PowerMacs using beta software vs shipping mainstream Pentiums using shipping software? -- ------------------------------------------------------------------------------- Lawson English __ __ ____ ___ ___ ____ english@primenet.com /__)/__) / / / / /_ /\ / /_ / / / \ / / / / /__ / \/ /___ / -------------------------------------------------------------------------------
From: tm8025a@newssrv.soc.american.edu (Torrey McMahon) Newsgroups: comp.sys.next.programmer Subject: Re: Virtual memory problem, or memory leak? Date: 3 May 1995 00:21:35 GMT Organization: The American University, Washington DC Message-ID: <3o6iaf$mng@paladin.american.edu> References: <3o6gie$3gmb@yuma.ACNS.ColoState.EDU> In article <3o6gie$3gmb@yuma.ACNS.ColoState.EDU> warnerr@beethoven ( richard warner) writes: :Hi - : : I've posted in the past about being surprised at my HD getting :eaten since I upgraded to 3.3. Never had to reboot to reclaim space :with earlier versions....not sure if this is the same issue or not. : I just finished a graphics program that implements ray tracing :and draws to a 400 x 400 area (not really that large). It *does* do People, including myself, have complained about problems with hard drives being eaten for swapspace. This is however the first I have heard outside of OmniWeb/OmniImage possibly being the culprit. Could 3.3's display programs be the culprit? Maybe for resolutions over a certain amount not including the "average" WorkSpace Manager displays? Any thoughts? -- Torrey McMahon
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 03 May 1995 00:04:18 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95May2200418@maggie.cs.mcgill.ca> References: <9505021550.AA01646@flexus> In-reply-to: Raf Schietekat's message of Tue, 2 May 95 17:50:58 +0200 <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: >Dear experts, >>>>> Christian Brunschen writes: >To clarify: >The new "forward" method is actually >- (void) forwardInvocation (NSInvocation *)invocation; >So, what's this "NSInvocation" stuff? Well, it's a new class defined >in OpenStep. It contains _all_) information about the message that is >being attempted: the target, the selector, the argument types, the >individual arguments themselves, the return type, and the return >value. >_Any_ type can be returned by this. No more stupid limitation to ids >(or other pointers). ><<<<< My problem with forwardInvocation is that when you invoke the invocation object, you lose the current stackframe. So code would look like this: - (void)forwardInvocation:(NSInvocation *)invocation; { /* do some twiddling */ ... [invocation invoke]; /* or whatever the final semantics are */ /* NOTREACHED */ } So, the problem is that if you do something in the /* do some twiddling */ section that you want to *undo* after passing on the invocation, you're basically screwed. For example, say you wanted to make your object some kind of a validation object. You intend on using forward to make your object generic, so it can sit between two classes, and check the return value of all messages, and run an alert panel if a certain condition is made. With the old forward, combined with the runtime, you can do this. You just forward the message, and check the return before returning yourself. I suppose you can still do this by extracting the information representing the method call yourself, then getting the function pointer, and constructing it, but that's very hard to do in a generic way (ie. this is what the implementation of NSInvocation is ;-). So, it's a major-big flaw in NSInvocation that it's going to blow away the stack on you. The coolest thing would be for the "invoke" method to not blow away the stack, so you can check on the return value. Then, if you want, you can say [invocation blowAwayStack] and return happily, knowing that the stack has the stuff on it that you wanted put there (especially if you wanted to twiddle it yourself). So, that's the advantage -performv:: had over -invoke; It's another instance of a 1.0 specification (where they'd have us believe this is all 4.0 stuff... it's not boys and girls, expect some growing pains). - db -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
From: dicosmo@verveine.ens.fr (Roberto DiCosmo) Newsgroups: comp.sys.next.programmer Subject: Re: Video Drivers: Configuration Keys and Video Modes Date: 02 May 1995 14:31:19 GMT Organization: Ecole Normale Superieure Distribution: world Message-ID: <DICOSMO.95May2163119@verveine.ens.fr> References: <DICOSMO.95Apr29172312@lotus.ens.fr> In-reply-to: dicosmo@lotus.ens.fr's message of 29 Apr 1995 15:23:12 GMT Two issues: ----------- - question about GD6440 and linear mode addressing - driver for external monitor: status report - question about GD6440 and linear mode addressing -------------------------------------------------- In the vgadoc3.zip documentation by Finn Thoegersen, there is just a line that seems to imply that the 6440 HAS Linear addressing!!! Anybody can clarify this? Cirrus? GD5410, 64xx series: 3CEh index 0Dh (R/W): CPU Base Address Control (not 6410) bit 0 Enable Page Remapping 1 Enable 64K Remapping page size if set, 32K if clear 2 If set use 3CEh index 0Eh for reads and index 0Fh for writes. if clear both reads and writes use index 0Eh. 4 (6440) Enable Linear Addressing <!!!!!!!!!!!!!!!!!> 7 (not 6440) Enable I/O Ext Addr Remapping - driver for external monitor: status report -------------------------------------------- I had miscalculated the bytes/scanline quantity in my driver, that gave the wierd video behaviour described in my previous posting. I have now a correct 640x480 support (still B/W) for the GD6440, that gives a basis for working on the 800x600 and 1024x768 resolutions. As soon as I have a usable driver, I'll give it away to anybody interested :-) -- Roberto Di Cosmo <dicosmo@dmi.ens.fr>, http://www.ens.fr/users/dicosmo/index.html LIENS Ecole Normale Superieure 45, Rue d'Ulm 75005 Paris FRANCE
From: marcelor@bu.edu (Marcelo Rodrigues) Newsgroups: comp.sys.next.programmer Subject: Has anyone got g77 to work ? Date: 2 May 1995 19:48:09 GMT Organization: Boston University Distribution: World Message-ID: <3o629p$lg1@news.bu.edu> Hello, Before I embark on this mission I'd like to know if people had any problem getting g77 to work. I've just seen an announcement that version 0.5.13 is out. The notice mentions that gcc needs functions like bsearch() and strtoul(). I am not really familiar with the gcc on the NeXT, so will I have problems here ? Also, I am hoping to do this under 3.2 user/ 3.2 dev. Any thing I should know in advance ?
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer From: scottc@agora.rdrop.com (Scott Christley) Subject: Re: JOB OPENING - Multimedia Programmer Followup-To: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer Sender: news@agora.rdrop.com (USENET News) Organization: RainDrop Laboratories Message-ID: <D7yvxu.EzK@agora.rdrop.com> References: <D7qDAF.Bzu@agora.rdrop.com> <D7rq6t.LqF@emr1.emr.ca> <them.30.0003E271@slip.net> Date: Tue, 2 May 1995 20:08:17 GMT >From: jagrant@emr1.emr.ca (John Grant)>Subject: Re: JOB OPENING - Multimedia Programmer > The continual stream of job offerings to these groups is reassuring > about the health of the industry, but it does raise the noise level > measurably. > I'd like to see the creation of a new group: > comp.os.ms-windows.programmer.jobs > or perhaps a more general: > comp.os.ms-windows.jobs > I know there are other .job groups, but a dedicated Windows > programmer .jobs group would seem to be useful. > Getting back to the main topic, do you find it irritable to see job postings in a programmer group? When I posted my announcement, I of course put in in the misc.jobs etc newsgroups, but I also cross posted it to multimedia and programmer groups under comp.*. I fairly quickly got a reminder from somebody (forgot his name) saying that I shouldn't do that, but about 1/4 of my responses have indicated they saw it in a programmer group! I can understand if I went cross post crazy but I did try to be very explicit and target certain areas. I thought with an explicit subject heading, people could easily ignore if they wanted to. Afterwards, I thought I could have just posted a very quick blurb instead of the whole announce to reduce bandwidth... thoughts? Scott
From: wfc@cl.cam.ac.uk (W F Clocksin) Newsgroups: comp.sys.next.programmer Subject: Re: Playing sound in app Date: 3 May 1995 10:06:09 GMT Organization: University of Cambridge, England Distribution: world Message-ID: <3o7kih$lte@lyra.csx.cam.ac.uk> References: <3o5s03$pjm@network.ucsd.edu> In article <3o5s03$pjm@network.ucsd.edu> mark@jehu.extern.ucsd.edu writes: > What's the best way to play sound files in an application? [deletions] > Any help is appreciated! > > -- > ================================================================== > Mark Trombino > trombino@wendy.ucsd.edu > Center For Research in Computing the Arts, U.C.S.D. > ================================================================== What you want is the class SoundEffect, which plays sounds in separate streams. It works great. You can find it in the BreakApp demo source (in the Developer AppKit examples).
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: Virtual memory problem, or memory leak? Message-ID: <jpanicoD803vJ.FvI@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <3o6gie$3gmb@yuma.ACNS.ColoState.EDU> Date: Wed, 3 May 1995 11:57:18 GMT Sender: jpanico@netcom3.netcom.com richard warner (warnerr@beethoven) wrote: : Hi - : I've posted in the past about being surprised at my HD getting : eaten since I upgraded to 3.3. Never had to reboot to reclaim space : with earlier versions....not sure if this is the same issue or not. Many people have experienced related behaviour under earlier versions of NS, including 3.2. So many people have complained that there is a NeXTanswer devoted to the basic issues behind NeXT implementation of VM/swap. The basic problem is that because of the scheme mach uses for claiming and freeing VM pages, old unused pages hardly ever get freed up in practice. This is not a bug or a memory leak per se. It is a feature ;). More specifically, for a page to be freed it has to be completely empty, but in practice this is unlikely to occurr because of the way memory is automatically doled out. Perhaps you can gain more control of page reclamation by managing all allocation/freeing in your own zones inside your application, but I don't know much about this topic. It would be nice if NeXT had some technical information to help developers get around this problem. I face a very similar circumstance in a DBKit app of mine. A number of other DBKit developers have corroborated that the DBKit objects manage their own memory in such a way that fetching acutely exacerbates the general problem of VM hyperinflation. Joe Panico jpanico@netcom.com
From: eric@pisces (Eric Norum) Newsgroups: comp.sys.next.programmer Subject: Compiling cross-gdb (4.14)? Date: 2 May 1995 17:23:22 GMT Organization: University of Saskatchewan Message-ID: <3o5pqa$lbm@tribune.usask.ca> > BDM (Background Debug Mode) is a special debugging mode for (CPU32{+}) > based microcontroller. These controllers are equipped with some pins > especially for debugging purpose. With BDM it is possible to debug an > embedded controller without using any processor resources like serial > interfaces or memory space or special hardware. > > Motorola published an hardware interface from a PC's parallel port to the > serial lines of BDM. It consists of just two 74HC chips. With this > interface and the software patches supplied with this, you can perform > source level debugging on an embedded target. I've built the required hardware, and written a NeXTSTEP device driver to control the harddware, but I can't get gdb-4.14 to compile on my NS 3.2 machine. Here's how I tried to configure the system: ./configure -target=m68k-aout \ --enable-targets=sparc,m68k-aout,m68k-coff,st2000 --gas And here's what came back: Configuring for a i386-next-nextstep3 host. Created "Makefile" in /usr/src/local/gnu/src/gdb-4.14 *** Gdb does not support host i386-next-nextstep3 Configure in /usr/src/local/gnu/src/gdb-4.14/gdb failed, exiting. Any ideas on what `host' configuration will work? -- Eric Norum eric@skatter.usask.ca Saskatchewan Accelerator Laboratory Phone: (306) 966-6308 University of Saskatchewan FAX: (306) 966-6058 Saskatoon, Canada. NeXTMail accepted.
From: warnerr@beethoven ( richard warner) Newsgroups: comp.sys.next.programmer Subject: Virtual memory problem, or memory leak? Date: 2 May 1995 23:51:42 GMT Organization: Colorado State University, Fort Collins, CO 80523 Message-ID: <3o6gie$3gmb@yuma.ACNS.ColoState.EDU> Hi - I've posted in the past about being surprised at my HD getting eaten since I upgraded to 3.3. Never had to reboot to reclaim space with earlier versions....not sure if this is the same issue or not. I just finished a graphics program that implements ray tracing and draws to a 400 x 400 area (not really that large). It *does* do recursive calls for the reflected and refracted rays, plus it does do shadows (checks for occluding objects between a point and a light source). It takes an hour to generate an image, but even more amazing it takes 150Mb of harddisk!!!. Even more amazing is that if you sit there for an hour watching it (like I have) you will hear about twenty HD accesses of about two seconds each. Not much HD activity at all. I've ran into memory leak problems before that eat an HD, but to use up that much space you will hear a huge amount of disk accesses. My question is, does anyone know of a situation where the NS virtual memory scheme breaks down? I'm wondering if it thinks it's eating HD when it really isn't. Have others made recursive ray tracing programs like this that eat up that much HD? Ciao. Rich
From: bm10009@hermes.cam.ac.uk (Ben Moseley) Newsgroups: comp.sys.next.programmer Subject: Linkling Libraries into Palettes Date: 2 May 1995 22:09:43 GMT Organization: University of Cambridge, England Message-ID: <3o6aj7$611@lyra.csx.cam.ac.uk> Is there any reason why PB hides the 'Libraries' directory for Palette projects? - I can't see why there should be a limitation against linking libraries into palettes - have I missed something? Ben Moseley.
Newsgroups: comp.sys.next.programmer From: 9120092@news.ul.ie ( P O'Brien ) Subject: possible caching problem on gateway 2000 Message-ID: <D7zyo2.32q@ul.ie> Sender: usenet@ul.ie Organization: University of Limerick Date: Wed, 3 May 1995 10:04:49 GMT The machine that I'm working on is a Gateway2000 DX2, NeXTstep ver 3.3 is running on it, but I'm using the Developers Kit 3.2 And (of course) I've got a wierd run time error when trying to use a slider on a panel. In fact, any control button or slider that I click on causes this error: Program generated(1): Memory access exception on address 0x34c004 (invalid address). 0x50119e0 in _class_lookupMethodAndLoadCache () The crazy thing is, it's only on this panel, I've got about 8 other panels that don't have a problem with being used. I've tried twice now deleting the .nib and the .[hm] files, and starting from scratch. Still the same error. Could some one at least explain what the error message means? I presume there's a cache problem, but how come it's sticking with one panel, and none of the others? Thanks in advance -- ============================================================================== Peter O'Brien 9120092@ul.ie http://skynet.ul.ie/~woppi ==============================================================================
Newsgroups: comp.sys.next.programmer From: tom@basil.icce.rug.nl (Tom R.Hageman) Subject: Re: strcoll(3) wants three args? Message-ID: <D7v2rJ.17H@basil.icce.rug.nl> Originator: root@obelix.icce.rug.nl Sender: tom@basil.icce.rug.nl (Tom R.Hageman) Organization: Warty Wolfs References: <3ns7e4$fqq@uuneo.neosoft.com> Date: Sun, 30 Apr 1995 18:45:19 GMT In article <3ns7e4$fqq@uuneo.neosoft.com> ghost@ghost.neosoft.com (Mark C. Allman) writes: > In article <3nr3pm$k8a@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: [munch] > > But the good news is that NeXT's ANSI C implementation seems to be > > quite good, including strcoll() which according to my reference is > > correctly defined exactly as NeXT has done so, not with only 2 arguments > > as suggested. > > Ah, but are you ready for Posix??? Yes, the Posix version of strcoll has 3 > arguments!! It's such a joy bouncing back and forth... Um, unless a new version of the Posix.1 standard has appeared behind my back... but strcoll is not part of the 199009 Posix.1 specification. It IS part of the ANSI C library specification though. ANSI C and Posix.1 are two separate, independent beasts. > By the way, this problem comes up when building Perl 5. Yep. I noticed. (sigh...) -- __/__/__/__/ Tom Hageman <tom@basil.icce.rug.nl> [NeXTmail/Mime OK] __/ __/_/ IC Group <tom@icgned.nl> (work) __/__/__/ "...to baldly go where no one has gone before." __/ _/_/ -- star trek TNG
From: esky@marathon.cs.ucla.edu (Eskandar Ensafi) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 2 May 1995 19:13:42 GMT Organization: Los Alamos National Laboratory, NM Message-ID: <3o6096$rgj@delphi.cs.ucla.edu> Hello, Thanks for your input on my suggestions (and other people's suggestions) regarding forwarding, operator overloading and static (early) binding. My main concern was efficiency in forwarding. The OpenStep specification makes forwarding more flexible, but going through the NSInvocation class adds some deree of overhead. However, efficiency is not such a big issue these days -- people are more concerned with flexibility. I guess NeXT's solution is better in many ways. As for overloading and binding, I just wanted to put in my 2 cents. I've personally never found a need for either feature, and I would probably seldom use them if they were added to Objective-C; however, I thought it would be useful to bring up the issue. By the way, when will NEXTSTEP be OpenStep compliant? That is, when will all of the classes shipped with the AppKit be renamed from ClassName and NXClassName to NSClassName? Is 3.3 Developer OpenStep compliant? Once again, thanks! - Eskandar -- KiNDa LiKe a DoG WiTH SeVeN PuPiLS iN iTS eYe L E F T H A N D KiNDa LiKe a MaDNeSS THaT ReFuSeS To SuBSiDe B L A C K KiNDa LiKe eVeRYTHiNG You WaNT JuST WiTHiN YouR GRaSP - - - - - - - - KiNDa LiKe HoW a BaNSHee-WaiL DaNCeS oN a LiViNG HeaRT... D a n z i g
From: d89cb@efd.lth.se (Christian Brunschen) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 3 May 1995 06:31:06 GMT Organization: Lund Institute of Technology, Sweden Message-ID: <3o77va$qqj@nic.lth.se> References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nvj96$7bv@nic.lth.se> <Y90NIEMO.95May2205423@freya.isy.liu.se> NNTP-Posting-User: d89cb In article <Y90NIEMO.95May2205423@freya.isy.liu.se>, NIELS MOLLER <y90niemo@freya.isy.liu.se> wrote: >In article <3nvj96$7bv@nic.lth.se> d89cb@efd.lth.se (Christian Brunschen) writes: > > >Hello, > > > >Since NeXt has acquired the source code for Stepstone Objective-C and > >since they've been cleaning up their foundation classes for the OpenStep > >specification, I would like to suggest the following change and additions > >to Objective-C. > > > >1. Forwarding > > ---------- > > > > The -forward:: method is inadequate. It can only reliably return values > > whose size == sizeof(id), which is a bummer. > > If you look at the OpenStep specification, you'll see that NeXT are > more than aware of that -- and have fixed it. > > > > > I suggest changing ``-forward:(SEL)aSelector:(marg_list)argFrame'' to a > > simpler, more useful method called -forward:(SEL)aSelector. The run-time > > system, either through objc_msgSend() or objc_msgSendSuper(), will call > > -forward: when an object can't respond to a message. The -forward: method > > should return the id of an object that can handle the message. If this > > object still can't respond, it too is sent a -forward: message, and so on, > > until either an object can respond or -forward: returns nil (inherited > > from Object, causing a run-time error). > > > > When a returned id can respond to the message, the run-time system will > > jump to the address of the method's implementation using the returned id > > as the receiver of the message. > > This, as I would put it, sucks -- especially compared to what NeXT > have already done in OpenStep. > > To clarify: > > The new "forward" method is actually > > - (void) forwardInvocation (NSInvocation *)invocation; > > So, what's this "NSInvocation" stuff? Well, it's a new class defined > in OpenStep. It contains _all_) information about the message that is > being attempted: the target, the selector, the argument types, the > individual arguments themselves, the return type, and the return > value. > >Why not both of them? They have both two big advantages over the >existing forward method, namely: They can return anything, and they >ought to be portable. I don't know much about obj-c internals, but I >think that the existing forward method is what breaks GNU-objc on AIX, >as discussed in this group (is there anything else that >__builtin_apply is used for?) Why not? well, for starters: Which one of the methods is the runtime system going to call? Under NEXTSTEP (and OpenStep in the future), _every_ class inherits the "- (void) forwardInvication:(NSInvocation *)invocation" from NSObject. By default, it does "[self doesNotRecognise:[invocation selector]];" which generates an exception. > >The first alternative, forward: (SEL) aSelector, is very simple to >implement, and has one main disadvantage: it is impossible for the >forwarding object to send the message to several objects (of course, >it is _possible_ to hack around this, by inventing some means for the >forward method to return a list of objects, and somehow get the >message through to all of them). However, it is useful and fairly >efficient if you just want plain forwarding of a message to one object. It may be slightly more efficient -- but it certainly isn't more useful. If I want to send each message to a certain object, with the "- forward:(SEL)" method I'd have to return the id of that object, which is then treated as magical by the runtime, and the message os re-directed to that object. With "- forwardInvocation:" I can do it in two lines: [invocation setTarget:otherObject]; [invocation dispatch]; No magic anywhere -- I'm simply doing what I always do, send messages to Objective-C objects. The runtime doesn't have to treat _anything_ as magical. > >NeXT's alternative is much more general and flexible. I guess it's >non-trivial to implement, but it is probably worth it. I don't think it's any more difficult to implement than the "- forward:(SEL)" stuff. Neither from the point of view of the application programmer (who writes the forwardInvocation: method) or the Objective-C runtime writers -- a couple lines more code, I'd guess, no more (plus the NSInvocation class, but that's no biggie either). > >A question: What classes and situations can you think of where the >simple forward: aSelector method is inadequate? One class in >libobjects comes to mind, the DelegateList, but I have no experience >using that class. Imagine that class Bar implements a number of messages, for instance "- (int) myBarMessage:(int) if". Further imagine that class Foo doesn't, but is supposed to be used as a "filter" to class Bar, forwarding all method calls to an object of class Bar (aBar), but doubling all integer arguments -- and then halving the return value. (I have no idea where this might be useful, but the example is a very simple one to think of.) With "- forward:(SEL) aSelector" I get _no_ information about the types of the arguments or return value, and no access to the arguments and return value. With "- (void) forwardInvocation:(NSInvocation *)invocation" however, I can examine each argument (in a simple loop), checking its type (and doubling it if need be). I then dispatch the NSInvocation. After [invocation dispatch] returns, I can examine and modify the return value, of necessary. Basically, _anything_ where I might need to look at or modify the arguments and/or return value of the method call, "- forward:(SEL)" is woefully inadequate. I, personally, will be glad to sacrifice a couple of lines of source code for the possibility to do truly astounding things in the forwarding method. > >Regards, Niels // Christian Brunschen -- | Christian Brunschen, Husmansv. 26, S-227 38 Lund, Sweden | | voice/fax/data +46 (0)46 139345, email d89cb@efd.lth.se | | PGP 2.2 Public Key available on request. | ObCelebrityQuote: | | "Oh, foo." | | - Andrew R. Koenig (ark@research.att.com) after dropping a piece | | of chalk during a lecture on C++ in Lund, Sweden, April 1993 |
From: ruml@bowmore.harvard.edu (Wheeler Ruml) Newsgroups: comp.sys.next.software,comp.sys.next.misc,comp.sys.next.programmer Subject: Wanted: Progress DBKit Adaptor Followup-To: comp.sys.next.software Date: 03 May 1995 13:32:26 GMT Organization: Division of Applied Sciences, Harvard University Distribution: world Message-ID: <RUML.95May3093226@bowmore.harvard.edu> Has anyone come out with a DBKit Adaptor for the Progress database system yet? I recall hearing rumors a few years ago that some groups were developing one, but now I need to know about working products. Please reply by e-mail, as I can't keep up with the newsgroups. Thanks, Wheeler -- Wheeler Ruml, Aiken 220, ruml@das.harvard.edu, (617) 496-1066 (fax) http://www.das.harvard.edu/users/students/Wheeler_Ruml/Wheeler_Ruml.html
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer From: pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. In-Reply-To: gad@eclipse.its.rpi.edu's message of 2 May 1995 03:00:03 GMT Message-ID: <PFKEB.95May2203426@kaon.SLAC.Stanford.EDU> Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3o477k$rof@usenet.rpi.edu> Date: Wed, 3 May 1995 03:34:26 GMT >>>>> On 2 May 1995 03:00:03 GMT, gad@eclipse.its.rpi.edu (Garance A. Drosehn) said: > esky@marathon.cs.ucla.edu (Eskandar Ensafi) writes: >> 2. Operator Overloading -------------------- >> >> Mixing C++ with Obejctive-C doesn't solve the problem of >> overloading in Objective-C classes. I don't think it would be too >> hard to add overloading to the Objective-C compiler. > Whether it's hard or not, I really do not want to see this. I've > seen too many C++ aficionado's use operator overloading only to > regret it later on. The "problem" of operator overloading is not > that ObjectiveC doesn't allow it, it's that C++ does allow it... > :-) Sorry to disagree..., well, sort of. Operator overloading is a very good thing for numerically intensive work. It's just that Objective-C is not designed for such work while C++ is. Thus, operator overloading is wrong for Objective-C and right for C++, IMHO, of course. I'm probably even wrong in the above assertion. Brad Cox, the originator of Objective-C, told me that he designed the language to be used for his work with simulations. Simulations are usuallly numerically intensive. So I'm probably speaking about my perception of current usage than the original intent. -- Paul F. Kunz Paul_Kunz@slac.stanford.edu (NeXT mail ok) Stanford Linear Accelerator Center, Stanford University Voice: (415) 926-2884 (NeXT) Fax: (415) 926-3587
Date: 03 May 1995 13:29:00 +0200 From: kris@black.schulung.netuse.de (=?ISO-8859-1?Q?Kristian_K=F6hntopp?=) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Message-ID: <5lAWIZ0ZnrB@black.schulung.netuse.de> References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3o477k$rof@usenet.rpi.edu> <PFKEB.95May2203426@kaon.SLAC.Stanford.EDU> Subject: Re: Enhancements (forwarding, overloading) to the run-time system. MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Organization: Orga-what? Paul F. Kunz <pfkeb@kaon.SLAC.Stanford.EDU> wrote in <PFKEB.95May2203426@kaon.SLAC.Stanford.EDU>: > Brad Cox, > the originator of Objective-C, told me that he designed the > language to be used for his work with simulations. > Simulations are usuallly numerically intensive. So I'm > probably speaking about my perception of current usage than > the original intent. Well, as long as you don't send messages, ObjC is just as fast as plain C. If you assume that a typical simulation does much numerical work in some thight loops without ObjC messaging, you don't loose any significant speed in your simulation. By partitioning your simulation into separate modules in form of ObjC classes, you may gain a lot by having freely combineable and configurable building blocks. As long as you know the approximate price for what you are doing, it may work well. Kristian -- Kristian Köhntopp, *Wassilystraße 30, 24113 Kiel*, *no isdn yet* "Da fragt man sich dann: Ist es frisch gekreuzigt, oder ist es Valensina?!!" -- "Messwein", Peter Berlich @ de.talk.bizarre
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: Class Attributes? -- help Date: 3 May 1995 17:56:45 GMT Organization: University of Heidelberg, Germany Message-ID: <3o8g4t$g00@sun0.urz.uni-heidelberg.de> References: <3o3f4l$jaf@aplinfo.jhuapl.edu> In article <3o3f4l$jaf@aplinfo.jhuapl.edu> Mike Hostetter > Sages All, > > I would like to create a class that has an attribute that is not > available to the instances of the class (like the 'name' attribute(?) > that is accessed by the '+ name' or '+ version' class methods of the > Object class). Can anyone tell me how (or if) this is done? > > Thanks, > > Mike (new at NeXT programming) There are two (easy) solutions: 1) If you are still using the old AppKit and Object classes, then check the MiscKit's MiscClassVariable class. 2) If you are using NSObject, then I can recommend you the STObject class of the SciTools project. Here is the header: ... /* Accessing class variables */ + (NSDictionary *)getVariablesForClass:(Class)aClass; + (id <STObjectProtocol>)getVariableWithName:(NSString *)aName forClass:(Class)aClass; + (void)setVariable:(id <STObjectProtocol>) withName:(NSString *)aName forClass:(Class)aClass; ... have fun... -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
From: bm10009@hermes.cam.ac.uk (Ben Moseley) Newsgroups: comp.sys.next.programmer Subject: Re: Bug in NSObject:isKindOfClass? Date: 2 May 1995 21:06:33 GMT Organization: University of Cambridge, England Distribution: usa Message-ID: <3o66sp$3rt@lyra.csx.cam.ac.uk> References: <3o4f7s$1d6@lace.Colorado.EDU> In article <3o4f7s$1d6@lace.Colorado.EDU> fedor@hopper.Colorado.EDU (Adam Fedor) writes: > > Am I going crazy or is this a bug: > --- testit.m --- > #include <stdio.h> > #include <foundation/NSValue.h> > > int > main() > { > printf("NSNumber isKindOfClass NSObject: %d\n", > [NSNumber isKindOfClass:[NSObject class]]); > printf("NSNumber isKindOfClass NSValue: %d\n", > [NSNumber isKindOfClass:[NSValue class]]); > > return 0; > } > --- > > cc -Wall -o testit testit.m -lFoundation_s > > testit > NSNumber isKindOfClass NSObject: 1 > NSNumber isKindOfClass NSValue: 0 > > > > P.S. This works correctly if NSNumber is replaced by [NSNumber new] > -- > Adam Fedor. CU, Boulder | Fudd's Law of Opposition: Push something > fedor@boulder.colorado.edu (W) | hard enough and it will fall over. > adam@bastille.rmnug.org (H,NeXTMail)| What's the problem? Isn't this the correct behaviour? NSNumber is a class object which is itself an ordinary object - an instance of NSObject, so your first test returns YES. NSNumber (the class object) isn't an NSValue & so the 2nd test returns NO. [NSNumber new] (which is an NSNumber instance) _is_ an NSValue & hence will return YES. It seems to me that this is what is expected. Ben.
Newsgroups: comp.sys.next.programmer From: g8uccl@fnma.com (Charles Lloyd) Subject: Re: Signal handling in presence of NXApp Message-ID: <1995May3.051702.3722@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <1995Apr28.222124.9075@almserv.uucp> Date: Wed, 3 May 1995 05:17:02 GMT As it turns out, there is no problem with signal handlers in an appkit app. The problem is that the signals cannot be reliably handled in the presence of gdb. Once I tried my test app outside gdb, everything was cool. Charles.
From: skrbec@fox.cig.mot.com (Brad Skrbec) Newsgroups: comp.sys.next.programmer,comp.sys.next.misc Subject: msql adaptor problems Date: 2 May 1995 22:52:13 GMT Organization: Cellular Infrastructure Group, Motorola Message-ID: <3o6d2t$n6i@newdelph.cig.mot.com> I've been trying to use the msql adaptor that was put on the archives a while back, but I'm having little success. Everything seems okay, except that if I try to create a new model with the "Default Model" button checked, I get the message: "Cannot load adaptor: MSQLAdaptor." If I create the model with Default Model off, everything appears to create correctly, but when I try to do simple browser operations with dbkit, I again get the panel message: Cannot load adaptor: MSQLAdaptor. msql is installed fine, and passes its test, and I can use it. I just can't get the adaptor working. This is under 3.3, by the way... Anyone have any ideas? Thanks in advance! Brad -- Brad Skrbec "I know engineers, they *love* to change things!" Motorola Cellular -- McCoy, "ST:TMP" Lead Engineer Work: skrbec@rtsg.mot.com Play: brad@darby.chi.il.us
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer From: pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. In-Reply-To: kris@black.schulung.netuse.de's message of 03 May 1995 13:29:00 +0200 Message-ID: <PFKEB.95May3201146@kaon.SLAC.Stanford.EDU> Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3o477k$rof@usenet.rpi.edu> <PFKEB.95May2203426@kaon.SLAC.Stanford.EDU> <5lAWIZ0ZnrB@black.schulung.netuse.de> Date: Thu, 4 May 1995 03:11:46 GMT >>>>> On 03 May 1995 13:29:00 +0200, kris@black.schulung.netuse.de (=?ISO-8859-1?Q?Kristian_K=F6hntopp?=) said: > Well, as long as you don't send messages, ObjC is just as fast as > plain C. True. > If you assume that a typical simulation does much numerical work in > some thight loops without ObjC messaging, you don't loose any I don't make this assumption. A simulation, I think, will have a number of objects sending messages to each other. Else, the simulation is not getting the benefits of OOP. P.S. By the way, the inventor of C++ (B.S.) also invented the language in order to do simulations. And the first OO language, Simula, was invented for simulationns and is even in its name. > Kristian -- Kristian Köhntopp, *Wassilystraße 30, 24113 Kiel*, > *no isdn yet* "Da fragt man sich dann: Ist es frisch gekreuzigt, > oder ist es Valensina?!!" -- "Messwein", Peter Berlich @ > de.talk.bizarre Ich kann nicht seinen signature verstanden. Ich habe ein sehr guten deutsch namen, aber ich kan nicht gut deutsch sprechen. -- Paul F. Kunz Paul_Kunz@slac.stanford.edu (NeXT mail ok) Stanford Linear Accelerator Center, Stanford University Voice: (415) 926-2884 (NeXT) Fax: (415) 926-3587
Newsgroups: comp.sys.next.programmer From: dfevans@bbcr.uwaterloo.ca (David Evans) Subject: Re: Playing sound in app Message-ID: <D7z7Io.FMA@watserv3.uwaterloo.ca> Sender: news@watserv3.uwaterloo.ca Organization: University of Waterloo References: <3o5s03$pjm@network.ucsd.edu> Date: Wed, 3 May 1995 00:18:23 GMT In article <3o5s03$pjm@network.ucsd.edu>, <trombino@wendy.ucsd.edu> wrote: >What's the best way to play sound files in an application? > I'd create Sound objects and use the initFromFile: method. -- David Evans dfevans@bbcr.uwaterloo.ca Computer/Synth Junkie "Default is the value selected by the University of Waterloo composer overridden by your command." Waterloo, Ontario, Canada - Roland TR-707 Manual
From: Scott A Douglass <sd3n+@andrew.cmu.edu> Newsgroups: comp.sys.next.programmer Subject: GCL 2.0 on NeXT Date: Wed, 3 May 1995 10:34:30 -0400 Organization: Psychology, Carnegie Mellon, Pittsburgh, PA Message-ID: <gjdtFqC00iVEM3J5Y3@andrew.cmu.edu> The last version of GCL that I have been able to build was gcl-1.1 (builds with no modifications). All later versions of GCL seem to have source changes that prevent compilation. I just can't seem to get things to work. I'm using an 040 slab running NS 3.2. If you have been able to build either gcl-2.0 or gcl-2.1, please contact me. Scott Douglass _________________________________________________________________________ Department of Psychology Carnegie Mellon University Office: (412) 268-3409 Internet: sd3n+@andrew.cmu.edu (NeXTMail OK)
From: gladish@elvis.suite.com (Brian Gladish) Newsgroups: comp.sys.next.programmer Subject: Sybase System 10 Date: 3 May 1995 22:30:31 GMT Organization: On-Ramp; Individual Internet Connections; Dallas/Ft Worth/Houston, TX USA Message-ID: <3o9068$pfq@news.onramp.net> Is NeXT supporting Sybase System 10 with a new DB-Library? I know that the old one should work, but how about new datatypes like NUMERIC? Brian gladish@suite.com
From: David Hinz <7587678@mcimail.com> Newsgroups: comp.sys.next.programmer Subject: [Q]: Thread safe I/O? Date: 4 May 1995 19:56:42 GMT Organization: MCI Message-ID: <3obbhq$lfs@hermes.dna.mci.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: 7587678@mcimail.com When using threads under NeXTstep (3.2 or 3.3) are the stdio functions thread-safe (gets, fgets, printf, etc.)? It appears that they are not, is there a compile or link flag that needs to be set to get them to be thread-safe. Thanks, David Hinz
From: y90niemo@herakles.isy.liu.se (Niels Moller) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 04 May 1995 16:27:58 GMT Message-ID: <Y90NIEMO.95May4182758@herakles.isy.liu.se> References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nvj96$7bv@nic.lth.se> <Y90NIEMO.95May2205423@freya.isy.liu.se> <3o77va$qqj@nic.lth.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In-reply-to: d89cb@efd.lth.se's message of 3 May 1995 06:31:06 GMT In article <3o77va$qqj@nic.lth.se> d89cb@efd.lth.se (Christian Brunschen) writes: It may be slightly more efficient -- but it certainly isn't more useful. If I want to send each message to a certain object, with the "- forward:(SEL)" method I'd have to return the id of that object, which is then treated as magical by the runtime, and the message os re-directed to that object. With "- forwardInvocation:" I can do it in two lines: [invocation setTarget:otherObject]; [invocation dispatch]; No magic anywhere -- I'm simply doing what I always do, send messages to Objective-C objects. The runtime doesn't have to treat _anything_ as magical. If that is the way NXInvocation works, is is still difficult to return things larger than id:s. Say an object of mine wants to forward all messages to another object, regardless of the types of the arguments and the return value. I would then try @implementation my_class - forwardInvocation: invocation { [invocation setTarget: someOtherObject]; /* This doesn't work */ return [invocation dispatch]; /* Doesn't work either, if the return value is larger than an id */ return [invocation getReturnValue]; /* Might work, but is non-portable */ __special_magic_builtin_return(invocation); } (Note that this example is trivial with the alternative forward:aSelector method, then I just write -forward:(SEL)aSelector { return someOtherObject;} .) Hmm, perhaps I just found a solution of this puzzle. -forwardInvocation simply returns the invocation object, and then the messager extracts the return value properly. But this is obviously not the way NeXT do it, if forwardInvocation returns void. I'm still puzzled. How does NeXT solve this problem? Of course I assume that my_class need not know anything about which messages will be forwarded through it. Another remark: The step from an Invocation class to a Block class (like in Smalltalk) is not too big. Blocks would be an interesting extension to Objective-C. To do blocks, first som syntax would have to be invented "@{ ... }" ?. Then some compiler support is needed to pack a function pointer, and copies of any local variables used in the function's definition, into a Block object. Invocing the block is then very similar to using the Invocation class. Regards, Niels
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer From: lloyd@world.std.com (Christopher Lloyd) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Message-ID: <D82EC6.BB0@world.std.com> Organization: The World Public Access UNIX, Brookline, MA References: <3nmj6d$1sn@delphi.cs.ucla.edu> <Y90NIEMO.95May2205423@freya.isy.liu.se> <3o77va$qqj@nic.lth.se> <Y90NIEMO.95May4182758@herakles.isy.liu.se> Date: Thu, 4 May 1995 17:38:30 GMT In article <Y90NIEMO.95May4182758@herakles.isy.liu.se>, Niels Moller <y90niemo@herakles.isy.liu.se> wrote: >If that is the way NXInvocation works, is is still difficult to return >things larger than id:s. Say an object of mine wants to forward all >messages to another object, regardless of the types of the arguments >and the return value. I would then try > >@implementation my_class > >- forwardInvocation: invocation >{ > [invocation setTarget: someOtherObject]; > > /* This doesn't work */ > return [invocation dispatch]; > > /* Doesn't work either, if the return value is larger than an id */ > return [invocation getReturnValue]; > > /* Might work, but is non-portable */ > __special_magic_builtin_return(invocation); >} You are forgetting that forward's are generated from inside the ObjC runtime when a selector lookup fails, and in turn return back to the runtime where all the machine dependant argument/return value diddling can me done in private. Sequence of events: - objc_msgSend(object,selector,arg,arg,arg) - selector lookup fails - build NSInvocation instance from objc_msgSend arguments - lookup & call object's forwardInvocation with the NSInvocation instance - ( forwardInvocation executes ) - runtime extracts return value from NSInvocation instance and places in the appropriate stack/register location for a proper return - return. When you perform an [invocation invoke]: - build stack frame from arguments - call method - extract method's return value and places in itself. The machine dependant parts are encapsulated in the runtime (building NSInvocations from the CPU stack, and building CPU return values from the NSInvocation) and the NSInvocation class (building CPU stacks from it's arguments, and copying CPU return values into itself). >Hmm, perhaps I just found a solution of this >puzzle. -forwardInvocation simply returns the invocation object, and >then the messager extracts the return value properly. But this is >obviously not the way NeXT do it, if forwardInvocation returns void. It doesn't have to return an NSInvocation, the runtime extracts the return value from the NSInvocation it sent to you in forwardInvocation. >Another remark: The step from an Invocation class to a Block class >(like in Smalltalk) is not too big. Now you're talking, NSInvocation (and NSProxy) opens up a whole door of integrating other languages and messaging systems with ObjC which would have been highly annoying (and not really portable) to do with the old stuff. -- |: Christopher Lloyd :|: Yrrid Incorporated :|: lloyd@yrrid.com :|
From: nelson@grasshopper.santafe.edu (Nelson Minar) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 3 May 1995 16:37:23 GMT Organization: self Message-ID: <3o8bg3$7pk@tierra.santafe.edu> References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nvj96$7bv@nic.lth.se> <3o32qv$53a@supernova.micrognosis.com> In article <3o32qv$53a@supernova.micrognosis.com>, Christopher Caserio <ccaserio> wrote: >There was a great deal of agonizing at Stepstone over just what was >meant by static binding, or, as I prefer, early binding, in >Objective-C. It allows a significant performance advantage over >dynamic binding when you know the class of an object. I've never seen the Stepstone early binding, so I'm not sure what it does. It seems to me there are two advantages of knowing the static type of an object: efficiency and compile-time error checking. gcc does some compile-time error checking if you tell it what type of object you have. I almost never use (id) as types of objects, I always use (SomeClass *). It's a hassle, and not always possible, but I believe it helps catch a few errors. Unfortunately, I never have understood exactly what checks gcc can do with this information. (The great thing about Objective C vs. C++ is you *can* just say (id) and it all works.) You can also get some of the efficiency of early binding at runtime if you want by caching method lookup via methodFor. (You get a function pointer, so you still pay a dereference cost). This is a bit awkward, but not impossible to deal with. It could be a reasonable compromise to keep the language itself simple. -- __ nelson@santafe.edu \/ http://www.santafe.edu/~nelson/
Newsgroups: comp.sys.next.programmer From: emmerik@knoware.nl (Pieter van Emmerik) Subject: hastable error in /usr/adm/messages, info? Sender: news@knoware.nl (News Account) Message-ID: <emmerik.4.0053E187@knoware.nl> Date: Thu, 4 May 1995 14:17:39 GMT Organization: Holec Projects In /usr/adm/messages i get the following message: Mar 27 17:54:25 rmkomn1 LBSBediening[461]: *** hashtable: count differs after rehashing; probably indicates a broken invariant: there are x and y such as isEqual(x, y) is TRUE but hash(x) != hash (y) The LBSBediening application does not use any HashTable objects. It does read files using NFS. Does anyone have any pointers what this means and how i can solve it? Pleace E-mail: emmerik@knoware.nl P.J.L. van Emmerik Holec Projects Email: emmerik@knoware.nl POBox 565 Voice: +31-74-558688 7550 AN Hengelo Home: +31-74-437084 The Netherlands
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Re: [Q]: Thread safe I/O? Date: 5 May 1995 00:22:20 GMT Organization: Stanford University Message-ID: <3obr3s$9cs@nntp.Stanford.EDU> References: <3obbhq$lfs@hermes.dna.mci.com> David Hinz <7587678@mcimail.com> writes > When using threads under NeXTstep (3.2 or 3.3) are the stdio > functions thread-safe (gets, fgets, printf, etc.)? It appears > that they are not, is there a compile or link flag that needs to > be set to get them to be thread-safe. > > Thanks, > David Hinz These functions are not thread safe no matter what flag you set. You can create an own library like mprintf or such, which locks a lock, calls printf, and releases the lock. That's the only way to do it -- if someone has a better idea, I am all listening. - Stan --- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss CS Guy | | | stanj@cs.stanford.edu NeXTmail / MIME | When you find yourself | | http://www-leland.stanford.edu/~stanj/ | in a hole, stop digging | | Box 2642, Stanford, CA 94309, USA | | +-------------------------------------------+-------------------------+
Newsgroups: comp.sys.next.programmer From: gdkuch@mercator.math.uwaterloo.ca (Jerry Kuch) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Message-ID: <D81AGA.17y@undergrad.math.uwaterloo.ca> Sender: news@undergrad.math.uwaterloo.ca (news spool owner) Organization: University of Waterloo References: <D7tKBp.1I4@undergrad.math.uwaterloo.ca> <3o8f2a$iab@news.next.com> Date: Thu, 4 May 1995 03:16:55 GMT In article <3o8f2a$iab@news.next.com>, Ralph Zazula <rzazula@next.com> wrote: >Jerry Kuch writes >> In article <3nr51f$o3b@tierra.santafe.edu>, >> Nelson Minar <nelson@santafe.edu> wrote: >> >> MatResult = Mat1 + Mat2; > >What I see as a problem with operator overloading is the lack of >information given by a single character. In looking at the above code, I >have no clue what you may have overloaded the '+' operator to do with two >matricies... By having some "verbage" associated with the action, I can >more clearly tell what is going on when looking at code. I agree that this can be a problem. Avoiding this involves pushing some responsibility off on the programmer; whether it's too much to expect of a coder isn't clear to me. I generally try to at least hint at the type of a variable or object in my choice of name for it, using things like 'x' or 'y' or 'temp' only in cases where they're scoped in really tight regions and their meanings are either utterly obvious or nearly irrelevant. At some points in the past I've adhered to Hungarian-style naming conventions fairly religiously although I've relaxed a bit now. I've heard some philosophical discussions that as we think more in terms of objects and polymorphism that Hungarian-style naming conventions are antediluvian. I don't think that's necessarily entirely true. >Most arguments I've seen for operator overloading revolve around numerical >objects. For business or application objects, I think the obvious meaning >of operators like '+' tends to go away. For example, I don't think I'd >want to place a view in the view hierarchy by saying: > > view1 += view2; Here I am in complete agreement. I would find overloading an arithmetic '+' to mean something grotesque like your example or something like "blit this bitmap onto this bitmap with ORing" unacceptable. Personally I'd only use it for numerical or clearly mathematical contexts. Primarily for things whose semantics clearly lend themselves to an equational syntax. My view on operator overloading is that it's only true benefit is that it can allow you to create new mathematical objects or other things whose semantics are essentially arithmetic and to write formulas in a more readable form. However, I've seen a lot of C++ coders who use overloading so heavily and capriciously that their work is just unreadable. They're even more common than those who utterly abuse multiple inheritance.
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: Class Attributes? -- help Date: 4 May 1995 23:21:04 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3obnh0$q5n@news.next.com> References: <3o3f4l$jaf@aplinfo.jhuapl.edu> Mike Hostetter <Michael_Hostetter@JHUAPL.Edu> writes > Sages All, > > I would like to create a class that has an attribute that is not > available to the instances of the class (like the 'name' attribute(?) > that is accessed by the '+ name' or '+ version' class methods of the > Object class). Can anyone tell me how (or if) this is done? > > Thanks, > > Mike (new at NeXT programming) Hi - This is done via a static variable in the class definition. You need to be careful if you want your implementation to allow different values of the attribute for subclasses. Here's an example: 1) value is the same for all subclasses static id classVar = nil; + (void)setClassVar:anObject { classVar = anObject; } + classVar { return classVar; } 2) value can be different in subclasses static HashTable *classVarHash = nil; + (void)setClassVar:anObject { if(!classVarHash) { classVarHash = [[HashTable alloc] init]; } [classVarHash insertKey:self value:anObject]; } + classVar { return classVarHash ? [classVarHash valueForKey:self] : nil; } -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
Newsgroups: comp.sys.next.programmer From: dbhinz@nugget.rmNUG.ORG (David Hinz) Subject: [Q]: Thread safe I/O? Message-ID: <1995May4.195559.3932@nugget.rmNUG.ORG> Organization: Rocky Mountain NeXT Users' Group Date: Thu, 4 May 1995 19:55:59 GMT When using threads under NeXTstep (3.2 or 3.3) are the stdio functions thread-safe (gets, fgets, printf, etc.)? It appears that they are not, is there a compile or link flag that needs to be set to get them to be thread-safe. Thanks, David Hinz 7587678@mcimail.com dbhinz@znih.rmnug.org
From: d89cb@efd.lth.se (Christian Brunschen) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 4 May 1995 21:03:26 GMT Organization: Lund Institute of Technology, Sweden Message-ID: <3obfeu$r4e@nic.lth.se> References: <3nmj6d$1sn@delphi.cs.ucla.edu> <Y90NIEMO.95May2205423@freya.isy.liu.se> <3o77va$qqj@nic.lth.se> <Y90NIEMO.95May4182758@herakles.isy.liu.se> NNTP-Posting-User: d89cb In article <Y90NIEMO.95May4182758@herakles.isy.liu.se>, Niels Moller <y90niemo@herakles.isy.liu.se> wrote: >In article <3o77va$qqj@nic.lth.se> d89cb@efd.lth.se (Christian Brunschen) writes: > > It may be slightly more efficient -- but it certainly isn't more > useful. If I want to send each message to a certain object, with the > "- forward:(SEL)" method I'd have to return the id of that object, > which is then treated as magical by the runtime, and the message os > re-directed to that object. With "- forwardInvocation:" I can do it in > two lines: > [invocation setTarget:otherObject]; > [invocation dispatch]; > No magic anywhere -- I'm simply doing what I always do, send messages > to Objective-C objects. The runtime doesn't have to treat _anything_ > as magical. > >If that is the way NXInvocation works, is is still difficult to return >things larger than id:s. Not really -- you've missed part of what NSInvocation do; it's an easy mistake to make. See below. >Say an object of mine wants to forward all >messages to another object, regardless of the types of the arguments >and the return value. I would then try > >@implementation my_class > >- forwardInvocation: invocation >{ > [invocation setTarget: someOtherObject]; > > /* This doesn't work */ > return [invocation dispatch]; > > /* Doesn't work either, if the return value is larger than an id */ > return [invocation getReturnValue]; > > /* Might work, but is non-portable */ > __special_magic_builtin_return(invocation); >} The following, however, will work: typedef /* something large */ myType; (assume that we have "- (myType) aMethod:(int) arg" that we handle through forwarding) - (void) forwardInvocation:(NSInvocation *)invocation { myType returnvalue; [invocation setTarget: [self aMethodHandler]]; [invocation invoke]; /* "invoke", not "dispatch". sorry. */ [invocation getReturnValue:&returnvalue]; /* what did the invoked invocation return? we put the return value of the invocation in varialbe "retval" */ retval = arbitraryFunction (retval); /* we do whatever we like with retval */ [invocation setReturnValue:&retval]; /* ... and put it back inside the invocation. */ return; /* look -- no value: it's a "- (void)" method after all */ } The return value from the forwwarded call is taken from the object "invocation" (an NSInvocation), not from the return value of the "forwardInvocation:" method. > >(Note that this example is trivial with the alternative >forward:aSelector method, then I just write -forward:(SEL)aSelector { >return someOtherObject;} .) Well, with your proposed "- forward:(SEL)" method, my example above is undoable. However, with NSInvocations (and forwardInvocation) it all works very nicely. > >Hmm, perhaps I just found a solution of this >puzzle. -forwardInvocation simply returns the invocation object, and >then the messager extracts the return value properly. But this is >obviously not the way NeXT do it, if forwardInvocation returns void. Why should forwardInvocation return the NSInvocation object? The runtime already knows which one it is -- the runtime constructed the thing in the first place, so already has a pointer to it! No, there is no meaningful return value from the - forwardInvocation: method, so it returns void, and rightly so. > >I'm still puzzled. How does NeXT solve this problem? Of course I >assume that my_class need not know anything about which messages will >be forwarded through it. The NSInvocation class, coupled with a runtime that uses it, solves the problem quite nicely; you just haven't grasped the "how" yet. > >Another remark: The step from an Invocation class to a Block class >(like in Smalltalk) is not too big. Blocks would be an interesting >extension to Objective-C. To do blocks, first som syntax would have to >be invented "@{ ... }" ?. Then some compiler support is needed to pack >a function pointer, and copies of any local variables used in the >function's definition, into a Block object. Invocing the block is then >very similar to using the Invocation class. Sure, blocks could be useful .. if you had anything that could use them. But there isn't, and if you really need a block, you can write a function and pass the pointer to that around instead. Note that Smalltalk uses blocks for things like if-then-else statements, loops, etc -- all of which are already catered for in Objective-C by other means. I don't think a Block class would, at this time, add much value to Objective-C and its environment. > >Regards, Niels > > Regards // Christian Brunschen -- | Christian Brunschen, Husmansv. 26, S-227 38 Lund, Sweden | | voice/fax/data +46 (0)46 139345, email d89cb@efd.lth.se | | PGP 2.2 Public Key available on request. | ObCelebrityQuote: | | "Oh, foo." | | - Andrew R. Koenig (ark@research.att.com) after dropping a piece | | of chalk during a lecture on C++ in Lund, Sweden, April 1993 |
From: frank@heron.cc.gatech.edu (Frank Cobia) Newsgroups: comp.sys.next.programmer Subject: NSString "withFormat:" methods Date: 5 May 1995 03:02:33 GMT Organization: Cybernetx, Inc. Distribution: world Message-ID: <3oc4g9$mt2@news0.cybernetics.net> In the documentation NeXT uses a format string of @"%@", @"Hello World". Which seems to work fine. But why when I try a format of @"%@", anNSString I get a memory exception error. Is this a bug? What is wrong?? Please help. Frank -- Frank Cobia frank@cobra.cybernetics.net
From: frank@heron.cc.gatech.edu (Frank Cobia) Newsgroups: comp.sys.next.programmer Subject: NSObjects in IB Date: 5 May 1995 03:05:02 GMT Organization: Cybernetx, Inc. Distribution: world Message-ID: <3oc4ku$mte@news0.cybernetics.net> Is it possible to use NSObjects inside IB. They work fine when building the nibs, but cause runtime errors. I have tried implementing read and write methods since NSObject does not, but it does not help. I know there must be a way to do it since NeXT does it with several classes (ie. EOController). Thanks Frank -- Frank Cobia frank@cobra.cybernetics.net
Newsgroups: comp.sys.next.programmer From: emmerik@knoware.nl (Pieter van Emmerik) Subject: PC-(internal-)Speaker driver available? Sender: news@knoware.nl (News Account) Message-ID: <emmerik.3.000C0BBD@knoware.nl> Date: Thu, 4 May 1995 12:59:08 GMT Organization: Holec Projects Is there a sound driver for the PC-speaker that allows me to control the Volume under NEXT v3.2. There is a pretty good PC-speaker driver for MS-Windows. A dirver that would give me the quality of that one under NEXT would be good enough for my application. Anyone out there? Pleace E-mail: emmerik@knoware.nl P.J.L. van Emmerik Holec Projects Email: emmerik@knoware.nl POBox 565 Voice: +31-74-558688 7550 AN Hengelo Home: +31-74-437084 The Netherlands
From: d89cb@efd.lth.se (Christian Brunschen) Newsgroups: comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 4 May 1995 08:08:35 GMT Organization: Lund Institute of Technology, Sweden Message-ID: <3oa223$p61@nic.lth.se> References: <9505021550.AA01646@flexus> <SAMURAI.95May2200418@maggie.cs.mcgill.ca> NNTP-Posting-User: d89cb In article <SAMURAI.95May2200418@maggie.cs.mcgill.ca>, Darcy BROCKBANK <samurai@maggie.cs.mcgill.ca> wrote: ><flexus!rfschtkt@maze.ruca.ua.ac.be> writes: > >>Dear experts, >>>>>> Christian Brunschen writes: >>To clarify: > >>The new "forward" method is actually > > >>- (void) forwardInvocation (NSInvocation *)invocation; > >>So, what's this "NSInvocation" stuff? Well, it's a new class defined >>in OpenStep. It contains _all_) information about the message that is >>being attempted: the target, the selector, the argument types, the >>individual arguments themselves, the return type, and the return >>value. > >>_Any_ type can be returned by this. No more stupid limitation to ids >>(or other pointers). >><<<<< > >My problem with forwardInvocation is that when you invoke the invocation >object, you lose the current stackframe. So code would look like this: > > >- (void)forwardInvocation:(NSInvocation *)invocation; >{ > /* do some twiddling */ > ... > [invocation invoke]; /* or whatever the final semantics are */ > /* NOTREACHED */ >} > >So, the problem is that if you do something in the /* do some twiddling >*/ section that you want to *undo* after passing on the invocation, >you're basically screwed. Are you sure that the stack frame gets blown away ? Because, after reading the documentation (the OpenStep spec), I a) find no evidence that the stack frame should get blown away b) do find indications that the stack frame should _not_ get blown away. Let's look at the text of the spec for the NSInvocation class: ---- begin ---- cut here ---- Copyright (c)1994 by NeXT Computer, Inc. All Rights Reserved. NSInvocation Inherits From:NSObject Conforms To:NSCoding NSObject (NSObject) Declared In:Foundation/NSInvocation.h Class Description Objects of the NSInvocation class provide a system-independent means to construct message calls to other objects. An NSInvocation object constructs a target object to which a message can be sent, a selector for that method, an argument list for the selector, and a return value. NSInvocation objects provide great flexibility in that the methods, method arguments, and targets of the methods may be constructed dynamically. The final sending of the message to the target object can be performed at any time, independent of constructing the invocation. For example, methods could be dispatched based on timer events. In addition, return values from the methods are stored in the NSInvocation object and can be retrieved at any later stage in processing. Also see NSMethodSignature for a description of how to construct method signatures. The Foundation/NSInvocation.h header file defines two macros that may be used as constructors for invocations: NSInvocation *invocation = NS_MESSAGE(target, message) builds an invocation containing a message to a known target object. target is an object id. message consists of a selector followed by any arguments, just like an Objective-C message. NSInvocation *invocation = NS_INVOCATION(class, message) builds an invocation containing a message to the untargeted class object class. message consists of a selector followed by any arguments, just like an Objective-C message. Creating Invocations + (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)sig Returns an invocation object able to construct calls to objects using method selectors with type signatures described by sig. Raises NSInvalidArgumentException if sig is nil. Managing Invocation Arguments - (BOOL)argumentsRetained Returns YES if arguments are retained. - (void)getArgument:(void *)argumentLocation Copies the argument stored at index into the storage atIndex:(int)indexpointed to by argumentLocation where 2 is the index of the first argument, 3 is the index of the second, and so on. - (void)getReturnValue:(void *)retLoc Copies the invocation's return value into the storage pointed to by retLoc. - (NSMethodSignature *)methodSignature Returns the invocation's method signature object. - (void)retainArguments By default, target and arguments are not retained, and C strings are not copied. This method instructs the invocation to retain its arguments, target, and make copies of C strings. This method is invoked automatically by timers. This method should be invoked whenever the dynamic scope of the invocation can exceed its arguments. - (SEL)selector Returns the invocation's selector. - (void)setArgument:(void *)argumentLocation Sets the argument stored at index to the storage pointed to atIndex:(int)index by argumentLocation where 2 is the index of the first argument, 3 is the index of the second, and so on.. - (void)setReturnValue:(void *)retLoc Sets the invocation's return value to that indicated by retLoc. - (void)setSelector:(SEL)selector Sets the invocation's selector to selector. - (void)setTarget:(id)target Sets the invocation's target to target. - (id)target Returns the invocation's target; returns nil if there is no target. Dispatching an Invocation - (void)invoke Causes the message encoded in the invocation to be dispatched to its target. - (void)invokeWithTarget:(id)target Causes the message encoded in the invocation to be dispatched to target. ---- end ---- cut here ---- There are provisions for creating your own NSInvocations, for reading and writing the arguments, and for reading and writing the return value. Nowhere is it indicated that there is anything "magical" about it keeping track of the stackframe it should return to, or anything like that. If anything, I beleive that writing that kind of magic into NSInvocation would require _more_ work, and would be a lot more likely to break, than to simply implement it they way I intuitively think it works: namely, that the "invoke" messages return to the stack frame they were called from, just like any other method calls. The "not reached" section in your example above would, in fact, _be_ reached, and the programmer could do anything he wants with the return value. Of course, since the foundation library included with NS3.3Dev doesn't include a full implementation of the NSInvocation class, I have no way to check if what I'm assuming is true, or if you are right instead. > >For example, say you wanted to make your object some kind of a >validation object. You intend on using forward to make your object >generic, so it can sit between two classes, and check the return value >of all messages, and run an alert panel if a certain condition is made. > >With the old forward, combined with the runtime, you can do this. You >just forward the message, and check the return before returning >yourself. > >I suppose you can still do this by extracting the information >representing the method call yourself, then getting the function >pointer, and constructing it, but that's very hard to do in a generic >way (ie. this is what the implementation of NSInvocation is ;-). So, >it's a major-big flaw in NSInvocation that it's going to blow away the >stack on you. The coolest thing would be for the "invoke" method to not >blow away the stack, so you can check on the return value. Then, if you >want, you can say [invocation blowAwayStack] and return happily, knowing >that the stack has the stuff on it that you wanted put there (especially >if you wanted to twiddle it yourself). > >So, that's the advantage -performv:: had over -invoke; It's another >instance of a 1.0 specification (where they'd have us believe this is >all 4.0 stuff... it's not boys and girls, expect some growing pains). I cannot see what reason there would be for NeXT to start "blowing away stack frames" in the NSInvocation class; this would require special-purpose code, break existing code (that modifies return values), and the above description of the class wouldn't really make sense. After all, I can create my own NSInvocation, set the target, the arguments, and invoke it; I would then _very much_ expect it to return to me and no one else, so that I can look at and/or modify the return value. So, at least, you should be able to do this: in -forwardInvocation: , create a new NSInvocation object; set its selector to the same as in the one passed to forwardInvocation, copy the arguments, and invoke the invocation. _That_ invocation most certainly *cannot* return to any place other than the forwardInvocation method it was called from, so you can modify the return value to your heart's content ... Actually, here is a short description of what I _think_ happens in the forwarding system inside Objective-C: (assuming that we are trying to do "- (int) aMethod: (int) arg") (something -- a C function, method, or whatever) calls "anInt = [ anObject aMethod:anotherInt ];" the runtime sends "respondsToSelector:@selector(aMethod:)" to anObject, which returns NO the runtime constructs an NSInvocation object, "inv", with the correct selector, arguments, etc the runtime calls "[ anObject forwardInvocation: inv ];" in forwardInvocation: , anObject can do whatever it wants, including invoking the NSInvocation; but it doesn't have to; it can use "[ inv setReturnValue: &theReturnVal ];" to set the return value if it likes; in this case, we do: - (void) forwardInvocation: (NSInvocation *) inv { int retval; [inv setTarget: [self getFriend]]; [inv invoke]; [inv getReturnValue:&retval]; retval = retval * 2; [inv setReturnValue:&retval]; } The "forwardInvocation" method call returns, and we're back in the runtime. The runtime now uses "[inv getReturnValue: returnValueAddress];" to put the return value on the stack where it belongs. It then returns to the calling method, C-function, or whatever. The above scenario is probably wrong in some details, but (to me) it seems like the inutuitive way to do it. Making the NSInvocation class magic in respect to stack frames would be stupid, counter-productive, and a BIG MISTAKE in the name of generality and flexibility. And I just don't beleive (unless you can give me proof) that NeXT would first add a class that makes handling method calls simpler, then remove a vital part of that class's functionality, and do it in a way that makes the work of the compiler implementers (and NSInvocation implementers) harder and more complex. Also, I think that Sun, who worked with NeXT on the OpenStep spec, would have balked very loudly at something of that sort. > >- db > > > > >-- >You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you >wouldn't see a subtle plan if it painted itself purple and danced naked on >top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- >The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat -- Best regards // Christian Brunschen -- | Christian Brunschen, Husmansv. 26, S-227 38 Lund, Sweden | | voice/fax/data +46 (0)46 139345, email d89cb@efd.lth.se | | PGP 2.2 Public Key available on request. | ObCelebrityQuote: | | "Oh, foo." | | - Andrew R. Koenig (ark@research.att.com) after dropping a piece | | of chalk during a lecture on C++ in Lund, Sweden, April 1993 |
From: wchiu@mailbox.syr.edu (Wenshin CHIU) Newsgroups: comp.sys.next.bugs,comp.sys.next.programmer Subject: Re: 3.3 Dev C++ bug Followup-To: comp.sys.next.bugs,comp.sys.next.programmer Date: 5 May 1995 07:35:31 GMT Organization: Syracuse University, Syracuse NY, USA Message-ID: <3ockg3$f7d@newstand.syr.edu> References: <D7sCIL.qw@dutiws.twi.tudelft.nl> Dimitri Tischenko (dimitri@duti609a.twi.tudelft.nl) wrote: : Unless I'm fooled by C++'s delicate exceptions, this is a bug. : The following program, while correct, does not compile with NeXT's 3.3 : cc++ (version cc-437.2.6, gcc version 2.5.8). I have found no : workaround. What I did find was that in a less complex situation, when : A1 and A2 both declare one abstract method instead of two, : the order in which the classes are inherited by B is significant. If : the class whose method is ovveridden first, is inherited first, the : program compiles. Otherwize, you get the same error as in the program : below. : === example program : #include <stdio.h> : class A1 : { : public: : virtual void f1(void) = 0; : virtual void g1(void) = 0; : }; : class A2 : { : public: : virtual void f2(void) = 0; : virtual void g2(void) = 0; : }; : class B : public A1, public A2 : { : }; : class C : public B : { : public: : virtual void f1(void) {printf("C::f1\n"); } : virtual void f2(void) {printf("C::f2\n"); } : }; : class D : public C : { : public: : virtual void g1(void) {printf("D::g1\n"); } : virtual void g2(void) {printf("D::g2\n"); } : }; : main(void) : { : D d; : d.f1(); : d.g2(); : } : === : Dimitri : -- : +------------------------------------------------------------------------+ : | Dimitri Tischenko | D.B.Tischenko@TWI.TUDelft.NL | NeXTmail preferred! | : +------------------------------------+-----------------------------------+ : | Delft University of Technology | NeGeN | : | Fac Applied Math & Computer Science| NEXTSTEP Gebruikers Nederland | : | Dep of Statistics, Probabilitistics| NiNe | : | and Operations Research | NEXTSTEP In the Netherlands | : +------------------------------------+-----------------------------------+ try: class B: public A1, A2 { void f1() {}; void f2() {}; void g1() {}; void g2() {}; } I think it should work. Kelvin
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Thu, 4 May 95 11:33:35 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505040933.AA00319@flexus> Subject: Re: delegation semantics: respondsTo: ? >>>>> Klaus Brouwer writes: Yes, you just has to implement the methods he wants and NO, -respondsTo: is NOT used. It is done by defining a category for the Object class. If a delegate doesn't respond to method it goes right through him and is cought by Object's method. <<<<< Not true. Just because those methods are declared doesn't mean they're implemented. And they are not. Examples: windowDidResize: is implemented by 4 kinds of panels (not by Object), and windowDidChangeScreen: is implemented by no class at all (NEXTSTEP_3.2). You are free to use this strategy instead, of course. But think about another aspect of delegation: many/all classes that use a delegate will revert to the implementation in itself if there is no delegate or if it does not respond to that particular message. How do you mimic that with a default implementation in Object? You can override respondsTo: in the delegate to dynamically change responsiveness. This allows you to change its nature as an NXBrowser delegate (normal, lazy, very lazy). But those are dirty tricks which you should not use. Well, if the other party started... :-) Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: David Haworth <dave@tigcomms.demon.co.uk> Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.sys.next.programmer,comp.windows.ms.programmer,comp.unix.programmer,comp.os.msdos.programmer,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,rec.games.programmer Subject: Re: JOB OPENING - Multimedia Programmer Date: 5 May 1995 09:31:12 +0100 Organization: Tiger Communications plc Sender: news@news.demon.co.uk Message-ID: <90023786wnr@tigcomms.demon.co.uk> References: <D7yvxu.EzK@agora.rdrop.com> <D7qDAF.Bzu@agora.rdrop.com> <D7rq6t.LqF@emr1.emr.ca> <them.30.0003E271@slip.net> Just a thought - shouldn't it be MULTIMEDIUM ? We never say "multiprocessors" or "multiprotocols", so why the plural? ========== David Haworth Tiger Communications plc Cuius testiculos habes dave@tigcomms.demon.co.uk habeas cardia et cerebellum.
Newsgroups: comp.sys.next.programmer From: bonapart@huajai.cs.HamptonU.EDU (Justin Bonaparte) Subject: Re: JOB OPENING - Multimedia Programmer Message-ID: <D7zAD1.Fo9@fennel.cs.hamptonu.edu> Sender: news@fennel.cs.hamptonu.edu (USENET News Admin) Organization: Hampton University - Dept. of Computer Science References: <D7wvo5.Kz1@ccc.amdahl.com> Date: Wed, 3 May 1995 01:19:49 GMT In article <D7wvo5.Kz1@ccc.amdahl.com> patrick@vega.oes.amdahl.com (Patrick Horgan) writes: > What about Amigas? > > Sorry, couldn't resist. > > Patrick > -- Long live the Amiga!!!!!!!!!!!!!!!!!!!! Couldn't resist either Amiga 500 GVP 120MB HD and 4 whopping megs ram!!!!!!!!!!
From: warnerr@beethoven ( richard warner) Newsgroups: comp.sys.next.programmer Subject: Creating 24-bit tiff Date: 3 May 1995 17:09:38 GMT Organization: Colorado State University, Fort Collins, CO 80523 Message-ID: <3o8dci$2lkv@yuma.ACNS.ColoState.EDU> Hi - My program genera#################################################################### Path: news.informatik.uni-muenchen.de!lrz-muenchen.de!news.uni-augsburg.de!nntp.fh-augsburg.de!news.dfn.de!Germany.EU.net!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!lll-winken.llnl.gov!venus.sun.com!nntp-hub2.barrnet.net!nntp-hub.barrnet.net!news.NeXT.COM!usenet From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 3 May 1995 17:38:18 GMT Organization: NeXT Computer, Inc. Lines: 32 Distribution: world Message-ID: <3o8f2a$iab@news.next.com> References: <D7tKBp.1I4@undergrad.math.uwaterloo.ca> Reply-To: rzazula@next.com NNTP-Posting-Host: dizzy.next.com Jerry Kuch writes > In article <3nr51f$o3b@tierra.santafe.edu>, > Nelson Minar <nelson@santafe.edu> wrote: > > > >NO! No operator overloading. Honestly, you don't want it. > > What's so awful about simple operator overloading like the ability to modify > the usual binary operators to handle arithmetic on new classes such as > matrices, complex numbers, or whatever? I would find: > > MatResult = Mat1 + Mat2; > What I see as a problem with operator overloading is the lack of information given by a single character. In looking at the above code, I have no clue what you may have overloaded the '+' operator to do with two matricies... By having some "verbage" associated with the action, I can more clearly tell what is going on when looking at code. Most arguments I've seen for operator overloading revolve around numerical objects. For business or application objects, I think the obvious meaning of operators like '+' tends to go away. For example, I don't think I'd want to place a view in the view hierarchy by saying: view1 += view2; -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
Newsgroups: comp.sys.next.programmer From: jesperse@rft28.nas.nasa.gov (Dennis Jespersen) Subject: program dumps core when run from script Message-ID: <JESPERSE.95May4110921@rft28.nas.nasa.gov> Sender: news@cnn.nas.nasa.gov (News Administrator) Organization: Computational Algorithms and Applications Branch, NASA Ames Research Center Date: Thu, 4 May 1995 18:09:21 GMT I have a large Fortran program which I compiled with the g77-0.5.14/gcc-2.6.3 combination, and everything works fine when I run the program by hand. But when I run it from a csh script (#! /bin/csh -f) I get a core dump. gdb shows the following when invoked on the core file: (gdb) where Reading in symbols for main.c...done. #0 0x5008c68 in nxzonefreenolock () #1 0x5008b22 in nxzonemallocnolock () #2 0x50090b8 in nxzonemalloc () #3 0x5009968 in malloc () #4 0x4d0a2 in getarr_ () #5 0x4d3e4 in gettmp_ () #6 0xc55be in reck_ () #7 0xc7648 in rhse_ () #8 0xffa14 in rhs_ () #9 0x100b8a in step_ () #10 0x608e in overfl_ () #11 0x68ee in MAIN__ () #12 0x191a12 in main (argc=1, argv=0x3fffa50) at main.c:118 This is NS 3.2 on black hardware (68040 cube). Any ideas about what could be causing a core dump? This program runs perfectly well when run from the command line. Dennis Jespersen Voice: (415) 604-6742 MS T27B-1 FAX: (415) 604-1095 NASA Ames Research Center email: jesperse@rft28.nas.nasa.gov Moffett Field, CA 94035-1000 We have met the enemy and he is us. -- Pogo -- Dennis Jespersen Voice: (415) 604-6742 MS T27B-1 FAX: (415) 604-1095 NASA Ames Research Center email: jesperse@rft28.nas.nasa.gov Moffett Field, CA 94035-1000 We have met the enemy and he is us. -- Pogo
From: Christopher Caserio <objex@pcnet.com> Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 4 May 1995 19:17:30 GMT Organization: Objex Consulting Message-ID: <3ob98a$so8@supernova.micrognosis.com> References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nvj96$7bv@nic.lth.se> <3o32qv$53a@supernova.micrognosis.com> <3o8bg3$7pk@tierra.santafe.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit nelson@grasshopper.santafe.edu (Nelson Minar) wrote: > >I've never seen the Stepstone early binding, so I'm not sure what it >does. It seems to me there are two advantages of knowing the static >type of an object: efficiency and compile-time error checking. > Efficiency: The method invokation overhead for early binding no more than half that of a well-written message dispatcher. Compile-time error checking: The compiler can determine whether a given method invokation will be valid for instances of a given class. This can avoid runtime errors. Note that posing can modify the runtime environment and defeat the compile-time checking; this was part of the agony... >gcc does some compile-time error checking if you tell it what type of >object you have. I almost never use (id) as types of objects, I always >use (SomeClass *). It's a hassle, and not always possible, but I >believe it helps catch a few errors. Unfortunately, I never have >understood exactly what checks gcc can do with this information. >(The great thing about Objective C vs. C++ is you *can* just say (id) >and it all works.) > This sounds just like the Stepstone implementation. Granted, it was all quite some time ago, the internals may be different... id is extremely useful when building generic elements. When bolting application code together, you will probably want to at least be able to stipulate a particular ancestor for an object before relying on its ability to perform a requested task. >You can also get some of the efficiency of early binding at runtime if >you want by caching method lookup via methodFor. (You get a function >pointer, so you still pay a dereference cost). This is a bit awkward, >but not impossible to deal with. It could be a reasonable compromise >to keep the language itself simple. This is one of the things which should probably be suspect in a distributed architecture. Use of id as a pointer (e.g. ((ClassType*)obj)->ivar) and caching method implementation pointers should only be used in local clusters of objects. Persistence, distribution, mobility, naming, etc. all become very complicated when objects can be directly manipulated by C code. -- Christopher P. Caserio Objex Consulting 203.596.7758 objex@pcnet.com 80 Randolph Avenue Waterbury, CT 06710
Newsgroups: comp.lang.objective-c,comp.sys.next.programmer From: cracauer@wavehh.hanse.de (Martin Cracauer) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Message-ID: <1995May5.061244.17220@wavehh.hanse.de> Organization: The poor LISPers' hacking kitchen References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nvj96$7bv@nic.lth.se> <3o32qv$53a@supernova.micrognosis.com> <3o8bg3$7pk@tierra.santafe.edu> <3ob98a$so8@supernova.micrognosis.com> Date: Fri, 5 May 95 06:12:44 GMT Christopher Caserio <objex@pcnet.com> writes: >nelson@grasshopper.santafe.edu (Nelson Minar) wrote: >> >>I've never seen the Stepstone early binding, so I'm not sure what it >>does. It seems to me there are two advantages of knowing the static >>type of an object: efficiency and compile-time error checking. >> >Efficiency: The method invokation overhead for early binding no more than >half that of a well-written message dispatcher. Don't forget that static binding enables inlineing, and *that* can cause a dramatic speedup, especially when you want to have an object wrapper around what is usually implemented as a struct in current ObjC. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer <cracauer@wavehh.hanse.de>. No NeXTMail, please. Norderstedt/Hamburg, Germany. Fax +49 40 522 85 36. This is a private address. At (netless) work programming in data analysis.
From: rruth@studio.disney.com (Richard Ruth) Newsgroups: comp.sys.next.programmer Subject: Sybperl can't load DBlib Date: 4 May 1995 19:46:00 GMT Organization: Walt Disney Studios Message-ID: <3obato$osk@cabinboy.studio.disney.com> Summary: Sybperl won't load it's library Keywords: Sybperl Perl DBlib I receive the following errors when I attempt to use Sybperl: --- Can't load '/usr/local/lib/perl5/m68k-next/auto/Sybase/DBlib/DBlib.shlib' for module Sybase::DBlib: rld(): Undefined symbols: _strlen ... <<many symbols>> .. at /usr/local/lib/perl5/Sybase/DBlib.pm line 96 BEGIN failed--compilation aborted at w.pl line 17. --- w.pl line 17 is: use Sybase::DBlib; DBlib.pm line 96 is: bootstrap Sybase::DBlib; finally '/usr/local/lib/perl5/m68k-next/auto/Sybase/DBlib/DBlib.shlib' does exist and is readable by everyone. I am running perl5.000 (all tests were ok) under NEXTSTEP 3.2. Sybperl-2a7 compiled without problem and the tests: t/dblib.............ok t/dbmoney...........ok t/sybperl...........memory allocation error: attempt to free or realloc space not in heap This should not affect the problem because I was using Sybase::DBlib not Sybase::Sybperl. Any help or suggestions would be greatly appreciated. Please reply to rruth@studio.disney.com (and not whats on the from line) Thanks. -- Richard rruth@studio.disney.com (NeXT-Mail welcome)
Newsgroups: comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.sysadmin From: walshc@ecf.toronto.edu (Colin Walsh) Subject: Controlling 'Request To Send' on the serial lines. Message-ID: <D82JFu.5AE@ecf.toronto.edu> Sender: news@ecf.toronto.edu (News Administrator) Organization: University of Toronto, Engineering Computing Facility Date: Thu, 4 May 1995 19:28:42 GMT I want to control Request to Send and Data Terminal Ready independently. From the man pages on ioctl, and from ioctl.h, I have worked out how to set and clear DTR. There are also magic numbers related to RTS and it appears that both DTR and RTS should be controlled through either the line discipline requests TIOCGETD/TIOCSETD or the modem state requests TIOCMODG/TIOCMODS or the line parameter requests TIOCGETP/TIOCSETP However, nothing that I do with the set requests or by clearing or setting DTR has any effect on the parameters returned by the above three get requests. Staggering blindly through the source code for kermit and tip didn't get me anywhere either. I am running NS2.1 on a 68040 NeXTstation, mono. Can anyone help me out here? Thanks. Colin Walsh No NeXTmail, walshc@ecf.toronto.edu
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: NSObjects in IB In-Reply-To: frank@heron.cc.gatech.edu's message of 5 May 1995 03:05:02 GMT Message-ID: <RDL.95May5221023@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3oc4ku$mte@news0.cybernetics.net> Date: Sat, 6 May 1995 02:10:23 GMT NSObject subclasses use the NSCoding protocol (encodeWithCoder: and initWithCoder:) whereas Object subclasses use (write: and read:) There are several restrictions that are well-documented in the on-line reference manuals. Robert La Ferla Registered NEXTSTEP Consultant / Developer / Trainer HTI
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Creating 24-bit tiff In-Reply-To: warnerr@beethoven's message of 3 May 1995 17:09:38 GMT Message-ID: <RDL.95May5221357@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3o8dci$2lkv@yuma.ACNS.ColoState.EDU> Date: Sat, 6 May 1995 02:13:57 GMT You can set the default NXWindowDepthLimit TwentyFourBitRGB to force any application to use 24-bit color depth. Robert La Ferla HTI Registered NEXTSTEP Consultant / Developer / Trainer
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Linkling Libraries into Palettes In-Reply-To: bm10009@hermes.cam.ac.uk's message of 2 May 1995 22:09:43 GMT Message-ID: <RDL.95May5222114@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3o6aj7$611@lyra.csx.cam.ac.uk> Date: Sat, 6 May 1995 02:21:14 GMT No, you haven't missed anything. NeXT has and they have been aware of the problem for quite some time. The work-a-round is in the Makefile.preamble: OTHER_OFILES = /usr/local/lib/libCustomLib.a Robert La Ferla Registered NEXTSTEP Consultant / Developer / Trainer HTI
Control: cancel <D83vwy.38q@bath.ac.uk> Newsgroups: comp.sys.next.programmer From: mapdjb@bath.ac.uk (D J Batey) Subject: cancel Message-ID: <D8402s.92A@bath.ac.uk> Organization: School of Mathematical Sciences, University of Bath, UK Date: Fri, 5 May 1995 14:25:37 GMT <D83vwy.38q@bath.ac.uk> was cancelled from within trn.
From: sela@iastate.edu Newsgroups: comp.sys.next.programmer Subject: PERL under NS 3.1? Date: 5 May 1995 19:36:34 GMT Organization: Iowa State University, Ames, Iowa Distribution: world Message-ID: <3oduo2$58s@news.iastate.edu> Is there a perl out there that will work under NS 3.1? -- *******************IOWA***STATE***UNIVERSITY******************** * Brian Morrison sela@iastate.edu (NeXT Mail welcome!) * * --------------------------------------------------------- * * He who throws mud loses ground. * ****************************************************************
Newsgroups: comp.sys.next.programmer From: walshc@ecf.toronto.edu (Colin Walsh) Subject: Controlling 'Request To Send' on the serial lines. Message-ID: <D82pK6.Cqn@ecf.toronto.edu> Sender: news@ecf.toronto.edu (News Administrator) Organization: University of Toronto, Engineering Computing Facility Date: Thu, 4 May 1995 21:40:53 GMT I want to control Request to Send and Data Terminal Ready independently. From the man pages on ioctl, and from ioctl.h, I have worked out how to set and clear DTR. There are also magic numbers related to RTS and it appears that both DTR and RTS should be controlled through either the line discipline requests TIOCGETD/TIOCSETD or the modem state requests TIOCMODG/TIOCMODS or the line parameter requests TIOCGETP/TIOCSETP However, nothing that I do with the set requests or by clearing or setting DTR has any effect on the parameters returned by the above three get requests. Staggering blindly through the source code for kermit and tip didn't get me anywhere either. I am running NS2.1 on a 68040 NeXTstation, mono. Can anyone help me out here? Thanks. Colin Walsh No NeXTmail, walshc@ecf.toronto.edu
Newsgroups: comp.sys.next.programmer From: (Raul Alvarez) Subject: Re: JOB OPENING - Multimedia Programmer Message-ID: <1995May5.130747.3245@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <90023786wnr@tigcomms.demon.co.uk> Date: Fri, 5 May 1995 13:07:47 GMT David Haworth <dave@tigcomms.demon.co.uk> writes > Just a thought - shouldn't it be MULTIMEDIUM ? > We never say "multiprocessors" or "multiprotocols", so why the plural? > > ========== > David Haworth > Tiger Communications plc Cuius testiculos habes > dave@tigcomms.demon.co.uk habeas cardia et cerebellum. According to Websters media, or medias is correct but still not widely accepted. The following comes from Digital Webster's: 2media n, pl me di as often attrib [pl. of medium] (1923) :MEDIUM 2b usage The singular media and its plural medias seem to have originated in the field of advertising over 50 years ago; they are apparently still so used without stigma in that specialized field. In most other applications media is used as a plural of medium. The great popularity of the word in references to the agencies of mass communication is leading to the formation of a mass noun, construed as a singular there's no basis for it. You know, the news media gets on to something Edwin Meese 3d but this use is not as well established as the mass-noun use of data and is likely to incur criticism esp. in writing.
Newsgroups: comp.sys.next.programmer From: mmelikov@cs.washington.edu (Misha Melikov) Subject: Shared Libraries Message-ID: <D841nA.Fvu@beaver.cs.washington.edu> Sender: news@beaver.cs.washington.edu (USENET News System) Organization: Computer Science & Engineering, U. of Washington, Seattle References: <3o1h75$at8@spool.cs.wisc.edu> Date: Fri, 5 May 1995 14:59:14 GMT I remember there was a discussion here about creating shared libraries. Could someone help me out with copies of this thread? -misha P.S. Pls. reply to misham@fnbc.com
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/Career Positions/ 5 States Date: 6 May 1995 19:23:07 GMT Organization: Norden 1 Communications Message-ID: <3ogiar$qne@news1.channel1.com> The OMNI GROUP, an Ohio search firm, is currently representing companies in five states that specialize in the NEXTSTEP platform. These positions are for both, developers and system administrators. All positions are career positions with outstanding opportunities. Relocation assistance is being offered. Benefits are excellent To be considered, please fax or mail a hard copy resume. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: Greg.Titus@mccaw.com (Greg Titus) Newsgroups: comp.sys.next.programmer Subject: Re: New interface objects in 3.3? Date: 5 May 1995 00:04:41 GMT Organization: McCaw Cellular Communications, Inc. Distribution: world Message-ID: <3obq2p$4bj@nwestmail.entp.mccaw.com> References: <3o5aor$cuc@cosmos.imag.fr> In article <3o5aor$cuc@cosmos.imag.fr> arrouye@petole.imag.fr (Yves Arrouye) writes: > Hi, > > I would like to know if the tab viewer (used in IB former suitcase > window) and the hierarchical lists withy small dimples (used in the > class view and in OmniWeb's Bookmarks window) are available as interface > objects in NS 3.3 (or EOF 1.1): I cannot find them in any palette, nor > do I have any idea of what they could be named... You can find a tab viewer object (I believe it's called TabView but I could be wrong) in MiscKit, I believe. The hierarchical list view I wrote myself for OmniWeb (although I did grab the icons out of IB), and I don't think that NeXT's is publicly available anywhere. --Greg > > Thanks for any help, > Yves. --------------------- Greg Titus Omni Development Inc. toon@omnigroup.com
From: chris@opensource.com Newsgroups: comp.sys.next.programmer Subject: stupid question profiling an app and PB Date: 5 May 1995 22:55:42 GMT Organization: Rocky Mountain Internet Inc. Distribution: usa Message-ID: <3oeade$cbi@natasha.rmii.com> Keywords: profile PB NS3.2 Folks, Here is a stupid question. How do you get a gprof ready executable. I did the obvious, set the build target to profile, however rather than the appropriate executable I got: cc -g -pg -O -Wall -DPROFILE -I./sym -DACCESSOR_METHODS -arch m68k -ObjC -all_load -sectcreate __ICON __header Enterprise.iconheader -segprot __ICON r r -sectcreate __ICON app App.tiff -o Enterprise.profile/Enterprise m68k_profile_obj/CheckAssociation.o m68k_profile_obj/CustomerOrder.o m68k_profile_obj/CustomerOrderView.o m68k_profile_obj/Dispatcher.o m68k_profile_obj/FlipViewAssociation.o m68k_profile_obj/Invoice.o m68k_profile_obj/InvoiceEditor.o m68k_profile_obj/InvoiceItem.o m68k_profile_obj/MasterDetailEditor.o m68k_profile_obj/NSObject-IBFixes.o m68k_profile_obj/OrderEditor.o m68k_profile_obj/OrderItem.o m68k_profile_obj/ProductEditor.o m68k_profile_obj/PurchaseEditor.o m68k_profile_obj/UniqueKey.o m68k_profile_obj/VariousFixes.o m68k_profile_obj/Enterprise_main.o m68k_profile_obj/OrderForm.o -lFlipPalette -lOATextField -lEOAccess_s -lEOInterface_s -lFoundation_s -lNeXT_s ld: multiple definitions of symbol _exit /lib/gcrt0.o definition of _exit in section (__TEXT,__text) /lib/libsys_s.a(exit.o) definition of absolute _exit (value 0x50024b0) *** Exit 1 Stop. *** Exit 1 Stop. I tried several other things. In terms of various library linking and compiler options to no avail. Any suggestions? I am using NS3.2 and Developer 3.2 and EOF 1.1. Chris
From: thiel@ife.ee.ethz.ch (Andreas Thiel) Newsgroups: comp.sys.next.programmer Subject: loadNibFile doesn't send awake nor init to panel Date: 3 May 1995 17:10:56 GMT Organization: Institute for Electronics, ETH Zuerich, Switzerland Distribution: world Message-ID: <3o8df0$rul@elna.ethz.ch> Hi folks, I read a lot - obviously not enough - about that nice "loadNibFile:owner:withNames:fromZone" method of NXApp. Actually I try to load a Nib-file which contains a panel of the class myClass which is a subclass of panel. Unfortunately, neither the awake method nor the init method of myClass are called after loading of the nib-file as it should be according to the documentation of the application class. So, what's wrong? I run NSDev 3.2 and NS 3.3 on Intel. Please only (sorry) non NeXT-mail! Thanx Andy -- ------------------------------------------------------------------------------ Andreas Thiel Electronics Laboratory | Institut fuer Elektronik Swiss Federal Institute of Technology Zurich | ETH Zuerich Gloriastrasse 35 | Gloriastrasse 35 | CH-8092 Zurich | CH-8092 Zuerich |
From: thiel@ife.ee.ethz.ch (Andreas Thiel) Newsgroups: comp.sys.next.programmer Subject: Re: loadNibFile doesn't send awake nor init to panel Date: 3 May 1995 17:57:17 GMT Organization: Institute for Electronics, ETH Zuerich, Switzerland Distribution: world Message-ID: <3o8g5t$ss3@elna.ethz.ch> References: <3o8df0$rul@elna.ethz.ch> Sorry, Sorry, Sorry I had only to use the **designated initializer** Andy -- ------------------------------------------------------------------------------ Andreas Thiel Electronics Laboratory | Institut fuer Elektronik Swiss Federal Institute of Technology Zurich | ETH Zuerich Gloriastrasse 35 | Gloriastrasse 35 | CH-8092 Zurich | CH-8092 Zuerich |
From: paul@washburn.Princeton.EDU () Newsgroups: comp.sys.next.programmer Subject: sound driver on Pentium and Sparc Date: 5 May 1995 21:48:22 GMT Organization: Princeton University Distribution: world Message-ID: <3oe6f6$md6@cnn.Princeton.EDU> Originator: paul@washburn I've tried the sound driver on a Pentium 90, and now on a Sparc 5 and neither work very well (44khz, 16-bit, 2 channel). Does anyone have any wisdom on this? (on the same machines sound works fine under Windows and Solaris). Is there a solution in sight? Any recommendations? thanks paul lansky paul@silvertone.princeton.edu
Newsgroups: comp.sys.next.programmer From: tini@gurke.ping.de (Constantin Szallies) Subject: A Solution: NXBrowser and setPath Message-ID: <D8683q.2zM@gurke.ping.de> Sender: usenet@gurke.ping.de Organization: Legalize THC Date: Sat, 6 May 1995 19:14:14 GMT Problem: If an NXBrowser has a column with two identical enties - one a leaf, one a node -, there is no way to tell the "setPath" method which one to choose. One solution is to have unique names, by prefixing them with for instance an id, and not displaying the prefix. You can do this with a subclass of NXBrowserCell. The other solution is somewhat simpler. (A matter of taste, probably) I supclassed "setPath:". I assume the following: the cells in every matrix are sorted so that a leaf comes before a node when the two cells have the same string value. Now when setPath is called with a path like "@first@second@third", I call [super setPath] with just "@first@second". If there are two "second" cells, the one which is a leaf will be select, because NXBrowser searches the matrix from bottom to top and finds the leaf first! Then I select "third" "by hand". When the last character is the path separator, then I just call super's setPath with the full path. "@first@second@" selects the node "second", "@first@second" will select the leaf "second" Here's the code, what works for me. You can't set a relative path with this method, but an extension is easy. - setPath:(const char *)aPath { char *newPath,*c; id bmatrix; int i,j; NX_ASSERT(*aPath==(char)pathSeparator,"setPath: wrong pathstring"); if(aPath[strlen(aPath)-1]==(char)pathSeparator){ if([self selectedCell]!=nil) [[self matrixInColumn:[self lastColumn]] selectCellAt:-1 :-1]; return [super setPath:aPath]; } newPath=NXCopyStringBuffer(aPath); c=strrchr(newPath,pathSeparator); NX_ASSERT(c!=NULL,"setPath: internal error"); *c='\0'; if(*newPath=='\0'){ char p[]=' '; *p=pathSeparator; [super setPath:p]; } else if([super setPath:newPath]==nil) return nil; c++; bmatrix=[self matrixInColumn:[self lastColumn]]; [bmatrix getNumRows:&j numCols:&i]; for(i=0;i<j;i++){ id aCell=[bmatrix cellAt:i :0]; if(!strcmp([aCell stringValue],c)) if([aCell isLeaf]){ [bmatrix selectCellAt:i :0]; break; } } free(newPath); [self scrollColumnToVisible:[self lastColumn]]; if(i==j) return nil; return self; } -- <--------------------------------------------------------------> | Constantin Szallies ||| tini@gurke.ping.de | | Emil Figge 7 44227 Dortmund (o o) Tel: 0231/7519681 | <------------------------------oOo--(_)--oOo------------------->
From: lerman@lerman.nai.net (Kenneth Lerman) Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Followup-To: comp.lang.objective-c,comp.sys.next.programmer Date: 7 May 1995 00:56:38 GMT Organization: Compusoft Public access UNIX Message-ID: <3oh5s6$mii@a3bsrv.radnet.com> References: <3nmj6d$1sn@delphi.cs.ucla.edu> <3nvj96$7bv@nic.lth.se> <Y90NIEMO.95May4182758@herakles.isy.liu.se> Niels Moller (y90niemo@herakles.isy.liu.se) wrote: : In article <3o77va$qqj@nic.lth.se> d89cb@efd.lth.se (Christian Brunschen) writes: : (like in Smalltalk) is not too big. Blocks would be an interesting : extension to Objective-C. To do blocks, first som syntax would have to : be invented "@{ ... }" ?. Then some compiler support is needed to pack : a function pointer, and copies of any local variables used in the : function's definition, into a Block object. Invocing the block is then : very similar to using the Invocation class. : Regards, Niels Not exactly. Smalltalk blocks can access the local variables of the invoking functions. And in fact, two blocks created in the same context also share that context. But that doesn't mean that it can't be done right. Local variables of a function which are also used by blocks in that context must be allocated dynamically (by malloc, perhaps) and must NOT be on the stack. Then, the block must be passed a hidden argument which is a pointer to this context. The context must either have a use count or some other means of garbage collecting it when the last user of the context exits. At any rate, it can be done, and it should be done, even though it gets pretty complex when blocks are nested within one another. Blocks are THE solution for exception handling. Consider the possibilities when you can pass the I/O subsystem a block for handling a "record not found" error. And the subsystem can pass back a block which lets the exception handler chose among retry, abort, or other options. Ken -- Kenneth Lerman lerman@lerman.nai.net Systems Essentials Limited (203)426-4430 55 Main Street Newtown, CT 06470
From: thiel@ife.ee.ethz.ch (Andreas Thiel) Newsgroups: comp.sys.next.programmer Subject: GDB, local Vars, loadNibfile Date: 3 May 1995 19:01:18 GMT Organization: Institute for Electronics, ETH Zuerich, Switzerland Distribution: world Message-ID: <3o8jtu$sv@elna.ethz.ch> I'm back again with a more sophisticated question: I load a panel with loadNibFile:... and send some variables to it: bundle = [NXBundle bundleForClass:[self class]]; [bundle getPath:buf forResource:"Distribution1Pan" ofType:"nib"]; if([NXApp loadNibFile:buf owner:self withNames:NO fromZone:[self zone]]){ [myPanel takeLogTyp1ResultArrayAt:(double *)resultArray numberOfVars:(int)varNumber numberOfContainers:(long)count varNamesAt:(myStruct *)parArray boxName:(char *)[boxTitle title]]; [myGraphicsPanel makeKeyAndOrderFront:self]; } return self; When I take a look at the GDB results, the local variable in myPanel which corresponds to count never shows the value of count. However, if I assign the value of this local var to annother local var, the 2nd one shows the correct value. The other variables in take.... are correctly assigned to the local vars in myPanel. Moreover, some other local vars in other methods of myPanel don't work properly. Some lines of code are skipped while stepping with gdb and they contain only simple assignements of double values. Yes, I turned on "debug" in ProjectBuilder and it's not a question of optimisation, because the program needs the skipped lines and the assigned vars are referenced later on. Other panels with similar functionality don't show this strange behaviour. My question is: Could it be a memory alloc problem? Does gdb warn if the space for the requested nibfile is not available? Or are there some other guesses? I run NSi 3.3. and Dev. 3.2 Thanx in advance andy -- ------------------------------------------------------------------------------ Andreas Thiel Electronics Laboratory | Institut fuer Elektronik Swiss Federal Institute of Technology Zurich | ETH Zuerich Gloriastrasse 35 | Gloriastrasse 35 | CH-8092 Zurich | CH-8092 Zuerich |
From: root@terra (Operator) Newsgroups: comp.sys.next.programmer Subject: Re: sound driver on Pentium and Sparc Date: 7 May 1995 09:45:10 GMT Organization: Network Intensive Message-ID: <3oi4r6$s4g@ni1.ni.net> References: <3oe6f6$md6@cnn.Princeton.EDU> paul@washburn.Princeton.EDU () wrote: >I've tried the sound driver on a Pentium 90, and now on >a Sparc 5 and neither work very well (44khz, 16-bit, 2 channel). >Does anyone have any wisdom on this? (on the same machines >sound works fine under Windows and Solaris). Is there a >solution in sight? Any recommendations? thanks >paul lansky >paul@silvertone.princeton.edu I would also be interested if anyone has any ideas. Recently, I saw a post where the use of the soundeffects class from Break.app was recommended as a means of playing sounds. While this is a nifty class it did not end my sound playing woes.:-( Felipe A. Rodriguez # ...it cannot be called ingenuity to kill far@earthlink.net # one's fellow citizens, to betray friends, Agoura Hills, CA # to be without faith, without mercy, without # religion; by these means one can aquire power # but not glory. # (NeXTmail prefered) # --Nicolo, Machiavelli (MIMEmail welcome) #
Newsgroups: comp.sys.next.bugs,comp.sys.next.programmer From: dimitri@duti609a.twi.tudelft.nl (Dimitri Tischenko) Subject: Re: 3.3 Dev C++ bug References: <D7sCIL.qw@dutiws.twi.tudelft.nl> <3ockg3$f7d@newstand.syr.edu> Sender: news@dutiws.twi.tudelft.nl (TWI News Administration) Organization: Delft University of Technology Date: Sun, 7 May 1995 10:08:06 GMT Message-ID: <D87DHI.AsA@dutiws.twi.tudelft.nl> Summary: Still no workaround In article <3ockg3$f7d@newstand.syr.edu>, Kelvin (Wenshin CHIU <wchiu@mailbox.syr.edu>) wrote: >Dimitri Tischenko (dimitri@duti609a.twi.tudelft.nl) wrote: >: Unless I'm fooled by C++'s delicate exceptions, this is a bug. > >: The following program, while correct, does not compile with NeXT's 3.3 >: cc++ (version cc-437.2.6, gcc version 2.5.8). I have found no >: workaround. What I did find was that in a less complex situation, when >: A1 and A2 both declare one abstract method instead of two, >: the order in which the classes are inherited by B is significant. If >: the class whose method is ovveridden first, is inherited first, the >: program compiles. Otherwize, you get the same error as in the program >: below. > >: === example program ... example program deleted ... > >try: >class B: public A1, A2 { > void f1() {}; > void f2() {}; > void g1() {}; > void g2() {}; >} >I think it should work. > >Kelvin That depends on what you call 'work'. Sure, it will compile, but you are now sacrificing abstract methods. In other words, classes which inherit from B are not forced to implement these methods anymore. Dimitri -- +------------------------------------------------------------------------+ | Dimitri Tischenko | D.B.Tischenko@TWI.TUDelft.NL | NeXTmail preferred! | +------------------------------------+-----------------------------------+ | Delft University of Technology | NeGeN | | Fac Applied Math & Computer Science| NEXTSTEP Gebruikers Nederland | | Dep of Statistics, Probabilitistics| NiNe | | and Operations Research | NEXTSTEP In the Netherlands | +------------------------------------+-----------------------------------+
From: ser@ix.cs.uoregon.edu (Sean Elliott Russell) Newsgroups: comp.sys.next.programmer Subject: Changing mouse button behavior Date: 7 May 1995 18:33:25 GMT Organization: University of Oregon Message-ID: <3oj3pl$29@pith.uoregon.edu> Hullo! My question pertains to the level to which one can program the user interface in NS. The cut-n-paste pattern for NS is amazingly primative. The X solution, where one button copies and the other pastes, is much more elegant. The ideal solution would be to select text with the left mouse button and then to drag the text with the same mouse button to where it should be inserted. Not having attempted a programming project in NS yet, I am curious if it is possible to program at this low level. A utility, for example, that wedges itself after the event handler and changes the behavior of the interface in these situations. -- # Sean Russell | # ser@cs.uoregon.edu | Wer ist dieser 'Mon', und warum hat # www.cs.uoregon.edu:80/~ser | er sein eigine Tag? # Finger Me for PGP Key |
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 7 May 1995 19:06:08 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3oj5n0$42t@darkstar.UCSC.EDU> References: <3oh5s6$mii@a3bsrv.radnet.com> In article <3oh5s6$mii@a3bsrv.radnet.com> lerman@lerman.nai.net (Kenneth Lerman) writes: > Not exactly. Smalltalk blocks can access the local variables of the > invoking functions. And in fact, two blocks created in the same > context also share that context. > I just read in the 3.3 Developer Release Notes that the new compiler supports nested C functions. Doesn't seem like a big leap to go on to nested methods (maybe that's already supported as well). What didn't seem to be stated was whether nested functions was an ANSI-approved extension or just a non-portable GNU C extension. Anyone know? Should I care? Are nested functions a bag of worms that should be avoided (it's been a long time since my Pascal days). --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
Newsgroups: comp.sys.next.programmer From: bkr@rennhak.hanse.de (Bernd Karl Rennhak) Subject: Re: NSObjects in IB Message-ID: <D86C1t.3JB@rennhak.hanse.de> Organization: Rennhak Software. Date: Sat, 6 May 1995 20:39:28 GMT > Is it possible to use NSObjects inside IB. They work fine when building > the nibs, but cause runtime errors. I have tried implementing read and > write methods since NSObject does not, but it does not help. > > I know there must be a way to do it since NeXT does it with several > classes (ie. EOController). Do not forget to [... retain] objects when unarchiving. They are autoreleased and will disappear with the next pool release cycle. This holds true with 'initWithCoder' or 'read'+'NXReadNSObject'. The code example in in 'Working with Interface Builder' pp.117 is WRONG !! If the objects are not retained the application will crash sooner or later. It took me some time of debugging to understand that. Another weird thing I observed: MallocDebug detects one memory leak for every use of 'NXReadNSObject' with an address different from the returned address. The leak address is never seen in the program. -- ##### Bernd Karl Rennhak, Keplerstr.35, D-22763 Hamburg ##### ##### mail bkr@rennhak.hanse.de phone +49-40-3902805 #####
Newsgroups: comp.sys.next.programmer From: davidjohn@kira.net.netcom.com (David John Burrowes) Subject: Q: Scaling Text views Message-ID: <1995May7.140422.1345@kira.net.netcom.com> Sender: davidjohn@kira.net.netcom.com Organization: No organization at this time. Date: Sun, 7 May 1995 14:04:22 GMT Given a Text view in a scroll view, I wish to allow the user to `zoom' in and out of the text, using a Zoom popup list like WriteNow and other apps have. I had expected this would simply involve using View's scale:: method, and perhaps overriding sizeTo:: in order to get the frame rectangle arranged properly. But, I must be wrong, because I get strange effects: The most annoying one is that not only does the text area display lines that are too wide, but it also crops the text at its too-far boundary. (Embedded cells are also not scaled, it seems). If you have any suggestions about how to, say, display a Text object so everything in it is doubled in size, including the right margin position, I'd love to hear them. I'd request (but not require =) that you reply via private email so that net bandwidth is saved. If there is interest, I will post a summary of any solutions. david john burrowes davidjohn@kira.net.netcom.com or death@netcom.com
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 8 May 1995 00:15:08 GMT Organization: Digital Fix Development Message-ID: <3ojnqc$3uv@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment - Status reports on GNUStep, a freely-available implementation of OpenStep now being developed NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.nmr.embl-heidelberg.de/pub/next/ eduStep ftp://ftp.next.com: See below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
From: d89cb@efd.lth.se (Christian Brunschen) Newsgroups: comp.sys.next.programmer Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Date: 8 May 1995 11:25:21 GMT Organization: Lund Institute of Technology, Sweden Message-ID: <3okv31$os7@nic.lth.se> References: <9505051737.AA00826@flexus> NNTP-Posting-User: d89cb In article <9505051737.AA00826@flexus>, Raf Schietekat <flexus!RfSchtkt@maze.ruca.ua.ac.be> wrote: >I've posted a question in this thread on c.s.n.programmer only, when I didn't >know how to reach c.l.objective-c yet (please look there if you're interested). > >It's essentially this: how does the runtime build an NSInvocation object from a >stack frame? There's no run-time type information in the SEL (uniqued with >respect to its string only, right?), or is there? Does it just play roulette, >supposing that the first signature it finds anywhere in the run-time internals >is the right one for this case (this is not about an NSProxy)? Does anyone >*know*? The choice, for each method call, is made at _compile_ time; so, the runtime knows explicitly what the argument types are for each call. If all methods with a given selector have the same argument and return types, then there is no ambiguity, and everything is fine. However, if there are several possible, and different, argument type lists (for lack of a better expression) for a given selector (and it is not otherwise made unambiguous, by, for instance, using "(ClassName *) myVar" instead of "id myVar"), then the compiler will generate a warning about this, and then select one of the alternatives, and use that. (Warning: The above is conjecture from having watched the compiler compile projects with this kind of occurrances. YMMV.) > >Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium // Christian Brunschen -- | Christian Brunschen, Husmansv. 26, S-227 38 Lund, Sweden | | voice/fax/data +46 (0)46 139345, email d89cb@efd.lth.se | | PGP 2.2 Public Key available on request. | ObCelebrityQuote: | | "Oh, foo." | | - Andrew R. Koenig (ark@research.att.com) after dropping a piece | | of chalk during a lecture on C++ in Lund, Sweden, April 1993 |
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Fri, 5 May 95 19:37:02 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505051737.AA00826@flexus> Subject: Re: Enhancements (forwarding, overloading) to the run-time system. I've posted a question in this thread on c.s.n.programmer only, when I didn't know how to reach c.l.objective-c yet (please look there if you're interested). It's essentially this: how does the runtime build an NSInvocation object from a stack frame? There's no run-time type information in the SEL (uniqued with respect to its string only, right?), or is there? Does it just play roulette, supposing that the first signature it finds anywhere in the run-time internals is the right one for this case (this is not about an NSProxy)? Does anyone *know*? Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer From: martin@rat.se Subject: Re: [Q]: Thread safe I/O? Message-ID: <D890vo.7LL@rat.se> Keywords: threads, ImagePortfolio Sender: martin@rat.se (Martin Wennerberg) Organization: Research & Trade, AB. References: <3obbhq$lfs@hermes.dna.mci.com> Date: Mon, 8 May 1995 07:31:00 GMT - Have a look at the ImagePortfolio.app sources (on ftp.cs.orts.edu). It contains thread-safe versions of some stdio functions. /Martin
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Reference count based automatic deallocation Date: 08 May 1995 14:17:43 GMT Organization: Eindhoven University of Technology, The Netherlands Distribution: world Message-ID: <TIGGR.95May8161743@cobra.es.ele.tue.nl> References: <CAMERON.KAY.95May8231218@kauri.vuw.ac.nz> In-reply-to: Cameron.Kay@kauri.vuw.ac.nz's message of 08 May 1995 11:12:18 GMT In article <CAMERON.KAY.95May8231218@kauri.vuw.ac.nz> Cameron.Kay@kauri.vuw.ac.nz (Cameron Kay) writes: Don't reference counting systems fall over with cyclic references? They don't fall over; they merely do not collect all garbage. --Tiggr
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: Changing mouse button behavior Followup-To: comp.sys.next.advocacy Date: Mon, 8 May 1995 13:19:47 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950508141947.259AACUM.malc@daneel> References: <3oj3pl$29@pith.uoregon.edu> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII > My question pertains to the level to which one can program the user > interface in NS. > > The cut-n-paste pattern for NS is amazingly primative. The X > solution, where one button copies and the other pastes, is much > more elegant. The ideal solution would be to select text with the > left mouse button and then to drag the text with the same mouse > button to where it should be inserted. > Umm, I think we had a discussion about this a while ago, and the general consensus was that actually NeXT's One True Way is Best... You probably could implement what you want without too much trouble, but I'm not sure how many people would thank you for it, since it would violate the general UI guidelines for the OS. Note followups! ;-) Have fun, mmalc.
From: oc@hukatronic.cz (Ondra Cada) Newsgroups: comp.sys.next.programmer Subject: Filter _all_ key events Date: 8 May 1995 15:48:19 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9505080049.AA07851@ocs.hukatronic.cz> Hi, I need to make application which filters _all_ key events, regardless which application - if any - is active. Could somebody help me? Had the 'DPSSetEventFunc()' function offer some 'the active one' special value for the first (DPS context) parameter I'd be satisfied.... Of course, the best solution would be if I can ask Window Server "this key/modifier combination deliver to _me_ regardless active PS context"... Anyway, it _should_ be possible - NXjournaler must do something very close; only it saves all events to stream instead of check them and immediately forget (and sometimes trigger an action). -- Ondra Cada ocs@earn.cvut.cz NeXTMAIL and MIME OK (please do not reply to hukatronic.cz)
From: ser@ix.cs.uoregon.edu (Sean Elliott Russell) Newsgroups: comp.sys.next.programmer Subject: Re: Changing mouse button behavior Date: 8 May 1995 15:38:20 GMT Organization: University of Oregon Message-ID: <3oldtc$pna@pith.uoregon.edu> References: <3oj3pl$29@pith.uoregon.edu> Hi, again. I have been warned that I may have opened a rather bitter can of worms with my post about changing the mouse behavior under NS. In the interest of diverting a deluge of flames on this topic, I would like to mention that it is not my intent to begin a discussion on the merits of the NS interface; such topics are best dealt with under c.s.n.advocacy, where it has been proven that even preemptive multitasking and the existance of a graphic user interface is also simply a matter of taste. My goal is to explain how, why, and what I want, and to ask if it is possible, and nothing more. Tanx! -- # Sean Russell | # ser@cs.uoregon.edu | Wer ist dieser 'Mon', und warum hat # www.cs.uoregon.edu:80/~ser | er sein eigine Tag? # Finger Me for PGP Key |
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: How to create a Multi Thread AppKit Date: 8 May 1995 15:16:05 GMT Organization: Netcom Distribution: world Message-ID: <3olcjl$pj0@ixnews2.ix.netcom.com> References: <3oe6f6$md6@cnn.Princeton.EDU> <3oi4r6$s4g@ni1.ni.net> I currently is working in a project to create a simulation program. To simplify the problem: I have 2 identical objects called Object A and B. A send message to B to decrease B_Val. After decreasing B_val B send back message to A to decrease A_val.(A_Val and B_val is the instance variable of A and B) When I started the program, I have a start button that start send message to A, and started continous loop. I also have a stop button to stop / break the loop. However when the loop started I got spinning whell cursor. It was ignoring the stop button click. My first solution is to create a thread to start the first message to the continous loop. In cthread_fork only take c function and I was not able to call objective-C object from that function. Besides I read the manual that ObjectiveC call in AppKit are not thread safe. Is there anybody have solutions for this problem? Leon
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Reference count based automatic deallocation Date: 8 May 1995 15:09:52 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3olc80$rrs@darkstar.UCSC.EDU> References: <TIGGR.95May8161743@cobra.es.ele.tue.nl> In article <TIGGR.95May8161743@cobra.es.ele.tue.nl> tiggr@es.ele.tue.nl (Pieter Schoenmakers) writes: > In article <CAMERON.KAY.95May8231218@kauri.vuw.ac.nz> Cameron.Kay@kauri.vuw.ac.nz (Cameron Kay) writes: > > Don't reference counting systems fall over with cyclic references? > > They don't fall over; they merely do not collect all garbage. --Tiggr > So you'll need to avoid cyclic retain references to avoid memory leaks. I don't have enough experience with Foundation's memory management scheme to know whether this is easy to do or whether memory leaks will be inevitable. I guess NeXT decided that reference counting was the best management scheme to use when objects may be distributed due to the complexities of distributed garbage collecting. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: Cameron.Kay@kauri.vuw.ac.nz (Cameron Kay) Newsgroups: comp.sys.next.programmer Subject: Reference count based automatic deallocation Date: 08 May 1995 11:12:18 GMT Organization: Victoria Uni. of Wellington, NZ. Distribution: world Message-ID: <CAMERON.KAY.95May8231218@kauri.vuw.ac.nz> I've been following the new autorelease system for deallocating objects that comes with EOF and NS 3.3. What I can't understand is what happens when your objects have reference cycles. Don't reference counting systems fall over with cyclic references? Does the implementation use some cleaver system for solving this problem, or do you have ensure your code doesn't create cyclic references? - Cameron -- Email Cameron.Kay@kauri.vuw.ac.nz Post Computer Science Department Phone + 64 4 472 1000 x7032 (Work) Victoria University + 64 4 237 5895 (Home) P.O.Box 600 Fax + 64 4 495 5232 Wellington, New Zealand
From: rcw@caspian.cc.vt.edu (R. Craig Woods) Newsgroups: comp.sys.next.programmer Subject: DB app won't run under 3.0 Date: 8 May 1995 12:12:36 GMT Organization: Virginia Tech, Blacksburg, Virginia Message-ID: <3ol1rk$ia7@solaris.cc.vt.edu> Keywords: DBKit I have developed apps with 3.2 developer that access a Sybase database. The apps run fine on machines running 3.2, but on our machines that are running 3.0, the message 'cannot exec' appears in the console when starting the apps. The 3.0 machines do have the interfaces file, and the dbmodel file is in /LocalLibrary/Databases. Should I not expect the apps to run under 3.0? or is there something I am overlooking? ---Craig Woods Virginia Tech Computing Center
From: wjabi@libra.arch.umich.edu (Wassim M. Jabi) Newsgroups: comp.sys.next.programmer Subject: Creating FAX TIFF Date: 8 May 1995 18:11:28 GMT Organization: University of Michigan Distribution: usa Message-ID: <3olmsg$4ua@lastactionhero.rs.itd.umich.edu> I heard TIFF has a bitonal format suitable for faxing (/F format????) Does anyone know anything about that? Is there a converter somewhere that can do this? please e-mail me. Thanks. -- Wassim M. Jabi (313) 936-0229 Doctoral Program in Architecture, University of Michigan 2000 Bonisteel Boulevard Ann Arbor Michigan 48109-2069 wjabi@libra.arch.umich.edu NeXTMail & MIME friendly http://libra.arch.umich.edu/Students/Wassim.Jabi/Portfolio/
From: wfc@cl.cam.ac.uk (W F Clocksin) Newsgroups: comp.sys.next.programmer Subject: textDidGetKeys:isEmpty: and how to control redrawing around a Text object? Date: 8 May 1995 11:21:11 GMT Organization: University of Cambridge, England Message-ID: <3okur7$nrk@lyra.csx.cam.ac.uk> Dear Text object experts, I am writing an app in which I use Text objects to render RichText boxes in a graphic editor (like the Draw example app). However, unlike Draw, I wish to keep horizontal and vertical resizing on, with big maxSize, so the boundaries are always flexible to what the user is typing in or removing. However, this prevents the background from being redrawn according to the new 'logical' bounds whenever a character is typed or removed. Ideally, I would like to redraw the area determined by the union of the old and new bounds (or the appropriate NXDivideRect'd areas), but if the Text object can do this anyway (when resizing is 'off'), I would prefer to it do it instead of duplicating its function in my code. When my delegate is called with the textDidGetKeys:isEmpty:, I can find out the old and new 'logical' boundaries. What should I do with them to allow the field editor to redraw the stuff in the affected areas of its superview? Or maybe there is a better way? Please don't say "Draw already does this", because it doesn't (it compromises by switching off resizing when there are multiple lines, thus causing the redraw). Thank you. W.F. Clocksin Computer Laboratory University of Cambridge
Newsgroups: comp.sys.next.programmer From: ad934@lafn.org (Chris Horton) Subject: AUTOMATED TESTING SYSTEMS? Message-ID: <1995May4.174313.11216@lafn.org> Sender: news@lafn.org Organization: The Los Angeles Free-Net Date: Thu, 4 May 1995 17:43:13 GMT DÏÅS ANYÏNÅ KNÏ× ÏÆ ANY AUÔÏMAÔÅD SÏÆÔ×AÒÅ ÔÅSÔÉNG SYSÔÅMS ÆÏÒ NS? É'VÅ HÅAÒD ÏÆ A ÃÏMPANY ÃAÌÌÅD ÅÌVÅÒÅØ BUÔ ÔHÅY AÒÅ NÏÔ ÌÉSÔÅDÅ  ÉN ÔHÅ 3ÒD PAÒÔY PÒÏDUÃÔ GUÉDÅ. SÏÒÒY ÆÏÒ SHÏUÔÉNG¬ BUÔ ÔHÅ £$¥ ÃAPS ÌÏÃK ÉS SÔUÃK. -ÃHÒÉS -- Chris Horton ad934@lafn.org
From: Frank Gunther Tropschuh <ft0g+@andrew.cmu.edu> Newsgroups: comp.sys.next.programmer Subject: Creating RTFD Documents Programmatically Date: Mon, 8 May 1995 07:26:01 -0400 Organization: Carnegie Mellon, Pittsburgh, PA Message-ID: <gjfTz9u00iUxI0rV8R@andrew.cmu.edu> I posted this for a friend -- reply to William_Swats@its.com! Hi; I am working on an email application that uses the HP X400 mail server as the backend with the client running under NeXTSTEP. A message is shown in a window much like in NeXTMail. What I need to happen now is for the user to be able to copy and paste out of this window into other applications. The text in the window is of course represented by a Text object. The problem occurs when this Text object has attachments. I have created a subclass of Cell to handle these attachments but when I copy and paste out of the Text window the attachments do not get included. I have looked at the documentation for the Text object. It says. Programmatic creation of RTFD documents is not supported in this release.(i.e.3.2) But somehow other developers are doing it as NeXT has done it for the Mail application. Can anyone give me any pointers or better yet some example code showing how this is done? Thanks -- William Swats IT Solutions, Inc. VOICE: 415-395-9200 Suite 1620 FAX: 415-395-9245 Three Embarcadero Center EMAIL: William_Swats@its.com San Francisco, CA 94111-4049 NeXTMail and MIME mail accepted
Newsgroups: comp.sys.next.programmer From: lloyd@world.std.com (Christopher Lloyd) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Message-ID: <D8A328.KLw@world.std.com> Organization: The World Public Access UNIX, Brookline, MA References: <9505051737.AA00826@flexus> Date: Mon, 8 May 1995 21:15:44 GMT In article <9505051737.AA00826@flexus>, Raf Schietekat <flexus!RfSchtkt@maze.ruca.ua.ac.be> wrote: >It's essentially this: how does the runtime build an NSInvocation object from >a stack frame? There's no run-time type information in the SEL (uniqued with >respect to its string only, right?), or is there? Does it just play roulette, >supposing that the first signature it finds anywhere in the run-time internals >is the right one for this case (this is not about an NSProxy)? Does anyone >*know*? Well, I don't *know*, but the NSInvocation doesn't need to *know* the method signature until it has a target - and at that point it can determine the method signature. The NSInvocation only need keep a pointer to the original stack frame. Of course, there is nothing like -initWithArgFrame:(va_list) mentioned in the spec., but there doesn't need to be, it can all be private implementation, NSInvocation itself only need be an abstract superclass. I think it is reasonable to assume that certain criteria be met before the likes of setArgument/getArgument can be used, either a method signature, or a target/selector pair from which the method signature can be deduced. In the case of forwardInvocation: it already has the arguments on the stack and a selector, once it has a target (in turn a method signature), it's safe to diddle the return value and arguments. In the case of NSProxy's forwardInvocation;, you _must_ be able to get the arguments without a target - therefore you must supply the method signature before forwardInvocation is even called. -- |: Christopher Lloyd :|: Yrrid Incorporated :|: lloyd@yrrid.com :|
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: How to create a Multi Thread AppKit Date: 8 May 1995 22:50:57 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3om78h$lur@news.next.com> References: <3olcjl$pj0@ixnews2.ix.netcom.com> Kurniawan Darmawangsa writes > I currently is working in a project to create a simulation program. > > To simplify the problem: I have 2 identical objects called Object A and > B. A send message to B to decrease B_Val. After decreasing B_val B send > back message to A to decrease A_val.(A_Val and B_val is the instance > variable of A and B) > When I started the program, I have a start button that start send > message to A, and started continous loop. I also have a stop button to > stop / break the loop. However when the loop started I got spinning > whell cursor. It was ignoring the stop button click. > > My first solution is to create a thread to start the first message to > the continous loop. In cthread_fork only take c function and I was not > able to call objective-C object from that function. Besides I read the > manual that ObjectiveC call in AppKit are not thread safe. > > Is there anybody have solutions for this problem? > > > Leon Hi - You can definitely send ObjC messages from functions, here's an example: any_t my_thread(any_t arg) { Object *obj = arg; printf("%s\n", [[obj class] name]); return 1; } void main() { cthread_detach(cthread_fork(my_thread, [[Object alloc] init]); /* ... */ } If you need more state in your background thread, pass in something like a struct or a List of objects you need to deal with... You can use a condition lock to signal objects in your background thread to start/stop sending messages. Ralph -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: DPSStartWaitCursorTimer ain't work Date: 9 May 1995 07:35:09 GMT Organization: Stanford University Message-ID: <3on5vd$6jj@nntp.Stanford.EDU> Hello, recently I had to notice that in two instances, the DPSStartWaitCursorTimer call won't work. In the one case, the app shows a dialog and after the user makes choices, a large EPS is converted into TIFF (image writeTIFF). That can take a while, so I placed this call in there, for no avail. Unless the user clicks on a panel or something of that app, no spinning cursor will show. The other instance is when the user selects a path and then the app accesses & reads loads of files in there. That can take several minutes, and again, unless the user clicks on a UI element, no spinning wheel. What's wrong? Thanks, - Stan --- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss CS Guy | | | stanj@cs.stanford.edu NeXTmail / MIME | When you find yourself | | http://www-leland.stanford.edu/~stanj/ | in a hole, stop digging | | Box 2642, Stanford, CA 94309, USA | | +-------------------------------------------+-------------------------+
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: How to create a Multi Thread AppKit Date: 8 May 1995 23:19:05 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3om8t9$m1j@news.next.com> References: <3om78h$lur@news.next.com> Ralph Zazula writes > Kurniawan Darmawangsa writes > > [...] > > My first solution is to create a thread to start the first message to > > the continous loop. In cthread_fork only take c function and I was not > > able to call objective-C object from that function. Besides I read the > > manual that ObjectiveC call in AppKit are not thread safe. > > > > Is there anybody have solutions for this problem? > > > > > > Leon > Hi - Just in case my previous post was too terse... ------- CLIP HERE ------ #import <objc/Object.h> #import <machkit/NXLock.h> #import <mach/cthreads.h> typedef struct _thread_struct { id self, target, lock; } thread_struct; #define STOPPED 0 #define OKAY_TO_RUN 1 @interface MyThreadedObject : Object - (void)beginNewThreadWithTarget:target lock:lock; - (void)sendMessageTo:target; - (void)receiveMessage:sender; @end any_t new_thread(any_t arg) { thread_struct *s = (thread_struct *)arg; /* wait for the starting gun... */ [s->lock lockWhen:OKAY_TO_RUN]; [s->lock unlock]; /* go like mad */ while([s->lock condition] == OKAY_TO_RUN) { [s->self sendMessageTo:s->target]; } /* clean up */ free(s); cthread_exit(0); } @implementation MyThreadedObject - (void)beginNewThreadWithTarget:target lock:lock /* * begin a new thread filling in the thread_struct with "target" and "lock" */ { thread_struct *s = calloc(1, sizeof(thread_struct)); s->self = self; s->target = target; s->lock = lock; cthread_detach(cthread_fork(new_thread, s)); } - (void)sendMessageTo:target /* * called by background thread */ { [target receiveMessage:self]; } - (void)receiveMessage:sender { printf("%x\n", cthread_self()); /* do nothing... */ } @end void main() { id obj1 = [[MyThreadedObject alloc] init]; id obj2 = [[MyThreadedObject alloc] init]; id lock = [[NXConditionLock alloc] initWith:STOPPED]; /* create some objects */ [obj1 beginNewThreadWithTarget:obj2 lock:lock]; [obj2 beginNewThreadWithTarget:obj1 lock:lock]; /* signal that it's okay to go */ [lock lock]; [lock unlockWith:OKAY_TO_RUN]; /* let it run a while */ sleep(10); /* stop everything */ [lock lock]; [lock unlockWith:STOPPED]; exit(1); } ----- CLIP HERE ------ -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
Newsgroups: comp.sys.next.programmer From: brouwer@minnie.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: Re: delegation semantics: respondsTo: ? Message-ID: <D8B5rM.Lpw@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany References: <9505040933.AA00319@flexus> Date: Tue, 9 May 1995 11:11:43 GMT In <9505040933.AA00319@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: >>>>>> Klaus Brouwer writes: >Yes, you just has to implement the methods he wants and NO, -respondsTo: is >NOT used. It is done by defining a category for the Object class. If a >delegate doesn't respond to method it goes right through him and is cought by >Object's method. ><<<<< >Not true. Just because those methods are declared doesn't mean they're >implemented. ???? What do you mean? Declared in the documantation? Most of the methods ARE 'implemented' by Object, although they actually don't do much. And now guess why... And they are not. Examples: windowDidResize: is implemented by 4 >kinds of panels (not by Object), and windowDidChangeScreen: is implemented by >no class at all (NEXTSTEP_3.2). You are talking about the exceptions of the rule (less then 10%). I think this are relicts of a time before categories were introduced. >You are free to use this strategy instead, of course. But think about another >aspect of delegation: many/all classes that use a delegate will revert to the >implementation in itself if there is no delegate or if it does not respond to >that particular message. How do you mimic that with a default implementation >in Object? By the return value, similar to the message passing system of the responder chain. If a delegate method returns nil for example, it didn't handle the message; if it returns a non nil value, it did. >You can override respondsTo: in the delegate to dynamically change >responsiveness. This allows you to change its nature as an NXBrowser delegate >(normal, lazy, very lazy). But those are dirty tricks which you should not >use. Well, if the other party started... :-) Categories are NOT a dirty trick! They are the cleanest and most efficient way to implement delegation. Problems with name spaces are a general Objective-C problem, so the main reason for confusion about the subject is the lack of documentation by NeXT or Garfinkel/Mahoney (I pointed this out to them, but I don't know whether there will be a new edition. respndsTo: is not useless. It most economic if you expect to send dozens of notification messages to test the responsiveness just once. But this is the exception, not the rule. Bye, Klaus Brouwer
Newsgroups: comp.sys.next.programmer From: bjanzen@lexmark.com(Barry Janzen) Subject: EBCDIC to ASCII conversion? Hex editor? Sender: usenet@lexmark.com (News Dude) Message-ID: <D8Bnp6.8nu@lexmark.com> Date: Tue, 9 May 1995 17:39:05 GMT Organization: Lexmark International, Lexington, KY Keywords: EBCDIC, ASCII, hex Hi, I need to do as the subject says, and short of writing a translation table and program or doing 'tr' with a zillion parameters, is there some simple way to convert an EBCDIC (IBM mainframe) file to ASCII? Is there a hex editor with NS/FIP 3.2 that can edit hex so I can verify that my EBCDIC files aren't corrupt? Thanks in advance. Barry bjanzen@lexmark.com
Newsgroups: comp.sys.next.programmer From: yoshida@fermi.bsd.uchicago.edu (Hiro Yoshida) Subject: C++ libraries on NeXTSTEP 3.0 Message-ID: <D8BI3G.3Gn@midway.uchicago.edu> Keywords: C++, libg++ Sender: news@midway.uchicago.edu (News Administrator) Organization: University of Chicago -- Academic Information Technologies Date: Tue, 9 May 1995 15:38:04 GMT Hello NeXT Experts: Dose anyone have/know C++ libraries that work with C++ on NeXTSTEP 3.0? When I read the FAQ from NeXT, they said: > libg++ for NEXTSTEP Developer is included in Release 3.2, on the CD-ROM. > NeXT does not distribute nor support any previous versions of libg++ for > any previous releases of NEXTSTEP Developer. :-< I still need to work on NeXTSTEP 3.0. Point me the place where I can get the *old* version of the libg++. Any other suggestions would also be appreciated. _________________________________________________________ Hiro Yoshida Kurt Rossmann Laboratories Department of Radiology, The University of Chicago, MC2026 5841 South Maryland Avenue, Chicago Illinois 60637
Newsgroups: comp.sys.next.programmer From: ian.stephenson@insignia.co.uk Subject: Re: How to create a Multi Thread AppKit Message-ID: <D8BI5G.61v@isltd.insignia.com> Sender: news@isltd.insignia.com (Usenet News) Organization: Insignia Solutions Ltd References: <3olcjl$pj0@ixnews2.ix.netcom.com> Date: Tue, 9 May 1995 15:39:16 GMT In article <3olcjl$pj0@ixnews2.ix.netcom.com> kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) writes: > I currently is working in a project to create a simulation program. > > My first solution is to create a thread to start the first message to > the continous loop. In cthread_fork only take c function and I was not > able to call objective-C object from that function. Besides I read the > manual that ObjectiveC call in AppKit are not thread safe. > > Is there anybody have solutions for this problem? Without knowing more about what you're doing I can't say if the following will be workable, but as a basic piece of advice: DONT USE THREADS! Without wanting to start a fight, threads have their place, but unless you REALLY need them they're a right pain. Once you have multiple threads you start getting into all the fun of atomic actions, semaphores and ultimatly deadlock. The reason appkit is not thread safe is that it would be a real bitch to make it so. More practically: Most code can be broken down into descrete steps - points at which the system is stable (you're going to need these to be able to pause the simulationj anyway). This will be particularly true if you're simulation is descrete time (as in CA. DEVS can also be considered in terms of descrete steps). Simply set a timer up to call a function continuously: #import <appkit/appkit.h> @interface Driver:Panel { id target; DPSTimedEntry ticks; } - awakeFromNib; - stopStart:sender; @end xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx #import "Driver.h" @implementation Driver void *handler(DPSTimedEntry tag, double now, void *userData) { return [(id)userData doTick]; } -awakeFromNib { ticks=(DPSTimedEntry)-1; return self; } -stopStart:sender { if(ticks == (DPSTimedEntry)-1) ticks=DPSAddTimedEntry(0.0, (DPSTimedEntryProc) handler, (void *) target, NX_BASETHRESHOLD); else { DPSRemoveTimedEntry(ticks); ticks = (DPSTimedEntry)-1; } return self; } @end and make each [target doTick] execute one (or more timesteps). I've used this in quite a few programs (at least 5), and it works pretty well, with one reservation: its slow! Not REALLY slow, but slow enough to be annoying. You can get round this to some extent by increasing the amount of work done in each tick, though this reduces user response. If this isn't fast enough you can peek events from the main loop of your code, and when you see one drop back to the event loop, having previously posted an app defined event to jump back into your loop when the users action has been posted. This is much faster, but its also a lot more messy. THREADS? I wouldn't recomend it unless you have to... Ian
From: pmartin@landau.ucdavis.edu (Pat Martin) Newsgroups: comp.sys.next.programmer Subject: COMPILER ERROR MESSAGE Date: 9 May 1995 16:15:45 GMT Organization: University of California, Davis Message-ID: <3oo4fh$rsv@mark.ucdavis.edu> I am compiling a program on NS 3.2 when I get the error message: "cannot load filename" The file is there and is an executble. I know that the file is found because when i remove it and try to compile I get the message "cannot find filename". Why would a file not be able to be "loaded" and what exactly does "loaded" mean? In the computer geek sense--I already understand the other. thanks pat martin
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: How to create a Multi Thread AppKit Date: 9 May 1995 16:58:31 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3oo6vn$qq0@news.next.com> References: <3om8t9$m1j@news.next.com> Hi - A couple of things were pointed out about my previous post on this subject (the code example). The code was intended to demonstrate synchronizing multiple threads, and passing objects to background threads. However, I glossed over a few other details when slapping the example together. Here they are: 1) I'm calling printf() from multiple threads, which is bad. The problem is that the stdio functions are not thread safe. Locks should have been used to make sure that only a single thread used printf. 2) By default, the Objective-C runtime is not thread safe. There is a function called objc_setMultithreaded() that makes the runtime system thread safe. This should be used for applications that use ObjectiveC messaging in multiple threads. Ralph -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
From: sela@iastate.edu Newsgroups: comp.sys.next.programmer Subject: Come on...SOMEBODY'S got to know if Perl for NS 3.1 exists Date: 8 May 1995 21:49:38 GMT Organization: Iowa State University, Ames, Iowa Distribution: world Message-ID: <3om3li$q0u@news.iastate.edu> Nobody has answered my previous post. If you know of a perl script reader that will work under NS 3.1 please let me know. Thanks. -- *******************IOWA***STATE***UNIVERSITY******************** * Brian Morrison sela@iastate.edu (NeXT Mail welcome!) * * --------------------------------------------------------- * * He who throws mud loses ground. * ****************************************************************
Newsgroups: comp.sys.next.programmer From: lloyd@world.std.com (Christopher Lloyd) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Message-ID: <D8Buwy.6yC@world.std.com> Organization: The World Public Access UNIX, Brookline, MA References: <D8A328.KLw@world.std.com> <1995May9.171053.11190@il.us.swissbank.com> Date: Tue, 9 May 1995 20:14:57 GMT In article <1995May9.171053.11190@il.us.swissbank.com>, Eric_Brown <ericb@il.us.swissbank.com> wrote: >Christopher Lloyd writes >> Well, I don't *know*, but the NSInvocation doesn't need to *know* the >> method signature until it has a target - and at that point it can >> determine the method signature. > >That was my first reaction too, but there is a problem. The reason that you >need an NSInvocation is because the target does not implement the specific >method. Because of this, it is unable to get the method signature from the >target. When I mean 'target', I mean NSInvocation's actual target which performs the message thru setTarget or invokeWithTarget. The method signature can not be, and should not be, determined until that is known. The object which is performing the forwardInvocation: is not "the target does not implement the specific method", it is an object which knows little/nothing about the message and is forwarding it to an object which does know about the message i.e. has a method signature for and responds to the selector. There is no law of NSInvocation which says that in order for one to exist, it must have a method signature. What does this mean ? invocation=[[NSInvocation alloc] init]; or this ? [invocation setSelector:@selector(foo:bar:)]; What if I gave my own invocation implementation a stack of arguments at this point? Aha, how about this ? [invocation setTarget:foo]; The runtime can look something like this: objc_msgSend(id object,SEL selector,...){ IMP functionPtr; if(functionPtr lookup for selector fails (i.e. a fast methodFor:)){ NSInvocation invocation=[NSPrivateInvocationImplementation alloc]; va_list list; va_start(list,selector); [[invocation initWithStackArguments:list] autorelease]; [invocation setSelector:selector]; [object forwardInvocation:invocation]; extract and build CPU return value from invocation } else { jump to functionPtr; } } Inside object's forwardInvocation:, when a target is set, the method signature can be determined exactly, and the stack arguments and return value can be accessed without ambiguity. +invocationWithMethodSignature is not the only way to create an invocation. >I would assume that when a new target is set in the NSInvocation (inside your >-forwardInvocation: implementation), the NSInvocation would update its method >signature. Unfortunately this still doesn't help the situation where there >are two different signatures for a single selector and the run-time picks the >wrong one when creating the NSInvocation (if that's possible). In this case, >accesses to the parameters could be messed up. Yes it does, because once you have set the target, the method signature can be derived without ambiguity. In reality, -forwardInvocation: is closely equivalent to forward::, except the arg_list is stored in an NSInvocation, and it can properly handle all return types. oog, -- |: Christopher Lloyd :|: Yrrid Incorporated :|: lloyd@yrrid.com :|
From: Dario Ringach <dario> Newsgroups: comp.sys.next.misc,comp.sys.next.programmer Subject: Can I use the floppy controller on the Adaptec? Date: 9 May 1995 15:02:59 GMT Organization: New York University Message-ID: <3oo073$l5k@cmcl2.NYU.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit To: nextgate@cs.cornell.edu I am running NextStep 3.2 on a Gateway DX2/66V with an Adaptec controller. For some reason the floppy disk (on the motherboard) stopped working... I was wondering if it is possible to use the floppy disk controller on the adapted instead. Can it be done? Thanks in advance... -- Dario Ringach | office: (212) 998-7614 lab: (212) 998-7730 Center for Neural Science | home: (212) 727-9346 fax: (212) 995-4011 New York University | e-mail: dario@cns.nyu.edu
Newsgroups: comp.sys.next.programmer From: ad934@lafn.org (Chris Horton) Subject: Automatic Testing Systems (in English this time) Message-ID: <1995May5.064004.19481@lafn.org> Sender: news@lafn.org Organization: The Los Angeles Free-Net Date: Fri, 5 May 1995 06:40:04 GMT Hi, anyone know of any automated code testing systems for Nextstep? I've been told that there was a company called Elverex that made a product called the Evaluator but I haven't been able to find any info on them and they're not listed in the Next 3rd Party guide. I'm looking for anything that will ease the burden on our software testers. Thanks! -chris -- Chris Horton ad934@lafn.org
Newsgroups: comp.sys.next.programmer From: dfevans@bbcr.uwaterloo.ca (David Evans) Subject: Re: EBCDIC to ASCII conversion? Hex editor? Message-ID: <D8Byr3.CAM@watserv3.uwaterloo.ca> Keywords: EBCDIC, ASCII, hex Sender: news@watserv3.uwaterloo.ca Organization: University of Waterloo References: <D8Bnp6.8nu@lexmark.com> Date: Tue, 9 May 1995 21:37:51 GMT In article <D8Bnp6.8nu@lexmark.com>, Barry Janzen <bjanzen@lexmark.com> wrote: >Hi, > >I need to do as the subject says, and short of writing a translation table >and program or doing 'tr' with a zillion parameters, is there some simple >way to convert an EBCDIC (IBM mainframe) file to ASCII? > dd(1) will do it; can't remember the options. It's in the man page. >Is there a hex editor with NS/FIP 3.2 that can edit hex so I can verify >that my EBCDIC files aren't corrupt? > There's one on ftp.cs.orst.edu someplace. -- David Evans dfevans@bbcr.uwaterloo.ca Computer/Synth Junkie "Default is the value selected by the University of Waterloo composer overridden by your command." Waterloo, Ontario, Canada - Roland TR-707 Manual
Newsgroups: comp.sys.next.programmer From: Dave THOMAS <dave@softpac.com.au> Subject: Emergency startup kit Message-ID: <D8BEt1.py@softpac.com.au> Sender: dave@softpac.com.au (Dave Thomas) Organization: Softpac Pty. Ltd., Sydney, AUSTRALIA Date: Tue, 9 May 1995 14:27:01 GMT Has anyone built an Emergency Start-Up kit for NS on Intel? We need to do so, but would not like to re-invent the wheel. I expect that it should be made up in such a way so as to rectify this problem: Suppose you have deleted the fstab by accident (which of course is damn silly) BUT having done the silly thing you reboot the machine. You would get a read only file system which looks at and nothing else... How could you bring the system back without reinstalling the whole thing and losing the hours of hard work you have put in? Any suggestions from out there, would be appreciated.. Needless to say, this kit would have to fit on to a floppy !! ?? Rgds dave t DownUnder
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Reference count based automatic deallocation Date: 09 May 1995 09:54:45 GMT Organization: Eindhoven University of Technology, The Netherlands Distribution: world Message-ID: <TIGGR.95May9115445@cobra.es.ele.tue.nl> References: <TIGGR.95May8161743@cobra.es.ele.tue.nl> <3olc80$rrs@darkstar.UCSC.EDU> In-reply-to: art@cubicsol.com's message of 8 May 1995 15:09:52 GMT In article <3olc80$rrs@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: I guess NeXT decided that reference counting was the best management scheme to use when objects may be distributed due to the complexities of distributed garbage collecting. With PDO like NeXT's, with local and remote proxies, you can use any garbage collection (GC) implementation you desire, without needing to think about distributed GC, since the proxies (with the aid of the connection, of course) can use reference counting among themselves. Each remote proxy (i.e. proxy in a process for an object in a different process) is then responsible for exactly one retain to a local proxy (i.e. proxy for an object in this process to be accessible by a remote process). The liveness of a remote proxy is determined by the GC. The liveness of a local proxy is determined by the reference count. To make sure a local proxy does not vanish due to GC, it must be referenced by its connection. --Tiggr
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Tue, 9 May 95 22:51:23 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505092051.AA02400@flexus> Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Christian Brunschen writes: > The choice, for each method call, is made at _compile_ > time; so, the runtime knows explicitly what the argument > types are for each call. Not true. The runtime has no knowledge of static typing. This is only used by the compiler to resolve method signature clashes (yuck) and for generating warnings. Christopher Lloyd is right, of course: it doesn't matter. The only restriction would be that you don't try to access the arguments until the *final* target is known, either directly or as a proxy, i.e., until -methodSignature returns non-nil, probably, and this has to happen before the current method ends (-retainArguments won't help). Might be spelled out better in the docs, though (I've only seen the OpenStep spec on NeXT's ftp server). Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
From: squirk@sitult.stevens-tech.edu (Steve Quirk) Newsgroups: comp.sys.next.programmer Subject: Re: How to create a Multi Thread AppKit Date: 10 May 1995 10:21:52 -0400 Organization: Stevens Tech, Hoboken, NJ Distribution: world Message-ID: <3oqi61$kvb@sitult.stevens-tech.edu> References: <3om78h$lur@news.next.com> <3om8t9$m1j@news.next.com> In article <3om8t9$m1j@news.next.com> rzazula@next.com writes: >Ralph Zazula writes >> Kurniawan Darmawangsa writes >> > [...] >> > My first solution is to create a thread to start the first message to >> > the continous loop. In cthread_fork only take c function and I was not >> > able to call objective-C object from that function. Besides I read the >> > manual that ObjectiveC call in AppKit are not thread safe. >> > >> > Is there anybody have solutions for this problem? >> > >> > >> > Leon >> > >Hi - > >Just in case my previous post was too terse... [Ralph shows a useful example of passing an instance into a thread] To add another solution to this common and confusing problem, you could also take advantage of DO's ability to control thread dispatching for you. Specifically, a vended object whose connection is 'runFromAppkit' will take care of most problems associated with messaging Appkit objects from threads other than thread 0 - simply pass messages to objects through it. I've attached below an example of a class that can be used to forward messages to objects in thread 0. To use it, do something like this : // assume myButton exists... // the following bit can be done in any thread. id msgFunnel = [MessageSerializer new]; [msgFunnel makeObject:myButton perform:@selector(performClick:) with:sender]; Pretty simple, eh? Unfortunately, I've used this class exactly once and not in a real (production) app, so no guarantees that it always works - perhaps someone else can comment. Regards, Steve Quirk squirk@sitult.stevens-tech.edu ------8<-- clip here --------------------------------------- /* * File: MessageSerializer.h * Version: 1.0 * Author: Steve Quirk * Summary: Serializes method invocations by dispatching in main thread. * * Revision History: * Feb 1995 steveq created * * A MessageSerializer is used when object messages must be serialized from * a central point, e.g. messages to appkit objects. Serialization is * achieved by using Application to dispatch DO messages to a proxy * of this class. * */ #import <objc/Object.h> @protocol MethodSerializing /* * these methods are the ones you want to use to get work done.... */ - (void)makeObject:anObject perform:(SEL)aSelector; - (void)makeObject:anObject perform:(SEL)aSelector with:someObject; @end @interface MessageSerializer:Object <MethodSerializing> { id connection; id proxyToSelf; } /* * returns id of root object (the instance served by the connection) */ + sharedInstance; /* * returns a proxy to root that should be used to message main */ + new; /* * these methods are the ones you want to use to get work done.... */ - (void)makeObject:anObject perform:(SEL)aSelector; - (void)makeObject:anObject perform:(SEL)aSelector with:someObject; @end /* * File: MessageSerializer.m * Version: 1.0 * Author: Steve Quirk * Summary: Serializes method invocations by dispatching in main thread. * * Revision History: * Feb 1995 steveq created * */ #import "MessageSerializer.h" #import <remote/NXConnection.h> #import <remote/NXProxy.h> @interface MessageSerializer (Private) - proxy; @end @implementation MessageSerializer static MessageSerializer *instance = nil; + sharedInstance { if (instance == nil) instance = [[MessageSerializer alloc] init]; return instance; } + new { self = [self sharedInstance]; /* get handle to root */ return [self proxy]; } - init { [super init]; proxyToSelf = nil; /* * set up our connection, methods dispatched by Application's event loop */ connection = [NXConnection registerRoot:self fromZone:[self zone]]; [connection runFromAppKit]; return self; } - proxy { if (proxyToSelf == nil) { /* * this proxy will be used by all other threads */ proxyToSelf = [NXConnection connectToPort:[connection inPort] fromZone:[self zone]]; if (proxyToSelf == nil) [self error:"Unable to create proxy"]; [proxyToSelf setProtocolForProxy:@protocol(MethodSerializing)]; } return proxyToSelf; } /* * these methods gets dispatched into main thread */ - (void)makeObject:anObject perform:(SEL)aSelector { if ([anObject respondsTo:aSelector]) [anObject perform:aSelector]; return; } - (void)makeObject:anObject perform:(SEL)aSelector with:someObject { if ([anObject respondsTo:aSelector]) [anObject perform:aSelector with:someObject]; return; } @end
From: alex@bark.oit.gatech.edu (Alex) Newsgroups: comp.sys.next.misc,comp.sys.next.programmer,comp.sys.next.software Subject: How do you redirect mic input to speakers (black hardware) ? Date: 10 May 1995 12:39:58 GMT Organization: Georgia Institute of Technology Distribution: na Message-ID: <3oqc6u$rsk@mordred.gatech.edu> I have a Turbo slab running 3.0 and I want to be able to plug a CD player into the mic input on back of the monitor and have it play through the speakers. I know on a Sun you can do this by typing "cat /dev/sound > /dev/sound", but the NeXT doesn't have a /dev/sound. Anybody know which device(s) I need to redirect? Thanks. -- ---------------------------------------------------------------------- Alex Shillington Georgia Institute of Technology - OIT/Network Services http://www.gatech.edu/oit/staff/ns/alex/ ----------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer From: empath@netcom.com (Tim Triemstra) Subject: Segment errors in link!!! Message-ID: <empathD8DA22.Bsw@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 10 May 1995 14:39:38 GMT Sender: empath@netcom5.netcom.com I recently installed NeXTStep Developer v3.3 on my machine and tried to rebuild my company'd giant application. Well, I eventually forced my way through the compilation stage with a few more warnings than I was used to but the link died a hard death! I get address segment errors in all of the SHLIB files. Usually they are in the _DATA area but also occur in the _OBJC area of the libraries. As I said, this is a clean build on a brand new system with a program that worked FINE under 3.2, so what could be causing the address errors under 3.3? The indication would be that library names are being re-used by the application but without information about what has changed between 3.3 and 3.2 I have no idea where to start looking. Please help as I have no way to go about building this app as it stands and I _really_ don't want to go back to 3.2. Thanks! -- Tim Triemstra ... empath@netcom.com ... Detroiter at Heart The RED WINGS rule! They sometimes take a vacation during the playoffs unfortunately.
From: Bruce Gingery <bruce@TotSysSoft.com> Newsgroups: comp.sys.next.programmer Subject: Re: EBCDIC to ASCII conversion? Hex editor? Date: 10 May 1995 14:23:05 GMT Organization: Total System Software Distribution: world Message-ID: <3oqi89$p1@tssslab.TotSysSoft.com> References: <D8Byr3.CAM@watserv3.uwaterloo.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <D8Bnp6.8nu@lexmark.com>, Barry Janzen <bjanzen@lexmark.com> wrote: ~ >Hi, ~ > ~ >I need to do as the subject says, and short of writing a translation ~ > table and program or doing 'tr' with a zillion parameters, is there ~ >some simpleway to convert an EBCDIC (IBM mainframe) file to ASCII? In article <D8Byr3.CAM@watserv3.uwaterloo.ca> dfevans@bbcr.uwaterloo.ca (David Evans) replies: }~ dd(1) will do it; can't remember the options. It's in the man page. conv=ascii convert EBCDIC to ASCII ebcdic convert ASCII to EBCDIC ibm slightly different map of ASCII to EBCDIC Note that there is enough variation in EBCDIC that you may not get a 100% two-way mapping. EBCDIC is based on card-punch zone mapping which is what gives it its strange distribution. Note that it was fairly uniform from the 80 to 96 column cards despite a major difference in the appearance of the cards. Also the EBCDIC has had various subsets, including "column binary" which, depending on your data (I'm presuming that you're pulling it from 7- or 9- track tape archives) may have some REALLY strange formatting. ~ >Is there a hex editor with NS/FIP 3.2 that can edit hex so I can ~ > verify that my EBCDIC files aren't corrupt? }~ There's one on ftp.cs.orst.edu someplace. You can also use od(1) shell command to merely display hex dumps of the data. Pipe it to openfile(1) to put it in an Edit window (Edit.app must already be launched) or to copy(1) to load it into the pasteboard for pasting into any other application. Odds are that you don't actually NEED a hex editor here unless you wish to MODIFY data which you think is incorrect. Bruce +-+ Bruce Gingery Total System Software Cheyenne, WY USA We do consulting over Internet. E-Mail tss@TotSysSoft.com for quotes or more info. Homepage construction area:<URL:http://metro.turnpike.net/bagingry/> NEXT IN LINE magazine staff technical writer Bruce Gingery <bgingery@Wyoming.COM> OR <bruce@TotSysSoft.com> Multimedia: NeXTmail(tm) preferred MIME-mail welcome
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: Re: How to create a Multi Thread AppKit Date: 10 May 1995 16:31:10 GMT Organization: Netcom Distribution: world Message-ID: <3oqpoe$534@ixnews4.ix.netcom.com> References: <3olcjl$pj0@ixnews2.ix.netcom.com> <3opgg2$m7v@qns1.qns.com> In <3opgg2$m7v@qns1.qns.com> mitch@strategicobject.com (Mitch Roider) writes: > >In article <3olcjl$pj0@ixnews2.ix.netcom.com> kdarmawa@ix.netcom.com >(Kurniawan Darmawangsa) writes: >> I currently is working in a project to create a simulation program. >> >> To simplify the problem: I have 2 identical objects called Object A [ much deleted] > Thanks for all of the response. I try all of the suggested aproach, and I found that using perform:with:afterDelay:cancelPrevious: will do the job. However it is still not multithread solution. I will try to work on multi threaded solution once there are enough time to modified the solution. Again thanks for all the help. Kurniawan
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: delegation semantics: respondsTo: ? Date: 10 May 1995 16:51:12 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3oqqu0$83u@news.next.com> References: <D8B5rM.Lpw@news.informatik.uni-stuttgart.de> Hi - Can someone send me the original version of this post? I'm quite intrigued by the discussion in this latest round but can't quite extract what the original question/assertion was... Thanks, Z -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
From: apandit@acs.uswest.com (Ajay Pandit) Newsgroups: comp.sys.next.programmer Subject: "No rows updated" alert panel while saving a record Date: 10 May 1995 17:32:40 GMT Organization: US West !nterprise Networking Systems Message-ID: <3oqtbo$chl@acsnews.uswc.uswest.com> Hi everyone, I am getting following error in an EOF 1.1 application when I change a field from a valid value to blank: No rows updated by: UPDATE <record_name> SET field_name = NULL WHERE field_name = 'AX7EC' AND field_name IS NULL There are lot of other things in the where clause, but it fails because it check for the field_name to be NULL and 'AX7EC' (its previous value) both at the same time, and thus not finding any row to update. This problem comes only for this field, but I could'nt figure out any reason why does it check twice for the same field with two different values. Has any one experienced similar problem or have a clue why it could be happening ? Thanks, - Ajay Pandit apandit@acs.uswest.com
From: peter@bert.psyc.upei.ca (Peter Burka) Newsgroups: comp.sys.next.programmer Subject: Re: Playing sound in app Date: 10 May 1995 20:15:27 GMT Organization: University of Prince Edward Island, Charlottetown, PEI Canada Distribution: world Message-ID: <3or6sv$slu@atlas.cs.upei.ca> References: <3o7kih$lte@lyra.csx.cam.ac.uk> In article <3o7kih$lte@lyra.csx.cam.ac.uk> wfc@cl.cam.ac.uk (W F Clocksin) writes: > In article <3o5s03$pjm@network.ucsd.edu> mark@jehu.extern.ucsd.edu writes: > > What's the best way to play sound files in an application? > [deletions] > > Any help is appreciated! > > > > What you want is the class SoundEffect, which plays sounds in separate streams. > It works great. You can find it in the BreakApp demo source (in the Developer > AppKit examples). The plain ol' Sound class works just fine, too. They're by far the easiest solution. -- Peter 'Beaker' Burka / GCS d--- h---- s+ g+ p? au a- w+ v++ C++ UL++++/X+++/ Prince Edward Island \ O++ P+ L+>++ 3 N++ K++ W++/--- M- V-\ po-- Y+ t+ 5- pburka@upei.ca / v b+++ D++ b- e+(*) u--- h* f- r- n- y-@ j++ r-- "If only we were weiner dogs our problems would be all solved"
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: Enhancements (forwarding, overloading) to the run-time system. Message-ID: <1995May9.171053.11190@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <D8A328.KLw@world.std.com> Date: Tue, 9 May 1995 17:10:53 GMT Christopher Lloyd writes > In article <9505051737.AA00826@flexus>, > Raf Schietekat <flexus!RfSchtkt@maze.ruca.ua.ac.be> wrote: > >It's essentially this: how does the runtime build an NSInvocation object from > >a stack frame? There's no run-time type information in the SEL (uniqued with > >respect to its string only, right?), or is there? Does it just play roulette, > >supposing that the first signature it finds anywhere in the run-time internals > >is the right one for this case (this is not about an NSProxy)? Does anyone > >*know*? > > Well, I don't *know*, but the NSInvocation doesn't need to *know* the > method signature until it has a target - and at that point it can > determine the method signature. That was my first reaction too, but there is a problem. The reason that you need an NSInvocation is because the target does not implement the specific method. Because of this, it is unable to get the method signature from the target. I would assume that when a new target is set in the NSInvocation (inside your -forwardInvocation: implementation), the NSInvocation would update its method signature. Unfortunately this still doesn't help the situation where there are two different signatures for a single selector and the run-time picks the wrong one when creating the NSInvocation (if that's possible). In this case, accesses to the parameters could be messed up. It would be nice if somebody from NeXT could clarify this issue. -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Newsgroups: comp.sys.next.programmer From: hendryj@mcs.com Subject: ODBC Adaptor? Message-ID: <1995May10.172210.25607@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division Date: Wed, 10 May 1995 17:22:10 GMT Is there an EOF adaptor for ODBC? -- Jonathan Hendry Vanguard Software Corp. Jon_Hendry@vanguard.com Any similarity between the views expressed herein and the views of Vanguard Software, Swiss Bank Corp., or any individuals living, dead, or undead is entirely coincidental.
From: peter@mathworks.com (Peter Greis) Newsgroups: comp.sys.next.programmer Subject: Need help accessing serial ports... Date: 10 May 1995 14:46:48 -0400 Organization: The MathWorks, Inc., Natick, MA 01760 Distribution: usa Message-ID: <3or1mo$qfb@king.mathworks.com> If this is RTFM, then please point out which 'M'... I have just aquired an APC Smart600 UPS, and would like to write a smart shutdown daemon. The ones I have found so far look at the modem port status bits, then do a shutdown when they change (the corresponding cable has DCD tied to rx). I have "rung-out" one of the cables that ships with PowerChute (APC's software for other unix platforms), and have discovered that they use tx, rx, and gnd. I have build the corresponding cable for the NeXT (cube, '040), but I'm having trouble opening up the serial port and getting anything useful. Anybody have any handle snippets? (Please, don't point me to the source for kermit)... I have tried opening the device (/dev/ttya) just like a regualr file for reading, without any success. thanx, -peter
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: New palettes in 3.3? Message-ID: <jpanicoD8DKsw.7Et@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 10 May 1995 18:31:44 GMT Sender: jpanico@netcom4.netcom.com Hi, I thought I heard discussion of NeXT including more specialized objects/palettes in 3.3 Dev.. But now that I have browsed the 3.3 Dev distribution, I can't find any palettes new from 3.2 (except EOF of course). Does NeXT distribute the progress indicator objects (like the progress bar in the installer.app) that it uses in its own software? Are there any objects/frameworks to help with generating reports? It seems to me that if you don't want your report to look like the datawindow (form) that the user edits, you don't get a lot of support from the NeXT classes. Also: What is NSReport? Are there any 3rd party vendors who might sell indicator objects, report generation objects? What is objectWare? Is there a detailed catalog somewhere? Thanks for any info. Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Wed, 10 May 95 18:46:21 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505101646.AA01834@flexus> Subject: Re: Reference count based automatic deallocation Pieter Schoenmakers writes: > With PDO like NeXT's, with local and remote proxies, you > can use any garbage collection (GC) implementation you > desire, without needing to think about distributed GC, > since the proxies (with the aid of the connection, of > course) can use reference counting among themselves. Just for the record: this way you could still have referential cycles over connections. Purely local isolated cycles would be detected, but not the distributed ones. Has this limitation of retain/release caused anyone any problems, yet? Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Wed, 10 May 95 19:21:59 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505101721.AA01922@flexus> Subject: Re: How to create a Multi Thread AppKit Ralph Zazula writes: > 2) By default, the Objective-C runtime is not thread > safe. There is a function called objc_setMultithreaded() > that makes the runtime system thread safe. This should > be used for applications that use ObjectiveC messaging > in multiple threads. Please explain to us what objc_setMultithreaded(YES) does, and why it makes the system so slow, and why multithreaded Objective-C tends to work without using this function. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Wed, 10 May 95 20:01:05 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505101801.AA02036@flexus> Subject: Re: delegation semantics: respondsTo: ? Klaus Brouwer writes: > ???? What do you mean? Declared in the documantation? > Most of the methods ARE 'implemented' by Object, although > they actually don't do much. And now guess why... Declared in the include files. > You are talking about the exceptions of the rule (less > then 10%). I think this are relicts of a time before > categories were introduced. Object implements exactly 6 methods in the NeXT_s shared library (in NEXTSTEP_3.2), none of them delegation methods. > By the return value, similar to the message passing system > of the responder chain. If a delegate method returns nil > for example, it didn't handle the message; if it returns > a non nil value, it did. A few of the ...Will... delegation methods return either self or nil to signal whether they allow the event, er, action, er, well, happening, to occur (e.g., windowWillClose:). You could change that to return an additional value, but that is not the case now. > Categories are NOT a dirty trick! They are the cleanest I mean overriding respondsTo: to dynamically change the nature of an NXBrowser delegate. This is not documented, and some people don't even know that respondsTo: is involved... :-) Dirtiest of all: I'm not sure anymore whether it worked when I tried this, long ago. > and most efficient way to implement delegation. Problems Efficiency often is less of a concern than flexibility (see below). [No comments about rest of posting.] More pedantic statements: In NEXTSTEP, an object can have one delegate, which either does or does not implement each of a designated set of methods. This is a convention, that each object using delegates has to reimplement for itself, generally in this way (this is not spelled out anywhere in the documentation, so I'm guessing): -doIt{ /*var*/ id realDelegate; realDelegate=(nil!=delegate)?delegate:self; if([realDelegate respondsTo:@selector(thingWillDoIt:)]){ if(nil==[realDelegate thingWillDoIt:self]){ return; /*possibly the return value is ignored instead*/ } } /* ... what doIt does ... */ if([realDelegate respondsTo:@selector(thingDidDoIt:)]){ [realDelegate thingDidDoIt:self]; } return self; } This arrangement is rather unfortunate: an object can have only one delegate, and the set of methods is dictated. For example, you might want to have multiple delegates of an Application, each responding to different things; this is a throw-objects-together world and this rigid sort of delegation gets in the way of that. (There's also the use of delegates to redirect action messages.) Luckily, OpenStep has NSNotification, and delegates now are only a default way of registering for notifications (I hope). Hope this is interesting, Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer From: lloyd@world.std.com (Christopher Lloyd) Subject: Re: How to create a Multi Thread AppKit Message-ID: <D8DvrI.143@world.std.com> Organization: The World Public Access UNIX, Brookline, MA References: <9505101721.AA01922@flexus> Date: Wed, 10 May 1995 22:28:30 GMT In article <9505101721.AA01922@flexus>, Raf Schietekat <flexus!RfSchtkt@maze.ruca.ua.ac.be> wrote: >Please explain to us what objc_setMultithreaded(YES) does, and why it makes >the system so slow, and why multithreaded Objective-C tends to work without >using this function. Each ObjC class has a cache of selector -> IMP mappings, entries are placed in the cache the first time they are used, and never removed. If you have multiple threads using ObjC, there must be a lock on these caches - you don't want one thread accessing the cache while another is modifying, or multiple threads modifying. It is slow because every ObjC message now has the overhead of this cache locking. Things tend to work without objc_setMultithreaded(YES), because the cache fills up with the commonly used selectors early on, and the potential for cache modification goes down as more selectors are placed in the cache. Also, since the cache is on a per-class basis, this can dilute the possibility of cache modification conflicts if seperate threads are using seperate sets of classes. I think an alternative to objc_setMultithreaded(YES) could be to iterate over all the classes, and all their selectors, doing an IMP lookup on each selector to preload all the caches - but I don't know what of memory overhead this would cause in a typical app, or what kind of impact loading the cache in this way has on cache performance. might be baaaaaad. , -- |: Christopher Lloyd :|: Yrrid Incorporated :|: lloyd@yrrid.com :|
From: seanl@jujube.cs.umd.edu (Sean Luke) Newsgroups: comp.sys.next.programmer Subject: Re: How to create a Multi Thread AppKit Date: 11 May 1995 00:55:26 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Message-ID: <3orn9u$boo@mimsy.cs.umd.edu> References: <9505101721.AA01922@flexus> Raf Schietekat (flexus!rfschtkt@maze.ruca.ua.ac.be) wrote: >Ralph Zazula writes: >> 2) By default, the Objective-C runtime is not thread >> safe. There is a function called objc_setMultithreaded() >> that makes the runtime system thread safe. This should >> be used for applications that use ObjectiveC messaging >> in multiple threads. >Please explain to us what objc_setMultithreaded(YES) does, and why it makes the >system so slow, and why multithreaded Objective-C tends to work without using >this function. It's my understanding that objc_setMultithreaded(YES) is slow because a mutex must be allocated for every single method call (remember that Obj-C methods require some dynamic lookup, and can change in real time, if so caused by another thread). According to the NeXT docs, this increases the message passing overhead by about a factor of 3. Objective-C will often work just peachy even if this function is not set to YES, but if you do stuff like dynamic loading, or fooling around with the messaging system, or use - forward:, etc., funky things can happen. It's been my experience, though, that this overhead is not that major of a problem. For simulations, I must respectively disagree with our previous responses: threading is _good_ if you're simulating real-time algorithms which can't be stepped (very easily). Otherwise, you'll probably be better off with timed entries. Sean Luke U Maryland at College Park seanl@cs.umd.edu Today's Chemical: Aluminum Zirconium Tetrachlorohydrex GLY
From: john_devitofranceschi@il.us.swissbank.com (John Devitofranceschi) Newsgroups: comp.sys.next.programmer Subject: Re: Sybperl can't load DBlib Date: 9 May 1995 11:45:25 GMT Organization: Swiss Bank Corporation, Swiss Bank Center, Zurich Airport Distribution: world Message-ID: <3onkkl$6en@op1d56cmp.il.us.swissbank.com> References: <3obato$osk@cabinboy.studio.disney.com> Richard Ruth writes > I receive the following errors when I attempt to use Sybperl: > So did I. You need to make sure that /usr/sybase/lib/libsybdb.a and /usr/lib/libm.a are on the system. Take a look in the DBlib.bs file (in lib/auto/Sybase/DBlib in your perl source tree) and you'll see: @DynaLoader::dl_resolve_using = qw(/usr/sybase/lib/libsybdb.a /usr/lib/libm.a); (or something like it) Unfortunately, these files are NOT installed with the standard NS user packages. I also ran into trouble when I tried to statically link the Sybase stuff in on the Intel NS platform--only 89% of the tests passed! So now, I just stick to Dynamic linking. jd -- John Devitofranceschi Swiss Bank Corporation, IFD/NSE, Unix and Network Engineering jd@il.us.swissbank.com Work: 011 411 239 6807 Home: 011 411 381 5475 "I have never understood why it should be necessary to become irrational in order to prove that you care, or indeed, why it should be necessary to prove it at all." -Kerr Avon, "Duel"
From: mitch@strategicobject.com (Mitch Roider) Newsgroups: comp.sys.next.programmer Subject: Re: How to create a Multi Thread AppKit Date: 10 May 1995 04:46:58 GMT Organization: Questar Network Services Distribution: world Message-ID: <3opgg2$m7v@qns1.qns.com> References: <3olcjl$pj0@ixnews2.ix.netcom.com> In article <3olcjl$pj0@ixnews2.ix.netcom.com> kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) writes: > I currently is working in a project to create a simulation program. > > To simplify the problem: I have 2 identical objects called Object A and > B. A send message to B to decrease B_Val. After decreasing B_val B send > back message to A to decrease A_val.(A_Val and B_val is the instance > variable of A and B) > When I started the program, I have a start button that start send > message to A, and started continous loop. I also have a stop button to > stop / break the loop. However when the loop started I got spinning > whell cursor. It was ignoring the stop button click. > > My first solution is to create a thread to start the first message to > the continous loop. In cthread_fork only take c function and I was not > able to call objective-C object from that function. Besides I read the > manual that ObjectiveC call in AppKit are not thread safe. > > Is there anybody have solutions for this problem? > > > Leon All That is really needed is the use of the following method: perform:with:afterDelay:cancelPrevious: - perform:(SEL)aSelector with:anObject afterDelay:(int)ms cancelPrevious:(BOOL)flag This will solve your problem without threads and keep the solution simple. This method it documented in Object Additions Mitch Roider -- NewsGrazer, a NeXTstep(tm) news reader, posting -- M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.UQF,5QF M<W=I<W,@2&5L=F5T:6-A.UQF,EQF=&5C:"!3>6UB;VP[7&8S7&9N:6P@5&EM M97,M4F]M86X[?0I<;6%R9VPQ,C`*7&UA<F=R,3(P"EQP87)D7'1X,3,T-%QT M>#(V.#A<='@T,#,R7'1X-3,W-EQT>#8W,C!<='@X,#8T7'1X.30P.%QT>#$P M-S4R7'1X,3(P.39<='@Q,S0T,%QF,%QB,%QI,%QU;&YO;F5<9G,R.%QF8S!< M8V8P($EN(&%R=&EC;&4@/#-O;&-J;"1P:C!`:7AN97=S,BYI>"YN971C;VTN M8V]M/B!K9&%R;6%W84!I>"YN971C;VTN8V]M("A+=7)N:6%W86X@1&%R;6%W M86YG<V$I('=R:71E<SI<"CX@22!C=7)R96YT;'D@:7,@=V]R:VEN9R!I;B!A M('!R;VIE8W0@=&\@8W)E871E(&$@<VEM=6QA=&EO;B!P<F]G<F%M+EP*/B!< M"CX@5&\@<VEM<&QI9GD@=&AE('!R;V)L96TZ($D@:&%V92`R(&ED96YT:6-A M;"!O8FIE8W1S(&-A;&QE9"!/8FIE8W0@02!A;F1<"CX@0BX@02!S96YD(&UE M<W-A9V4@=&\@0B!T;R!D96-R96%S92!"7U9A;"X@069T97(@9&5C<F5A<VEN M9R!"7W9A;"!"('-E;F1<"CX@8F%C:R!M97-S86=E('1O($$@=&\@9&5C<F5A M<V4@05]V86PN*$%?5F%L(&%N9"!"7W9A;"!I<R!T:&4@:6YS=&%N8V5<"CX@ M=F%R:6%B;&4@;V8@02!A;F0@0BE<"CX@5VAE;B!)('-T87)T960@=&AE('!R M;V=R86TL($D@:&%V92!A('-T87)T(&)U='1O;B!T:&%T('-T87)T('-E;F1< M"CX@;65S<V%G92!T;R!!+"!A;F0@<W1A<G1E9"!C;VYT:6YO=7,@;&]O<"X@ M22!A;'-O(&AA=F4@82!S=&]P(&)U='1O;B!T;UP*/B!S=&]P("\@8G)E86L@ M=&AE(&QO;W`N($AO=V5V97(@=VAE;B!T:&4@;&]O<"!S=&%R=&5D($D@9V]T M('-P:6YN:6YG7`H^('=H96QL(&-U<G-O<BX@270@=V%S(&EG;F]R:6YG('1H M92!S=&]P(&)U='1O;B!C;&EC:RY<"CX@7`H^($UY(&9I<G-T('-O;'5T:6]N M(&ES('1O(&-R96%T92!A('1H<F5A9"!T;R!S=&%R="!T:&4@9FER<W0@;65S M<V%G92!T;UP*/B!T:&4@8V]N=&EN;W5S(&QO;W`N($EN(&-T:')E861?9F]R M:R!O;FQY('1A:V4@8R!F=6YC=&EO;B!A;F0@22!W87,@;F]T7`H^(&%B;&4@ M=&\@8V%L;"!O8FIE8W1I=F4M0R!O8FIE8W0@9G)O;2!T:&%T(&9U;F-T:6]N M+B!"97-I9&5S($D@<F5A9"!T:&5<"CX@;6%N=6%L('1H870@3V)J96-T:79E M0R!C86QL(&EN($%P<$MI="!A<F4@;F]T('1H<F5A9"!S869E+EP*/B!<"CX@ M27,@=&AE<F4@86YY8F]D>2!H879E('-O;'5T:6]N<R!F;W(@=&AI<R!P<F]B M;&5M/UP*/B!<"CX@7`H^($QE;VY<"EP*7`H*7&8Q7&9S,C0@06QL(%1H870@ M:7,@<F5A;&QY(&YE961E9"!I<R!T:&4@=7-E(&]F('1H92!F;VQL;W=I;F<@ M;65T:&]D.EP*"EQP87)D7&)<9G,Q-EQL:3$S-C!<9F,P7&-F,"!<"@I<9G,R M.%QF:2TS.#!<;&DR-#@P('!E<F9O<FTZ=VET:#IA9G1E<D1E;&%Y.F-A;F-E M;%!R979I;W5S.EP*"EQF,EQB,%QF:2TW-C!<;&DS,C0P("T*7&8S("`*7&(@ M<&5R9F]R;3H*7&(P("A314PI"EQI(&%396QE8W1O<@I<:3`@(%P*"EQB7&9I M,"!W:71H.@I<8C!<:2!A;D]B:F5C=`I<:3`@(`I<8B`@7`IA9G1E<D1E;&%Y M.@I<8C`@*&EN="D*7&D@;7-<"@I<8EQI,"!C86YC96Q0<F5V:6]U<SH*7&(P M("A"3T],*0I<:2!F;&%G7`I<"@I<<&%R9%QT>#$S-#1<='@R-C@X7'1X-#`S M,EQT>#4S-S9<='@V-S(P7'1X.#`V-%QT>#DT,#A<='@Q,#<U,EQT>#$R,#DV M7'1X,3,T-#!<9C%<:3!<9G,R-%QF8S!<8V8P(%1H:7,@=VEL;"!S;VQV92!Y M;W5R('!R;V)L96T@=VET:&]U="!T:')E861S(&%N9"!K965P('1H92!S;VQU M=&EO;B!S:6UP;&4N7`I4:&ES(&UE=&AO9"!I="!D;V-U;65N=&5D(&EN($]B C:F5C="!!9&1I=&EO;G-<"EP*36ET8V@@4F]I9&5R7`H*?0IN `
From: sanguish@digifix.com (Scott Anguish) Newsgroups: comp.sys.next.programmer Subject: EOF tutor wanted / Examples library Date: 10 May 1995 01:49:24 -0400 Organization: Digital Fix Development Distribution: world Message-ID: <3opk54$ovs@digifix.digifix.com> Is there anyone out there that wouldn't mind helping me with some very basic EOF with Quickbase questions? I'd also like to build a public collection of EOF/Foundation examples. Other than the NeXT provided and MiniExamples, there isn't much available. If you've got something, you can email it to me (nextmail/MIME) or you can drop it at ftp://ftp.stepwise.com/pub/submissions Thanks! Scott -- - Scott Anguish - sanguish@digifix.com (NextMail) next-announce@digifix.com (comp.sys.next.announce submissions)
From: jchong@spnext1.ee.ntu.edu.tw (Jenn-Chau Hung) Newsgroups: comp.sys.next.programmer Subject: Transfer SNDSoundStruct between DOserver and clinet Date: 10 May 1995 06:18:19 GMT Organization: National Taiwan University Message-ID: <3oplrb$13o@netnews.ntu.edu.tw> Hi, I want to transfer SNDSoundStruct data from DO client to DO server, as below : At client side: - sendSoundToServer:sender { [theDOServer setServerSound:[theSound soundStruct]]; return self; } At server side: - setServerSound:(SNDSoundStruct*)clientSoundStruct { SNDCopySound(&serverSoundStruct, clientSoundStruct); return self; } But the sound data seems not transfer correctly .... Steven Hung --- Taiwan NeXT User Group NTU Speech Recognintion Lab.
From: shill@iphysiol.unil.ch (Sean Hill) Newsgroups: comp.sys.next.programmer Subject: NSValue and NSArray != Storage... Date: 11 May 1995 09:39:12 GMT Organization: University of Lausanne CH (Switzerland) Message-ID: <3osm00$3cb@cisun2000.unil.ch> A while ago someone asked what to use instead of Storage in the new OpenStep world. I and someone from NeXT (and others) replied that the solution would be to use NSArray filled with NSValues... However, now that I am actually doing that in a large-scale case where Storage worked really well, with 10,000 Storage objects each containing from 50 - 300 values, the corresponding situation of 10,000 NSArrays with 50 - 300 NSValues is turning out to use about twice as much memory! Maybe I'm doing something wrong and I really hope so, but this performance is terrible. Previously when I archived the Storage it would take up ~5Megabytes of space on the hard driver, now with NSArray it uses ~11 Meg! Is this because foundation is not yet optimized and cleaned up? What is the problem? Is there that much overhead in having separate objects? It's a pity. Any suggestions, hope for the future, or info would be appreciated. Sean --- Laboratoire de Neuro-heuristique Work: ++41 021 692.5516 Institut de Physiologie Fax: ++41 021 692.5505 Rue du Bugnon, 7 Sean.Hill@iphysiol.unil.ch CH-1005 Lausanne SWITZERLAND
Newsgroups: comp.sys.next.programmer From: mapdjb@bath.ac.uk (D J Batey) Subject: cthread priorities Message-ID: <D8Etzu.I3r@bath.ac.uk> Followup-To: duncan@perihelion.co.uk Organization: School of Mathematical Sciences, University of Bath, UK Date: Thu, 11 May 1995 10:47:54 GMT Does anyone out there have experience of using the cthreads priorities for round-robin scheduling? The documentation I have just says that priorities can be between 0 and 31, but gives no further information, such as what the default priority is, whether any of the priorities are for privileged processes, etc. All followups to duncan@perihelion.co.uk, please, NOT mapdjb@bath.ac.uk -- I'm using this account remotely. Thanks, Duncan.
Newsgroups: comp.sys.next.programmer From: nkawai@postman.riken.go.jp (Nobuyuki Kawai) Subject: Re: Named pipe Message-ID: <D8FAwH.582@postman.riken.go.jp> Sender: news@postman.riken.go.jp (News Administrator) Organization: Institute of Physical & Chemical Research (RIKEN) Saitama,Japan References: <D8F2vA.26@postman.riken.go.jp> Date: Thu, 11 May 1995 16:53:05 GMT My question: > Does anybody know what is the proper way to create a named pipe on NeXT? Thank you for the advice sent to me by e-mails. Art Ibell actually gave me a piece of code that does what I wanted to have. I copy his mail here. ------- Start of forwarded message ------- .. Possibly, but I don't really know how named pipes are supposed to work, so maybe you can evaluate my proposal. Copy the following to a file named mkfifo.c and compile. If it does what you want, install it in a directory on your shell's execution path (~/bin or /usr/local/bin). ---- cut here ---- /* ** Creates a named pipe. See mkfifo(2P) man page. ** Must have POSIX library available. ** ** cc -g -O2 -posix -s mkfifo.c -o mkfifo */ #import <sys/types.h> #import <sys/stat.h> #import <stdio.h> void main(int argc, char *argv[]) { if (argc < 3) { fprintf(stderr, "Usage: mkfifo mode filename\n"); } else { if (strlen(argv[1]) != 3 || strspn(argv[1], "01234567") != 3) { fprintf(stderr, "mode argument must be 3 octal digits\n"); } else { unsigned int mode; unlink(argv[2]); sscanf(argv[1], "%o", &mode); mkfifo(argv[2], mode); } } exit(0); } ---- cut here ---- .. ------- End of forwarded message ------- I tested it in the following way. I opened two shell windows. In one window, I typed like this window1% mkfifo 644 test_pi window1% cat > test_pi hi hello ^D window1% At the same time, I watched the pipe by "cat" to verify the fifo. window2% cat test_pi hi hello window2% -- Nobu Kawai
Newsgroups: comp.sys.next.software,comp.sys.next.programmer From: "Eric K. Ringger" <ringger@cs.rochester.edu> Subject: Re: named pipe In-Reply-To: Your message of "Thu, 11 May 1995 04:42:26 GMT." <D8ED2r.5Dt@postman.riken.go.jp> Message-ID: <199505111515.LAA24642@slate.cs.rochester.edu> Followup-To: comp.sys.next.programmer Sender: ringger@cs.rochester.edu (Eric K. Ringger) Cc: comp.sys.next.software, comp.sys.next.programmer Organization: University of Rochester Computer Science Dept Date: Thu, 11 May 1995 11:15:26 -0400 In message <D8ED2r.5Dt@postman.riken.go.jp>you write: >I found that you cannot create a named pipe using "mknod" on NeXT, and >"file" command canot recognize a named pipe created by other machine (in >my case SUN) in a NFS-shared directory. However, I found that the named >pipe thus created by SUN, actually works as a pipe on the NeXT. > >Does anybody know what is the proper way to create a named pipe on NeXT? >-- >Nobu Kawai, RIKEN Hi, Nobu. I'm not on my NEXTSTEP machine right now, so I can't try what I'm about to tell you, but I do recall successfully using the system call mknod(2) (or was it mkfifo(2) ?) with mode S_IFIFO to create a named pipe under NEXTSTEP 3.2. Correct me if I'm wrong. Followups to comp.sys.next.programmer. --Eric --- Eric K. Ringger Internet: ringger@cs.rochester.edu Dept. of Computer Science Phone: (716) 275-0922 University of Rochester FAX: (716) 461-2018 Rochester NY 14627-0226 http://www.cs.rochester.edu/u/ringger/ ||||| | | | | | | | | | | | | | | | | | | |||||
Newsgroups: comp.sys.next.programmer From: dsanders@Trimark.com (Doug Sanders) Subject: Re: Can I use the floppy controller on the Adaptec? Message-ID: <1995May10.152756.22652@trimark.com> Sender: news@trimark.com Organization: Trimark Investment Management, Toronto References: <3oo073$l5k@cmcl2.NYU.EDU> Date: Wed, 10 May 1995 15:27:56 GMT In article <3oo073$l5k@cmcl2.NYU.EDU> Dario Ringach <dario> writes: > I am running NextStep 3.2 on a Gateway DX2/66V with an Adaptec > controller. For some reason the floppy disk (on the motherboard) stopped > working... I was wondering if it is possible to use the floppy disk > controller on the adapted instead. Can it be done? > > Thanks in advance... > > -- > Dario Ringach | office: (212) 998-7614 lab: (212) 998-7730 > Center for Neural Science | home: (212) 727-9346 fax: (212) 995-4011 > New York University | e-mail: dario@cns.nyu.edu My floppy runs off the SCSI controller (Adaptec 1542CF) no problem. Of course you'll have to disable the controller on the motherboard to avoid conflicts. -- ------------------------------------------------------------------- Doug Sanders Trimark Investment Management Inc. dsanders@Trimark.com One First Canadian Place, Ste 5600 NeXTmail, MIME mail OK Toronto, ON M5X 1E5 CANADA -------------------------------------------------------------------
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: Transfer SNDSoundStruct between DOserver and clinet Date: 11 May 1995 16:19:33 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95May11121933@maggie.cs.mcgill.ca> References: <3oplrb$13o@netnews.ntu.edu.tw> In-reply-to: jchong@spnext1.ee.ntu.edu.tw's message of 10 May 1995 06:18:19 GMT <jchong@spnext1.ee.ntu.edu.tw> writes: >Hi, > I want to transfer SNDSoundStruct data from DO client > to DO server, as below : >At client side: >- sendSoundToServer:sender >{ > [theDOServer setServerSound:[theSound soundStruct]]; > return self; >} >At server side: >- setServerSound:(SNDSoundStruct*)clientSoundStruct >{ > SNDCopySound(&serverSoundStruct, clientSoundStruct); > return self; >} >But the sound data seems not transfer correctly .... This is because it's only transferring the sound struct itself, and not the data it references. The sound struct acts as a header, with an offset to the beginning of the data. If the data is not fragmented, you can get it by adding the offset to the address of the struct, and copying for the number of bytes named in the struct as the length of the sound. If the sound is fragmented, then things are tougher. You might want to use an NXData object to transfer this thing over. Or, what's pretty much guaranteed to work is to save the struct to a file (or a steam) then encode and send that over. Then, you don't have to worry about dealing with fragmented data. - db -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: NSValue and NSArray != Storage... Date: 11 May 1995 16:31:36 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95May11123136@maggie.cs.mcgill.ca> References: <3osm00$3cb@cisun2000.unil.ch> In-reply-to: shill@iphysiol.unil.ch's message of 11 May 1995 09:39:12 GMT <shill@iphysiol.unil.ch> writes: >A while ago someone asked what to use instead of Storage in the new >OpenStep world. >I and someone from NeXT (and others) replied that the solution would be to >use NSArray filled with NSValues... >However, now that I am actually doing that in a large-scale case where >Storage worked really well, with 10,000 Storage objects each containing >from 50 - 300 values, the corresponding situation of 10,000 NSArrays with >50 - 300 NSValues is turning out to use about twice as much memory! Maybe >I'm doing something wrong and I really hope so, but this performance is >terrible. Previously when I archived the Storage it would take up >~5Megabytes of space on the hard driver, now with NSArray it uses ~11 Meg! >Is this because foundation is not yet optimized and cleaned up? What is >the problem? Is there that much overhead in having separate objects? >It's a pity. I believe that the implementation of storage was as an array of elements, each the size of the struct. This is very efficient in terms of speed *and* size. Under the NSArra/NSValue method, you're losing at least 8 bytes per element (4 for the pointer in the NSArray, + 4 for the "isa" pointer in NSValue) on top of any additional overhead used by NSValue. So, in your situation of 10,000 * (50[-]300) you have 500,000 to 3,000,000 objects sitting around. This means an extra 4 to 24 megs in overhead. Gotta love that well-thought-out foundation kit. Anyway, your solution is simple. Re-invent the wheel. Replicate Storage, which was a good thing, and which the boys at NeXT seem to have forgotten. Not onloy will you get better size, but you'll avoid that pig NSArray (my NKQueue is about 5 times faster than NSArray, so I know you can do better... it's a better algorithm, and a better implementation... my flat NKList is also twice as fast as NSArray...). Also, if you write your own ytou get the source code, and don't have to worry about it being replaced or "enhanced" in the future. Remember that with each upgrade of NEXTSTEP, they remove features. - db -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
From: gcolello@biosphere.Stanford.EDU (Greg Colello) Newsgroups: comp.sys.next.programmer Subject: Programming Without Interface Builder Date: 12 May 1995 01:33:41 GMT Organization: Stanford University Distribution: world Message-ID: <3oudtl$fub@nntp.Stanford.EDU> Yes. This is the stupid question of the century. Why would anyone want to program without IB? Well I want to automate the assembly of the GUI interface. In effect replace IB. The REALLY stupid thing is I have never learned how to program without IB. Every ObjC programming example I have ever seen was done from IB. QUESTION 1: Does anyone know of good ObjC programming examples that do not use IB at all? The first simple test I want to perform is to assemble a dialog panel where the text field positions are determined by the number and size and type of fields to be displayed. Data base networking views would be next. This kind of application comes out of the need to view and edit a (custom-built) object data base as part of a generalized simulation system where the system itself is part of the object data base. In this application virtually no part of the interface is fixed in advance. It changes as the data base (and the system) changes. The 4GL generation of screen builders (of which IB is a relative) requires too much operator interaction and assumes a fairly significant portion of the sceen is fixed. The display of a complex object data base network requires automatic GUI generation on the fly. The point here is why use IB at all in this application? In this instance having setup information hidden from the programmer is a nuisance. Another interesting possibility I suppose would be to feed and read IB/PB to take advantage of an auto-GUI-generator to seed IB. QUESTION 2: where are the IB file specs (to evaluate this possibility)? ----------------------------------------------------------------- Greg Colello Carnegie Institution, Department of Plant Biology Stanford University gcolello@biosphere.stanford.edu (NeXT mail OK)
Newsgroups: comp.sys.next.programmer From: nkawai@postman.riken.go.jp (Nobuyuki Kawai) Subject: Named pipe Message-ID: <D8F2vA.26@postman.riken.go.jp> Sender: news@postman.riken.go.jp (News Administrator) Organization: Institute of Physical & Chemical Research (RIKEN) Saitama,Japan Date: Thu, 11 May 1995 13:59:33 GMT I found that you cannot create a named pipe using "mknod" on NeXT, and "file" command canot recognize a named pipe created by other machine (in my case SUN) in a NFS-shared directory. However, I found that the named pipe thus created by SUN, actually works as a pipe on the NeXT. Does anybody know what is the proper way to create a named pipe on NeXT? -- Nobu Kawai, RIKEN
From: mark@jehu.extern.ucsd.edu Newsgroups: comp.sys.next.programmer Subject: Segmentation Fault Date: 11 May 1995 19:50:55 GMT Organization: University of California at San Diego Distribution: world Message-ID: <3otpr0$746@network.ucsd.edu> Hi. I'm very reluctant to post this since I know that its a problem that I don't think anyone c an help me with... But I hope thats not the case. I have an application that compiles without any warnings or errors, and that runs fine if compiled for the debugger, but that gives me a segmentation fault when run as the actual non-debugger app. It happens somewhere during startup when a bunch of nib files are being loaded, so I'm having a difficult time finding out exactly where the problem is occuring. Since this doesn't happen when compiled for the debugger, finding the problem seems almost impossible... It seems really strange that MyApp.debug would run fine but MyApp.app gives me a segmentation fault. What causes segmentation faults? How can I find them without the gdb? Is there a difference between the way .debug apps are treated and the way .app apps are treated that would cause this? Please help! -- ================================================================== Mark Trombino trombino@wendy.ucsd.edu Center For Research in Computing the Arts, U.C.S.D. ==================================================================
From: mark@jehu.extern.ucsd.edu Newsgroups: comp.sys.next.programmer Subject: Re: Segmentation Fault (fixed...) Date: 11 May 1995 20:17:33 GMT Organization: University of California at San Diego Distribution: world Message-ID: <3otrct$826@network.ucsd.edu> References: <3otpr0$746@network.ucsd.edu> Never mind! Two minutes after posting, I found the problem. It was an array that wasn't large enough for what I was trying to stuff into it... Now that I know what the problem was, I'm even more baffled as to why the app.debug never crashed. The problem had always been there, but t he debuger must be more forgiving. Which it shouldn't be, should it? Oh well..... -- ================================================================== Mark Trombino trombino@wendy.ucsd.edu Center For Research in Computing the Arts, U.C.S.D. ==================================================================
From: shess@subzero.winternet.com (Scott Hess) Newsgroups: comp.sys.next.programmer Subject: Re: How to create a Multi Thread AppKit Date: 11 May 1995 02:00:01 GMT Organization: Is a sign of weakness Message-ID: <SHESS.95May10210001@subzero.winternet.com> References: <9505101721.AA01922@flexus> In-reply-to: Raf Schietekat's message of Wed, 10 May 95 19:21:59 +0200 In article <9505101721.AA01922@flexus>, Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: >Ralph Zazula writes: >> 2) By default, the Objective-C runtime is not thread safe. >> There is a function called objc_setMultithreaded() that makes >> the runtime system thread safe. This should be used for >> applications that use ObjectiveC messaging in multiple threads. >Please explain to us what objc_setMultithreaded(YES) does, and >why it makes the system so slow, and why multithreaded Objective-C >tends to work without using this function. I want to second the request. From the documentation: Making Objective C Thread Safe The Objective C run-time system has been made safe for use in multi-threaded programs. Since complete thread-safety requires that a lock be acquired every time a message is sent (which increases the time required to send a message by a factor of approximately three), the thread safety features must be explicitly enabled using the new function objc_setMultithreaded(). Note that it says "every time a message is sent". This confuses me. My understanding of the message dispatch code is that it is somewhat like this: // Version without locks. id objc_msgSend( id self, SEL op, ...) { IMP methodImplementation; // cache is a hashtable of some sort, use op as a key into it. methodImplementation=probeMethodCache( self->isa->cache, op); if( !impIsValid( methodImplementation)) { methodImplementation=class_getInstanceMethod( self->isa, op); if( !impIsValid( methodImplementation)) { // Do -forward:: or -forwardInvocation here and return // something. } // Associate op with methodImplementation in cache. addMethodToCache( self->isa->cache, op, methodImplementation); } // This function should never return - it probably has to // be assembly code. jumpDirectlyTo( methodImplementation); } Except for class_getInstanceMethod(), the functions are imaginary. The operation should be obvious from the names and comments. In any case, it _sounds_ like the entire beast is currently put inside an exclusive lock, when you request it: // Version with simple locks. id objc_msgSend( id self, SEL op, ...) { IMP methodImplementation; aquireExclusiveLock( myLock); // cache is a hashtable of some sort, use op as a key into it. methodImplementation=probeMethodCache( self->isa->cache, op); if( !impIsValid( methodImplementation)) { methodImplementation=class_getInstanceMethod( self->isa, op); if( !impIsValid( methodImplementation)) { // Do -forward:: or -forwardInvocation here and return // something. } // Associate op with methodImplementation in cache. addMethodToCache( self->isa->cache, op, methodImplementation); } releaseExclusiveLock( myLock); // This function should never return - it probably has to // be assembly code. jumpDirectlyTo( methodImplementation); } I don't think this is necessary, though! This variation would be better: id objc_msgSend( id self, SEL op, ...) { IMP methodImplementation; // cache is a hashtable of some sort, use op as a key into it. methodImplementation=probeMethodCache( self->isa->cache, op); if( !impIsValid( methodImplementation)) { aquireExclusiveLock( myLock); // The cache may have been updated in another thread // since last probe. methodImplementation=probeMethodCache( self->isa->cache, op); if( !impIsValid( methodImplementation)) { methodImplementation=class_getInstanceMethod( self->isa, op); if( !impIsValid( methodImplementation)) { // Do -forward:: or -forwardInvocation here and return // something. } // Associate op with methodImplementation in cache. addMethodToCache( self->isa->cache, op, methodImplementation); } releaseExclusiveLock( myLock); } // This function should never return - it probably has to // be assembly code. jumpDirectlyTo( methodImplementation); } This version is better, because the lock only comes into play for methods which don't successfully probe into the method cache. Since every cache miss results in a new item being placed into the cache, this should quickly result in very few misses, and no locks. The only problem with this code is that the probeMethodCache() functionality could _potentially_ probe the cache while another thread was expanding it to fit a new method implementation. The expansion would essentially be an allocation of new space, a copy of the original data, and then freeing of the old space. That's where the problem comes in (some other thread could be in the middle of accessing the old space when all this is going on). Why not defer the free of the old hash space? If one thread is probing it while another is moving it to a new space, then the first thread will not find the method IMP, and will try to aquire the lock. In the above code, it will notice that someone else updated things, so it will immediately release the lock, rather than placing another copy of the same method in the cache. The only part I'm unsure of is whether code can be thread-switched in the middle of reading a word from memory. If not, then once it's read the pointer to the current cache, things should be safe. If it can, though, then there's a possibility that it would read half of one pointer and half of another - a sure recipe for disaster. Why does most code work in the presence of threads? Well, so long as one piece of code isn't enlarging the IMP cache while another is accessing it, all is fine. Note that these must be the _same_ IMP caches! Is they resize reasonably, then the actual number of times the cache is enlarged is probably small for each cache. Furthermore, there would have to be multiple calls to methods in a single class to cause the problem. If multiple calls to the same method occur at once, it probably just places two copies in the hash, which shouldn't be dangerous. [Of course, there is _always_ the possibility of forcing the caches to be filled with all known method implementations. Sure, there would be a significant one-time hit. But, once that's done, then all method dispatches would operate at full speed, even with multiple threads. Because the caches never need to be updated. Loading of categories from bundles would be problematic, though ... but at worst, the programmer could be warned and could then pause all but the main thread during the load.] [Alternatively, there could be separate tables for each thread. :-).] Later, --- scott hess <shess@winternet.com> (WWW to "http://www.winternet.com/~shess/") Home: 12901 Upton Avenue South, #326 Burnsville, MN 55337 (612) 895-1208 Office: 101 W. Burnsville Pkwy, Suite 108F, Burnsville, MN 55337 890-1332 <Keep in mind that others have just as much right to be wrong as you do> -- scott hess <shess@winternet.com> (WWW to "http://www.winternet.com/~shess/") Home: 12901 Upton Avenue South, #326 Burnsville, MN 55337 (612) 895-1208 Office: 101 W. Burnsville Pkwy, Suite 108E, Burnsville, MN 55337 890-1332 <?If you haven't the time to design, where will you find the time to debug?>
From: peter@bert.psyc.upei.ca (Peter Burka) Newsgroups: comp.sys.next.programmer Subject: Copying Panels Date: 11 May 1995 03:22:07 GMT Organization: University of Prince Edward Island, Charlottetown, PEI Canada Distribution: world Message-ID: <3orvsv$750@atlas.cs.upei.ca> I'm sure that there's a simple solution for this. (I know there's a difficult one, but it's too much work.) I'm trying to make a copy of a Panel (which I'm then displaying inside a custom Cell), but Panel (nor Window) doesn't implement -copy, so they just inherit Object's implementation. Of course, Object just copies pointers (not the data they point at), so both my original Panel and the copy have the same contentView. Thus anything I do to the original happens to the new one, too. How can I copy the Panel so that the copy has its own collection of controls and Views? -- Peter 'Beaker' Burka / GCS d--- h---- s+ g+ p? au a- w+ v++ C++ UL++++/X+++/ Prince Edward Island \ O++ P+ L+>++ 3 N++ K++ W++/--- M- V-\ po-- Y+ t+ 5- pburka@upei.ca / v b+++ D++ b- e+(*) u--- h* f- r- n- y-@ j++ r-- "If only we were weiner dogs our problems would be all solved"
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Thu, 11 May 95 20:08:39 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505111808.AA01931@flexus> Subject: Re: Reference count based automatic deallocation Pieter Schoenmakers writes: > No. References only go from remote proxies to local > proxies. The local GC takes care of the remote proxy; > the local proxy keeps itself alive through its connection > and invalidates (to be cleaned up by GC) upon refcount > reaching 0. --Tiggr Well, consider two tasks A and B, and a class that can retain a friend. Suppose an instance of this class exists on both A and B, and that they are each other's friend. So you've got also two local proxies, and two remote proxies. The cycle is (with [A/B] and [B/A] the task boundaries): instanceA->remoteB-[A/B]->localB->instanceB->remoteA-[B/A]->localA->instanceA And this will survive local garbage collection. Not so? I take the liberty of repeating my question: has anyone actually experienced trouble with this? Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Fri, 12 May 95 08:03:10 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505120603.AA03721@flexus> Subject: Re: How to create a Multi Thread AppKit Good thinking by Scott Hess. Two problems: are reads and writes indeed atomic, as he asks too, and how long should the old table be kept? Answers: probably yes, and something like a minute or so? And, of course, is the analysis correct (can only be answered by someone who has the actual code)? Forcing a full cache fill would be horribly expensive in both time and storage, I think. Isn't C++ burdered with large tables which also inflate the executable and increase link times (I'm not sure: perhaps an expert could enlighten us?). In Objective-C, they would be even costlier (RAM only), because every method is ``virtual'' (C++ parlance); heaps of entries would never be needed. And the computation would give very bad launch performance. Even now, one of the arguments given in favour of dynamic loading of bundles is launch performance (because of the need to set up some behind-the-scene hash tables, and these are much smaller than what precomputed caches would be). Those should perhaps be precomputed at link time if desired, although I should probably look at the (GNU) runtime first: I'm just speculating here. Per-thread caches would be slow because first the current thread would have to be determined, for each objc_msgSend(). Well, Ralph Zazula, would you surprise us with a positive response from NeXT? A no-op objc_setMultithreaded(YES) for me, please (should be on by default if it can't be a counting semaphore; there aren't that many cache misses). Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: Segmentation Fault (fixed) - and cool gcc stack trick Message-ID: <D8G4pH.1sD@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems References: <3otrct$826@network.ucsd.edu> Date: Fri, 12 May 1995 03:36:52 GMT mark@jehu.extern.ucsd.edu writes > I found the problem. It was an > array that wasn't large enough for what I was trying to stuff into it... > Now that I know what the problem was, I'm even more baffled as to why the > app.debug never crashed. The problem had always been there, but > the debuger must be more forgiving. Which it shouldn't be, should it? Its not related to gdb. When you invoke make with a debug target, instead of, say, an app target, it uses a different set of CFLAGS to pass to the compiler. By default, make debug will compile at a lower level of optimization, and will also define the DEBUG macro, so that any #ifdef DEBUG code is compiled. The problem was probably masked previously by low level of optimization, but became evident with higher optimization which often places more variables in registers, and may layout memory on the stack differently. In both cases, you were likely writing past the end of your array. In the debug case, that probably harmlessly corrupted some automatic variable before it was initialized. In the non debug case, it probably corrupted the stack frame. In any case, stack storage is cheap (in the absence of recursion). Why not always allocate a large power of 2 elements in those arrays? Or even better, use the cool gcc feature to alloc the exact size on the stack. This is _legal_ in gcc, I don't know about ANSII - someMethod:(NSArray *)anArg { const int count = [anArg count]; int tempStackArray[count]; // bounds set at run time! // use tempStackArray without fear of exceeding bounds, // nor imposing a static size limit // nor messing with alloca's ugly syntax and non portability // nor paying the performance hit for dynamic allocation // nor having to worry about deallocation, ref counting or gc // tempStackArray just goes away automatically } This has been standard practice in the Ada world for ten years or so, but most C programs still seem to use hard coded limits all over the place :-( -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Reference count based automatic deallocation Date: 12 May 1995 11:15:19 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95May12131519@cobra.es.ele.tue.nl> References: <9505111808.AA01931@flexus> In-reply-to: Raf Schietekat's message of Thu, 11 May 95 20:08:39 +0200 In article <9505111808.AA01931@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: And this will survive local garbage collection. Not so? Oops. Yes. I take the liberty of repeating my question: has anyone actually experienced trouble with this? The cycle breaks when the connection is closed or one of the objects discovers that it no longer needs the services of the other and (in foundationkit speak) releases it (there's the meta-level of cleaning up again). --Tiggr
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <bbum@demiurge.friday.com> Message-ID: <199505120304.WAA06820@demiurge.friday.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Bill Bumgarner <bbum@demiurge.friday.com> Date: Thu, 11 May 95 22:04:05 -0500 Subject: Sybperl & Linking Cc: john_devitofranceschi@il.us.swissbank.com Sybperl v2b1 now fully supports static linking! Better yet, you can build it external to the perl source tree and have it statically linked into a new perl binary of a different name! Also; libm is not necessary. I removed it from all of the Makefile.PL files in the Sybperl distribution with no ill effects. Sybperl v2b1 can be found at: ftp://ftp.thoughtport.com/pub/perl b.bum
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Reference count based automatic deallocation Date: 11 May 1995 07:24:23 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95May11092423@cobra.es.ele.tue.nl> References: <9505101646.AA01834@flexus> In-reply-to: Raf Schietekat's message of Wed, 10 May 95 18:46:21 +0200 In article <9505101646.AA01834@flexus> Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes: Just for the record: this way you could still have referential cycles over connections. Purely local isolated cycles would be detected, but not the distributed ones. No. References only go from remote proxies to local proxies. The local GC takes care of the remote proxy; the local proxy keeps itself alive through its connection and invalidates (to be cleaned up by GC) upon refcount reaching 0. --Tiggr
Newsgroups: comp.sys.next.programmer From: dfevans@bbcr.uwaterloo.ca (David Evans) Subject: Re: Transfer SNDSoundStruct between DOserver and clinet Message-ID: <D8H60z.1yo@watserv3.uwaterloo.ca> Sender: news@watserv3.uwaterloo.ca Organization: University of Waterloo References: <3oplrb$13o@netnews.ntu.edu.tw> <SAMURAI.95May11121933@maggie.cs.mcgill.ca> Date: Fri, 12 May 1995 17:02:57 GMT In article <SAMURAI.95May11121933@maggie.cs.mcgill.ca>, Darcy BROCKBANK <samurai@maggie.cs.mcgill.ca> wrote: ><jchong@spnext1.ee.ntu.edu.tw> writes: > >>Hi, >> I want to transfer SNDSoundStruct data from DO client >> to DO server, as below : > >>At client side: > >>- sendSoundToServer:sender >>{ >> theDOServer setServerSound:theSound soundStruct; >> return self; >>} > >>At server side: > >>- setServerSound:(SNDSoundStruct*)clientSoundStruct >>{ >> SNDCopySound(&serverSoundStruct, clientSoundStruct); >> return self; >>} > >>But the sound data seems not transfer correctly .... > >This is because it's only transferring the sound struct itself, and not >the data it references. The sound struct acts as a header, with an >offset to the beginning of the data. If the data is not fragmented, you >can get it by adding the offset to the address of the struct, and >copying for the number of bytes named in the struct as the length of the >sound. If the sound is fragmented, then things are tougher. You might >want to use an NXData object to transfer this thing over. Or, what's >pretty much guaranteed to work is to save the struct to a file (or a >steam) then encode and send that over. Then, you don't have to worry >about dealing with fragmented data. > Or you could likely wrap it in a Sound object and ferry the whole thing about. -- David Evans dfevans@bbcr.uwaterloo.ca Computer/Synth Junkie "Default is the value selected by the University of Waterloo composer overridden by your command." Waterloo, Ontario, Canada - Roland TR-707 Manual
From: skwong@cuse1.se.cuhk.hk (Wong Sai Kee (Graduate Assistant)) Newsgroups: comp.sys.next.programmer Subject: How to identify a Text object inside a Form from IB Date: 12 May 1995 15:19:13 GMT Organization: Engineering Faculty CUHK Message-ID: <3ovu9h$j6n@eng_ser1.erg.cuhk.hk> I am new to NS programming and Obj-C. I want to write an App with columns of fields in it (like a spreadsheet). With NX Formcell or Matrix objects, Tab & Return key can be used to navigate among the fields with zero code writing effort. But I don't like the bundled navigation protocol, I want to have the Tab key move between the fields horizontally while Return key navigate through vertical direction. Further, I also want to use the up/down/left /right keys in 2 modes (set by Preference): i) navigate among fiels in X/Y directions; ii) move the cursor within the field, with up/down jump strictly to the head/end of the text field. I don't know whether I should drag a matrix of Text field from Palettes within IB or drag several columns of FormCell. Because I also need to do some labelling along the top row and the left most colum, I chose columns of FormCell approach. I think I should use the delegate to trap the Tab/Return keys from textDidEnd:endChar: message. That's OK, then, I found that I cannot figure out which field I am in. The sender of the textDidEnd:endChar: message is a text object which cannot be identified from IB. Since I am a novice, and may be its a trivial question, can you give me some pointers or suggestion ? Thanks in advance. Best Regards Mr.Sai-Kee Wong
Newsgroups: comp.sys.next.programmer From: glen@prosoft.com (Glen Biagioni) Subject: Re: Segmentation Fault (fixed) - and cool gcc stack trick Message-ID: <D8H1E1.4KH@prosoft.com> Sender: glen@prosoft.com (Glen Biagioni) Organization: ProSoft Solutions, Inc. References: <D8G4pH.1sD@genoa.com> Date: Fri, 12 May 1995 15:22:48 GMT Alex Blakemore writes > > Or even better, use the cool gcc feature to alloc the exact size on the > stack. This is _legal_ in gcc, I don't know about ANSII > > - someMethod:(NSArray *)anArg > { > const int count = [anArg count]; > int tempStackArray[count]; // bounds set at run time! > > // use tempStackArray without fear of exceeding bounds, > // nor imposing a static size limit > // nor messing with alloca's ugly syntax and non portability > // nor paying the performance hit for dynamic allocation > // nor having to worry about deallocation, ref counting or gc > // tempStackArray just goes away automatically > } > > This has been standard practice in the Ada world for ten years or so, > but most C programs still seem to use hard coded limits all over the place > :-( And in PL/1 long before that! > -- > Alex Blakemore > alex@genoa.com NeXT, MIME and ASCII mail accepted -- Glen Biagioni ProSoft Solutions Inc. glen@prosoft.com (NeXTmail Welcome) Bus:(604)324-3311 Fax:(604)324-9431
Newsgroups: comp.sys.next.programmer From: g7uyxd@hinshaw (Yi Danying) Subject: Is there a way to print a modal panel? Message-ID: <1995May11.222010.14312@almserv.uucp> Keywords: print, modal Sender: usenet@almserv.uucp Organization: Fannie Mae Date: Thu, 11 May 1995 22:20:10 GMT Hi. In the application I am working on, there are many modal panels brought up from the main window by browser-double-click or similar actions. When a modal panel is running, any action in the main menu is disabled by design. Is there a way to get around this feature so I can print a modal panel using the print function in the main menu? ( I know I can put print buttons on all the modal panels, but it is kind of cluttering). Your good health!
From: doug@dam.Colorado.EDU (Doug MacIntire) Newsgroups: comp.sys.next.programmer Subject: STOP button: Interrupting Date: 11 May 1995 20:28:12 GMT Organization: University of Colorado at Boulder Message-ID: <3ots0s$6qa@lace.Colorado.EDU> I have a project where I am trying to set up a STOP button to interrrupt a process in much the same way the "Search / STOP" button works in Digital Librarian. I have a global variable "running", and a button (initially titled "FREE RUN") that is connected to the "freeRun" action method as shown below: - freeRun:sender { [[freeRunButton setTitle: "STOP"] setAction:@selector(stopFreeRun:)]; running = YES; while (running){ /* Do some things */ } return self; } - stopFreeRun:sender { running = NO; [[freeRunButton setTitle: "FREE RUN"] setAction:@selector(freeRun:)]; return self; } When the "FREE RUN" button is pushed, it changes title to "STOP" and is highlighted. Unfortunately it just stays highlighted, while the disk wheel cursor spins around, and no amount of pushing will exit the while loop and stop the process... There is an example of something similar in the Garfinkle, Mahoney book, but there the process being exited is a thread. Do I need a separate threaded process in order to interrupt it? Thanks in advance for any help. Doug MacIntire CU Boulder
From: pascal@wsc.com () Newsgroups: comp.sys.next.programmer Subject: Setting NXTableView's delegate programmatically Date: 12 May 1995 21:35:13 GMT Organization: WSC Investment Services, Inc. Distribution: world Message-ID: <3p0kah$99r@cerberus.wsc.com> I am currently unable to programmatically set the delegate of an NXTableView. The only way I can get it to talk to the delegate is by instanciating the delegate in the nib file and dragging a connection from the NXTableView to it in IB. Am I missing something? Thanks, - Pascal
From: grd@ccrma.stanford.edu (glen diener) Newsgroups: comp.sys.next.programmer Subject: ObjC evaluator available Date: 12 May 95 16:04:43 Organization: CCRMA, Stanford University Distribution: world Message-ID: <GRD.95May12160443@ccrma.ccrma.stanford.edu> A new version of Eval, version3.3, has been downloaded to ftp://ccrma-ftp.stanford.edu:/pub/NeXT/Eval3.3.tar.gz and to ftp://ftp.cs.orst.edu:/pub/next/submissions/Eval3.3.tar.gz (I suspect it will eventually end up in ftp://ftp.cs.orst.edu/pub/next/sources/tools/Eval3.3.tar.gz) Eval is a programming environment which brings to ObjC much of the flexibility and immediacy of integrated programming systems often associated with SmallTalk and Lisp. Although Eval **feels** like an interpreter, it's actually an incremental compiler built on NeXT's ObjC compiler and run-time system. This is version 3.3 of Eval: it represents a considerable enhancement over all previous releases. In addition to functioning as a stand-alone program, Eval provides a service to other programs through the Services menu, making its functionality available to any application which can write ascii to the pasteboard. This allows you to select text in Edit, Mail, NewsGrazer, and so on, and execute that text as ObjC or PostScript. Eval provides windows, called Code Browsers, which are designed for editing ObjC program text. Text in a Code Browser is automatically classified into one of 7 categories (comment, keyword, method definition, etc.), and each category is displayed with its own user-definable font, size, and color. In sum, Eval provides the following functions: o Compile, load, execute, and unload the current selection as ObjC code. o Compile and load the current selection as an ObjC class or classes. o Dynamically load from disk any archive (library, i.e. .a file), object module (.o file), or compile and load any ObjC implementation file (.m file). o Create an interface definition file (.h file) from the current selection. o Interpret the current selection as PostScript. o Edit code in Code Browsers, automatically displaying ObjC reserved words, comments, strings, and so on, using user-definable fonts, sizes, and colors, while displaying an index of all method definitions in a separate scrolling browser. Eval provides extensive on-line NeXTSTEP-style help. The best way to get going with Eval is to work through the on-line tutorials on evaluation and loading, sections 2.1 and 3.1 respectively. Eval is freeware, and is distributed in source code form only. You need NeXTSTEP developer not only to build Eval, but to run it is well. It has been tested under 3.2 black and white, and 3.3 for Moto, Intel, HP, and Sparc. Glen Diener grd@ccrma.stanford.edu May 11, 1995
From: Steven Evans <sevans@andersen.co.uk> Newsgroups: comp.sys.next.programmer Subject: Categories in PDO Date: Fri, 12 May 95 17:02:32 GMT Organization: Andersen Consulting (UK Practice) Message-ID: <NEWTNews.30667.800298730.sevans@pc225.andersen.co.uk> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I'm using PDO 2.0 on Solaris 2.4. It doesn't seem to recognise my categories, and results in a obj-c run-time error when it can't find the categorised methods. The gnu compiler that comes with PDO calls the native linker (SGU SunOS/ELF (LK-1.4 (S/I)), and I've been trying combinations of forcing it to perform static linking and/or specifying the path/libraries the dynamic linker should use. NeXT said they had not fully tested PDO on Solaris 2.4 (only 2.3). Any pointers?
Newsgroups: comp.sys.next.programmer From: jimrob@sybase.com (James Robertson) Subject: Re: Class Attributes? -- help Message-ID: <D8DoDJ.I2F@sybase.com> Sender: usenet@sybase.com Organization: Sybase, Inc. References: <3o3f4l$jaf@aplinfo.jhuapl.edu> <3o8g4t$g00@sun0.urz.uni-heidelberg.de> Date: Wed, 10 May 1995 19:48:55 GMT In article <3o8g4t$g00@sun0.urz.uni-heidelberg.de>, tuparev@EMBL-Heidelberg.DE (Georg Tuparev) writes: |> In article <3o3f4l$jaf@aplinfo.jhuapl.edu> Mike Hostetter > Sages All, |> > |> > I would like to create a class that has an attribute that is not |> > available to the instances of the class (like the 'name' attribute(?) |> > that is accessed by the '+ name' or '+ version' class methods of the |> > Object class). Can anyone tell me how (or if) this is done? |> > |> > Thanks, |> > |> > Mike (new at NeXT programming) |> |> There are two (easy) solutions: |> ... Plus the simpleminded solution: Store class attributes as plain, old-fashioned "C" static variables at the top of the .m file for your class. For many situations, this works just fine; as long as the source for the class is not spread out over more than one .m file. Also note that with this approach, the class attribute is not visible within subclasses (i.e., no class attribute inheritance). This is probably just as well in most cases. Sample Foo.m: #import "Foo.h" // Class Attributes: static char *classInfo; @implementation Foo + (const char *) getInfo { return classInfo; } // etc. @end - Jim Robertson Sybase, Inc.
From: ckane@next.com (Christopher Kane) Newsgroups: comp.sys.next.programmer Subject: Re: NSValue and NSArray != Storage... Date: 13 May 1995 01:20:24 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3p11go$2s7@news.next.com> References: <3osm00$3cb@cisun2000.unil.ch> In article <3osm00$3cb@cisun2000.unil.ch> shill@iphysiol.unil.ch (Sean Hill) writes: > However, now that I am actually doing that in a large-scale case > where Storage worked really well, with 10,000 Storage objects each > containing from 50 - 300 values, the corresponding situation of > 10,000 NSArrays with 50 - 300 NSValues is turning out to use > about twice as much memory! Maybe I'm doing something wrong and > I really hope so, but this performance is terrible. Previously > when I archived the Storage it would take up ~5Megabytes of space > on the hard driver, now with NSArray it uses ~11 Meg! > Is this because foundation is not yet optimized and cleaned up? > What is the problem? Is there that much overhead in having > separate objects? It's the NSValues. For example: 10000 NSArrays * 100 NSValues/NSArray * 8 bytes/NSValue = ~8MB 8 bytes/NSValue = isa pointer + pointer to whatever wad you initialized the NSValue with. 8 bytes is about the minimal size for an NSValue. No amount of optimization will ever eliminate those bytes. You'll need to restructure your data to reduce the number of NSArrays or NSValues if you want to reduce space usage. For instance, if your values are fixed-size, you could "concatenate" them together within an NSMutableData, then index into the bytes yourself -- then you'd have 10000 NSMutableDatas. If you have 3 million objects in your application, then you're going to have ~12MB of nothing but isa pointers. That's that. Christopher Kane NeXT Computer, Inc. All comments are my own.
From: dallase@nando.net Newsgroups: comp.sys.next.programmer Subject: OS/2 HPFS on NeXTSTEP 3.2 and/or 3.3 Date: 12 May 1995 02:01:24 GMT Organization: News & Observer Public Access Message-ID: <3oufhk$39e@parsifal.nando.net> Is there a way to get NeXTSTEP 3.2 or 3.3 to read an HPFS Partition? Can a HPFS Partition be mounted, if so how is it done? I'm new to NeXTSTEP and know nothing about Mounting Partitions or File Systems. Thanks
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Programming Without Interface Builder In-Reply-To: gcolello@biosphere.Stanford.EDU's message of 12 May 1995 01:33:41 GMT Message-ID: <RDL.95May12141857@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3oudtl$fub@nntp.Stanford.EDU> Date: Fri, 12 May 1995 18:18:57 GMT There are programming examples in the NS Concepts manual (and in the NS 0.9 manuals :-)) that don't use IB. The Interface Builder NIB format is, unfortunately, proprietary. It's also a typedstream so it's probably just an object archive. Robert La Ferla HTI
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <mt1!stwo@netcom.com> From: Dennis Warn <mt1!stwo@netcom.com> Message-ID: <9505121553.AA01072@mt1.mantech.com> Date: Fri, 12 May 95 08:53:07 -0700 Subject: NXImage in a ScrollView - Help My program works well with a View and an NXImage compositing a .ps file into my window. Now I would like the View to be a ScrollView and the NXImage does not show up. I am defining the horizontal and vertical scroll bars and using a -tile method so what additional definitions do I need to display my NXImage? Thanks, Dennis Warn
From: ohammers@uxa.cso.uiuc.edu (hammersmith otto j) Newsgroups: comp.sys.next.programmer Subject: Re: Segmentation Fault (fixed) - and cool gcc stack trick Date: 12 May 1995 17:36:13 GMT Organization: University of Illinois at Urbana Message-ID: <3p06ad$57m@vixen.cso.uiuc.edu> References: <3otrct$826@network.ucsd.edu> <D8G4pH.1sD@genoa.com> In article <D8G4pH.1sD@genoa.com> alex@genoa.com writes: >- someMethod:(NSArray *)anArg >{ > const int count = [anArg count]; > int tempStackArray[count]; // bounds set at run time! > > // use tempStackArray without fear of exceeding bounds, > // nor imposing a static size limit > // nor messing with alloca's ugly syntax and non portability > // nor paying the performance hit for dynamic allocation > // nor having to worry about deallocation, ref counting or gc > // tempStackArray just goes away automatically >} > >This has been standard practice in the Ada world for ten years or so, >but most C programs still seem to use hard coded limits all over the place >:-( This works?!?! It shouldn't. :) When I have a few more minutes, I'll wanna try this under vanila gcc (and whatever other compilers I can dig up :) and see what happens. Really, does anyone know why this piece of code actually works? My guess is it has something to do with the way Obj-C translates this. :-S -- -Otto.
From: bm10009@hermes.cam.ac.uk (Ben Moseley) Newsgroups: comp.sys.next.programmer Subject: Re: How to create a Multi Thread AppKit Date: 13 May 1995 12:30:37 GMT Organization: University of Cambridge, England Message-ID: <3p28pd$8sf@lyra.csx.cam.ac.uk> References: <D8DvrI.143@world.std.com> In article <D8DvrI.143@world.std.com> lloyd@world.std.com (Christopher Lloyd) writes: > In article <9505101721.AA01922@flexus>, > Raf Schietekat <flexus!RfSchtkt@maze.ruca.ua.ac.be> wrote: > >Please explain to us what objc_setMultithreaded(YES) does, and why it makes > >the system so slow, and why multithreaded Objective-C tends to work without > >using this function. > > Each ObjC class has a cache of selector -> IMP mappings, entries > are placed in the cache the first time they are used, and never removed. > > If you have multiple threads using ObjC, there must be a lock on these > caches - you don't want one thread accessing the cache while another > is modifying, or multiple threads modifying. > > It is slow because every ObjC message now has the overhead of this > cache locking. > > Things tend to work without objc_setMultithreaded(YES), because the > cache fills up with the commonly used selectors early on, and the > potential for cache modification goes down as more selectors are > placed in the cache. Also, since the cache is on a per-class basis, > this can dilute the possibility of cache modification conflicts if > seperate threads are using seperate sets of classes. > > I think an alternative to objc_setMultithreaded(YES) could be to > iterate over all the classes, and all their selectors, doing an > IMP lookup on each selector to preload all the caches - but I don't > know what of memory overhead this would cause in a typical app, or > what kind of impact loading the cache in this way has on cache > performance. might be baaaaaad. > > , > -- > |: Christopher Lloyd :|: Yrrid Incorporated :|: lloyd@yrrid.com :| I know of at least one commercial NS app which uses exactly this technique - apparently it works very well. Ben.
From: merz@informatik.uni-siegen.de ( Peter Merz ) Newsgroups: de.comp.sys.next,comp.sys.next.programmer Subject: FractalView 0.95beta available Date: 13 May 1995 14:42:44 GMT Organization: Computer Center, University of Siegen, Germany Message-ID: <3p2gh4$qno@si-nic.hrz.uni-siegen.de> FractalView 0.95beta is now available throug anonymous ftp. URL: ftp://ftp.uni-siegen.de/pub/NeXT/local/FractalView-0.95beta.NI.b.tar.gz Please read the file FractalView*.README for more information. -- Peter Merz. -- Send Mail to: merz@informatik.uni-siegen.de --
From: reichman@phakt.usc.edu (Matthew Nathaniel Reichman) Newsgroups: comp.sys.next.programmer Subject: Fax Cover Sheet Archiving??? Date: 13 May 1995 09:06:51 -0700 Organization: University of Southern California, Los Angeles, CA Sender: reichman@phakt.usc.edu Message-ID: <3p2ler$hbo@phakt.usc.edu> Summary: Has anyone figured out how to archive the text in the fax cover sheet? Keywords: fax cover sheet archiving I was thinking if it were possible to have all that information including the main body text at least included in the mail message that you get confirming that the fax was successfully sent. Would anyone want to figure out how to do that? Keeping records of that info can be quite important. Matthew -- "Show disorder to make them take a chance" -- Sun Tzu
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/Career Position/3 states Date: 13 May 1995 19:53:59 GMT Organization: Norden 1 Communications Message-ID: <3p32on$hpi@news1.channel1.com> Position-----------------------Programmer/analyst/developer Platform------------------------NEXTSTEP Language-------------------------Objective C A Plus----------------------------DB Kit or EOF A Plus----------------------------Sybase or Oracle Type of position-------------------Career Position Opportunity-------------------------Excellent Benefits-----------------------------Outstanding Areas---------------------------------ILL, IN, FLA, Carolina Relocation-----------------------------Company assistance To be considered------------------------Fax resume or mail a hard copy -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: Segmentation Fault (fixed) - and cool gcc stack trick Date: 13 May 1995 20:06:02 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95May13160602@maggie.cs.mcgill.ca> References: <3otrct$826@network.ucsd.edu> <D8G4pH.1sD@genoa.com> <3p06ad$57m@vixen.cso.uiuc.edu> In-reply-to: ohammers@uxa.cso.uiuc.edu's message of 12 May 1995 17:36:13 GMT <ohammers@uxa.cso.uiuc.edu> writes: >In article <D8G4pH.1sD@genoa.com> alex@genoa.com writes: >>- someMethod:(NSArray *)anArg >>{ >>const int count = [anArg count]; >>int tempStackArray[count]; // bounds set at run time! >> >> >>This has been standard practice in the Ada world for ten years or so, >>but most C programs still seem to use hard coded limits all over the place >>:-( > This works?!?! It shouldn't. :) It's not portable, but is a GNU C language extension. There are many more useful and cool extensions... have a look at the "info" pages for GCC. - db Arrays of Variable Length ========================= Variable-length automatic arrays are allowed in GNU C. These arrays are declared like any other automatic arrays, but with a length that is not a constant expression. The storage is allocated at the point of declaration and deallocated when the brace-level is exited. For example: FILE * concat_fopen (char *s1, char *s2, char *mode) { char str[strlen (s1) + strlen (s2) + 1]; strcpy (str, s1); strcat (str, s2); return fopen (str, mode); } Jumping or breaking out of the scope of the array name deallocates the storage. Jumping into the scope is not allowed; you get an error message for it. You can use the function `alloca' to get an effect much like variable-length arrays. The function `alloca' is available in many other C implementations (but not in all). On the other hand, variable-length arrays are more elegant. There are other differences between these two methods. Space allocated with `alloca' exists until the containing *function* returns. The space for a variable-length array is deallocated as soon as the array name's scope ends. (If you use both variable-length arrays and `alloca' in the same function, deallocation of a variable-length array will also deallocate anything more recently allocated with `alloca'.) You can also use variable-length arrays as arguments to functions: struct entry tester (int len, char data[len][len]) { ... } The length of an array is computed once when the storage is allocated and is remembered for the scope of the array in case you access it with `sizeof'. If you want to pass the array first and the length afterward, you can use a forward declaration in the parameter list--another GNU extension. struct entry tester (int len; char data[len][len], int len) { ... } The `int len' before the semicolon is a "parameter forward declaration", and it serves the purpose of making the name `len' known when the declaration of `data' is parsed. You can write any number of such parameter forward declarations in the parameter list. They can be separated by commas or semicolons, but the last one must end with a semicolon, which is followed by the "real" parameter declarations. Each forward declaration must match a "real" declaration in parameter name and data type. -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
From: ohammers@uxa.cso.uiuc.edu (hammersmith otto j) Newsgroups: comp.sys.next.programmer Subject: Re: Segmentation Fault (fixed) - and cool gcc stack trick Date: 13 May 1995 20:53:09 GMT Organization: University of Illinois at Urbana Message-ID: <3p367l$a4b@vixen.cso.uiuc.edu> References: <D8G4pH.1sD@genoa.com> <3p06ad$57m@vixen.cso.uiuc.edu> <SAMURAI.95May13160602@maggie.cs.mcgill.ca> In article <SAMURAI.95May13160602@maggie.cs.mcgill.ca> samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) writes: ><ohammers@uxa.cso.uiuc.edu> writes: > >>In article <D8G4pH.1sD@genoa.com> alex@genoa.com writes: >>>- someMethod:(NSArray *)anArg >>>{ >>>const int count = [anArg count]; >>>int tempStackArray[count]; // bounds set at run time! >>> >>> >>>This has been standard practice in the Ada world for ten years or so, >>>but most C programs still seem to use hard coded limits all over the place >>>:-( > >> This works?!?! It shouldn't. :) > >It's not portable, but is a GNU C language extension. There are many >more useful and cool extensions... have a look at the "info" pages for >GCC. > >- db Cool. Neat feature... but what's the use? It will still have the overhead of alloca() and malloc() at runtime-- you can't avoid it. All it does it make the code a little easier to write, and sacrifices portablity of other compilers. -- -Otto.
From: gcolello@biosphere.Stanford.EDU (Greg Colello) Newsgroups: comp.sys.next.programmer Subject: Re: Programming Without Interface Builder (Summary) Date: 13 May 1995 21:08:10 GMT Organization: Stanford University Distribution: world Message-ID: <3p373q$7sq@nntp.Stanford.EDU> References: <3p2151$9fa@esel.cosy.sbg.ac.at> I got some great replies to this question. Most of them were written to me personally. Rather than the flames I expected, I seem to have gotten some overall encouragement. There seems to be a small, but significant population of programmers, who would like to find alternatives to programming with IB. I think early on we were all impressed by IB's power and usefulness compared to existing solutions, and the speed with which a novice could get started. Art Isbell summed it up nicely in response to my comment "...why use IB at all...?" [To save time. Programming a UI is very tedious, time-consuming, and error-prone. IB was one of NS's big advantages over the X Windows world in which UI code had to be written manually. I would construct all the static UI using IB and only the dynamic stuff programmatically.] This is reasonable, but I have two comments to make: Firstly IB assumes that SOMETHING about your UI is static. That leaves out a whole set of applications in which virtually nothing about the UI is static. Such applications arise in my field (generalized simulators especially as applied to environmental biology). From my observations I think scientific research in general has this problem where the underlying application seems to be changing all the time. My 10 year stint in business computing indicated to me that those applications (and screens) are a lot less static than we like to think (or wish) they are; and that goes all the way from the menu level to the text field or button level. (see also point (2) below). Secondly it seems to me that programming a UI directly need not be tedious, time-consuming, or error-prone. In the "old days" when higher-level procedures were needed some company would write a library of subroutines (like Statistics - eg. the SAS library). The programmer would then call these procedures within their program sacrificing virtually no control over their umbrella architecture. When ObjC came along, the low-level objects supplied by NeXT were analogous to the syntactic elements of a high-level language. IB was introduced to coordinate semi-intelligent assemblages of the lower-level objects into what are effectively useful GUI procedures, but at the cost of turning the architectural umbrella over to IB. What did not co-evolve well in the NeXT community is an analogy to the "old days" procedure libraries. For example, if I have a set of constants that are to be read into an application from a constants' file, I need to edit those constants somehow. In GUI terms an obvious solution is a dialog panel with multiple editable text fields (one for each constant). Why not produce an "object procedure" which takes as an argument a setup table containing control-information (defitions) about the constants, and then automatically produce a reasonable positioning of the text fields within a dialog box? Then, if I add or subtract constants from my application, I don't have to go into IB and change the interface. I don't care if the fields are perfectly arranged or not. Flexibility in program maintenence is far more important to me than such cosmetic details (which are highly subject to personal taste anyhow). I think virtually all aspects of practical applications can be reduced to such procedures. A library of about 100 of these suckers should obviate most of the problems of programming the GUI directly (HaHa). The "Kit" fever that hit the NeXT community last year of course is going in this direction. I just wish the goals weren't so IB-oriented, and I keep wishing we could develop these kits in logical layers. I guess practical expediency fills the vacuum left by the absence of solid theory. By creating a culture in which all application examples were done from IB, I believe the NeXT community accidently thwarted the development of a more traditional high-level language approach to programming under ObjC. For someone like me who often likes TOTAL control over every element of the programs I write (if for no other reason than to just know what's being passed around), this has frankly been frustrating. Every conversation I heard about programming seemed to revolve around IB palettes and lately ProjectBuilder. Part of this of course has to do with the evolution of the always struggling NEXTSTEP developer community which opted for immediate products as opposed to assembling a practical (lasting) theory of programming in ObjC that would penetrate throughout the community. The only theory I ever heard was: "Use IB. It just works." In summary I think there are now 3 major reasons to go outside of IB: (1) It's proprietary. For example Martin Michlmayr, GNUStep Volunteer Coordinator, says: [The NIB specification is currently not publically documented by NeXT. We are going to start working on a IB-like application for GNUStep, a free implementation of OpenStep.] (2) IB is only moderately intelligent. The need for HIGHLY intelligent interfaces has risen over the years. For example in response to my comment "...The display of a complex object data base network requires automatic GUI generation on the fly..." Bruce Gingery, of Total System Software says (I paraphrase him): [I have felt for some time that active objects were the way to create the backing database for AI (Artificial Intelligence).] Quite correct. He has seen that AI programming is underlying my comment. In fact it is AI-like applications that most require GUI dynamicism. Most AI apps share the attribute of storing knowledge in a highly dynamic tree-structure composed of thousands of objects. Displaying and editing those objects is a serious problem. Once you have such a knowledge-base, you might as well store your menu items in there. So what is left for IB? (3) IB encourages "point and click" applications while discouraging batch-mode. The classic example here is the proliferation of plotter packages that early on evolved on the NeXT all written in IB. They were great for "point and click" file opening and plotting, but forget driving them in batch mode. By batch mode I mean, like where you run a program that produces a standard output file, and you just want a set of standard plots of that data to appear at your printer. Yes I know that some of the newer NEXTSTEP plotting packages now can be driven without a UI, but why did it take so long? Consider IB and how we have traditionally told people to program under NEXTSTEP. Of course this is a little off my orginal point of auto-generating a UI, but any object procedure called in a program should make the actual UI display optional, and allow instead the program to supply what would have been the user-entries. More traditional programming practices might have encouraged this sort of thinking. Finally in response to my question: > QUESTION 1: Does anyone know of good ObjC programming examples that do > not use IB at all? > I got 3 replies: (1) NeXTSTEP Programming--STEP ONE by Simson L. Garfinkel and Michael K. Mahoney's a simple example at the beginning of the book. (Have it. Not very useful.) (2) The book "NeXTSTEP Programming: Concepts and Applications" by Alex Duong Nghiem has a chapter on programming without IB. (Hmmm. I don't have this book.) (3) Bruce Gingery simply sent me a several examples. In studying his examples I see very little additional complexity beyond a typical IB app. In fact I still haven't figured out the differences. Hmmm. :-) Anyway thanks for the kind responses. It renewed my faith that there are still some good (polite) conversations to be had in comp.sys.next.programming (as opposed to for example the flaming hell of comp.sys.next.advocacy). ----------------------------------------------------------------- Greg Colello Carnegie Institution, Department of Plant Biology Stanford University gcolello@biosphere.stanford.edu (NeXT mail OK)
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: 3.3 Dev. breaks master-detail linking through IB? Message-ID: <jpanicoD8JI1J.2xu@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Sat, 13 May 1995 23:17:42 GMT Sender: jpanico@netcom8.netcom.com Hi, I'm using 3.3 developer for a DBKit app. Using IB to pick slave a detail DBModule to a master DBModule no longer seems to work (worked fine for me in 3.2). More specifically, dragging a to-many relationship Icon from the master DBModule Inspector and dropping it on the detail DBModule's icon in the IB file window does not change the cursor (to a linking cursor) and does not produce any connection. Has anyone else run into this problem? Is there a workaround? Thanks. Joe Panico jpanico@netcom.com
From: jcr@best.com (John C. Randolph) Newsgroups: comp.sys.next.programmer Subject: Re: Objective-C interpreter! (almost) Date: 13 May 1995 17:31:06 -0700 Organization: Best Internet Communications, Inc. (info@best.com) Message-ID: <3p3j0r$4le@shell1.best.com> References: <3p3ilq$3sq@shell1.best.com> Summary: Oops! Had the wrong URL in my copy-buffer. Should be: ftp://ftp.cs.orst.edu:/pub/next/submissions/Eval3.3.tar.gz -jcr
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.programmer Subject: Re: Programming Without Interface Builder Date: 13 May 1995 10:20:17 GMT Organization: Dept. of Computer Science, University of Salzburg Distribution: world Message-ID: <3p2151$9fa@esel.cosy.sbg.ac.at> References: <3oudtl$fub@nntp.Stanford.EDU> Greg Colello (gcolello@biosphere.Stanford.EDU) wrote: / QUESTION 1: Does anyone know of good ObjC programming examples that do not / use IB at all? There is an example in the following book: NeXTSTEP Programming--STEP ONE: Object-Oriented Applications, by Simson L. Garfinkel and Michael K. Mahoney, Springer-Verlag New York, 1992. But, it`s rather short! / QUESTION 2: where are the IB file specs (to evaluate this possibility)? The NIB specification is currently not publically documented by NeXT. Here is a comment from Allen Denison at NeXT: / We might provide a standard file format for nib files at a later time, / but we cannot commit to working on that right now. / We don't believe that the nib file format specification is ready to / be released, yet. So, you could go with GNUStep and use the XMIB file format. There is a converter for NEXTSTEP that converts NIB files to XMIB. See http://fvkma.tu-graz.ac.at/gnustep/index.html. -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@gnu.ai.mit.edu GNUStep Volunteer Coordinator, http://fvkma.tu-graz.ac.at/gnustep/index.html
From: jcr@best.com (John C. Randolph) Newsgroups: comp.sys.next.programmer Subject: Objective-C interpreter! (almost) Date: 13 May 1995 17:25:13 -0700 Organization: Best Internet Communications, Inc. (info@best.com) Message-ID: <3p3ilq$3sq@shell1.best.com> I've just downloaded and built Eval.app. This is brilliant! This is the coolest addition to the NEXTSTEP development environment I've seen since 3.0 came out. I have something to say to Steve: HIRE GLEN DIENER! DO IT NOW! (In case anyone missed the announcement, the URL is: ftp://ftp.cs.orst.edu/pub/next/submissions/GateKeeper.0.8.src.tar.gz ) -John Randolph
From: aitken@coho.halcyon.com (William E. Aitken) Newsgroups: comp.sys.next.programmer Subject: Re: Segmentation Fault (fixed) - and cool gcc stack trick Date: 13 May 1995 02:49:37 GMT Organization: Northwest Nexus, Inc. - Professional Internet Services Message-ID: <3p16o1$8u2@news1.halcyon.com> References: <3otrct$826@network.ucsd.edu> <D8G4pH.1sD@genoa.com> <3p06ad$57m@vixen.cso.uiuc.edu> In article <3p06ad$57m@vixen.cso.uiuc.edu>, hammersmith otto j <ohammers@uxa.cso.uiuc.edu> wrote: >In article <D8G4pH.1sD@genoa.com> alex@genoa.com writes: >>- someMethod:(NSArray *)anArg >>{ >> const int count = [anArg count]; >> int tempStackArray[count]; // bounds set at run time! >> >> // use tempStackArray without fear of exceeding bounds, >> // nor imposing a static size limit >> // nor messing with alloca's ugly syntax and non portability >> // nor paying the performance hit for dynamic allocation >> // nor having to worry about deallocation, ref counting or gc >> // tempStackArray just goes away automatically >>} >> >>This has been standard practice in the Ada world for ten years or so, >>but most C programs still seem to use hard coded limits all over the place >>:-( > > This works?!?! It shouldn't. :) When I have a few more >minutes, I'll wanna try this under vanila gcc (and whatever other >compilers I can dig up :) and see what happens. > > Really, does anyone know why this piece of code actually >works? My guess is it has something to do with the way Obj-C >translates this. :-S >-- > -Otto. This is a GNU extension. It is not valid ANSI (or K&R, for that matter) C. As such, it is even less portavble than alloca. -- William E. Aitken | Formal verification is the email: aitken@halcyon.com | future of computer science --- Snail: 8500 148th Ave NE #H1026 Redmond WA | Always has been, always will be. ===============================================================================
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn) Newsgroups: comp.sys.next.programmer Subject: Re: Creating 24-bit tiff Date: 13 May 1995 00:16:47 GMT Organization: Rensselaer Polytechnic Institute, Troy NY, USA Distribution: world Message-ID: <3p0tpf$np2@usenet.rpi.edu> References: <RDL.95May5221357@world.std.com> rdl@world.std.com (Robert La Ferla) writes: > You can set the default NXWindowDepthLimit TwentyFourBitRGB to > force any application to use 24-bit color depth. This is not quite true. The values of TwoBitGray, EightBitGray, TwelveBitRGB, and TwentyFourBitRGB can pull the limit *down* to the indicated level. Ie, if you have a 24-bit display, you can drag an application down by setting NXWindowDepthLimit to TwoBitGray. If you have a 2-bit monitor (so to speak), then setting TwentyFourBitRGB will *not* promote the application up to 24 bit color. If you want to promote the screen depth to something *higher* than the limit of your actual display, you're supposed to use: "TestTwoBitGray" "TestEightBitGray" "TestTwelveBitRGB" "TestTwentyFourBitRGB" as a value for NXWindowDepthLimit. This still assumes that some image in that window (or the application itself) will try to display a 24-bit color image, of course. I missed the original article in this thread (our usenet hub is a bit flakey...), but here's an article from Ali Ozer@NeXT which might give the desired details: - --[start quoted article:] From: Ali_Ozer@NeXT.com (Ali Ozer) Newsgroups: comp.sys.next.misc Subject: Re: Capturing Color screens on Mono black hardware Date: 7 Feb 1994 16:18:18 GMT klui@corp.hp.com (Ken Lui) writes: > I was wondering if there's a way to capture color screens using > NEXTSTEP with black mono hardware. Could I force my Cube running > NS3.2 to "display" in color and capture a screen in color? There is a way that works only if you are grabbing windows, not the whole screen or selections. To grab windows in color on a monochrome screen, you have to fool both the app you are trying to grab and Grab to think they are on color machines. Normally the NXWindowDepthLimit default would let you change the depth limit; however, this default doesn't let you go deeper than the actual screen (for very good reasons). To get around this, prepend the word "Test" to the depth limit when running the app: yourapp.app/yourapp -NXWindowDepthLimit TestTwentyFourBitRGB & This will make the app think it's on a 24 bit screen, and all its window backing stores will be 24 bits. You also have to run Grab this way: /NextApps/Grab.app/Grab -NXWindowDepthLimit TestTwentyFourBitRGB & At this point window grabs will be 24 bits (provided the window you are capturing had enough color to make it become 24 bits; after all, the lazy window depth promotion still works!). One word of warning: An application run with this default on will run slower and use a lot more memory. I recommend launching the application with this default set explicitly on the command line, rather than doing a dwrite --- folks have a tendency to forget about disabling dwrites, and in this case the results will be bad. There's no reason why a user should ever an app this way under normal circumstances... Secondly, this way to capture color screens on a mono machine isn't a "user-feature" in any way; it's something that happens to work under 3.0... Ali, Ali_Ozer@NeXT.com - --[end quoted article] -- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu ITS Systems Programmer (handles NeXT-type mail) Rensselaer Polytechnic Institute; Troy NY USA
Newsgroups: comp.sys.next.marketplace,comp.sys.next.programmer,nlnet.markt,eunet.misc From: Gerben_Wierda@RnA.NL Subject: FS: Commercial NEXTSTEP 3.3 Developer + EOF 1.1 Message-ID: <D8KEBM.1ty@RnA.NL> Sender: gerben@RnA.NL (Gerben Wierda) Organization: G.R.O.S.S. Date: Sun, 14 May 1995 10:54:57 GMT Hello possible interested NEXTSTEP developers: I have a spare NEXTSTEP 3.3 Developer, which I'd like to exchange for pecunia (money) to add to my hardware/software fund. This is an unregistered commercial NS 3.3 Developer, which comes with a EOF 1.1 license if you register before June 30. Current new price for the set is $5300, in the EU additional VAT is around 17.5%. I am willing to sell this for any reasonable offer. If more than one person is interested, it goes to te highest bidder (again, if at least reasonable, I won't sell this for $250... 8-). Yours, -- gerben@rna.nl (Gerben Wierda) NEXTSTEP RD242 "If you don't know where you're going, any road will take you there" Paraphrased in Alice in Wonderland, originally from the Talmud.
Newsgroups: comp.sys.next.programmer From: gerti@BITart.com (Gerd Knops) Subject: Re: Programming Without Interface Builder (Summary) Message-ID: <D8K7Gz.8G0@BITart.com> Sender: usenet@BITart.com Organization: BITart, NEXTSTEP/OPENSTEP Consulting References: <3p373q$7sq@nntp.Stanford.EDU> Date: Sun, 14 May 1995 08:26:58 GMT There is also the problem, that InterfaceBuilder is somewhat outdated. IMHO there are several problems, that haunt us since NS1.0: - Action/Matrix/Cell. Everybody who writes palettes or needs to extend the functionality of Matrix probably knows what I mean. DPS on black HW was to slow, so they came up with the Cell idea to save a bunch of lock/unlock focus pairs etc. But it makes our life quite hard, and kind of brakes the OO idea. - An UIObject should know how to behave in a UI-Editor. Since Appkit objects don't, IB needs to use a bunch of cover objects, eg for windows. And that blocks a number of interesting possibilities, one of which is writing apps, where the user can rearrange the UI, and another: EOF. Everything that smells like EOF, is realized as a cover object in IB. And that makes it almost impossible to write palletized EOF-oriented objects, unless you start using a bunch of dirty tricks and some re-engineering. Extending IB by writing sophisticated palettes has become more and more complicated, due to a number of not or badly documented IB features, cover objects etc. OK, it's said, so lets go back to my latest palette project... gerti
From: lebreton@joshuatree.enst-bretagne.fr (Sophie LEBRETON) Newsgroups: comp.sys.next.programmer Subject: 3Dkit function Date: 11 May 1995 15:08:15 GMT Organization: ENST de Bretagne, Brest FRANCE Distribution: world Message-ID: <3ot98v$pmr@melimelo.enst-bretagne.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I am new in programming in objective C and have a problem I use the 3Dkit library but some Renderman functions I need seem not to be implemented. In particular, I'd have to get the sum of all light sources over a surface (function phong in RenderMan Shading langage) and can't find appropriate function. Do you know what I can do. Thanks Sophie lebreton@liac.enst-bretage.fr
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: Segmentation Fault (fixed) - and cool gcc stack trick Date: 14 May 1995 17:21:15 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95May14132115@maggie.cs.mcgill.ca> References: <3otrct$826@network.ucsd.edu> <D8G4pH.1sD@genoa.com> <3p06ad$57m@vixen.cso.uiuc.edu> <3p16o1$8u2@news1.halcyon.com> In-reply-to: aitken@coho.halcyon.com's message of 13 May 1995 02:49:37 GMT <aitken@coho.halcyon.com> writes: >In article <3p06ad$57m@vixen.cso.uiuc.edu>, >hammersmith otto j <ohammers@uxa.cso.uiuc.edu> wrote: >>In article <D8G4pH.1sD@genoa.com> alex@genoa.com writes: >>>- someMethod:(NSArray *)anArg >>>{ >>>const int count = [anArg count]; >>>int tempStackArray[count]; // bounds set at run time! >>> >>>// use tempStackArray without fear of exceeding bounds, >>>// nor imposing a static size limit >>>// nor messing with alloca's ugly syntax and non portability >>>// nor paying the performance hit for dynamic allocation >>>// nor having to worry about deallocation, ref counting or gc >>>// tempStackArray just goes away automatically >> >>This works?!?! It shouldn't. :) When I have a few more >>minutes, I'll wanna try this under vanila gcc (and whatever other >>compilers I can dig up :) and see what happens. >This is a GNU extension. It is not valid ANSI (or K&R, for that matter) C. >As such, it is even less portavble than alloca. Oh, I forgot to mention that since we're all using ObjC in this example anyway, and especially in relation to the AppKit, it should be OK to use this (unless someone knows about another ObjC compiler which works with the AppKit and isn't related to gcc). Well, there is one. The SunSoft C/C++/ObjC compiler might not support this gcc syntax. - db -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <agm@doc.ic.ac.uk> Message-ID: <m0sAgHa-000EIWC@dolphin.doc.ic.ac.uk> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: "Axel G. Merk" <agm@doc.ic.ac.uk> Date: Sat, 13 May 95 15:53:47 +0200 Subject: TIFF 2 PS What's the easiest way to convert, on the command line, a tiff file to a postscript file? I would think that there must be * a command-line conversion utility * a few simple postscript commands to wrap a tiff file Please e-mail me, since I don't have easy access to this group. I'll summarize if there is demand. thank you, axel agm@doc.ic.ac.uk
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: STOP button: Interrupting In-Reply-To: doug@dam.Colorado.EDU's message of 11 May 1995 20:28:12 GMT Message-ID: <RDL.95May14122318@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3ots0s$6qa@lace.Colorado.EDU> Date: Sun, 14 May 1995 16:23:18 GMT Yes, the best way to do it is in a separate thread. Robert La Ferla Registered NS Consultant / Developer / Trainer HTI + 1 (617) 252-0088
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Setting NXTableView's delegate programmatically In-Reply-To: pascal@wsc.com's message of 12 May 1995 21:35:13 GMT Message-ID: <RDL.95May14122750@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3p0kah$99r@cerberus.wsc.com> Date: Sun, 14 May 1995 16:27:50 GMT Did you try sending the setDelegate: message to the NXTableView instance in the awakeFromNib of your NIB's owner? Robert La Ferla Registered NS Consultant / Developer / Trainer HTI + 1 (617) 252-0088
From: clloyd@sierra.net (Charles C. Lloyd) Newsgroups: comp.sys.next.programmer Subject: Re: Segmentation Fault (fixed) - and cool gcc stack trick Date: 14 May 1995 18:15:00 GMT Organization: Sierra-Net Distribution: world Message-ID: <3p5hb4$87a@jobes.sierra.net> References: <3p16o1$8u2@news1.halcyon.com> William E. Aitken writes >This is a GNU extension. It is not valid ANSI (or K&R, for that matter) C. >As such, it is even less portavble than alloca. I am told that NeXT's alloca() is broken. According to a friend, if you use alloca() and it has to allocate space across pages, it doesn't work correctly. Can anyone confirm or deny this? Charles. --- Charles Lloyd clloyd@sierra.net GiantLeap Software PO BOX 8734 (702) 831-4630 Incline Village, NV 89452
From: samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: comp.sys.next.programmer Subject: Re: Segmentation Fault (fixed) - and cool gcc stack trick Date: 14 May 1995 17:13:28 GMT Organization: School of Computer Science, McGill Univ. Message-ID: <SAMURAI.95May14131331@maggie.cs.mcgill.ca> References: <D8G4pH.1sD@genoa.com> <3p06ad$57m@vixen.cso.uiuc.edu> <SAMURAI.95May13160602@maggie.cs.mcgill.ca> <3p367l$a4b@vixen.cso.uiuc.edu> In-reply-to: ohammers@uxa.cso.uiuc.edu's message of 13 May 1995 20:53:09 GMT <ohammers@uxa.cso.uiuc.edu> writes: >In article <SAMURAI.95May13160602@maggie.cs.mcgill.ca> samurai@maggie.cs.mcgill.ca (Darcy BROCKBANK) writes: >><ohammers@uxa.cso.uiuc.edu> writes: >> >>>In article <D8G4pH.1sD@genoa.com> alex@genoa.com writes: >>>>- someMethod:(NSArray *)anArg >>>>{ >>>>const int count = [anArg count]; >>>>int tempStackArray[count]; // bounds set at run time! >>>> >>>> >>>>This has been standard practice in the Ada world for ten years or so, >>>>but most C programs still seem to use hard coded limits all over the place >>>>:-( >> >>>This works?!?! It shouldn't. :) >> >>It's not portable, but is a GNU C language extension. There are many >>more useful and cool extensions... have a look at the "info" pages for >>GCC. >> >>- db > Cool. Neat feature... but what's the use? It will still have >the overhead of alloca() and malloc() at runtime-- you can't avoid it. >All it does it make the code a little easier to write, and sacrifices >portablity of other compilers. Well, the first thing is that it's much more "elegant" according to me, and the FSF :-). The second thing is that it has the same effect as being garbage collected. You just worry about declaring the variable that you need, and the system cleans it up after it leaves scope. "alloca()" isn't an ANSI function either (I believe, correct me if I'm wrong), so using it doesn't give you portability either. - db -- You smell of corduroy and lemon drops. -- Veruca Salt -- Baldric, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing, "Subtle Plans Are Here Again" -- Atkinson -- The Lord loves a hanging, that's why he gave us necks! -- Hoek and Cat --
From: Toby_Paterson@NeXT.com (Toby Paterson) Newsgroups: comp.sys.next.programmer Subject: Re: Categories in PDO Date: 14 May 1995 21:17:27 GMT Organization: NeXT Computer, Inc. Message-ID: <3p5s17$e1v@news.next.com> References: <NEWTNews.30667.800298730.sevans@pc225.andersen.co.uk> In article <NEWTNews.30667.800298730.sevans@pc225.andersen.co.uk> Steven Evans <sevans@andersen.co.uk> writes: > > I'm using PDO 2.0 on Solaris 2.4. It doesn't seem to recognise my categories, > and results in a obj-c run-time error when it can't find the > categorised methods. > The gnu compiler that comes with PDO calls the native linker (SGU SunOS/ELF > (LK-1.4 (S/I)), and I've been trying combinations of forcing it to perform > static linking and/or specifying the path/libraries the dynamic linker should > use. NeXT said they had not fully tested PDO on Solaris 2.4 (only 2.3). > Any pointers? The problem is caused by the fact that no explicit references to categories are generated by the compiler, so the linker doesn't know to pull in the modules containing the categories (unless, of course, there is a reference to another symbol in the same module). You will run in to the same problem if you do not explicitly reference a class, such as [[objc_getClass("Foo") alloc] init]; There are a couple of possible solutions, both of which are documented in the release notes: (1) you can link all modules in your library which contain any Objective-C code in to one big .o file. That way, referencing any class in the library will link in all classes and categories in the library. This is the way libpdo.a is built in PDO 2.0 (which is one reason why PDO applications are so huge). The draw-backs to this technique are numerous and pretty obvious, however. (2) we created two macros in objc-class.h. OBJC_REGISTER_CATEGORY(name) creates a symbol using the category name and should be placed in the .m file. OBJC_REFERENCE_CATEGORY(name) creates an explicit reference to this symbol which will cause the .o containing the category to be linked in to your application. The easiest way to use this system is to place the OBJC_REFERENCE_CATEGORY(name) in the .h file which defines the category's interface. This problem also exists under NEXTSTEP and is solved using the -ObjC option in the linker. Since we are using the native linker on PDO platforms and cannot modify it, we had to adopt these more kludgy solutions.
From: "Sean M. Willson" <premise@engin.umich.edu> Newsgroups: comp.sys.next.hardware,comp.sys.next.programmer,comp.sys.next.sysadmin,comp.sys.next.software Subject: Multiple fax modem question ... Date: 14 May 1995 22:26:03 GMT Organization: University of Michigan Engineering, Ann Arbor Message-ID: <3p601r$1ad@srvr1.engin.umich.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit I have a question to pose to the NeXT community. I am working on an application that will send a fax to one of many (say 17 differant) fax modems. The question I have is this, can NeXTStep handle this using the print objects faxing methods, and if so, do all of the fax modems have to be on the same machine? Can anyone who has worked with multiple fax modems provide a possible path toward a solution or give me a yes or no if it can be done? I looked in Next Answers and the only thing I found was a reference to the faxes being stored in a directory under the fax modems name. Are their any other places I could do some searching on this topic? Sean Willson _________________________________________________________________________ | Sean M. Willson "Chance favors a prepared mind..." | | University of Michigan College of Engineering | | ASCII: premise@umich.edu NeXTMail: premise@pluto.eecs.umich.edu | | http://www.engin.umich.edu/~premise/ WWW Page (NeXT Stuff) | | NeXT Programmer (Artist) in training! | |_______________________________________________________________________|
Newsgroups: comp.sys.next.programmer,comp.lang.objective-c,gnu.gcc.help From: pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz) Subject: Re: Accessing debug information In-Reply-To: clloyd@sierra.net's message of 15 May 1995 21:46:11 GMT Message-ID: <PFKEB.95May15194034@kaon.SLAC.Stanford.EDU> Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: <3p8i33$i5g@jobes.sierra.net> Date: Tue, 16 May 1995 02:40:34 GMT >>>>> On 15 May 1995 21:46:11 GMT, clloyd@sierra.net (Charles C. Lloyd) said: > I'm seeking documentation on how to access the debug information > from inside a running gcc program. I am primarily interested in > accessing infomation about structres. There's not much documentation around. It would be great if someone would write it up and contribute it to FSF. Within an object of a class, try gdb> p *self to print the instance variables of a class. gdb thinks a class is a C struct. -- Paul F. Kunz Paul_Kunz@slac.stanford.edu (NeXT mail ok) Stanford Linear Accelerator Center, Stanford University Voice: (415) 926-2884 (NeXT) Fax: (415) 926-3587
From: patrick@yabba.graphics.cornell.edu (Patrick Heynen) Newsgroups: comp.sys.next.programmer Subject: Re: Emergency startup kit Date: 15 May 1995 19:00:18 GMT Organization: Cornell University Program of Computer Graphics Distribution: world Message-ID: <3p88c2$sfs@merckx.graphics.cornell.edu> References: <3p7src$isp@news.next.com> In article <3p7src$isp@news.next.com> mtacchi@next.com (Mark G. Tacchi) writes: > This kit already exists, it's what you used to install the system. :-) > > You can just boot single user off the install floppy and CD ROM by typing '-s' > at the boot prompt. It will look like it is going to be doing an install and > ask you for your language. Caution: If you get to the point where it asks you > which disk you'd like to install NEXTSTEP on, you must have done something > wrong. Speaking of which, how does one make a floppy that is as automagical as the install disk? I tried doing it myself, and in the first pass, I couldn't even fit everything that was on the install floppy on a blank, formatted floppy! After some inspection, it appears that NeXT uses a different block size or something to squeeze more space from the floppy. However, even after getting everything on, I still couldn't get the floppy to boot the system correctly: it stopped after loading all the boot drivers and pretended that it hadn't loaded a SCSI driver and said I should insert a floppy w/ a driver on it! AARGH! Is the kernel on the install floppy different from /mach_kernel ? -Patrick
Newsgroups: comp.sys.next.programmer From: bmarchan@quest.fdn.org (Benoit Marchant) Subject: EOF Multiple Classes for an Entity, instance insertion ??? Message-ID: <1995May16.091137.2497@quest.fdn.org> Sender: news@quest.fdn.org Organization: Quest International / Unilever - Neuilly, France Date: Tue, 16 May 1995 09:11:37 GMT In an application I have a class (and its subclasses) mapped on an Entity in my Model. When I fech objects from this entity, I can test in init:withPrimarykey: which subclass to instance thanks to a SUBCLASS_CODE. It's fine. I found that in EOF 1.1 Beta release notes: -------------------------------------------------------------------------- An EOEntity mapping method has been specified that allows a class specified by a particular entity to substitute a different class based on it's fetched row or primary key values: + (Class)classForEntity:(EOEntity *)entity values:(NSDictionary *)values; The returned class must be either a sublass of the original class, have an entity specified in the model, or implement the entity method of the EOEntityMapping protocol. This requirement is not checked, but will cause insert, deletes, and updates to fail if not met. There are three situations in which this EOClass mapping method is invoked: 1. When an object is created by a data source, usually for insertion. values will be nil. 2. When an object referencing this object is fetched and a fault is created. values will be the object's primary key. 3. When a row is fetched. values will be the fetched row. Note that because of fault creation (#2, above), a class cannot rely on always receiving the complete row. To be safe, class selection should be based only on primary key values. -------------------------------------------------------------------------- does anyone know the purpose of that new feature, in relation with the init:withPrimaryKey: work around ??? what is EOEntityMapping protocol ??? My second question, on the same problem dealth with object insertion. When you want to insert an instance, at a DataSource Level, you will use anInstance = [aDataSource createObject]; so the dataSource will give you back an instance of the class that is directly mapped to it's entity in the EOModel. If you look at the createObject method you will see that an init:withPrimaryKey: is sent to the entity Class with nil as a key so it's impossible to insert instances with the same work around used to fetch. a solution would be to dynamically change in the EOEntity the class mapped to the subclass you want an instance, use createObject and then set back the top class. Does anyone have others solution, ideas or suggestion ? They'll be welcome ! thanks Benoit Marchant benoit@quest.fdn.org
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: Copying Panels Message-ID: <1995May15.230925.27751@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <3orvsv$750@atlas.cs.upei.ca> Date: Mon, 15 May 1995 23:09:25 GMT In article <3orvsv$750@atlas.cs.upei.ca> peter@bert.psyc.upei.ca (Peter Burka) writes: > How can I copy the Panel so that the copy has its own collection of > controls and Views? Unless you are building the panel out of controls and views at the run-time, simple loading of the same nib multiply solves the problem. Create a separate nib for the panel and use one of the "loadNib..." methods of class Application. Every time you load a nib, a new set of controls and views will be created. -- Dimitri Plotnikov [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
From: rcw@caspian.cc.vt.edu (R. Craig Woods) Newsgroups: comp.sys.next.programmer Subject: DBKit and Oracle7 question Date: 16 May 1995 11:50:41 GMT Organization: Virginia Tech, Blacksburg, Virginia Message-ID: <3pa3ih$t0s@solaris.cc.vt.edu> Keywords: Oracle7, DBKit Has anyone developed apps using the DBKit that are in production and connect to an Oracle7 server? I am switching some apps from a Sybase server to an Oracle7 server. If I understand correctly, the DBKit adaptor only supports Oracle 6 and SQLNet V1. I've noticed that DBModeler does not display in the Entities/Properties browser when I connect to the Oracle7 server. I have been able to define the Entities/Properties using DBModeler and can get a small application to fetch, insert, delete and save. However, this small success doesn't convince me that I should develop production applications using DBKit with Oracle7. Is EOF the route I should be taking? (I understand that its Oracle adaptor is for Oracle7 and SQLNet V2.) Thanks. Craig Woods Virginia Tech Computing Center
From: falkman@hegel2.cs.chalmers.se.u.cs.chalmers.se (G|ran Falkman) Newsgroups: comp.sys.next.programmer Subject: MiscProgressView-How to use Date: 16 May 1995 09:22:00 GMT Organization: Chalmers University of Technology Message-ID: <3p9qro$6qt@nyheter.chalmers.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I'm looking for an example of how to use the MiscProgressView(Bar/Pie) class in MiscKit. Anyone now where I can find such an example? Göran Falkman --- Göran Falkman Email: falkman@cs.chalmers.se Department of Computing Science Tel: + 46 31 772 5412 Chalmers University of Technology Fax: + 46 31 16 56 55 S-412 96 Göteborg, Sweden
From: besler@nova.mdd.comm.mot.com (Steve Besler) Newsgroups: comp.sys.next.programmer Subject: Re: Programming Without Interface Builder Date: 16 May 1995 18:26:05 GMT Organization: Motorola - Wireless Data Group; Seattle, WA Distribution: world Message-ID: <BESLER.95May16112606@nova.mdd.comm.mot.com> References: <3oudtl$fub@nntp.Stanford.EDU> <3p2151$9fa@esel.cosy.sbg.ac.at> In-reply-to: tbm@tci002.uibk.ac.at's message of 13 May 1995 10:20:17 GMT In article <3p2151$9fa@esel.cosy.sbg.ac.at> tbm@tci002.uibk.ac.at (Martin Michlmayr) writes: > From: tbm@tci002.uibk.ac.at (Martin Michlmayr) > Newsgroups: comp.sys.next.programmer > Date: 13 May 1995 10:20:17 GMT > Organization: Dept. of Computer Science, University of Salzburg > The NIB specification is currently not publically documented by NeXT. Is the NIB File format part of the OPENSTEP spec? If not, then porting something would be a pain! Connecting all those outlets it IB.... In practices, this might not be a problem because next will probably keep the same nib format for OPENSTEP/Win95(&NT) and Sun probably is using NeXT's code ... > So, you could go with GNUStep and use the XMIB file format. There is a > converter for NEXTSTEP that converts NIB files to XMIB. > See http://fvkma.tu-graz.ac.at/gnustep/index.html. Someone must have some idea of how NIB files are structured if they wrote a converter.... Steven Besler -- Steven Besler, Coop Student "I do not speak for Motorola." Motorola Wireless Data Group
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.software,comp.sys.next.misc,comp.sys.next.programmer,comp.soft-sys.nextstep Subject: Re: Artificial Intelligence Softwares Followup-To: comp.sys.next.software,comp.sys.next.misc,comp.sys.next.programmer,comp.soft-sys.nextstep Date: 16 May 1995 18:30:02 GMT Organization: Dept. of Computer Science, University of Salzburg Distribution: inet Message-ID: <3paqva$2e5@esel.cosy.sbg.ac.at> References: <D8oE3B.2GM@aptime.fdn.org> chris@aptime.fdn.org wrote: / I'd like to know if there is any rule-based Artificial / Intelligence Software that can be bundled in an application. Modification / of rules without recompilation should be possible. There is a library for neural networks. Have a look at the WWW page at http://www.crec.mipt.ru/~zander/nLib.html What is nLib? nLib is about 100K of raw Ojective-C code that could be Neural Networks Object Library. What does this library give(or should give)? 1. Facile rapid creation of code to explore various network topologies and training strategies. 2. Uniform look on different network topologies as well as on what is neuron in neural network and what is network itself. 3. Reusability of code and other stuff that was promised by OOP. I hope this library is better then Ralph Zazula public domain NeuralNetworks.tar.Z as far as OOP concerns. -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@gnu.ai.mit.edu GNUStep Volunteer Coordinator, http://fvkma.tu-graz.ac.at/gnustep/index.html
Newsgroups: comp.sys.next.programmer,comp.sys.next.misc From: boards@nosc.mil (Stephen Board) Subject: Custom Login Panel Development Message-ID: <1995May16.181059.23784@nosc.mil> Sender: news@nosc.mil (Network News) Organization: NCCOSC RDT&E Division, San Diego, CA Date: Tue, 16 May 1995 18:10:59 GMT Hello World, Can anyone provide information on creating custom login panels in NS 3.3? I see that the files have a .ui extension but I cannot find info on creating them. Any pointers? Thanks Stephen Board boards@nosc.mil
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.programmer Subject: Re: Programming Without Interface Builder Date: 16 May 1995 19:07:49 GMT Organization: Dept. of Computer Science, University of Salzburg Distribution: world Message-ID: <3pat65$2fv@esel.cosy.sbg.ac.at> References: <3oudtl$fub@nntp.Stanford.EDU> <3p2151$9fa@esel.cosy.sbg.ac.at> <BESLER.95May16112606@nova.mdd.comm.mot.com> Steve Besler (besler@nova.mdd.comm.mot.com) wrote: / Is the NIB File format part of the OpenStep spec ? No. Not at the moment. They would like to make a new format and give it away. Maybe they are going to use an ASCII format... (human readable) / If not, then porting something would be a pain! / In practices, this might not be a problem because next will probably / keep the same nib format for OPENSTEP/Win95(&NT) and Sun probably / is using NeXT's code ... You are right. SunSoft has licensed the source-code from NeXT, and will support the NIB format. / Someone must have some idea of how NIB files are structured if they wrote / a converter.... No. The converter uses the NEXTSTEP method to load the NIB file and stores it to the harddrive afterwards. This is why it only runs on NEXTSTEP :-( -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@gnu.ai.mit.edu GNUStep Volunteer Coordinator, http://fvkma.tu-graz.ac.at/gnustep/index.html
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.programmer Subject: Re: Programming Without Interface Builder (Summary) Date: 16 May 1995 19:13:11 GMT Organization: Dept. of Computer Science, University of Salzburg Distribution: world Message-ID: <3patg7$2fv@esel.cosy.sbg.ac.at> References: <3p373q$7sq@nntp.Stanford.EDU> <D8K7Gz.8G0@BITart.com> Gerd Knops (gerti@BITart.com) wrote: / There is also the problem, that InterfaceBuilder is somewhat / outdated. IMHO there are several problems, that haunt us since NS1.0: We are going to write an IB like developer tool. Primary, it will run on NEXTSTEP (that`s where it is going to be developed) but why we create this piece of software is because we want to have a free GUI builder for GNUStep, which is going to be an OpenStep implementation. Later, it should run on all OpenStep implementations. Please send me suggestions, what you would like to see in the free builer. Also, we are looking for volunteers! -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@gnu.ai.mit.edu GNUStep Volunteer Coordinator, http://fvkma.tu-graz.ac.at/gnustep/index.html
From: guus@proxim.franken.de (Guus C. Bloemsma) Newsgroups: comp.sys.next.programmer Subject: Re: Segmentation Fault (fixed) - and cool gcc stack trick Date: 16 May 1995 18:39:59 GMT Organization: Private Distribution: world Message-ID: <3parhv$sh@proxim.franken.de> References: <3p367l$a4b@vixen.cso.uiuc.edu> In article <3p367l$a4b@vixen.cso.uiuc.edu> ohammers@uxa.cso.uiuc.edu (hammersmith otto j) writes: [about variable size, automatic arrays] > Cool. Neat feature... but what's the use? It will still have > the overhead of alloca() and malloc() at runtime-- you can't avoid it. > All it does it make the code a little easier to write, and sacrifices > portablity of other compilers. > -- > -Otto. Nope, AFAIK both alloca() and the gcc extension simply extend the stack, so the overhead is extremely small. This works because all locals are referenced relative to the static link (A6) which doesn't change. This is also the reason that this construct is not portable, since some machines simply cannot afford to put arrays on the stack (remember the C64 with 256 bytes of stack :-) Good luck, Guus.
From: finton@homer.cs.wisc.edu (David Finton) Newsgroups: comp.sys.next.programmer Subject: Why does OpenPanel beep at me? Date: 17 May 1995 00:09:46 GMT Organization: University of WI, Madison -- Computer Sciences Dept. Message-ID: <3pbesa$p1i@spool.cs.wisc.edu> The app I'm writing uses the OpenPanel to open files. If the user double-clicks on the filename in the OpenPanel, it beeps! If the user clicks once and hits "Okay", there is no beep. Also, there is a beep if the user hits "Cancel". Why the beeps? I tried opening files in Edit.app, and there were no beeps when I double-clicked. Am I doing something weird? Everything works fine except for the beeps; I wanted to save the beep for when the read failed. Thanks in advance for any tips! --David Finton Code: if ([ [OpenPanel new] runModalForTypes:types ]) { strcpy(fname, [[OpenPanel new] filename]); f = fopen(fname, "r"); if (f != NULL) { ...
From: kjones@freenet.vancouver.bc.ca (Kieran Jones) Newsgroups: comp.sys.next.programmer Subject: Sophie Lebreton's 3DKit query. Date: 16 May 1995 22:50:23 GMT Organization: Vancouver Regional FreeNet Message-ID: <3pba7f$bss@freenet.vancouver.bc.ca> Sophie: In your Usenet posting you wrote: : I use the 3Dkit library but some Renderman functions I need : seem not to be implemented. In particular, I'd have to get : the sum of all light sources over a surface (function phong : in RenderMan Shading langage) and can't find appropriate function. As far as I know, the phong() function is strictly a part of the Renderman Shading Language. It is not part of 3DKit's Renderman API, whose functions all begin with "Ri". This means that phong() and all other Shading Language functions are not called from within an Objective-C program. Instead, they are called from within shader functions and compiled using the Renderman shader compiler supplied as part of Nextstep. A Renderman shader function is a small, separate program whose source code is written in Shading Language. The function's source code is usually saved in a file with an extension of ".sl". Once compiled, the result is a shader that can be used by Renderman to compute an appearance. The compiled shader is usually stored in a file with an extension of ".slo". Here is the source code of an example shader (it was taken from The Renderman Companion by Steve Upstill, Addison-Wesley, 1990): surface eroded(float Ka = 0.1, Ks = 0.4, Km = 0.3, roughness = 0.25) { float size = 4.0, magnitude = 0.0, i; point Nf, V, W = transform("object",P); point x = (1,0,0); for (i = 0; i < 6.0; i += 1.0) { magnitude += 4.0 * abs(0.5 - noise(W * size)) / size; size *= 2.0; } magnitude = magnitude * magnitude * magnitude * Km; N = calculatenormal(P - magnitude * normalize(N)); Nf = faceforward(normalize(N),I); V = normalize(-I); Oi = smoothstep(0.0001,0.003,magnitude); Ci = Oi * Cs * (Ka * ambient() + Ks * specular(Nf,V,roughness)); } Note the use of Shader Language functions such as calculatenormal(), smoothstep() and specular(). The file containing this shader function is compiled from a terminal command line with the command "/usr/prman/shader sl-file", where sl-file is the shader source file to compile. The compiler also takes a number of options. Full information on the compiler is in the man pages and can be obtained with the command "man shader". The resulting shader can then be used by a 3DKit program by specifying something like the following: newShader = [[N3DShader alloc] init]; //make a shader object [newShader setShader:"eroded"]; //set its shader function to "eroded" [newShape setShader:newShader]; //assign the shader object to a shape I have found that the form of the shader name given in the setShader: method ("eroded" in the above example) is important. As I recall, a simple name with no filepath or .slo extension is necessary if the shader is located in /NextLibrary/Shaders. If it is located elsewhere, the full filepath (but without the .slo extension) needs to be given. I am not 100% certain of this requirement, but I think it's correct. I have found that the book "The Renderman Companion" by Upstill (mentioned above) to be very useful. Hope this helps... Kieran Jones
Newsgroups: comp.sys.next.programmer From: tini@gurke.ping.de (Constantin Szallies) Subject: General tools to write xxx2rtf and rtf2xxx converters? Message-ID: <D8n1Iw.13s@gurke.ping.de> Sender: usenet@gurke.ping.de Organization: Legalize THC Date: Mon, 15 May 1995 21:11:19 GMT Does anyone how some general tools to write converts for rtf files? I heard of some library called Rtf2? Where can I find it? -- <--------------------------------------------------------------> | Constantin Szallies ||| tini@gurke.ping.de | | Emil Figge 7 44227 Dortmund (o o) Tel: 0231/7519681 | <------------------------------oOo--(_)--oOo------------------->
From: tom@hukatronic.cz (Tomas Hurka) Newsgroups: comp.sys.next.programmer Subject: Debugging Distributed Objects Date: 17 May 1995 05:52:52 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9505171034.AA00691@hukatronic.cz> Hi All, while exploring how the forwarding works across DO I found that there is a possibility to log what is going on across DO connections. The log is rather cryptic at first look, but I think this can be still useful while debugging the DO. The usage is simple. There are two class methods in NXConnection class + debug:(const char *)aString showThread:(BOOL)flag verbose:(BOOL)flag1 If flag1 is YES, then the debugging is turned on and the information is logged via NXLogError to console or stderr. If flag is YES, then information about thread is also logged. aString is added at the begging of every log line as an identification. + debug:(const char *)aString Is equivalent to debug:aString showThread:YES verbose:YES This feature is TOTAL UNSUPPORTED AND UNDOCUMENTED. The above mentioned class methods are even not included in NXConnection.h file, but I still think that someone, who has hard time debugging DO application, can give it a try and see if it helps him/her. Note: All above information is valid for NS 3.3. I don't know if it works under NS 3.2 Best regards, --- Tomas Hurka tom@hukatronic.cz NeXTMAIL and MIME OK (international mail <50 KB accepted)
From: Peter_Lipps@NeXT.com (Peter Lipps) Newsgroups: comp.sys.next.programmer Subject: Re: paging strategy for NX memory streams? Date: 16 May 1995 22:10:15 GMT Organization: NeXT Computer, Inc. Message-ID: <3pb7s7$qfd@news.next.com> References: <3p71mo$d6u@news.sns-felb.debis.de> One should note that the machine Torsten is using here has only 32 MB RAM (I talked to him on the phone earlier today). Of course, in the sequence of his LOAD-SCAN-MODIFY-SAVE-the whole stream action he's forcing more and more applications' pages from RAM into the swap file. The memory needs of those applications (yes, he's running other apps at the same time he's running his own app - even though those apps may sit idle) is what accounts for the increase (> 30 MB) in swap space IMHO. BTW, running the same app twice in a row won't increase the swap file. (So please, no swap file discussions and memory leakage theories this time ;-)) There's no memory leak in his app and no bug in our OS discovered by this particular test app. The scenario described below very much depends on the amount of physcal memory. I ran his test app on a Gecko with 64 MB RAM and my swap file stayed at the same size ... -Peter In article <3p71mo$d6u@news.sns-felb.debis.de> caesar@hamlet.dbag.ulm.DaimlerBenz.COM (Torsten Caesar) writes: > I observed a strange behaviour of the paging strategy when using memory > streams. When I open a memory stream and load a about 30 MB data into this > stream the swapfile expands about 30MB from 18MB to 48MB. Up to now it's > all right, the virtual memory for the stream was allocated and > corresponding pages in the swapfile are also reserved. > > Now I scan the stream from the beginning to the end and only read data by > asking for the buffer and access the corresponding memory without changing > it. As a result the swapfile expands about 3MB to 51MB. I think that is > not ok because no further memory is allocated and no other application was > activated between loading the stream and checking it. > > After that I scan the stream and change some byte every kB. As a result > the swapfile expands about 17MB up to 68MB. I think this is a strange > behaviour because the stream is already allocated and I wonder why the > swapfile has to be expanded so much. > > After I saved the stream using NXSaveToFile and closing it with > NXCloseMemory using the NX_FREEBUFFER parameter the swapfile expands about > 4MB up to 72MB. > > > I cannot explain this behaviour and I didn't work with other applications > during this test (with the exception of the du command). Is there anybody > who has an explanation for this effect? > ______________________________ Peter Lipps JUST *MY* OPINION NeXT Computer Deutschland GmbH - Oskar-Messter-Str. 24, 85737 Ismaning, Germany InterNet: Peter_Lipps@NeXT.com
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Why does OpenPanel beep at me? Date: 17 May 1995 14:40:52 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3pd1tl$835@darkstar.UCSC.EDU> References: <3pbesa$p1i@spool.cs.wisc.edu> In article <3pbesa$p1i@spool.cs.wisc.edu> finton@homer.cs.wisc.edu (David Finton) writes: > The app I'm writing uses the OpenPanel to open files. > If the user double-clicks on the filename in the OpenPanel, > it beeps! If the user clicks once and hits "Okay", there is > no beep. Also, there is a beep if the user hits "Cancel". > I recall participating in a NS prerelease (probably 3.0 PR1) in which this beeping first appeared on my Cube. I reported it to NeXT as a bug because it didn't happen in the previous release and there was no apparent reason why it should happen. This change in behavior has never been totally "fixed". The beeping I continue to experience does seem to be app-specific. A quick test just indicated that Edit's Open panel doesn't beep, but PB's does. So maybe its cause is implementation-depended (Edit got it right, PB blew it). --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: jimstead@aol.com (JimStead) Newsgroups: comp.sys.next.programmer Subject: NS on HP: integrated w/HP-UX? Date: 17 May 1995 11:23:06 -0400 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3pd4cq$knv@newsbf02.news.aol.com> Hi All, I am getting involved in a project on HP workstations. Is there any integration between NS and HP/UX? In particular, can I cross develop C++ programs in NS to run under HP/UX? Please email any responses, and thanks! Jim (jimstead@aol.com)
Newsgroups: comp.sys.next.programmer,comp.lang.objective-c,gnu.gcc.help From: cracauer@wavehh.hanse.de (Martin Cracauer) Subject: Re: Accessing debug information Message-ID: <1995May17.101123.6858@wavehh.hanse.de> Organization: The poor LISPers' hacking kitchen References: <3p8i33$i5g@jobes.sierra.net> <PFKEB.95May15194034@kaon.SLAC.Stanford.EDU> Date: Wed, 17 May 95 10:11:23 GMT pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz) writes: >>>>>> On 15 May 1995 21:46:11 GMT, clloyd@sierra.net (Charles C. Lloyd) said: >> I'm seeking documentation on how to access the debug information >> from inside a running gcc program. I am primarily interested in >> accessing infomation about structres. > There's not much documentation around. It would be great if >someone would write it up and contribute it to FSF. > Within an object of a class, try > gdb> p *self >to print the instance variables of a class. gdb thinks a class is a >C struct. See http://fvkma.tu-graz.ac.at/tbm/objective-c/hint-gdb.html It's a description how to inspect and call ObjC-specific things using GNU-ObjC and gdb on non-NeXT machines. I'll mail it to everyone not able to access www. There's no copyright at all on this, so inclusion in FSF packages should not be a problem. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer <cracauer@wavehh.hanse.de>. No NeXTMail, please. Norderstedt/Hamburg, Germany. Fax +49 40 522 85 36. This is a private address. At (netless) work programming in data analysis.
From: dion.dock@mccaw.com (Dion Dock) Newsgroups: comp.sys.next.programmer Subject: Re: General tools to write xxx2rtf and rtf2xxx converters? Date: 17 May 1995 15:40:35 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3pd5dj$shl@nwestmail.nwest.mccaw.com> References: <D8n1Iw.13s@gurke.ping.de> Constantin Szallies writes > Does anyone how some general tools to write converts for rtf files? > I heard of some library called Rtf2? Where can I find it? > Take a look at /usr/bin/rtf-ascii. -dion -- Dion Dock Paradigm Systems \\||// --DOOM-- Product Delivery, Axys project. //||\\ dion.dock@mccaw.com
From: athan@sait136.morgan.com (Andrew C Athan) Newsgroups: comp.sys.next.software,comp.sys.next.misc,comp.sys.next.programmer,comp.soft-sys.nextstep Subject: Re: Artificial Intelligence Softwares Date: 17 May 1995 17:05:16 GMT Organization: Morgan Stanley & Co., Inc. Distribution: inet Message-ID: <ATHAN.95May17130516@sait136.morgan.com> References: <D8oE3B.2GM@aptime.fdn.org> In-reply-to: chris@aptime.fdn.org's message of Tue, 16 May 1995 14:40:23 GMT You should look at CLIPS, I don't know exactly where you can download it from, however, so you'll have to look around. CLIPS is a rule based inference engine accessible through C calls. It is very flexible and quite powerful. aca athan@morgan.com
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: paging strategy for NX memory streams? Date: 16 May 1995 23:47:16 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3pbdi4$qu5@news.next.com> References: <3pb7s7$qfd@news.next.com> Peter Lipps writes > One should note that the machine Torsten is using here has only 32 MB RAM > (I talked to him on the phone earlier today). > > Of course, in the sequence of his LOAD-SCAN-MODIFY-SAVE-the whole stream > action he's forcing more and more applications' pages from RAM into the > swap file. The memory needs of those applications (yes, he's running other > apps at the same time he's running his own app - even though those apps > may sit idle) is what accounts for the increase (> 30 MB) in swap space > IMHO. > The map-and-scan approach doesn't scale. If you do not need random-access into the file, you have some easy modifications that will work. <WARNING: the following is not real code> For linear-access, you can either: 1) map in portions of the file and vm_deallocate them when done: while(bytes_left) { map_fd(<a buffer, an offset and a size>): process_buffer(<buffer>); vm_deallocate(<buffer>); bytes_left -= buffer_size; offset += buffer_size; } 2) map in the whole file (gives you the single-pointer to memory) and vm_deallocate "behind" the operation: NXMapFile(); NXGetMemoryBuffer(<a buffer>); // the above maps the file but I don't "pay" // for it until I touch it while(bytes_left--) { buffer[i++] = <whatever>; if(!(i % vm_page_size)) { vm_deallocate(<the stuff I just touched>); // this keeps the previous buffer out // of the swap file as I move on... } } I've used both of these approaches for processing 40M+ soundfiles on a (dare I admit it?) 4/40/netbooted/'030 cube... Z -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Wed, 17 May 95 10:03:16 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505170803.AA00438@flexus> Subject: Re: How to create a Multi Thread AppKit Cc: rzazula@next.com Ralph Zazula of NeXT writes on 1995-05-15: > This is pretty well covered in the on-line documentation. Ralph, did you look at the more recent postings in this thread? We're talking detailed implementation here, and how it should be improved (we think it can, and very definitely should be). BTW, it's not just that the cache is read-only: most cache updates merely fill in a value, leaving the location of the cache and the other values alone; this is the means to doing away with that wretched lock at objc_msgSend time, as described in previous postings. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Wed, 17 May 95 09:47:35 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505170747.AA00389@flexus> Subject: Re: delegation semantics: respondsTo: ? Ralph Zazula of NeXT writes: > An interesting note, when implementing delegation methods, > you should *always* implement this portion of the code > (and any code that checks return values from the delegate) > in a "stub" method. The purpose is to allow a subclass > to intercept the delegation callout without having to > become it's own delegate. Exactly like in the AppKit, which introduced the concept of delegation, right? Well, I didn't see it there... Maybe Ralph ought to include a disclaimer like ``I don't speak for NeXT'' or something in his signature, or some other means to make it clear what is NeXT's and what is his own opinion---a valid one, BTW. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: MiscProgressView-How to use Message-ID: <jpanicoD8p5u5.Cx8@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <3p9qro$6qt@nyheter.chalmers.se> Date: Wed, 17 May 1995 00:39:41 GMT Sender: jpanico@netcom10.netcom.com G|ran Falkman (falkman@hegel2.cs.chalmers.se.u.cs.chalmers.se) wrote: : Hi, : I'm looking for an example of how to use the : MiscProgressView(Bar/Pie) class in MiscKit. You just set the increment size, and then send increment messages to it. Joe Panico jpanico@netcom.com : Göran Falkman : --- : Göran Falkman Email: falkman@cs.chalmers.se : Department of Computing Science Tel: + 46 31 772 5412 : Chalmers University of Technology Fax: + 46 31 16 56 55 : S-412 96 Göteborg, Sweden
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: Programming Without Interface Builder Date: 17 May 1995 15:29:53 GMT Organization: University of Heidelberg, Germany Distribution: world Message-ID: <3pd4ph$9mn@sun0.urz.uni-heidelberg.de> References: <3pat65$2fv@esel.cosy.sbg.ac.at> In article <3pat65$2fv@esel.cosy.sbg.ac.at> tbm@tci002.uibk.ac.at (Martin Michlmayr) writes: > Steve Besler (besler@nova.mdd.comm.mot.com) wrote: > / Is the NIB File format part of the OpenStep spec ? > > No. Not at the moment. They would like to make a new format and give it away. > Maybe they are going to use an ASCII format... (human readable) Hmmm... as far as I know, it will be a stored NSDictionary, and because NSDIctionary can store itself in a NSString (and the last is human readable), there will be no problem to read the new nib files. See the EOModeler ... it does basically the same job... a very claver way, IMHO -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: Problem with Custom Pallete Date: 18 May 1995 04:47:31 GMT Organization: Netcom Distribution: world Message-ID: <3pejh3$sts@ixnews4.ix.netcom.com> References: <3pat65$2fv@esel.cosy.sbg.ac.at> <3pd4ph$9mn@sun0.urz.uni-heidelberg.de> I have an annoying problem. When I design my window using custom pallete such as misc kit palletes. When I test the user interface, it works just fine. But when I go ahead an compile and run it through the project builder, the program just exitted instead of running. Am I forgotting something? Any help would be appreciated :) Kurniawan
From: idpt820@tpts1.seed.net.tw Newsgroups: comp.sys.next.programmer Subject: Perl5 Date: 18 May 1995 06:30:42 GMT Organization: Seednet, Institute for Information Industry, Taiwan Distribution: world Message-ID: <3pepii$pta@aladdin.iii.org.tw> Dear NeXT Users, I have downloaded perl5 from lucy.ifi.unibas.ch and tried to install it under NeXTStep/Intel 3.3. It does not seem easy as I expected in advance and I failed in the very beginning. Does anyone have experience in installation Perl5 under NS 3.3 and where I can find the latest version of Perl5? Thank you your assistance in advance.
Newsgroups: comp.sys.next.software,comp.sys.next.misc,comp.sys.next.programmer,comp.soft-sys.nextstep From: chris@aptime.fdn.org Subject: Artificial Intelligence Softwares Message-ID: <D8oE3B.2GM@aptime.fdn.org> Keywords: AI artificial intelligence Sender: usenet@aptime.fdn.org (News Operator) Organization: C3iS - APTIME // Paris, France Date: Tue, 16 May 1995 14:40:23 GMT Hi all, I'd like to know if there is any rule-based Artificial Intelligence Software that can be bundled in an application. Modification of rules without recompilation should be possible. -- Christophe Dore (chris@aptime.fdn.org NEXTMAIL OK)
Newsgroups: comp.sys.next.programmer From: boards@nosc.mil (Stephen Board) Subject: Login Panel Development Message-ID: <1995May16.133050.15262@nosc.mil> Keywords: ui, login, panel, custom Sender: news@nosc.mil (Network News) Organization: NCCOSC RDT&E Division, San Diego, CA Date: Tue, 16 May 1995 13:30:50 GMT Hello All, How does one go about creating custom login panels for NS 3.3? These files have a .ui extension. Any clues on how to accomplish this? Thanks Stephen Board boards@nosc.mil
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.programmer Subject: Re: Programming Without Interface Builder Date: 17 May 1995 19:39:15 GMT Organization: Dept. of Computer Science, University of Salzburg Distribution: world Message-ID: <3pdjd3$g6s@esel.cosy.sbg.ac.at> References: <3oudtl$fub@nntp.Stanford.EDU> <3p2151$9fa@esel.cosy.sbg.ac.at> <BESLER.95May16112606@nova.mdd.comm.mot.com> Steve Besler (besler@nova.mdd.comm.mot.com) wrote: / Someone must have some idea of how NIB files are structured if they wrote / a converter.... No. See article <3pat65$2fv@esel.cosy.sbg.ac.at> But, I have the specification of the NIB file format. A person from Japan analyzed it. He is not finished yet, but most work has been done. But we (GNUStep) won`t use the NIB format because maybe NeXT could sue us if we would do so. Remember, our source-code will be publically available and thus users would see the NIB file format. Also, the XMIB format is a rather good alternativ. -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@gnu.ai.mit.edu GNUStep Volunteer Coordinator, http://fvkma.tu-graz.ac.at/gnustep/index.html
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/ Objective C/ $50hr/ DC Area Date: 17 May 1995 20:33:00 GMT Organization: Norden 1 Communications Message-ID: <3pdmhs$2df@news1.channel1.com> Position----------------Programmer/analyst/developer Platform----------------NEXTSTEP A Plus------------------DB Kit or EOF A Plus------------------Sybase or Oracle Type of position--------Contract Rate of pay-------------$50hr Length of assignment----Long, long, term. Area--------------------Greater DC area To be considered--------Fax resume or mail a hard copy -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Wed, 17 May 95 20:45:40 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505171845.AA00861@flexus> Subject: Re: paging strategy for NX memory streams? Peter Lipps writes: > One should note that the machine Torsten is using here > has only 32 MB RAM (I talked to him on the phone earlier > today). I have to protest most categorically against this outrageous statement. If I didn't live so far away from you I would sneak into your office and apply a cattle prod to your deluxe toy. :-) Furthermore, I am unimpressed by the explanation provided. Why would the manipulation of 30 MB of data increase the swapfile by 50 MB? And why would the fact that no swap space is wasted on a machine that does not need to swap, be any consolation? I think it would be more interesting to try a larger test file, or less RAM, and see what happens then. Isn't there a way to make Mach think it has less RAM than is actually installed? Try 8 MB. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Newsgroups: comp.sys.next.programmer From: fred@improve.fdn.org (Frederic STARK) Subject: Re: New interface objects in 3.3? Message-ID: <1995May18.165901.27791@improve.fdn.org> Sender: news@improve.fdn.org Organization: improve SA - La Defense, Paris, France. References: <3o5aor$cuc@cosmos.imag.fr> Date: Thu, 18 May 1995 16:59:01 GMT In article <3o5aor$cuc@cosmos.imag.fr> arrouye@petole.imag.fr (Yves Arrouye) writes: > Hi, > > I would like to know if the tab viewer (used in IB former suitcase window) and > the hierarchical lists withy small dimples (used in the class view and in > OmniWeb's Bookmarks window) are available as interface objects in NS 3.3 (or > EOF 1.1): I cannot find them in any palette, nor do I have any idea of what > they could be named... > I beleive NeXT is not enough proud of them to release. Example: The 'hierarchical list's in IB (the one in 'ObjectView' and the one in 'ClassView' does not work the same way (one open the sublist when you press, the other one when you release...) Looks like two different hacks... Cheers, ----------------------------------------------------------------- frederic stark -- fred@improve.fdn.org -----------------------------------------------------------------
From: mike@ceramics.cmpe.ubc.ca (Michael C. Cam) Newsgroups: comp.sys.next.programmer Subject: Accessing methods from C functions Date: 18 May 1995 19:11:34 GMT Organization: The University of British Columbia Distribution: world Message-ID: <3pg656$q1k@nntp.ucs.ubc.ca> Hi, Is there a way of sending an object a message from a C function? I have a minimization routine in C that uses a supplied a function to return it some value. This function, however, needs to access objC objects. Thanks in advance. -- ..Mike. ___________________________________________________________________ | | | ___ ^ ... /\ BEAUTIFUL | | _|_::| ___o '|`^ .. o_ . .. /\ / \ BRITISH | | |:::|:| \ \, ^ '|`|` (`_|/____') / / /\ COLUMBIA | | |:::|:| (o)/ (o) '|`'|`|`` ,,/ . ... . .. / \ | |-------------------------------------------------------------------| | Michael C. Cam E-MAIL (NeXT Mail OK) HOME 604-263-7609 | | UBC Materials Eng. mike@ceramics.cmpe.ubc.ca WORK 604-822-3122 | |___________________________________________________________________|
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: Artificial Intelligence Softwares Date: 19 May 1995 01:08:28 GMT Organization: NeXT Computer, Inc. Distribution: inet Message-ID: <3pgr2c$ahh@news.next.com> References: <3paqva$2e5@esel.cosy.sbg.ac.at> Martin Michlmayr writes [words, words, words...] > 3. Reusability of code and other stuff that was promised by OOP. I hope > this library is better then Ralph Zazula public domain > NeuralNetworks.tar.Z as far as OOP concerns. > Hmmfff... Yes, there are a few "peculiar" things in that NN code. My only true regret is for using "O" (yes, cap-o) as a variable... Seriously, that's some pretty old code that doesn't show much good use of OT so I don't mind it getting slammed (okay, maybe a little :-). Z -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893 P.S. I can't seem to connect to the nLib URL...
From: clloyd@sierra.net (Charles C. Lloyd) Newsgroups: comp.sys.next.programmer Subject: Re: Accessing debug information Date: 19 May 1995 01:38:35 GMT Organization: Sierra-Net Distribution: world Message-ID: <3pgsqr$s83@jobes.sierra.net> References: <1995May17.101123.6858@wavehh.hanse.de> Martin Cracauer writes > >See > http://fvkma.tu-graz.ac.at/tbm/objective-c/hint-gdb.html > >It's a description how to inspect and call ObjC-specific things using >GNU-ObjC and gdb on non-NeXT machines. I'll mail it to everyone not >able to access www. > Actually, I am looking for tips on how to access debug info *without* gdb. I have looked through the code of gbd and found a few things that show promise, but it would be nice if there was some sort of document explaining the proper use of those functions and structures. Charles. --- Charles Lloyd clloyd@sierra.net GiantLeap Software PO BOX 8734 (702) 831-4630 Incline Village, NV 89452
From: schulem@fub46.zedat.fu-berlin.de (Manfred Schulemann) Newsgroups: comp.sys.next.programmer Subject: EOF Adapter for Interbase? Date: 19 May 1995 03:51:00 GMT Organization: Freie Universitaet Berlin Message-ID: <3ph4j4$qs9@fu-berlin.de> Does anyone know about the availibility of the EOF Adapter for Interbase? It should have been developed by NeXT in March 95 and given to BORLAND, but neither of them can give me an answer (at least herre in Germany)?
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: EOF weirdness Message-ID: <jpanicoD8sy2q.EAA@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Fri, 19 May 1995 01:42:26 GMT Sender: jpanico@netcom.netcom.com Hi, I'm just running through the first simple EOF tutorial program found in EnterpriseObjects/Guide/Part2_AppDesign/06_CreatingAProject.rtfd. I associate 3 properties in an entity from one of my databases with columns of an NXTableView. All goes well until I try to fetch, at which point a warning panel pops up that says: ***-transactionNestingLevel only defined for abstract class. Define -[SybaseContext transactionNestingLevel]! The real crime here is that I'm not even using a Sybase adaptor/server, I'm using QuickBase. I know that my database and the server are fine, because I use the same database in a DBKit app. I know that EOModeler has no problems with my entity, because I can browse the entities values using EOModelers browse mode. Has anyone seen this before? Can someone tell me what is going wrong? Any tips appreciated. Thanks. Joe Panico jpanico@netcom.com
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: PScomposite and Scaleing (PS gurus please help) Date: 18 May 95 22:15:42 GMT Organization: Simon Fraser University Message-ID: <ken.800835342@darwin> Hi. Part of the program I am working on requires the placement of graphic objects on the screen. I have implemented the modal loops (moving and resizing) by compositing the selected object with the static (stationary) objects. The static objects are drawn in an offscreen window, then drawn to the view with PScomposite(). The problem is, I want to implement zooming. I scale the coordinate system of the view, but this breaks PScomposite badly. I gather from the Purple Book ("Programming the DPS System with NeXTstep") that the problem is the CTM for the off screen cache window and on screen view differ. This I get. But how do I fix it? I have tried every scale: and size: method under the sun on the cache window (and its contentView) with no avail. So to make a long question short, how do I implement zooming on a view that draws itself using PScomposite? Thanks! -Ken
From: dcl@panix.com () Newsgroups: comp.sys.next.programmer,comp.sys.next.software Subject: Shared memory hack for NS? Date: 18 May 1995 15:25:19 -0400 Organization: PANIX Public Access Internet and Unix, NYC Message-ID: <3pg6uv$jof@panix.com> Hi. I seem to remember someone creating a shared memory hack for NeXTStep. If someone could point me in the right direction, I'd appreciate it. Meanwhile I'll keep searching (NeXTAnswers has thus far not yielded anything, so I'm about to hunt the archives. - David C. Lambert dcl@homer.uu.panix.com
From: jcr@best.com (John C. Randolph) Newsgroups: comp.sys.next.programmer Subject: Re: Perl5 Date: 18 May 1995 19:22:40 -0700 Organization: Best Internet Communications, Inc. (info@best.com) Message-ID: <3pgve1$63n@shell1.best.com> References: <3pepii$pta@aladdin.iii.org.tw> I D/L'd Perl 5.001 from ftp.uu.net /languages/perl/perl5.001.tar.gz, and I ran Configure with the defaults. "Configure -d". Installed without a hitch, and "make test" worked perfectly. BTW, I'm using NS3.3 on a 20MB slab. -jcr
From: jcr@best.com (John C. Randolph) Newsgroups: comp.sys.next.programmer Subject: Re: Accessing methods from C functions Date: 18 May 1995 19:31:36 -0700 Organization: Best Internet Communications, Inc. (info@best.com) Message-ID: <3pgvup$7ia@shell1.best.com> References: <3pg656$q1k@nntp.ucs.ubc.ca> Mike says: >Hi, >Is there a way of sending an object a message from a C function? And the answer is: Yes! You can have messge expressions within functions the same way you can put them in any other code. For example, in the main() function that Interface builder generates: /* Generated by the NeXT Project Builder NOTE: Do NOT change this file -- Project Builder maintains it. */ #import <appkit/appkit.h> void main(int argc, char *argv[]) { [Application new]; if ([NXApp loadNibSection:"SplitView.nib" owner:NXApp withNames:NO]) [NXApp run]; [NXApp free]; exit(0); } Or, for another example (from some code I have to walk through the runtime system): Class commonAncestor(id object1, id object2) { int index = 0; Class theClass = nil; List *object1List, *object2List; if (object1List = [object1 superclasses]) if (object2List = [object2 superclasses]) if ([object1List objectAt:index] == [object2List objectAt:index]) { for (index = 0; [object1List objectAt:index] == [object2List objectAt:index]; index++) theClass = [object1List objectAt:index]; [object1List free]; [object2List free]; } return theClass; } As you can see, no trouble at all. -jcr
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: delegation semantics: respondsTo: ? Message-ID: <D8r77w.Anx@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems Date: Thu, 18 May 1995 03:04:44 GMT Ralph Zazula of NeXT writes: > when implementing delegation methods, > you should *always* implement this portion of the code > (and any code that checks return values from the delegate) > in a "stub" method. Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> writes > Exactly like in the AppKit, which introduced the concept of delegation, > right? Well, I didn't see it there... Maybe Ralph ought to include a > disclaimer like ``I don't speak for NeXT'' In his defense, I don't think Ralph joined NeXT until long after the AppKit API was developed. So don't hold him responsible for other people's work. You always know more about how to design something better after using it for a while. I, for one, am grateful that Ralph spends the time to share such insights on this forum, even if they make evident flaws in NeXT's kits in hindsight. His posts are in general very helpful. -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: Programming Without Interface Builder Date: Thu, 18 May 1995 18:21:57 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Distribution: world Message-ID: <950518192157.5290AACUZ.malc@daneel> References: <3oudtl$fub@nntp.Stanford.EDU> <3p2151$9fa@esel.cosy.sbg.ac.at> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII Greg Colello (gcolello@biosphere.Stanford.EDU) wrote: / QUESTION 1: Does anyone know of good ObjC programming examples that do not / use IB at all? There's Ann Weintz's Writing NeXT programs ;-) Anybody else still have a copy?! Have fun, mmalc.
From: pataki@next-1b.manuf.bme.hu (pataki balazs) Newsgroups: comp.sys.next.programmer Subject: How does ps (process status) work on NS? Date: 19 May 1995 10:52:03 GMT Organization: Technical University of Budapest Message-ID: <3pht8j$h8q@goliat.eik.bme.hu> Hi, to be more precise my question is: How does ps know what command a process was started with? For example: 1> ps x PID TT STAT TIME COMMAND 224 ? S 47:11 - console (WindowServer) 453 ? SW 0:02 /usr/etc/pbs -a 456 ? SW 0:00 appkitServer 457 ? S 2:13 /usr/lib/NextStep/Workspace.app/WM.app/WM -NXAutoLaunch YES 458 ? S 2:29 /NextApps/Preferences.app/Preferences -NXAutoLaunch YES -Ma 460 ? S 0:01 /Net/colorhost/Users/cbalazs/Apps/WatchSwap.app/WatchSwap - 461 ? S 0:08 /usr/ucb/tail -1cf /tmp/console.log 465 ? S 2:36 /NextApps/Edit.app/Edit -NXOpen /Net/colorhost/Users/cbalaz 500 ? S 0:17 /NextApps/Librarian.app/Librarian -NXServiceLaunch YES -Mac 506 ? S 0:03 /LocalApps/Digit.app/Digit -MachLaunch 15 2096 1516 p2 S 0:00 -csh (csh) So, how does ps know that the process with pid 506 was launched as "/LocalApps/Digit.app/Digit -MachLaunch 15 2096" ? What I think: ps surely uses processor_set_tasks() to gather the running processes. Then it can get some infos using the mach functins task_info(), thread_info(), or others using unix calls (translating the task id-s to pids first). When ps have all the processes it probably issues a system call to get such infos as COMMAND. My question refers to this last syscall which may not have been published or I just missed it somehow in the NeXT documentations. Any idea? Balazs ------ pataki@next-1b.manuf.bme.hu ------
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: Why does OpenPanel beep at me? Date: 19 May 1995 11:15:31 GMT Organization: University of Heidelberg, Germany Distribution: world Message-ID: <3phukj$m2p@sun0.urz.uni-heidelberg.de> References: <3pd1tl$835@darkstar.UCSC.EDU> In article <3pd1tl$835@darkstar.UCSC.EDU> art@cubicsol.com (Art Isbell) writes: > In article <3pbesa$p1i@spool.cs.wisc.edu> finton@homer.cs.wisc.edu (David > Finton) writes: > The beeping I continue to experience does seem to be app-specific. A > quick test just indicated that Edit's Open panel doesn't beep, but PB's > does. So maybe its cause is implementation-depended (Edit got it right, > PB blew it). Yes. It depends on the initialization, on how fast you are clicking the mouse, .. and possible on the wether ;-) I have to initialization sequences, which almost never causing a beep ;-) -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
From: caraher@dis.anl.gov (PJ Caraher) Newsgroups: comp.sys.next.programmer Subject: Re: NextStep Programming Class - Opinions Date: 19 May 1995 13:23:04 GMT Organization: Argonne National Laboratory Message-ID: <3pi63o$sp1@milo.mcs.anl.gov> References: <D8rzAF.657@nntpa.cb.att.com> In article 657@nntpa.cb.att.com, sab@cbebl1.cb.att.com (Shawn A. Beachy x2313) writes: >I'm thinking about taking the "NextStep Programming" class offered by NeXT >and would like to hear from others who have taken this class. Did you find >it very helpful in getting you up to speed quickly? Was it worth the money? >Would you recommend it to others? > >I have been programming in 'C' and 'C++' on UNIX systems for about 7 years >and this will be my first experience with NextStep and Objective-C. Please >respond via e-mail to the address below. Thanks. > >-- >Shawn Beachy AT&T Bell Laboratories >shawn.beachy@att.com Columbus, OH I attended the Chicago class last November and I found it to be most helpful. However, I already knew a little bit about the NeXTStep programming environment at the time. It helped that I already knew some of the basics before the class. The class is comprehensive but if you already have a grasp of what is going on it will make the class much more useful. There are some books out there (the Garfinkel book comes to mind) that can help you get started. I found the material to be well orgainized and it covered all the main topics. Also, I found the instructor to be quite knowledgeable and the class size was small enough (about 8) to get individual attention if needed. The class helped to link together tid-bits on information that I had gathered. Yes, you can study all you need to know in documentation but that takes time. For me it was worth the investment. PJ Caraher --- | | | My name is NOT Dave Rhodes, but you can send me $1 anyway! | | |
Newsgroups: comp.sys.next.programmer From: sab@cbebl1.cb.att.com (Shawn A. Beachy x2313) Subject: NextStep Programming Class - Opinions Message-ID: <D8rzAF.657@nntpa.cb.att.com> Sender: news@nntpa.cb.att.com (Netnews Administration) Organization: AT&T Bell Laboratories, Columbus Distribution: usa Date: Thu, 18 May 1995 13:11:01 GMT I'm thinking about taking the "NextStep Programming" class offered by NeXT and would like to hear from others who have taken this class. Did you find it very helpful in getting you up to speed quickly? Was it worth the money? Would you recommend it to others? I have been programming in 'C' and 'C++' on UNIX systems for about 7 years and this will be my first experience with NextStep and Objective-C. Please respond via e-mail to the address below. Thanks. -- Shawn Beachy AT&T Bell Laboratories shawn.beachy@att.com Columbus, OH
From: arrouye@petole.imag.fr (Yves Arrouye) Newsgroups: comp.sys.next.programmer Subject: Problem with loop and interface. Help me, please! (Urgent.) Date: 19 May 1995 14:26:39 GMT Organization: Institut IMAG, Grenoble, France Distribution: world Message-ID: <3pi9qv$p4f@cosmos.imag.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hi, I have a big problem with an object calling repeatedly a method on another one, and the second one's method effects not being shown :-(. The second object (objectB) displays some text in a window, as in: - displayInText { [text setSel:[text textLength] :([text textLength] + 1)]; [text replaceSel:[self obtainStringToDisplay]]; [text setSel:[text textLength] :([text textLength] + 1)]; [text replaceSel:"\n"]; [text scrollSelToVisible]; return self; } If the first object is looping as in - doSomething { while ([self somethingToDo]) { [objectB displayInText]; } return self; } then the Text object is not updated until somethingToDo returns 0. I assume that objects are only redisplayed by the AppKit between two events as a result of a call to updateWindows (?). If I use instead - doSomething { if ([self somethingToDo]) { [objectB displayInTex]; [self perform:@selector(doSomething) with:nil afterDelay:0 cancelPrevious:YES]; } return self; } then the display is ok. The problem now is when objectA's doSomething method is triggered by a continuous Button, and of course somethingToDo returns YES: it appears that the text is only displayed after the Button has been released! (i.e. if the button triggers 10 times, I will not get anything and then my 10 new lines of text at once...). So, what should I do in order to obtain the expected behaviour (i.e. something appears each time there is "something to do")? Note that it would be better if objectA was not AppKit-dependent (it does not know whether it runs under it or not), and I don't want objectB to be forced to send an update or display message to its window (of course, if this is impossible to do otherwise, I'll do it). Maybe someone know what is done by a Cell while it is tracking the mouse? I would certainly need something like that, no? Thanks in advance for any help, Yves. -- Advocates for the C++ school claim that a well designed Yves Arrouye program does not need the extra flexibility (a lie), Yves.Arrouye@imag.fr while advocates for the Objective-C school claim that (33) 76 57 48 64 the errors are no problem in practice (another lie). NeXT Mail / MIME http://petole.imag.fr/~arrouye/
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: DBKit and Oracle7 question Message-ID: <jpanicoD8u65s.ECo@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <3pa3ih$t0s@solaris.cc.vt.edu> Date: Fri, 19 May 1995 17:34:40 GMT Sender: jpanico@netcom14.netcom.com : Is EOF the route I should be taking? (I understand that its : Oracle adaptor is for Oracle7 and SQLNet V2.) : NeXT's publicly stated policy is that DBKit should no longer be used for development, and that it will no longer support DBKit. Use EOF. : Thanks. : Craig Woods : Virginia Tech Computing Center Joe Panico jpanico@netcom.com -- Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.programmer From: as@asci.fdn.fr (Antoine Schmitt) Subject: Re: Why does OpenPanel beep at me? Message-ID: <1995May18.232937.1770@asci.fdn.fr> Sender: as@asci.fdn.fr Organization: Antoine Schmitt - Paris, France. References: <3pd1tl$835@darkstar.UCSC.EDU> Date: Thu, 18 May 1995 23:29:37 GMT > (Edit got it right, PB blew it). This is an old appkit bug in the openpanel code, not fixed as of today as far as I know. I think it has to do with whether or not you are allowed to open folders. (so PB did not blow it). Dont worry about it... Antoine -- ________________________________________________________ Antoine Schmitt Consultant Informatique - Paris - France as@asci.fdn.fr - (33 1) 44 62 97 77 - NeXT mail welcome
From: mgreen4156@aol.com (MGreen4156) Newsgroups: comp.sys.next.programmer Subject: Short-term Job - NextStep Developer -Toronto Date: 19 May 1995 14:47:58 -0400 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3pip4u$nf6@newsbf02.news.aol.com> A NextStep Developer. Experienced with version 3.1 or higher. For research project, development of prototype. In Toronto. Availability immediately. Project through 1st July and possibly beyond. Please contact Margaret Green telephone: 416-286-7664 fax: 416-971-6886
Newsgroups: comp.sys.next.programmer From: glen@prosoft.com (Glen Biagioni) Subject: Re: How does ps (process status) work on NS? Message-ID: <D8u8FE.165@prosoft.com> Sender: glen@prosoft.com (Glen Biagioni) Organization: ProSoft Solutions, Inc. References: <3pht8j$h8q@goliat.eik.bme.hu> Date: Fri, 19 May 1995 18:23:38 GMT pataki balazs writes > Hi, > > to be more precise my question is: How does ps know what command a process > was started with? > > For example: > > 1> ps x > PID TT STAT TIME COMMAND > 224 ? S 47:11 - console (WindowServer) > 453 ? SW 0:02 /usr/etc/pbs -a > 456 ? SW 0:00 appkitServer > 457 ? S 2:13 /usr/lib/NextStep/Workspace.app/WM.app/WM > -NXAutoLaunch YES > 458 ? S 2:29 /NextApps/Preferences.app/Preferences -NXAutoLaunch > YES -Ma > 460 ? S 0:01 > /Net/colorhost/Users/cbalazs/Apps/WatchSwap.app/WatchSwap - > 461 ? S 0:08 /usr/ucb/tail -1cf /tmp/console.log > 465 ? S 2:36 /NextApps/Edit.app/Edit -NXOpen > /Net/colorhost/Users/cbalaz > 500 ? S 0:17 /NextApps/Librarian.app/Librarian -NXServiceLaunch YES > -Mac > 506 ? S 0:03 /LocalApps/Digit.app/Digit -MachLaunch 15 2096 > 1516 p2 S 0:00 -csh (csh) > > So, how does ps know that the process with pid 506 was launched as > "/LocalApps/Digit.app/Digit -MachLaunch 15 2096" ? > > What I think: > ps surely uses processor_set_tasks() to gather the running processes. > Then it can get some infos using the mach functins task_info(), > thread_info(), or others using unix calls (translating the task id-s to > pids first). > When ps have all the processes it probably issues a system call to get > such infos as COMMAND. My question refers to this last syscall which may > not have been published or I just missed it somehow in the NeXT > documentations. > > Any idea? > > Balazs > ------ > pataki@next-1b.manuf.bme.hu > ------ > My impression is that ps knows about the organization of kernel data structures and use /dev/kmem to get at them. I wish UNIX had a standard API defined to get at all interesting kernel information. -- Glen Biagioni ProSoft Solutions Inc. glen@prosoft.com (NeXTmail Welcome) Bus:(604)324-3311 Fax:(604)324-9431
Newsgroups: comp.sys.next.programmer From: chuck@kant.jhuapl.edu (Charles Waltrip) Subject: Re: delegation semantics: respondsTo: ? Message-ID: <D8uxJn.FuE@aplcenmp.apl.jhu.edu> Sender: usenet@aplcenmp.apl.jhu.edu Organization: Johns Hopkins Continuing Professional Programs References: <D8r77w.Anx@genoa.com> Date: Sat, 20 May 1995 03:26:10 GMT In article <D8r77w.Anx@genoa.com> alex@genoa.com (Alex Blakemore) writes: > > [...material deleted...] > > You always know more about how to design something better after using it > for a while. Right. Or after you've implemented the design the first time ;^} > I, for one, am grateful that Ralph spends the time to share such > insights on this forum, even if they make evident flaws in NeXT's kits > in hindsight. Even more generously, he shares code making it available to the scrutiny of (not always quite so generous) peers. > His posts are in general very helpful. Yup, thanks Ralph (and Alex). cfwaltrip Opinions expressed are my own. email: waltrip@zephyr.jhuapl.edu NeXTmail OK.
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <flexus!rfschtkt@maze.ruca.ua.ac.be> Date: Fri, 19 May 95 19:05:14 +0200 From: Raf Schietekat <flexus!rfschtkt@maze.ruca.ua.ac.be> Message-ID: <9505191705.AA01862@flexus> Subject: Re: delegation semantics: respondsTo: ? Alex Blakemore writes: > In his defense, I don't think Ralph joined NeXT until > long after the AppKit API was developed. So don't hold > him responsible for other people's work. If I gave the impression of blaming NeXT or Ralph for anything (here :-) ), I'm sorry. My only intention was to clear up any misunderstanding that might have arisen for any reader of this thread: Ralph was giving his own valuable advice here, not explaining how the AppKit does it. With his current address, it wasn't obvious if you didn't know these things already. Raf Schietekat, RfSchtkt@maze.ruca.ua.ac.be (NeXTmail), Flanders, Belgium If I don't answer: my mail relay can't handle !, % or .uucp, I think *** The year 2000 will be the last year of the 20th century. ***
Date: 20 May 1995 09:28:56 GMT From: an270295@anon.penet.fi Message-ID: <cancel.092805Z20051995@anon.penet.fi> Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <092805Z20051995@anon.penet.fi> Control: cancel <092805Z20051995@anon.penet.fi> Spam cancelled by clewis@ferret.ocunix.on.ca
From: "Robert L. Schmitter" <rschmitr@zsmg.com> Newsgroups: comp.sys.next.programmer Subject: JOBS:NeXTSTEP and Object Oriented Programmers Date: 20 May 1995 19:57:12 GMT Organization: Voicenet - Internet Access - (215)674-9290 Message-ID: <3plhio$k1v@news.voicenet.com> Zonics System Management Group, Inc. is a company that specializes in creating and Maintaining Mission Critical Application in the Object Oriented Client Server Environment. We have development a product line that allows our clients to develop application using NeXTSTEP and deploy them on just about any other OS (native, no runtime fees!). We have been using this tool set for over 2 years. It has received great reception from our clients. The number of projects and clients is growing rapidly! We are looking for developers with all levels of experience to place on current and future projects. Must be NeXTSTEP or Object Oriented with a preference in Objective C. We are looking for consultants and prospective employees. We are based in Philadelphia, PA. Must work locally. Please E-Mail resume with current salary to: rschmitr@zsmg.com (NeXTSTEP, MIME, & plain) P.S. For those of you who would like to use this product line, we plain to make it publicly available by the end of 1995. Please mail me with your comments.
From: mrothste@galaxy.csc.calpoly.edu (Mont Egan Rothstein) Newsgroups: comp.sys.next.programmer Subject: Re: NSValue and NSArray != Storage... Date: 20 May 1995 22:58:41 -0700 Organization: Cal Poly, State University Message-ID: <3pmkqh$kl0@galaxy.csc.calpoly.edu> References: <3osm00$3cb@cisun2000.unil.ch> <3p11go$2s7@news.next.com> NNTP-Posting-User: mrothste In article <3p11go$2s7@news.next.com>, Christopher Kane <ckane@next.com> wrote: >In article <3osm00$3cb@cisun2000.unil.ch> shill@iphysiol.unil.ch >(Sean Hill) writes: >> However, now that I am actually doing that in a large-scale case >> where Storage worked really well, with 10,000 Storage objects each >> containing from 50 - 300 values, the corresponding situation of >> 10,000 NSArrays with 50 - 300 NSValues is turning out to use >> about twice as much memory! Maybe I'm doing something wrong and >> I really hope so, but this performance is terrible. Previously >> when I archived the Storage it would take up ~5Megabytes of space >> on the hard driver, now with NSArray it uses ~11 Meg! > >> Is this because foundation is not yet optimized and cleaned up? >> What is the problem? Is there that much overhead in having >> separate objects? > >It's the NSValues. For example: >10000 NSArrays * 100 NSValues/NSArray * 8 bytes/NSValue = ~8MB > >8 bytes/NSValue = isa pointer + pointer to whatever wad you initialized >the NSValue with. 8 bytes is about the minimal size for an NSValue. No >amount of optimization will ever eliminate those bytes. > >You'll need to restructure your data to reduce the number of NSArrays or >NSValues if you want to reduce space usage. For instance, if your values >are fixed-size, you could "concatenate" them together within an >NSMutableData, then index into the bytes yourself -- then you'd have 10000 >NSMutableDatas. > >If you have 3 million objects in your application, then you're going to >have ~12MB of nothing but isa pointers. That's that. > >Christopher Kane >NeXT Computer, Inc. All comments are my own. Well what about an NSArray that was always going to hold the same type of object as so optimized out the isa pointer? NSArray is a class cluster, so it should be possible to have one of the private subclasses be structured to hold only a single type of object. It seems that this is exactly what Class Clusters are good for (I knew they had to be good for something :). Unfortunately, class clusters are private, makeing this hard for anyone outside of NeXT to implement. Hmmm, mabey a subclass of NSArray could determine if this new type of NSArray was needed or if it should defer to letting NSArray figure outwhich subclass to use. I'll have to poke around and see just where the subclass decision is made. Hope you find a viable solution, -Mont Dover Pacific Computing, Inc.
From: mrothste@galaxy.csc.calpoly.edu (Mont Egan Rothstein) Newsgroups: comp.sys.next.programmer Subject: Re: EOF Multiple Classes for an Entity, instance insertion ??? Date: 20 May 1995 23:05:54 -0700 Organization: Cal Poly, State University Message-ID: <3pml82$mqd@galaxy.csc.calpoly.edu> References: <1995May16.091137.2497@quest.fdn.org> NNTP-Posting-User: mrothste Sounds like class clusters to me. Basically when trying to map on Object Oriented poprogram onto a relational db you often get wierd things like a single table that holds several very different types of things. By determining the EO to instanciate based on the primary keys you can make several classes that optomize for each special case rather than one huge EO that handels everyhting. -Mont
From: rmasse@cnri.reston.va.us (Roger E. Masse) Newsgroups: comp.sys.next.programmer Subject: debugging EOF adaptor bundles? Date: 19 May 1995 16:05:00 GMT Organization: Corporation for National Research Initiatives Distribution: world Message-ID: <3pifjc$n7i@news.CNRI.Reston.Va.US> Keywords: breakpoints bundle Hello, I've got two questions for some NEXTSTEP gdb giants (at the end). Or maybe I'm doing something really stupid, in which case flames will be accepted :-) I've got an (in progress) EOF Adaptor bundle that I wish to debug using gdb. I've got a funny runtime error in my sub class of EOAdaptorChannel specifically in my overridden method -describeEntities. I wish to run gdb on this code (which is a bundle not an app - if that's not obvious) So I run gdb on the EOModeler binary. Then I fire up EOModeler, get it's PID and attach the process to gdb. In the meantime, I've created a busy loop in the method I wish to debug in my new class FooAdaptorChannel, just to make sure I'm getting into the method. My bundle is compiled with -g and installed as an adaptor. I tell gdb to continue executing EOModeler. From EOModeler, I open a new model, choose my adaptor, and login to my adaptor and proceed to hang at my busy loop. I know this because I print something out just before entering... If I interrupt gdb with ^C and type 'where', all the symbols show up except for the method at the top of the stack... I presume the one with the busy loop (called -describeEntities) (gdb) where #0 0x123218 in ?? () #1 0xe005762 in -[EOAdaptorChannel describeTableNames] () ... more stackframe stuff deleted. So NeXT I try to set a break point in my method (gdb) br -[FooAdaptorChannel describeEntities] No class named FooAdaptorChannel. I read in the .o with by Classes symbols... (gdb) add-file ~/Library/Adaptors/FooAdaptor/i386_obj/FooAdaptorChannel.o Reading symbols from ~/Library/Adaptors/FooAdaptor/i386_obj/FooAdaptorChannel.o...done. (gdb) info func Reading in symbols for FooAdaptorChannel.m...done. Reading in symbols for NSFoundationGlobals.m...done. All defined functions: File FooAdaptorChannel.m: static struct EOAdaptorContext *-[FooAdaptorChannel adaptorContext](); static void -[FooAdaptorChannel cancelFetch](); ... and so on.. So all my symbols seem to be found :-) Now I set a breakpoint in my FooAdaptorChannel's describeEntities method (before my busy loop) (gdb) br -[FooAdaptorChannel describeEntities] Breakpoint 1 at 0x4e1: FooAdaptorChannel.m:208. ...so far so good. (gdb) where #0 0x123218 in ?? () #1 0xe005762 in -[EOAdaptorChannel describeTableNames] () ... rest deleted. (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /NextDeveloper/Apps/EOModeler.app/EOModeler Cannot insert breakpoint 1: Cannot access memory: address 0x4e1 out of bounds. ****** My Questions ******** 1) Why is the symbol for descibeEntites unresolved on my stack frame? 2) Why can I set the break point, but at runtime gdb doesn't think it's a valid address? **************************** Regards, Roger E. Masse, Systems Engineer Corporation for National Research Initiatives 1895 Preston White Drive, Suite 100 Reston, Virginia, USA 22091 Internet: rmasse@CNRI.Reston.VA.US (MIME/NeXTmail OK)
From: jehu@jehu.async.vt.edu (john stanhope) Newsgroups: comp.sys.next.programmer Subject: How do I monitor stdout in an app? Date: 21 May 1995 16:55:35 GMT Organization: Virginia Tech, Blacksburg, Virginia Distribution: world Message-ID: <3pnra7$gs6@solaris.cc.vt.edu> I am writing a program that uses a lot of older unixy code with alot of printfs that I don't want to change but I do want to know, in an app, when something is sent to stdout so that I can have a look at it and then display it with a text object. How do I do this? I tried something like static void *stdoutFdHandler(int theFd, id self); ... DPSAddFD(1, (DPSFDProc)stdoutFdHandler, self, NX_MODALRESPTHRESHOLD + 1); ^ tried both 1 and 0 ... static void *stdoutFdHandler(int theFd, id self) { int bufferCount, currleft = BUFSIZ / 2; do { char buf[(currleft * 2) + 1]; currleft *= 2; bufferCount = read(theFd, buf, currleft); buf[bufferCount] = 0; [self flushToOutputText:buf]; } while (bufferCount == currleft); } Thanks John Stanhope
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Where is foundation.p? Message-ID: <jpanicoD8xtGz.2Eo@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Sun, 21 May 1995 16:50:58 GMT Sender: jpanico@netcom11.netcom.com Hi, In the foundation classes included with EOF 1.1, I can't seem to find foundation.p, the file needed in order for all the founation documentation to show up in HeaderViewer. Does anyone know where it is or how to create a new one? Thanks. Joe Panico jpanico@netcom.com -- Joe Panico jpanico@netcom.com
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: NSValue and NSArray != Storage... In-Reply-To: mrothste@galaxy.csc.calpoly.edu's message of 20 May 1995 22:58:41 -0700 Message-ID: <RANDY.95May21111310@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <3osm00$3cb@cisun2000.unil.ch> <3p11go$2s7@news.next.com> <3pmkqh$kl0@galaxy.csc.calpoly.edu> Date: Sun, 21 May 1995 16:13:10 GMT In article <3pmkqh$kl0@galaxy.csc.calpoly.edu> mrothste@galaxy.csc.calpoly.edu (Mont Egan Rothstein) writes: In article <3p11go$2s7@news.next.com>, Christopher Kane <ckane@next.com> wrote: >You'll need to restructure your data to reduce the number of NSArrays or >NSValues if you want to reduce space usage. For instance, if your values >are fixed-size, you could "concatenate" them together within an >NSMutableData, then index into the bytes yourself -- then you'd have 10000 >NSMutableDatas. > >If you have 3 million objects in your application, then you're going to >have ~12MB of nothing but isa pointers. That's that. Well what about an NSArray that was always going to hold the same type of object as so optimized out the isa pointer? NSArray is a class cluster, so it should be possible to have one of the private subclasses be structured to hold only a single type of object. It seems that this is exactly what Class Clusters are good for (I knew they had to be good for something :). I still don't know why everyone gripes about class clusters. The implementation/optimization that you mention is a bit unusual and there are other ways to implement this (using C arrays for example). However if you really want to do it then it's possible. Unfortunately, class clusters are private, makeing this hard for anyone outside of NeXT to implement. Class clusters are NOT private, it's certainly possible for mere mortals to add to them. The IntroFoundation.rtfd documentation has a section titled "Creating Subclasses Within a Class Cluster" to tell you how to do it. You just need to override your superclass' primitive methods. The problem here is that the primitive methods for each class are not well documented, but you can usually cobble together what you need to know from the header files and some poking around. In the same section of the docs it talks about alternatives to subclassing which are definitely worth considering. People often get hung up on always subclassing classes to add functionality but other techniques such as using delegation or composite objects are often more flexible. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 22 May 1995 04:15:10 GMT Organization: Digital Fix Development Message-ID: <3pp34e$bkk@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment - Status reports on GNUStep, a freely-available implementation of OpenStep now being developed NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.nmr.embl-heidelberg.de/pub/next/ eduStep ftp://ftp.next.com: See below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
From: neuss@igd.fhg.de (Christian Neuss) Newsgroups: comp.sys.next.programmer Subject: Re: Perl5 Date: 22 May 95 14:20:02 GMT Organization: IGD Darmstadt Message-ID: <neuss.801152402@coricopat> References: <3pepii$pta@aladdin.iii.org.tw> idpt820@tpts1.seed.net.tw writes: >Dear NeXT Users, >I have downloaded perl5 from lucy.ifi.unibas.ch and tried to install it >under NeXTStep/Intel 3.3. It does not seem easy as I expected in advance >and I failed in the very beginning. Please have a little patience.. a friend of mine is working on a MAB package (this is not easy, since Perl doesn't compile fat) which will be placed on the archives. Regards, Chris -- "I ride tandem with a random.." Christian Neuss # Fraunhofer Institute for Computer Graphics Wilhelminenstr.7 # 64283 Darmstadt # Germany e-mail: neuss@igd.fhg.de http://www.igd.fhg.de/~neuss/me.html
Newsgroups: comp.sys.next.programmer From: brouwer@minnie.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: NXBrowserCell and images Message-ID: <D8zGIB.4GD@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany Date: Mon, 22 May 1995 14:06:09 GMT Hi All! I have some problems using images in NXBrowserCells. I do [cell setImage:[myImage copy] ]; [cell setAltImage:[myAltImage copy] ]; for every NXBrowserCell and notice the following behaviour: - loading the browser: the text is displayed in normal state, but the images are highlighted. I tried to modify cells and matrix background color but only removing the alpha channel did help. Why? - mouse click on cell: the altImage is not displayed! The text becomes highlighted, the image unhighlighted. - invoke selectAll: now the altImages are displayed and everything becomes highlighted. (this works as expected) - invoke selectCellAt:-1 :-1: unhighlights everything, but leaves the altImage displayed! In fact it should display the normal image again. Any comments, suggestions, code snippets are welcome, Klaus P.S.: does anybody know where a NXBrowserCell stores its images? It has no special ivar for it and needs its support variable for the displayed text.
From: Greg_Anderson@afs.com (Gregory H. Anderson) Newsgroups: comp.sys.next.programmer Subject: AFS seeks additional programming staff Date: 22 May 1995 15:24:15 GMT Organization: Anderson Financial Systems Inc. Message-ID: <3pqaav$cuc@shelob.afs.com> I think most people in this group know about AFS, so I won't waste bandwidth on the details: we do WriteUp (word processing), PasteUp (page layout), and afs:TRADE (custom front-office trading). As a firm, AFS is ten years old, and as of this weekend we have been involved with NEXTSTEP for four years, so we have demonstrated staying power and a commitment to the market. We are facing robust demand and a concomitant shortage of employee time to get everything done. One or two positions available immediately for the right person(s) seeking full-time employment (NOT consulting) and willing to relocate to the Philadelphia area. Resume and anything else you deem appropriate should be sent directly to me. Experience desirable, but we have a proven record of training smart, open-minded people, too. -- Gregory H. Anderson | "Honey, there're few programming Gaffer/Best Boy/Key Grip | problems that can't be solved Anderson Financial Systems | with duct tape." -- 'Father' Duke greg@afs.com (NeXTmail OK) | (paraphrased), Doonesbury, 2/17/95
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <cfctech!network.cfc.com!t6882tm@msen.com> Message-ID: <9505221326.AA13887@serve.network.cfc.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Timothy Mills <t6882tm@network.cfc.com> Date: Mon, 22 May 95 09:27:41 -0400 Subject: DDS2 DAT and dump/restore I've got a 90 MHz Pentium machine at home running NEXTSTEP 3.2 with a 1GB Quantum disk (with a 100MB DOS partition) and an Archive Python DDS-2 DAT drive. I have not yet been able to figure out the correct parameters to pass to dump to backup my hard drive. Can someone please give me the correct command line syntaxes for dump to backup to this DAT drive while using a 120 meter tape and also while using a 90 meter tape? Do I need to specify both the length of tape and the density or just the length of an equivalent reel-to-reel tape or what? And what values would those be? Thanks for any help. Please mail me directly at timothy@telf.com or at mills_timothy@network.cfc.com. Thanks.
Newsgroups: comp.sys.next.programmer From: karl@trapac.com (Karl Kraft) Subject: Re: PScomposite and Scaleing (PS gurus please help) Message-ID: <D8ztJ1.6rw@trapac.com> Organization: Trans Pacific Container Service Corporation References: <ken.800835342@darwin> Date: Mon, 22 May 1995 18:47:25 GMT In article <ken.800835342@darwin> ken@darwin.mbb.sfu.ca (Ken Clark) writes: >Hi. Part of the program I am working on requires the placement of >graphic objects on the screen. I have implemented the modal loops >(moving and resizing) by compositing the selected object with the >static (stationary) objects. The static objects are drawn in an >offscreen window, then drawn to the view with PScomposite(). > >So to make a long question short, how do I implement zooming on a view >that draws itself using PScomposite? > One of the caveats of PSComposite is that it does not scale or rotate the image when composited. The only work around is to re-image the source to match the destination. In your case, just before drawing the image to the cache, you should call PSscale and PSrotate as appropriate. -- Karl Kraft Karl_Kraft@trapac.com Karl_Kraft@ensuing.com [My opinions are my own]
Newsgroups: comp.sys.next.programmer From: karl@trapac.com (Karl Kraft) Subject: DriverKit for Sun and HP? Message-ID: <D8ztMC.6u9@trapac.com> Organization: Trans Pacific Container Service Corporation Date: Mon, 22 May 1995 18:49:24 GMT Not having either dev environment handy, I thought I'd ask here. Is their a driverkit for Sparc and PA-Risc hardware, or only for intel? -- Karl Kraft Karl_Kraft@trapac.com Karl_Kraft@ensuing.com [My opinions are my own]
From: rainy@popeye.cs.ucsb.edu (John M. Wadleigh) Newsgroups: comp.sys.next.programmer Subject: HELP: Printing wide text from a text class Date: 22 May 1995 11:59:53 -0700 Organization: University of California, Santa Barbara Message-ID: <3pqmv9$n8h@popeye.cs.ucsb.edu> The title may sound weird but I couldn't figure out how to say it simply. I have a text editor program (like EDIT) and my PRINT menu option doesn't seem to work when I load texts that are typed really wide (more than 80 columns wide). When I go to the Previewer to look at the PS code created, it cuts it off entirely! I really have no idea why! Does anyone know how EDIT does it? Do I have to figure out how wide the window is, and then use that info to describe the scaling?? Any help please!?!?!? Also, when I load up a file, I would like to expand the window initially to the width of the widest line in the text. (instead of always having to resize the window when those wide text files are loaded). Thanks! John Wadleigh UCSB Consultant
From: Greg.Titus@mccaw.com (Greg Titus) Newsgroups: comp.sys.next.programmer Subject: Re: debugging EOF adaptor bundles? Date: 22 May 1995 18:08:35 GMT Organization: McCaw Cellular Communications, Inc. Distribution: world Message-ID: <3pqjv3$5cq@nwestmail.nwest.mccaw.com> References: <3pifjc$n7i@news.CNRI.Reston.Va.US> In article <3pifjc$n7i@news.CNRI.Reston.Va.US> rmasse@cnri.reston.va.us (Roger E. Masse) writes: > Hello, > > I've got two questions for some NEXTSTEP gdb giants (at the end). > Or maybe I'm doing something really stupid, in which case flames will be > accepted :-) [description of problem deleted] > ****** My Questions ******** > 1) Why is the symbol for descibeEntites unresolved on my stack frame? > > 2) Why can I set the break point, but at runtime gdb doesn't think it's a > valid address? > **************************** Bundles loaded with NSBundle get their symbols stripped by default, in order to take up less space in memory. Before your adaptor bundle is loaded you need to attach to EOModeler and do: "p [NSBundle stripAfterLoading:0]" which will tell NSBundle not to strip the symbols from your adaptor. (Couldn't tell you exactly what's going on with your second problem, but I imagine it won't turn up if you keep the bundle's symbols around.) > Regards, > > Roger E. Masse, Systems Engineer > Corporation for National Research Initiatives > 1895 Preston White Drive, Suite 100 > Reston, Virginia, USA 22091 > Internet: rmasse@CNRI.Reston.VA.US (MIME/NeXTmail OK) --Greg --------------------- Greg Titus Omni Development Inc. toon@omnigroup.com
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Problem with Custom Pallete In-Reply-To: kdarmawa@ix.netcom.com's message of 18 May 1995 04:47:31 GMT Message-ID: <RDL.95May22192232@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3pat65$2fv@esel.cosy.sbg.ac.at> <3pd4ph$9mn@sun0.urz.uni-heidelberg.de> <3pejh3$sts@ixnews4.ix.netcom.com> Date: Mon, 22 May 1995 23:22:32 GMT Did you link in the additonal libraries? Robert La Ferla HTI
From: kov@onyx.dartmouth.edu (Ken Overton) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.hardware,comp.sys.next.programmer Subject: DSP on Black '030 Date: 22 May 1995 23:04:23 GMT Organization: Dartmouth College, Hanover, NH, USA Message-ID: <3pr59n$ier@dartvax.dartmouth.edu> Keywords: DSP, 030 I have recently purchased an 030 Cube, hoping to use the DSP for real-time audio applications. I have done this successfully on an 040 Cube with an Ariel DM-N digital microphone for input to the DSP port. When I tried the same programs on the 030 they fail. The simplest application (a talkthrough) produces extremely loud clicky noise which almost drowns out the real signal which sounds like it's being severely lowpassed. Both systems run Nextstep 3.2 with developer and both systems were installed from the ground up. Is the 030 and/or its DSP running at a clock speed other than 25MHz? Are there any known problems with 3.2 for 030 hardware that may be related to this problem? Does anyone else out there program the DSPs on black hardware at all? Please e-mail any suggestions, Ken Overton kov@onyx.dartmouth.edu | NeXTMail OK kov@dartmouth.edu | NeXTMail would be weird -- ************************************ * Ken Overton * * kov@dartmouth.edu * * kov@onyx.dartmouth.edu *
From: moose@moose.pdial.interpath.net (James Moosmann) Newsgroups: comp.sys.next.programmer Subject: How do you make a side-splitview? Date: 23 May 1995 02:10:13 GMT Organization: Interpath -- Providing Internet access to North Carolina Distribution: world Message-ID: <3prg65$m73@redstone.interpath.net> Does anyone know how to turn the splitview into a side splitview. The standard NXSplitView only loads subviews into top and bottom positions with a divider. I tried loading a ScrollView and a NXBrowser and then rotating the SplitView 90 left and then loading and rotating a ScrollView and NXBrowser opposite the Splitview. It rotates the subviews, but somehow clips the divider and disables the ScrollView. I get VERY odd behavior when I change the order of which subview gets loaded. I keep reading the documentation, but I cannot find a flag or instance variable/method to set the orientation of the loading of the subviews. There is a side-loading NXSplitView in NewsGrazer that uses both a scrollview and browser, does anyone know how it is done? Thanks, The Moose -- MTECH - James Moosmann 5506 Silchester Lane Charlotte, NC 28215 704-598-7141 (Voice) 704-598-7870 (Fax) E/NeXTMail: moose@moose.pdial.interpath.net
From: "Sean M. Willson" <premise@engin.umich.edu> Newsgroups: comp.sys.next.programmer Subject: GDB and Multithread DO(s) ??? Date: 23 May 1995 02:48:59 GMT Organization: University of Michigan Engineering, Ann Arbor Message-ID: <3prier$fnq@srvr1.engin.umich.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit I am having the following problem. I am developing under NeXTStep version 3.3 with EOF 1.1 installed, on an HP 712/60. I am creating a simple test application that puts three objects in differant threads and then opens connections (NSAutoreleaseConnection) to them. Here is a codelet: myPool = [[NSAutoreleasePool alloc] init]; connection1 = [NXAutoreleaseConnection registerRoot: [[[SomeObject alloc] init] autorelease] withName: "Server1"]; [[connection1 runInNewThread] release]; // Appears here for testing and also in other objects myServer1 = [NXAutoreleaseConnection connectToName: "Server1" onHost: [machineName cString]]; printf("Server1 is up: %s\n", ([myServer1 ping]?"TRUE":"FALSE")); Repeat this code two more times with differant server names and then I send simple messages to them telling them to take objects and such. Now, for the problem: 1. In GDB if I step through this it gives me a: uncaught exception 11013 exited with 0377 at the printf statement, but if I set the breakpoint after the printf, like at the bottom where I send the take messages, it flows through fine. But, when I then execute the takes it gives me the same error. Now, if I don't use GDB, and just run the test program it runs fine. Can someone please tell me what I am doing wrong, is GDB not able to handle threads or the foundation kit correctly? 2. I am getting autorelease pool errors with the threaded stuff, I tried creating NSAutoreleasePools in the init methods of the threaded objects, but it does not seem to catch the release and autorelease messages. Is there an easy or and way at all to assign a NSAutoreleasePool to a thread? Any help here would be greatly appreciated.... 3. How does one safely shut down the threads? I tried sending the recommended NSThread method call (I forget which, I am at school now) and it just dies. I also tried sending the exit method to the threads, but that also kills the test app, has anyone treaded on this water yet? 4. Finally are their any design constraints we should take into account while designing our system, the whole thing at this moment is going to be found foundation and it is a real time system. Are their any speed issues or general design guidelines in foundation we should be aware of? I thank you for your help and I will post the results of these problems to the net for those who are interested. Please reply to premise@engin.umich.edu And by the way, I am working for Lynn-Arthur Associates. http://www.laa.com ----- UNDER CONSTRUCTION Thanks Again, Sean Willson -- _________________________________________________________________________ | Sean M. Willson "Chance favors a prepared mind..." | | University of Michigan College of Engineering | | ASCII: premise@umich.edu NeXTMail: premise@engin.umich.edu | | http://www.engin.umich.edu/~premise/ WWW Page (NeXT Stuff) | | NeXT Programmer for Lynn-Arthur Associates | |_______________________________________________________________________|
From: pete@ohm.york.ac.uk (-bat.) Newsgroups: comp.sys.next.programmer Subject: Re: TIFF 2 PS Date: 22 May 1995 14:13:51 GMT Organization: The University of York, UK Message-ID: <3pq66v$4p8@mailer.york.ac.uk> References: <m0sAgHa-000EIWC@dolphin.doc.ic.ac.uk> "Axel G. Merk" <agm@doc.ic.ac.uk> writes: > What's the easiest way to convert, on the command line, a tiff file to a > postscript file? I wrote a program to do this once - reading a TIFF is easy on a NeXT, but you have to write out the PostScript yourself. It makes A4 tiffs scaled and rotated to fit - will do up to 4 a page. Not very well written, but I can give you the src if you want. Note thatit doesn't make EPS files to be included in other documents. -bat.
From: root@terra (Operator) Newsgroups: comp.sys.next.programmer Subject: Re: How do you make a side-splitview? Date: 23 May 1995 04:26:42 GMT Organization: Network Intensive Message-ID: <3pro62$jrl@ni1.ni.net> References: <3prg65$m73@redstone.interpath.net> moose@moose.pdial.interpath.net (James Moosmann) wrote: >Does anyone know how to turn the splitview into a side splitview. The >standard NXSplitView only loads subviews into top and bottom positions >with a divider. [snip] >Thanks, >The Moose >-- >MTECH - James Moosmann >5506 Silchester Lane >Charlotte, NC 28215 >704-598-7141 (Voice) >704-598-7870 (Fax) >E/NeXTMail: moose@moose.pdial.interpath.net I will send you an example called ZooView (by Mary McNabb, NeXT Developer Support Team) which demonstrates a side splitview. Regards, --- Felipe A. Rodriguez # ...it cannot be called ingenuity to kill far@ni.net # one's fellow citizens, to betray friends, Agoura Hills, CA # to be without faith, without mercy, without # religion; by these means one can aquire power # but not glory. # (NeXTmail prefered) # --Nicolo, Machiavelli (MIMEmail welcome) # -----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6 mQCNAi+3NSwAAAEEALMEgJtwCp1sJwvN5okM8C5vJmvPz1ATVnY5tn7gEH5E7+VU R9+kl3Y0vuf+mKvk0AJf3lNrppcPG0BBu40XevZWKQZL2SnQoWvPD0fWejI4BAgi 2CbaHsTE9lbsK284615qM3n7IH9jPowXnOvIackmGnPXnBcRd3EhHAbokWAlAAUR tCBGZWxpcGUgQS4gUm9kcmlndWV6IDxmYXJAbmkubmV0Pg== =0TzV -----END PGP PUBLIC KEY BLOCK-----
Newsgroups: comp.sys.next.programmer From: e3udzp@peterpan (Dimitri Plotnikov) Subject: Re: Problem with loop and interface. Help me, please! (Urgent.) Message-ID: <1995May22.211930.20389@almserv.uucp> Sender: usenet@almserv.uucp Organization: Fannie Mae References: <3pi9qv$p4f@cosmos.imag.fr> Date: Mon, 22 May 1995 21:19:30 GMT In article <3pi9qv$p4f@cosmos.imag.fr> arrouye@petole.imag.fr (Yves Arrouye) writes: > I have a big problem with an object calling repeatedly a method on > another one, and the second one's method effects not being shown :-(. [ skip ] > I assume that objects are only redisplayed by the AppKit between two > events. [ skip ] This is (almost) correct. A window buffer is flushed on the screen after processing of an event. This happens if there has been some actual drawing during the event processing. If you want a window to flush its buffer to the screen in the middile of processing of an event, use the flushWindow method of Window. - Dimitri Plotnikov [e3udzp@fnma.com respondsTo: NeXTmail]; "Why won't you talk to me?"
From: Charles Ashley <71333.624@CompuServe.COM> Newsgroups: comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.sysadmin Subject: Mbone apps for NS? Date: 20 May 1995 19:10:53 GMT Organization: MatriX Publishing Network Message-ID: <3plert$s1s$1@mhadg.production.compuserve.com> Hi - Anyone know of any Mbone apps for NeXTSTEP? NS 3.3 now supports mrouted, but what about the apps? Anyone working on anything? TIA Charles charlesa@mpn.com
Newsgroups: comp.sys.next.programmer From: empath@netcom.com (Tim Triemstra) Subject: Re: Unrelated app crashes Message-ID: <empathD91D3w.KBv@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <empathD918Gq.6n0@netcom.com> Date: Tue, 23 May 1995 14:47:56 GMT Sender: empath@netcom21.netcom.com Sorry - it turns out that a small hack into a base class I made a while back to sqeeze into ANSI C++ is causing the problem. Sorry for the bandwidth but work time is work time :) -- Tim Triemstra ... empath@netcom.com ... Detroiter at Heart The RED WINGS rule! Let's continue to SPANK the Sharks!
Newsgroups: comp.sys.next.programmer From: richard@silber.rhein-main.de (Richard Scholz) Subject: Re: DDS2 DAT and dump/restore Message-ID: <D91nto.Jx@silber.rhein-main.de> Sender: richard@silber.rhein-main.de (Richard Scholz) Organization: Green sprinkled Green References: <9505221326.AA13887@serve.network.cfc.com> Date: Tue, 23 May 1995 18:39:24 GMT In article <9505221326.AA13887@serve.network.cfc.com> writes: > Can someone please give me the correct command line syntaxes for dump to > backup to this DAT drive while using a 120 meter tape and also while using a > 90 meter tape? Hi It's difficult to say, how much MB, err GB, will fit on a DAT drive, since they compress on the fly. The vendors usually say that 16GB fit on a 120 meter tape, and 8 GB fit on a 90 meter tape. Divide that value by 2 and you get the real values. To dump, use the O parameter. Then you don't have to fiddle with length, dpi and so forth. There you specify the approx. length of the tape in MB. Let's say, you wan't to dump your root partition to a 120 meter tape. So you start dump 0Of 8192 /dev/rst0 / Then you can dump your tiny 8GB Disk that you have ;-) on your tape. For the 90 meter tape just set the parameter to 4096 instead of 8192. Restoring is easy, no need to specify the length. restore if /dev/rst0 The tape device might be different in your case. I choosed /dev/nrst0 as an example. Greetings, Richard
Newsgroups: comp.sys.next.software,comp.sys.next.misc,comp.sys.next.programmer From: Jacques Garbi Subject: Is there a Voice recognition app for NS Intel ? Message-ID: <D8vpz0.Ep@touga.vd.alphanet.ch> Sender: jacques@touga.vd.alphanet.ch (Jacques Garbi) Organization: Touga Management SA Date: Sat, 20 May 1995 13:40:11 GMT Hi all, I heard about SimonSays for the Motorola and that is exactly the kind of software that I'm looking for, only for Intel ! Does anyone know anything about such an app ? Thanks a lot --- Dr. Jacques GARBI TOUGA MANAGEMENT Ltd. Av. Davel 18 1004 Lausanne Switzerland Phone/Fax : 011 41 21 648 44 07 NeXTMail : jacques@touga.vd.alphanet.ch
Newsgroups: comp.sys.next.programmer From: black@pyro.satanic-cult.com (Benjamin J. Black) Subject: Let's make Objective-C better Message-ID: <D91LtA.60F@iglou.com> Sender: news@iglou.com (News Administrator) Organization: IgLou Internet Services Date: Tue, 23 May 1995 17:55:58 GMT Well, the issue of performance in Objective-C continues to haunt us. Why don't we get together and do something about it? I want to organize a group of people to work on an optimizing Objective-C compiler and run-time system (along with some other unusual run-time goodies), which would be released under the GPL (and perhaps added to the official gcc release?). If you are interested in this, then please send me e-mail. Even if you don't have the time to fully participate in the work, any expertise you may have which would enable you to answer technical questions would be welcome. -- Ben black@iglou.com "Whatever you do will be insignificant, but it is very important that you do it." --Mahatma Gandhi
From: jayaram@violet.egr.uh.edu (Prakash Jayaram) Newsgroups: comp.sys.next.programmer Subject: No librpclib.a with NextStep? Date: 22 May 1995 14:52:33 GMT Organization: University of Houston Message-ID: <3pq8fh$ls0@masala.cc.uh.edu> I am trying to implement some SUN (ONC) RPC on NextStep using rpcgen and the related functions. However, I find that the librpclib.a is missing from NextStep. Also, although man rpc shows all the rpc functions, there is no other library (checked with find . -name "lib*.a" -print | xargs nm | grep clnt_create) created by Next that supplies these functions. Is this because Next does not support Sun RPC? Or is it a mistake that this library was left out? (Seems to be the latter, since all the man pages and headers are available, and so is rpcgen). Or is it that Next created some library that includes the RPC functions, which is not mentioned anywhere in the docs. In short, if anyone has used SUN RPC on NextStep, please tell me where to find the library for the RPC functions. Thanks. [Ofcourse I can use Distributed Objects/PDO, but I am bound by some external factors that force me to use RPC] -- -------------------------------------------------------------------------- Prakash Jayaram || Electrical Engineering || 9301 N Beechnut #2114 University of Houston || Houston TX 77036 jayaram@tree.egr.uh.edu || (713) 771-9638 I hv nt lst my mnd. It's bckd up on tp smwhere. ---------------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer From: chris@aptime.fdn.org Subject: Re: DBKit and Oracle7 question Message-ID: <D8s81M.2G6@aptime.fdn.org> Sender: usenet@aptime.fdn.org (News Operator) Organization: C3iS - APTIME // Paris, France References: <3pa3ih$t0s@solaris.cc.vt.edu> Date: Thu, 18 May 1995 16:20:10 GMT In article <3pa3ih$t0s@solaris.cc.vt.edu> rcw@caspian.cc.vt.edu (R. Craig Woods) writes: > Has anyone developed apps using the DBKit that > are in production and connect to an Oracle7 server? > > I am switching some apps from a Sybase server to an Oracle7 > server. If I understand correctly, the DBKit adaptor only > supports Oracle 6 and SQLNet V1. > > I've noticed that DBModeler does not display in the Entities/Properties > browser when I connect to the Oracle7 server. I have been able > to define the Entities/Properties using DBModeler and can get a > small application to fetch, insert, delete and save. However, > this small success doesn't convince me that I should develop > production applications using DBKit with Oracle7. Several things : You can use SQLNET V2 for TCP/IP if you can install it (even if I'm not very used with Oracle, the least we can say about this product is that it's one of the least easy to install) The system catalogs have changed from V6 to V7. Fortunately, they provide a script named CATALOGV6.sql creating V6-like system catalogs. This way DBModeler can display entities. And finally, you may have to do several dwrite commands that are noticed in a NextAnswer. If I remember well, you will need to input the name of all the owners of the tables you want to see in DBModeler. -- Christophe Dore (chris@aptime.fdn.org NEXTMAIL OK)
Newsgroups: comp.sys.next.programmer From: empath@netcom.com (Tim Triemstra) Subject: Unrelated app crashes Message-ID: <empathD918Gq.6n0@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Tue, 23 May 1995 13:07:37 GMT Sender: empath@netcom12.netcom.com I've been making the first interface changes to our application here in years and now I'm having troubles. I had installed EOF over Developer 3.2 (user 3.3) without any problems. Until I tried to add two new menu options to a subproject within my application. The new code being called by the connections seems to execute perfectly fine. However, now I'm getting application crashes in places outside that subproject before I even exucute the new code! Litterally, the only thing I changed was one .nib file and 3 source files (one in the same subproj as the .nib file and the other 2 were added to a second subproject to be called by the first subproj.) None of these files have direct relation to this particular crash. There is also a crash within the modified .NIB file after one of the new menu entries has been called. The menu item works fine - it can even be called over and over again flawlessly. However, that panel has an inherited version of DBTableView which, when a line is selected, crashes the system. This is the only similarity I can come up with between this crash and the other one since the other panel has one of these class views also and crashes when selected (but so do alot of other panels which work fine.) I've since re-installed user 3.3 and developer 3.2 with no EOF in case that was the problem. So far, no dice. Thanks for ANY suggesstions. -- Tim Triemstra ... empath@netcom.com ... Detroiter at Heart The RED WINGS rule! They sometimes take a vacation during the playoffs unfortunately.
Newsgroups: comp.os.mach,comp.sys.next.programmer From: mapdjb@bath.ac.uk (D J Batey) Subject: restart problems after killing udp server Message-ID: <D8u516.LJz@bath.ac.uk> Followup-To: duncan@perihelion.co.uk Organization: Perihelion Distributed Software Ltd. Date: Fri, 19 May 1995 17:10:16 GMT [running mach/NeXTStep on an intel box] I have a server program that maintains a udp socket on which clients can connect. If I kill the server (or it falls over ;^), when I restart, I get an error EADDRINUSE when I try to bind the socket. A (hack) way around this is to setsockopt of SO_REUSEADDR, but this means that I can potentially start two servers, which is undesirable. I have also tried setsockopt with SO_LINGER, with a timeout of 0, but this had no effect (possibly it shouldn't -- it was a bit of a shot in the dark). Every other machine (Alpha, Linux, RS6000) I run this on gives no error, and the server restarts successfully, with no extra setsockopt options necessary. Any clues? Is this a known bug? Or am I just lucky on the other machines? Is there something I can set to fix this? NeXTStep is based on mach 2.0 with bug fixes up to 2.5 (so I'm told). Perhaps this has been fixed in later versions? Any help appreciated, Duncan Batey, Perihelion Distributed Software Ltd, UK.
From: daniels222@aol.com (DanielS222) Newsgroups: comp.sys.next.programmer Subject: Positive ion DANGERS-Computers causing stress/depression Date: 19 May 1995 13:08:11 -0400 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3pij9r$m5n@newsbf02.news.aol.com> Hello Netters, As an engineer who spent 12 hour days programming Fortran in college, and who now sits in front of a computer all day at work, I thought you might find this of interest. On 2/14/95 CBS Evening News with Connie Chung, Dr. Bob Arnot did a story about negative ions and their effect on mood. They talked about a study done at Columbia University where exposure to a high density negative ion generator was as effective in treating winter depression as medication. I became very interested because I have suffered from depression and anxiety for years, and I did extensive research on the benefits of negative ions. This research turned out to be especially interesting to me because I found a newspaper article discussing the fact that computer monitors emit positive ions - the opposite of negative ions. In the article, a consultant to the FDA says that computer monitors give off large amounts of positive ions and can actually cause depression, stress, fatigue, etc. in people who sit in front of computers a lot - like all of us Netters and programmers - and that we need negative ion replenishment. After reading the article, I realized that I always felt especially irritable, stressed, and depressed after long days in front of my computer. In doing the research, I found that negative ions have shown to be therapeutic for stress, irritability, fatigue, depression, etc. So I purchased a small, high density generator and it has given me substantial relief from my symptoms. If any of you would like me to e-mail you that newspaper article, the transcript of the CBS news story, as well as the other research that I have compiled, just e-mail me at DanielS222@aol.com. -dan
From: sirius@interconnect.com.au Newsgroups: comp.sys.next.sysadmin,comp.sys.next.software,comp.sys.next.programmer,comp.sys.next.misc Subject: Oracle on black hardware - problems with NS 3.3 Date: Wed, 24 May 95 19:14:43 PDT Organization: Interconnect Australia Message-ID: <NEWTNews.21579.801368443.sirius@sirius.syd.interconnect.com.au.syd.interconnect.com.au> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Regarding: Oracle 6 problems on NEXTSTATION Oracle Version: Oracle 6.0.33.2.1 ( for NEXTSTEP 2.1 ) Hardware: NEXT Station Motorola Operating System: NEXTSTEP 3.3 Please email any replies to: sirius@interconnect.com.au I am running an version 6 of Oracle on a an old NeXTStation, and have done so successfully until I upgraded the NEXTSTEP Operating system from version 3.2 to 3.3 ( even though the Oracle version was developed for NEXTSTEP 2.1 ) With the NEXTSTEP upgrade which I belive had some upgrades of the Mach Kernel, I suddenly had problems with the Oracle database. This was obvious just running the SQL*DBA application as the following transscript displays: SQL*DBA: Version 6.0.33.2.1 - Production on Sat May 20 09:48:59 1995 Copyright (c) Oracle Corporation 1979, 1989. All rights reserved. ORACLE RDBMS V6.0.33.2.1 - Production SQLDBA> connect system/polarbear1 ORA-09751: pw_attachPorts: server call pws_attach failed. SQLDBA> The console output was: May 20 09:49:21 localhost (Oracle helper)[1082]: pws_attach(oracle) fails for process 5, port rights still out I have tried to reinstall the Oracle from scratch but no improved result. One thing I noticed in the reinstallation that the 'pws.daemon' (which is the (Oracle helper) process ) was not relinked as most of the other executables in the $(ORACLE_HOME)/bin directory had been !! Is anybody still using Oracle on NEXTStations out there and have they any problems with it running 3.3 of NEXTSTEP. Any help would be appreciated !!! Please email direct to sirius@interconnect.com.au Regards Michael
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: Avoiding a FileViewer Date: 23 May 1995 19:53:57 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3ptegl$hv1@snaps.dannug.dk> Hi there, For a particular reason I need the (drag-and-drop) functionality of the Workspace, but I do not want a FileViewer (not just hidden, but completely gone). Anybody with ideas on how to do this? I have implemented an app which can replace the Workspace, it has its own dock, can launch/hide apps, etc. Unfortunately this hinders me in using the normal drag-and-drop facilities, which I would like to use. Geert
From: buzz@marvin.isdn.cs.tu-berlin.de (Bastian Schlueter) Newsgroups: comp.sys.next.programmer Subject: Re: No librpclib.a with NextStep? Date: 24 May 1995 11:16:29 GMT Organization: Marvins home, a small place in Universe Message-ID: <3pv4id$1q8@marvin.isdn.cs.tu-berlin.de> References: 1806 <3pq8fh$ls0@masala.cc.uh.edu> jayaram@violet.egr.uh.edu (Prakash Jayaram) wrote: [deleted] >In short, if anyone has used SUN RPC on NextStep, please tell me where to find >the library for the RPC functions. They ar in /usr/shlib/libsys_s.B.shlib. It's linked in by default, so just use the rpc-functions. Greetings Bastian -- Bastian Schlueter TEL.: +49 030 / 314 25 973 (uni) Fehrbellinerstr. 39 44 34 01 35 (priv) __o D-10119 Berlin e-mail: buzz@cs.TU-Berlin.DE _`\<,_ Germany buzz@marvin.isdn.cs.TU-Berlin.DE (_)/ (_) -- Radfahrer haben nichts zu verlieren als ihre Ketten -- ~~~~~~~~~~~
From: sbender@harmony-ds.com (Scott Bender) Newsgroups: comp.sys.next.programmer Subject: NSObjects on custom palettes? Date: 24 May 1995 13:21:17 GMT Organization: Harmony Data Systems Message-ID: <3pvbsd$isf@news1.digex.net> Anyone found a way to put object derived from NSObject on custom palettes. NeXT says it's not supported, so I have dummy Objects that transform into NSObjects when the Nib is loaded into to the app. Please let me know if you've found a better solution. Thanks, ------------------------------------------------------------------------------ Scott Bender | E-Mail: Scott_Bender@harmony-ds.com, or Harmony Data Systems | 76057.653@compuserve.com 2141 Wisconsin Ave. NW Unit 504 | (NeXTmail or MIME ok) Washington, DC 20007 | Voice: 500-437-4611 | http://www.access.digex.net/~sbender/ ------------------------------------------------------------------------------
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: Mapping between ps context and app name Date: 24 May 1995 15:34:29 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3pvjm5$klf@snaps.dannug.dk> Hi there, Is it possible to "convert" a postscript context number into the name of the corresponding app? If yes, how? Geert
From: 2297109.42663942(Your Lifetime Health Planner) Newsgroups: control,comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.sysadmin Subject: cmsg cancel <3puk5i$kmi@baygull.rtd.com> Message-ID: <cancel.3puk5i$kmi@baygull.rtd.com> Date: 24 May 1995 14:23:59 GMT Control: cancel <3puk5i$kmi@baygull.rtd.com> spam
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: Artificial Intelligence Softwares Date: Wed, 24 May 1995 17:07:21 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950524180721.215AACUI.malc@daneel> References: <D8oE3B.2GM@aptime.fdn.org> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII Keywords: AI artificial intelligence > I'd like to know if there is any rule-based Artificial > Intelligence Software that can be bundled in an application. > Modification of rules without recompilation should be possible. > Hmm, depends what you mean by "modification of rules" -- I wrote an object- oriented Blackboard (not really a rule-based system, but...) a while back. Some of the code's a bit ugly (it was based on some Lisp source) but putting a GUI on it meant that some of the variables in the "experts" could be changed during execution. Have fun, mmalc. posn. research facilitator where institute for language speech and hearing sheffield university c/o department of computer science regent court 211 portobello street sheffield s1 4dp england vox (+44) 114 282 5594 fax (+44) 114 278 0972 email m.crawford@dcs.shef.ac.uk NeXTMail, SunMail, MIME welcome http://www.dcs.shef.ac.uk/
Date: 24 May 1995 21:12:03 GMT From: 2297109.42663942(Your Lifetime Health Planner) Newsgroups: control,comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.sysadmin Sender: 2297109.42663942 (Your Lifetime Health Planner) Message-ID: <Cancel.3puk5i$kmi@baygull.rtd.com> Control: cancel <3puk5i$kmi@baygull.rtd.com> News-Posting-Software: Cyberspam Subject: cmsg cancel <3puk5i$kmi@baygull.rtd.com> Excessive multi-posting (aka spam) cancelled by clewis@ferret.ocunix.on.ca
Newsgroups: comp.sys.next.programmer From: empath@netcom.com (Tim Triemstra) Subject: Re: Let's make Objective-C better Message-ID: <empathD93H4B.IAB@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <D91LtA.60F@iglou.com> <3pvh8j$22n@darkstar.ucsc.edu> Date: Wed, 24 May 1995 18:09:47 GMT Sender: empath@netcom4.netcom.com >I've never seen performance >comparisons of real apps implemented using Objective-C vs. C vs. C++. >Does anyone know of any such studies? I haven't seen any performance studies involving ObjectiveC either. However, there have been numerous tests involving C++ virtual functions which aren't as dynamic (does that make sense) as ObjC messages but can be expected to have a certain corrollary to the speed loss in ObjC. That being said, virtual functions aren't really all that bad of a speed hit. In a real-time system it is prefered to avoid them but I implemented some gaming algorithms with and without the use of virtual functions while maintaining (as best as phylosophically possible) the same algorithm without a noticable speed loss (benchmarks cam out arond 2% slower with the virtuals.) That being said, there is not really any good reason to believe that ObjC is inherently slow, only possibly implemented as such (although I haven't seen evidence of it myself - it seems quick enough.) -- Tim Triemstra ... empath@netcom.com ... Detroiter at Heart The RED WINGS rule! Let's continue to SPANK the Sharks!
From: Martin_Reed@next.com (Martin Reed) Newsgroups: comp.sys.next.programmer Subject: Re: Avoiding a FileViewer Date: 24 May 1995 19:03:01 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3pvvt5$5u3@news.next.com> References: <3ptegl$hv1@snaps.dannug.dk> Geert, In article <3ptegl$hv1@snaps.dannug.dk> gclem@dannug.dk writes: > Hi there, > > For a particular reason I need the (drag-and-drop) functionality of the > Workspace, but I do not want a FileViewer (not just hidden, but completely > gone). Anybody with ideas on how to do this? > > I have implemented an app which can replace the Workspace, it has its own > dock, can launch/hide apps, etc. Unfortunately this hinders me in using > the normal drag-and-drop facilities, which I would like to use. > > Geert Drag and drop is implemented by the Dock process - if this isn't running then you just can't drag and drop (something has to drive the small window with the dragged icon on it whilst it is in flight). If you just don't want the FileViewer started then turn off its autolaunch option in Workspace preferences. cheers Martin Reed, Premium Support Engineer, NeXT Computer UK Ltd +44 181 565 0005 / fax +44 181 565 0016 / Martin_Reed@next.com Speaking only for myself.
From: shess@subzero.winternet.com (Scott Hess) Newsgroups: comp.sys.next.programmer Subject: Re: Let's make Objective-C better Date: 24 May 1995 22:46:44 GMT Organization: Is a sign of weakness Distribution: world Message-ID: <SHESS.95May24174644@subzero.winternet.com> References: <D91LtA.60F@iglou.com> <3pvh8j$22n@darkstar.UCSC.EDU> In-reply-to: art@cubicsol.com's message of 24 May 1995 14:53:07 GMT In article <3pvh8j$22n@darkstar.UCSC.EDU>, art@cubicsol.com (Art Isbell) writes: >In article <D91LtA.60F@iglou.com>, > black@pyro.satanic-cult.com (Benjamin J. Black) writes: >> Well, the issue of performance in Objective-C continues to haunt >> us. > >I don't feel haunted, but I've never seen any hard, "haunting", >real-world performance tests. I've heard about the "cost" of >message-sends vs. function calls, etc., but I've never seen >performance comparisons of real apps implemented using Objective-C >vs. C vs. C++. Does anyone know of any such studies? Should I >really be haunted? Having coded literally hundreds of thousands of lines, most of that implementing my very own objects from the ground up, I've determined that the concerns about "Why is Objective-C so slow" completely miss the point. One real world experience which really brought this home for me has been the project I'm currently working on, and have been working on for the past two years. It's fairly big, with around 150 classes, and nearly 75k-lines, almost all Objective-C based. Back when we started, we argued Objective-C vs C++. Objective-C was decided on for flexibility reasons. More precisely, the argument was made that with Objective-C, we could more easily revise objects to make them faster than under C++. That decision has proven itself in _spades_. Keep in mind that comparing the very earliest binding possible under C++ with the very late binding of Objective-C is not the end of the story. You have to adjust that factor by the amount of time the dispatch function adds to the entire running time. Traditionally, message-dispatch in languages like Smalltalk is said to take about 10% of the running time. Our program generally comes in with between 9% and 11% of the running time in objc_msgSend() and objc_msgSendSuper(). So, if message dispatch took 0 time, then our program would run 10% faster. Wonderful. But, compare that to what happened in "real life". We took the tack of giving the program a decent architecture, which the architects felt was capable of ramping up to our performance needs, and then worrying about performance as it became a problem. [You might call that _extremely_ late dynamic binding.] Since then, every three to six months, as the package is put to more uses, we've identified a performance problem and targetted some portion of the code for revision. The results are generally a 3x-5x speedup for the problem segment. Periodically we even get a ten-bagger, where the package moves to an entirely new level of performance. I don't know about how everyone else feels, but 10% is peanuts. Algorithmic optimizations rule. So far as I'm concerned, if you're blaming Objective-C for your program's speed problems, you're telling me that you either don't really understand Objective-C, or you don't understand your program. There's only so much an excellent language and runtime can do for you - the programmer has to carry _some_ of the weight! End of discussion. [BTW, I should note that I'm _not_ against optimizing the runtime. I just don't think there's much to be gained, due to the very nature of the language. Perhaps dispatch could be made %25 faster. That would only gain perhaps 2%-3% for most programs, in my experience. Of course, that gains 2%-3% for _all_ programs, which is really great, considering the work only has to be done once! But most programs would gain much more by optimizing their DPS output, and by applying various algorithmic optimizations to their code.] Later, -- scott hess <shess@winternet.com> (WWW to "http://www.winternet.com/~shess/") Home: 12901 Upton Avenue South, #326 Burnsville, MN 55337 (612) 895-1208 Office: 101 W. Burnsville Pkwy, Suite 108F, Burnsville, MN 55337 890-1332 <?If you haven't the time to design, where will you find the time to debug?>
From: cedman@freedom.princeton.edu (Carl Edman) Newsgroups: comp.sys.next.programmer Subject: Re: Avoiding a FileViewer Date: 23 May 1995 21:18:54 GMT Organization: Princeton University Message-ID: <3ptjfu$ls1@cnn.Princeton.EDU> References: <3ptegl$hv1@snaps.dannug.dk> In article <3ptegl$hv1@snaps.dannug.dk>, <gclem@dannug.dk> wrote: > For a particular reason I need the (drag-and-drop) functionality of the > Workspace, but I do not want a FileViewer (not just hidden, but completely > gone). Anybody with ideas on how to do this? I'm not quite sure what you want, but this undocumented dwrite avoids the opening of a file viewer on Workspace startup. dwrite Workspace MainFileViewer No You can still start file viewers manually, but there is also nothing which prevents you from closing them all again. All the other workspace functionality continues to be available Carl Edman
From: mark@rtd.com (Mark Beeson) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3puk5i$kmi@baygull.rtd.com> Control: cancel <3puk5i$kmi@baygull.rtd.com> Date: 24 May 1995 09:53:16 GMT Organization: RTD Internet Access, a division of RTD Systems & Networking, Inc. Message-ID: <3puvmc$3qq@baygull.rtd.com> This is a perl-generated script that is cancelling spam from trasoff@rtd.com. --Mark -- Mark Beeson | Same Broken (MB178) President, Neural InterNetworking "I've seen the enemy, and the enemy is me." -- Sister Machine Gun URL: <a href="http://www.nin.com/">here</a>. - If you have to ask, you'll never know. -
Newsgroups: comp.sys.next.programmer From: dalpen@JSP.UMontreal.CA (Dalpe Nathalie) Subject: 680X0 assembler Message-ID: <D94BHz.DrI@cc.umontreal.ca> Sender: news@cc.umontreal.ca (Administration de Cnews) Organization: Universite de Montreal Date: Thu, 25 May 1995 05:05:57 GMT I'm planning to buy a Black NeXT soon to do a little programing. My question is : is it possible to write my own procedures in assembler and link them in my 'C' program. I know this will not be portable to other hardware but I like to program in 680X0 !! :) Thank you, Francois Lanciault
From: schellenbg_s@fhrz10.fh-frankfurt.de Newsgroups: comp.sys.next.programmer Subject: Re: UNIX signals on NEXTSTEP/Mach-OS Message-ID: <1995May1.105631.98@fhrz10.fh-frankfurt.de> Date: 21 May 95 06:56:38 GMT References: <1995Apr24.230846.94@fhrz10.fh-frankfurt.de> <TIGGR.95Apr25210445@cobra.es.ele.tue.nl> Organization: Fachhochschule Frankfurt am Main In article <TIGGR.95Apr25210445@cobra.es.ele.tue.nl>, tiggr@es.ele.tue.nl (Pieter Schoenmakers) writes: > In article <1995Apr24.230846.94@fhrz10.fh-frankfurt.de> schellenbg_s@fhrz10.fh-frankfurt.de writes: > > I'm writing a program that will execute in the background and can > therefore only be influenced by signals and similar mechanisms. > > This assertion is wrong, since, luckily, IPC has been invented long ago. Yes, I know ;-). But because I want only to stop the process, have it dump its state or delay execution, I don't want to open named pipes or something like that. So I catch some signals and the user can just type "kill -signal pid" on a shell. > > This worked fine since a few days ago. > > Since or until? until, of course. Forgive me my poor english... > > The program grew bigger and bigger > and now sending a signal (typing a Control-C when started in foreground) > causes not only this very process to exit, but THE WHOLE MACHINE STOPS > EXECUTION !!!!!!!!! > > Probably, a programming error by you triggers a kernel bug. What does the > debugger tell you? What does actually go wrong? When does it happen? > > I'm NOT the superuser when I'm developing programs. > > Programming contains two difficult parts: the concepts and the debugging. > The first part is up to you. The second part sometimes comes down to > identifying bugs in the compiler, libraries or the kernel. --Tiggr I traced the problem back to closing a socket. I had trouble hanging the machine with a close on a yet closed socket some time ago, but fixed this bug in my program that wanted to close sockets twice. And so I didn't bother this strange behaviour anymore, although IMHO the close should just return an error that this was a bad file descriptor. But the actual socket that's being closed _is_ valid. I don't think that it has anything to do with UNIX signals at all now, because I had the problem described above outside any signal handling routine and I don't think that closing files or sockets is something you shouldn't do within a signal handling routine. Could it have something to do with Mach C-threads? Sonja Schellenberg, Schellenberg@fh-frankfurt.d400.de
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Let's make Objective-C better Date: 24 May 1995 14:53:07 GMT Organization: University of California, Santa Cruz Distribution: world Message-ID: <3pvh8j$22n@darkstar.UCSC.EDU> References: <D91LtA.60F@iglou.com> In article <D91LtA.60F@iglou.com> black@pyro.satanic-cult.com (Benjamin J. Black) writes: > Well, the issue of performance in Objective-C continues to haunt us. > I don't feel haunted, but I've never seen any hard, "haunting", real-world performance tests. I've heard about the "cost" of message-sends vs. function calls, etc., but I've never seen performance comparisons of real apps implemented using Objective-C vs. C vs. C++. Does anyone know of any such studies? Should I really be haunted? --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
Newsgroups: comp.sys.next.programmer From: brouwer@minnie.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: -setBackgroundColor: in NXImage Message-ID: <D92q2D.5C7@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany Date: Wed, 24 May 1995 08:25:20 GMT Hi All! This seems to be a trivial question, but I really want to know how -setBackgroundColor: in an NXImage object can be used. The docs say that the background color setting will be ignored if an image cache is used. The problem is that NXImage _always_ seems to use a cache (if I do -initFromFile: for example). Can anyone show me an example where -setBackgroundColor: has an effect? Thanks, Klaus Brouwer
From: chucklink@delphi.com Newsgroups: comp.sys.next.programmer Subject: Communicating /w non-NeXT process Date: Wed, 24 May 95 00:10:12 -0500 Organization: Delphi (info@delphi.com email, 800-695-4005 voice) Message-ID: <Je0fUSc.chucklink@delphi.com> I need to 'converse' with a DOS process running on an NT/intel box via TCP/IP, but haven't done anything like this. I know the process' ip address and the port number it's using. ANY help would be appreciated. (Yes, I am very new to the NeXT....) Thanks.
Newsgroups: comp.sys.next.programmer From: andylee@netcom.com (Andy Lee) Subject: Need Help with "Icon Shelf" Message-ID: <andyleeD95rzD.42t@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Thu, 25 May 1995 23:59:37 GMT Sender: andylee@netcom14.netcom.com Hello, All, I am trying to implement an icon shelf similar to the ones found in Workspace File Viewer and Digital Librarian. Basically it is an area in a window that will accept drag-and-drop icons of directories or files, display them grid-aligned with associated filename underneath each icon, and the user can click on the filename to edit it. (BTW, the filenames becomes internal once dragged-in, so it doesn't really changed the filename on the disk.) My current approach is a Matrix of IconCell:Cell, which is composed of a ButtonCell and a TextFieldCell. So far it's not working very well because I don't fully understand the interaction between Matrix and Cell. Here are some problems I have: (1) I want only one selected icon at any time. So I did [theMatrix setMode:NX_RADIOMODE] and it works initially, highlighting the icon and the filename underneath. But I want to highlight only the icon (like Digital Librarian), so I overrode Cell's highlight:inView:lit: method with this: // Highlight just highlight the icon, not the filename - highlight:(const NXRect *)cellFrame inView:controlView lit:(BOOL)flag { [self updateRectsFrom:cellFrame]; // Update buttonRect [buttonCell highlight:&buttonRect inView:controlView lit:flag]; cFlags1.highlighted = flag; return self; } The buttonCell (no border) would highlight when I mouse-down on it, but would not stay highlighted after I mouse-up. I've tried different buttonCell setType: to no avail. At some types, it would not highlight at all. (2) Changing the cursor to the I-Beam when within the filename rectangle. I override Cell's resetCursorRect:inView: with this: // Change the cursor to an I-beam over the title text - resetCursorRect:(const NXRect *)cellFrame inView:aView { [self updateRectsFrom:cellFrame]; // Updates textRect [textCell resetCursorRect:&textRect inView:aView]; return self; } But it doesn't work. Shouldn't Matrix call this method to enable the cursorRect, or do I have to do it myself somewhere? (3) Also, is this the correct approach for implementing a icon shelf? Has anyone else done this? Any help or pointer is greatly appreciated... Andy Lee andylee@cs.ucla.edu andylee@netcom.com
From: Alexandre Odoux <odoux_alexandre@jpmorgan.com> Newsgroups: comp.lang.objective-c,comp.sys.next.programmer Subject: Class defaults and inheritance Date: 24 May 1995 10:08:45 GMT Organization: JP Morgan Message-ID: <3pv0jd$n9o@hardcopy.ny.jpmorgan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit This is maybe a FAQ, but... Suppose we have two diffent classes: ButtonA and ButtonB, ButtonB being a subclass of ButtonA. Suppose that in ButtonA we have a static variable that stores the default text (or color or whatever..) to be displayed for instances of ButtonA, and that we have + setDefaultText:(const char *) text; and + (const char *) defaultText; class methods to define the default for all instances... I want to provide the same functionnality for ButtonB, with the possibility that the defaultText for ButtonA instances and ButtonB instances to be different, but inheriting the default if no default is set for ButtonB. Is it possible ?
From: rog@colada.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: STOP button: Interrupting Date: 24 May 1995 11:47:36 GMT Organization: The University of York, UK Distribution: world Message-ID: <3pv6co$rf7@mailer.york.ac.uk> References: <3ots0s$6qa@lace.Colorado.EDU> Doug MacIntire (doug@dam.Colorado.EDU) wrote: > I have a project where I am trying to set up a STOP button to interrrupt a > process in much the same way the "Search / STOP" button works in Digital > Librarian. a simpler solution than using threads (if less general) if you only have a single abort button is to do something like : - (BOOL)hasAborted /* * this is a method in the View containing the abort button * progabort is an outlet to the button which aborts the operation * if hit. */ { NXEvent *e = [NXApp getNextEvent:NX_MOUSEDOWNMASK waitFor:0.0 threshold:NX_MODALRESPTHRESHOLD]; if (e) /* if there is a mouse down event waiting for us */ { NXPoint p = e->location; id hitobj; [self convertPoint:&p fromView:nil]; [self convertPoint:&p toView:[self superview]]; /* point's in superview coords */ hitobj = [self hitTest:&p]; if (hitobj == progabort) /* if the user has hit the abort button */ { [progabort performClick:self]; /* user feedback... */ return YES; } } return NO; } then every so often in your while loop check the return value of hasAborted. if it returns YES then break out of the while loop. i currently use this method in one of my applications - does anyone know of any reason why it might not be a good idea ? cheers, rog.
From: rcw@caspian.cc.vt.edu (R. Craig Woods) Newsgroups: comp.sys.next.programmer Subject: Re: Oracle on black hardware - problems with NS 3.3 Date: 24 May 1995 11:26:47 GMT Organization: Virginia Tech, Blacksburg, Virginia Message-ID: <3pv55n$e4b@solaris.cc.vt.edu> References: <NEWTNews.21579.801368443.sirius@sirius.syd.interconnect.com.au.syd.interconnect.com.au> Keywords: oracle6, NEXTSTEP Release 3.3 In the NEXTSTEP 3.3 "release notes addendum for Intel Processors and NeXT computers", page 1, it says "Don't upgrade any NeXT computer that must run an Oracle 6 server to Release 3.3. You can't install oracle6 on a NeXT computer that's running Release 3.3." > Is anybody still using Oracle on NEXTStations out there and have they any > problems with it running 3.3 of NEXTSTEP. > Any help would be appreciated !!! > Please email direct to sirius@interconnect.com.au > Michael
From: rcw@caspian.cc.vt.edu (R. Craig Woods) Newsgroups: comp.sys.next.programmer Subject: Re: Oracle on black hardware - problems with NS 3.3 Date: 24 May 1995 11:27:39 GMT Organization: Virginia Tech, Blacksburg, Virginia Message-ID: <3pv57b$e4d@solaris.cc.vt.edu> References: <NEWTNews.21579.801368443.sirius@sirius.syd.interconnect.com.au.syd.interconnect.com.au> > Michael In the NEXTSTEP 3.3 "release notes addendum for Intel Processors and NeXT computers", page 1, it says "Don't upgrade any NeXT computer that must run an Oracle 6 server to Release 3.3. You can't install oracle6 on a NeXT computer that's running Release 3.3."
From: Ralph_Zazula@next.com (Ralph Zazula) Newsgroups: comp.sys.next.programmer Subject: Re: Class defaults and inheritance Date: 25 May 1995 17:19:21 GMT Organization: NeXT Computer, Inc. Distribution: world Message-ID: <3q2e6p$bpe@news.next.com> References: <3pv0jd$n9o@hardcopy.ny.jpmorgan.com> Alexandre Odoux <odoux_alexandre@jpmorgan.com> writes > This is maybe a FAQ, but... > > > Suppose we have two diffent classes: ButtonA and ButtonB, ButtonB > being a subclass of ButtonA. > > Suppose that in ButtonA we have a static variable that stores the default > text (or color or whatever..) to be displayed for instances of ButtonA, and > that we have > + setDefaultText:(const char *) text; > > and > > + (const char *) defaultText; > > class methods to define the default for all instances... > > > I want to provide the same functionnality for ButtonB, with the > possibility that the defaultText for ButtonA instances and ButtonB > instances to be different, but inheriting the default if no default > is set for ButtonB. > > > Is it possible ? Yes, this is both possible and a FAQ. The short answer is to have a static HashTable that maps classes to the class variables. I've posted a few code examples on this topic... Maybe someone who snipped one of these could place it in the FAQ? Z -- Ralph Zazula NeXT Computer, Inc. Ralph_Zazula@next.com (415) 780-2893
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: New NS programming book? Message-ID: <jpanicoD96q99.1o6@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Fri, 26 May 1995 12:19:57 GMT Sender: jpanico@netcom11.netcom.com Hi, Has anyone read: ADVANCED NEXTSTEP PROGRAMMING: DISTRIBUTED OBJECTS, OODBMS, HYPERMEDIA, GROUPWARE + Author: Craighill, Nancy Knolle + ISBN: 0471308595 + Edition: First + Publisher: Wiley, John, & Sons, Inc, 2/1/95 + Pages: 516 + Binding: Softcover, Paper + Status: In Print o I just found this reference while browsing around on NeXTs web site-- never heard of this book before. Can anyone recommend it? Joe Panico jpanico@netcom.com -- Joe Panico jpanico@netcom.com /* Please no NeXTMail, I can't read it at this address */
From: jchong@spnext1.ee.ntu.edu.tw (Jenn-Chau Hung) Newsgroups: comp.sys.next.programmer Subject: Stop Sound object Date: 26 May 1995 06:07:10 GMT Organization: National Taiwan University Message-ID: <3q3r6e$b5v@netnews.ntu.edu.tw> Hi, I found that if I write a Sound object's data into a file or stream immediately after stop recording, like this: [aSound stop:sender]; [aSound writeSoundfile:"/tmp/FooBar.snd"]; The file /tmp/FooBar.snd won't be created .... What's wrong ? Do I miss something ? Thanks in advance. -- Steven Hung | Taiwan NeXT User Group jchong@speech.ee.ntu.edu.tw (NeXTmail OK) | NTU Speech Recognition Lab
Newsgroups: comp.sys.next.programmer From: dfevans@bbcr.uwaterloo.ca (David Evans) Subject: Re: Let's make Objective-C better Message-ID: <D93tDv.Hs0@watserv3.uwaterloo.ca> Sender: news@watserv3.uwaterloo.ca Organization: University of Waterloo References: <D91LtA.60F@iglou.com> <3pvh8j$22n@darkstar.ucsc.edu> <empathD93H4B.IAB@netcom.com> Date: Wed, 24 May 1995 22:34:42 GMT In article <empathD93H4B.IAB@netcom.com>, Tim Triemstra <empath@netcom.com> wrote: >>I've never seen performance >>comparisons of real apps implemented using Objective-C vs. C vs. C++. >>Does anyone know of any such studies? > >I haven't seen any performance studies involving ObjectiveC either. >However, there have been numerous tests involving C++ virtual functions >which aren't as dynamic (does that make sense) as ObjC messages but can >be expected to have a certain corrollary to the speed loss in ObjC. That >being said, virtual functions aren't really all that bad of a speed hit. >In a real-time system it is prefered to avoid them but I implemented some >gaming algorithms with and without the use of virtual functions while >maintaining (as best as phylosophically possible) the same algorithm >without a noticable speed loss (benchmarks cam out arond 2% slower with >the virtuals.) > Good sort of measure. Astroloids on an '040 cube can put up a good challenge. :-) I haven't seen the code, but I'd bet there's considerable interraction ebtween some sort of View subclass and a wad of DPS stuff. -- David Evans dfevans@bbcr.uwaterloo.ca Computer/Synth Junkie "Default is the value selected by the University of Waterloo composer overridden by your command." Waterloo, Ontario, Canada - Roland TR-707 Manual
From: rain@beauty.ucsb.edu (John Wadleigh) Newsgroups: comp.sys.next.programmer Subject: PRINT text Date: 24 May 1995 20:21:02 GMT Organization: University of California, Santa Barbara Message-ID: <3q04fe$31j@ucsbuxb.ucsb.edu> Keywords: text print postscript I have a text editor program (like EDIT) and my PRINT menu option doesn't seem to work when I load texts that are typed really wide (more than 80 columns wide). When I go to the Previewer to look at the PS code created, it cuts it off entirely! I really have no idea why! Does anyone know how EDIT does it? Do I have to figure out how wide the window is, and then use that info to describe the scaling?? Any help please!?!?!? Also, when I load up a file, I would like to expand the window initially to the width of the widest line in the text. (instead of always having to resize the window when those wide text files are loaded). Thanks! John Wadleigh UCSB Consultant
From: guptaa@alleg.edu (ANI ) Newsgroups: comp.sys.next.misc,comp.sys.next.hardware,comp.sys.next.software,comp.sys.next.programmer,comp.sys.ibm.pc.misc,comp.sys.ibm.pc.hardware.systems,comp.sys.ibm.pc.hardware.networking,comp.sys.ibm.pc.hardware.comm,comp.sys.ibm.pc.hardware.misc, Subject: ## Need networking help for multiOS machine ## Date: 26 May 1995 20:19:32 GMT Organization: Allegheny College Distribution: world Message-ID: <3q5d4k$eeo@mustang.alleg.edu> Keywords: NEXTSTEP, Windows, networking Hello, I am running an Intel Pentium90 machine with NEXTSTEP, and a 100M DOS partition. It has a dedicated Net connection (A college machine) and has an Ethernet card. What I would like to know is if there is any way I could connect the DOS/Windows(latest version of both) to the net as well, considering I have all the required hardware (or do I need something more?). Forgive me for asking a seemingly uninformed question. I am new to the network programming environment. From what I have been able to gather all I should need is a driver for DOS to communicate with the card. I need to be able to run Netscape on it, because I am going to be working in the VRML environment. I realize from the Netscape FAQs that I need Winsock/Trumpet. I have downloaded that but the something.ini(?) file gets messed up and doesn't install. I would think that is because of the lack of the driver. I am more or less clueless about the DOS enviroment. Anyone who understands what I am talking about please help!! I would be very grateful. Please reply directly to my account, guptaa@alleg.edu, for I do not frequent these groups often. Thanks. -Ani. --- _|_|_|_|_| _|_|_|_|_| _|_|_|_|_| _|_|_|_|_| _|_|_|_|_| _|_|_|_|_| _|_|_| _| _| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _|_|_|_| _|_|_| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _|_|_| _| _| _| _|_|_| _|_|_| _|_|_| _|_| _|_|_| email:guptaa@alleg.edu _| _|ph :(814)332-2675 URL:http://cs.alleg.edu/~gupta/_|_| _|Fax:(814)337-0988 _|_|_|_|_|Snail:Box 1809 Allegheny College, Meadville PA, 16335-3902_|_|_|_|_|
From: Greg.Titus@mccaw.com (Greg Titus) Newsgroups: comp.sys.next.programmer Subject: Re: forwardInvocation: Does it work? Date: 25 May 1995 17:35:55 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3q2f5r$o35@nwestmail.nwest.mccaw.com> References: <D94uGr.BnD@rat.se> In article <D94uGr.BnD@rat.se> martin@rat.se writes: > I'm trying to use the NSObject forwarding mechanism but I run into > problems. According to the docs it is quite simple, -just override the > NSObject method > - (void)forwardInvocation:(NSInvocation *)anInvocation > > I've done so, but my method never gets called. Instead the old style > forward:: is called. This one is however much more cumbersome to use and > obsoleted. The Obj-C runtime hasn't changed - it still calls forward::. However, NSObject's implementation of forward:: builds an NSInvocation and calls forwardInvocation: on itself. So in order to get a forwardInvocation: method, you need to be a subclass of NSObject and you need to _not_ override forward::. > Has anyone made this work or are fundamental parts of the foundation kit > still unimplemented? Yup. And NSInvocation's are completely cool. > Martin Wennerberg > ____________________________________________________ > Research & Trade AB > Phone: + 46 - 8 - 21 17 50 > Email: martin@rat.se > Snailmail: Box 7742, S-103 95 Stockholm, SWEDEN > Visiting: Kungsgatan 33 -Greg --------------------- Greg Titus Omni Development Inc. toon@omnigroup.com
From: Lars-Iver_Kruse@sz2.maus.de (Lars-Iver Kruse) Newsgroups: comp.sys.next.programmer Subject: Re: DriverKit for Sun and HP? Message-ID: <199505251231.a21@sz2.maus.de> Date: Thu, 25 May 95 10:31:00 GMT References: <D8ztMC.6u9@trapac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Hi Karl, you (Karl Kraft) wrote on May 22nd, 1995: KK> Not having either dev environment handy, I thought I'd ask here. KK> Is their a driverkit for Sparc and PA-Risc hardware, or only for KK> intel? the DriverKit is available on all platforms running NEXTSTEP except the 680x0-based. Regards, Lars-Iver Kruse ---------------------------------------------------------------------- Lars-Iver_Kruse@sz2.maus.de (private, NO NeXTmail, only mail < 64KB) LKruse@msmail.miro.de (office, NO NeXTmail)
Newsgroups: comp.sys.next.programmer From: tjspiel@maroon.tc.umn.edu (Tom Spielman) Subject: Re: GDB and Multithread DO(s) ??? Message-ID: <tjspiel-260595234950@dialup-1-15.gw.umn.edu> Followup-To: comp.sys.next.programmer Sender: news@news.cis.umn.edu (Usenet News Administration) Organization: University of Minnesota, Twin Cities References: <3prier$fnq@srvr1.engin.umich.edu> Date: Sat, 27 May 1995 04:49:50 GMT In article <3prier$fnq@srvr1.engin.umich.edu>, "Sean M. Willson" <premise@engin.umich.edu> wrote: I can't answer all of your questions, but I do know that an 11013 is a timeout error. I think these DO error numbers are defined in NXRemote.h. I've gotten this error while trying to message a proxy whose connection was created in another thread. I've also had some problems with autorelease pools in multithreaded servers. The only suggestion I have is that you create a new release pool as early on as possible inside the new thread, and release it before the thread exits. Hope this helps, - Tom
Newsgroups: comp.sys.next.programmer From: mtaylor@alias.com (Michael Taylor) Subject: Posix incompatible with C++?? Message-ID: <1995May24.193425.5296@alias.com> Sender: news@alias.com (News Owner) Organization: Alias Research Inc., Toronto ON Canada Date: Wed, 24 May 1995 19:34:25 GMT I'm working on an app in C++ under nextstep, and I've noticed the following extremely annoying behavior. If I link with the -posix flag, then I can't use static or global objects anymore because it won't link. I get the following unresolved symbols .constructors_used .destructors_used When I remove the -posix flag, it links fine. This occurs both with the standard cc, and with gcc 2.6.3. This leaves me to believe that there is something strange with the posix library. Unfortunately, I really need to link to a library that uses posix functions. I am using Intel NEXTSTEP 3.2. If anyone has a work around, or knows why this occurs, then I would be grateful if you would let me know. I can provide a simple example if anyone else wants to have a look at it. -- Mike Taylor I would rather be alive in a box than dead in a box, because mtaylor@alias.com if you are alive in a box you can say `At least I'm not dead' coop student -Rosencrantz and Gildenstern are Dead
From: pmartin@landau.ucdavis.edu (Pat Martin) Newsgroups: comp.sys.next.programmer Subject: HOW TO COMPILE libg++-2.6.2 Date: 25 May 1995 04:41:07 GMT Organization: University of California, Davis Message-ID: <3q11p3$ihi@mark.ucdavis.edu> [ Article crossposted from comp.sys.next.misc ] [ Author was Pat Martin ] [ Posted on 25 May 1995 04:38:42 GMT ] I have complied gcc-2.6.3 but there is not a NeXT configure file. Has anyone done it or know how? gracia pc
Newsgroups: comp.sys.next.programmer From: martin@rat.se Subject: forwardInvocation: Does it work? Message-ID: <D94uGr.BnD@rat.se> Keywords: forwardInvocation forward foundation NSObject Sender: martin@rat.se (Martin Wennerberg) Organization: Research & Trade, AB. Date: Thu, 25 May 1995 11:55:38 GMT I'm trying to use the NSObject forwarding mechanism but I run into problems. According to the docs it is quite simple, -just override the NSObject method - (void)forwardInvocation:(NSInvocation *)anInvocation I've done so, but my method never gets called. Instead the old style forward:: is called. This one is however much more cumbersome to use and obsoleted. Has anyone made this work or are fundamental parts of the foundation kit still unimplemented? Thanks for any help on this. (I'm using NS 3.3 and EOF 1.1 on PA-RISC.) Martin Wennerberg ____________________________________________________ Research & Trade AB Phone: + 46 - 8 - 21 17 50 Email: martin@rat.se Snailmail: Box 7742, S-103 95 Stockholm, SWEDEN Visiting: Kungsgatan 33
From: fogelson@ursula.uoregon.edu (Nick Fogelson) Newsgroups: comp.sys.next.programmer Subject: GDB graphical debugger? Date: 28 May 1995 02:22:22 GMT Organization: University of Oregon Message-ID: <3q8mou$rhj@pith.uoregon.edu> Does NeXTSTEP/FIP 3.2 have any built-in way to use gdb in a graphical interface? I would like to do my CIS assignments under NS but the lack of an easy-to-use debugger keeps me under Symantec for Windows. I have heard of something called SuperDebugger. Does anybody know of this software? Nick Fogelson . 
From: jchong@spnext1.ee.ntu.edu.tw (Jenn-Chau Hung) Newsgroups: comp.sys.next.programmer Subject: Searching for MODocManager / MODocController examples Date: 28 May 1995 06:30:34 GMT Organization: National Taiwan University Message-ID: <3q95aa$5u5@netnews.ntu.edu.tw> Hi, Does anyone have examples about MiscKit's MODocManager ? I cannot find the DocArchitecture example in my MiscKit package. If you have it, pleast NeXTmail me to jchong@speech.ee.ntu.edu.tw ... Thanx :) -- Steven Hung | Taiwan NeXT User Group jchong@speech.ee.ntu.edu.tw (NeXTmail OK) | NTU Speech Recognition Lab
From: charlesa@mpn.com Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.groupware.lotus-notes.misc Subject: NeXT notes client? Date: Thu, 25 May 95 15:08:39 gmt Organization: BTnet, BT Public Internet Service Message-ID: <NEWTNews.801414645.1016.charlesa@stratos.mpn.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi all - Does anyone know if a NeXTSTEP client for Lotus Notes exists? If not, is anybody working on one? TIA, Charles. PS. Please reply to charlesa@mpn.com
From: schellenbg_s@fhrz10.fh-frankfurt.de Newsgroups: comp.sys.next.programmer Subject: UNIX signals on NEXTSTEP/Mach-OS Message-ID: <1995Apr24.230846.94@fhrz10.fh-frankfurt.de> Date: 16 May 95 17:38:03 GMT Organization: Fachhochschule Frankfurt am Main I have a problem with UNIX signals on a HP 712 running NEXTSTEP. I'm writing a program that will execute in the background and can therefore only be influenced by signals and similar mechanisms. It establishes a signal handler for SIGHUP, SIGTERM, SIGQUIT etc. with the signal() system call. I have established an exit handler with atexit. The signal handling function does nothing more than to exit(0) and by this invoking the exit handling function. This worked fine since a few days ago. The program grew bigger and bigger and now sending a signal (typing a Control-C when started in foreground) causes not only this very process to exit, but THE WHOLE MACHINE STOPS EXECUTION !!!!!!!!! Sometimes the mouse pointer and cursor stand still and don't accept any input nor the machine respond to any tries via network (not even ping). On other occasions the system just REBOOTS!!! I'm NOT the superuser when I'm developing programs. Is there any secret about hand H
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: GDB graphical debugger? Date: Sun, 28 May 1995 15:42:48 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950528164248.215AACUD.malc@daneel> References: <3q8mou$rhj@pith.uoregon.edu> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII > Does NeXTSTEP/FIP 3.2 have any built-in way to use gdb in a graphical > interface? > Yes, type "view" at the gdb prompt. SuperDebugger is good from what I've seen of it, but doesn't offer a huge amount more. It's available on various archives, though, I think, so have a play. Academic pricing is good, so... Have fun, mmalc.
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: Need Help with "Icon Shelf" Date: 27 May 1995 10:01:09 GMT Organization: University of Heidelberg, Germany Message-ID: <3q6t95$l6c@sun0.urz.uni-heidelberg.de> References: <andyleeD95rzD.42t@netcom.com> In article <andyleeD95rzD.42t@netcom.com> andylee@netcom.com (Andy Lee) writes: > Hello, All, > > I am trying to implement an icon shelf similar to the ones found in > Workspace File Viewer and Digital Librarian. Basically it is an area > in a window that will accept drag-and-drop icons of directories or > files, display them grid-aligned with associated filename underneath > each icon, and the user can click on the filename to edit it. (BTW, > the filenames becomes internal once dragged-in, so it doesn't really > changed the filename on the disk.) [.....] Well, one of the most important strengths of NS is the possibility to use ObjectWare. For example, the easiest way to do what you need is to use the IconKit. If you do not know where to find it, just try: ftp://ftp.nmr.embl-heidelberg.de/pub/next/Developer/Resources/Kits/IconKit.1.2. s.tar.gz -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
From: Cedar Systems <Cedar@cedar.demon.co.uk> Newsgroups: comp.sys.next.programmer Subject: Re: PRINT text Date: 27 May 1995 15:19:20 +0100 Organization: Cedar Systems Sender: news@news.demon.co.uk Message-ID: <801584036snz@cedar.demon.co.uk> References: <3q04fe$31j@ucsbuxb.ucsb.edu> In article <3q04fe$31j@ucsbuxb.ucsb.edu> rain@beauty.ucsb.edu "John Wadleigh" writes: > I have a text editor program (like EDIT) and my PRINT menu option doesn't > seem to work when I load texts that are typed really wide (more than 80 > columns wide). When I go to the Previewer to look at the PS code created, > it cuts it off entirely! I really have no idea why! Does anyone know how > EDIT does it? Do I have to figure out how wide the window is, and then use > that info to describe the scaling?? Any help please!?!?!? > > Also, when I load up a file, I would like to expand the window initially > to the width of the widest line in the text. (instead of always having to > resize the window when those wide text files are loaded). > This sounds like the Text has been incorrectly configured. Text is very sensitive and needs to be instantiated correctly to behave. Take a look at the section "A Text Object in a Scrolling View" in the Concepts/Pre3.0_Concepts/09_UIObjects.rtfd file. Hope this helps, Paul Heffernan. ----------------------------------------------- Cedar Systems email: Cedar@cedar.demon.co.uk telephone: +44 1242 239221 facsimile: +44 1242 254367 -----------------------------------------------
From: chucklink@delphi.com Newsgroups: comp.sys.next.programmer Subject: Re: ## Need networking help for multiOS machine ## Date: Sun, 28 May 95 18:48:37 -0500 Organization: Delphi (info@delphi.com email, 800-695-4005 voice) Message-ID: <ZwydsDN.chucklink@delphi.com> References: <3q5d4k$eeo@mustang.alleg.edu> >I am running an Intel Pentium90 machine with NEXTSTEP, and a 100M DOS >partition. It has a dedicated Net connection (A college machine) and has an >Ethernet card. What I would like to know is if there is any way I could connect >the DOS/Windows(latest version of both) to the net as well, considering I have >all the required hardware (or do I need something more?). Forgive me for asking >a seemingly uninformed question. I am new to the network programming >environment. > I might be able to get you there from Windows. You need to get two items: 1. Install Windows for Workgroups. 2. Microsoft has a TCP/IP protocol for WfW that's free. You can get it at ftp.microsoft.com. I forget the file name, but you can go to the SoftLib directory and download INDEX.TXT for their list of files. The protocol includes an FTP client and a Telenet client.
From: seanl@jujube.cs.umd.edu (Sean Luke) Newsgroups: comp.sys.next.programmer Subject: Re: Stop Sound object Date: 26 May 1995 19:34:09 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Message-ID: <3q5afh$l68@mimsy.cs.umd.edu> References: <3q3r6e$b5v@netnews.ntu.edu.tw> Jenn-Chau Hung (jchong@spnext1.ee.ntu.edu.tw) wrote: > I found that if I write a Sound object's data into a file or stream > immediately after stop recording, like this: > [aSound stop:sender]; > [aSound writeSoundfile:"/tmp/FooBar.snd"]; > The file /tmp/FooBar.snd won't be created .... > What's wrong ? Do I miss something ? We've had similar problems with Resound. The easy way around it is something akin to SoundEditor's dealing with it, namely, copying the sound and saving the copy... Sound* bsound; [asound stop:sender]; bsound=[asound copy]; [bsound writeSoundFile:"/tmp/FooBar.snd"]; [bsound free]; ...However, this doubles the amount of memory you need to store the sound for that moment. I think it's awfuly inefficient if you've got a big long sound, but so long as the bug is there, there's not much we can do about it. Sean Luke U Maryland at College Park seanl@cs.umd.edu Today's Chemical: Aluminum Zirconium Tetrachlorohydrex GLY
Newsgroups: comp.sys.next.programmer Subject: autosizing text objects Message-ID: <1995May29.103437.44872@yogi.urz.unibas.ch> From: frank@ifi.unibas.ch Date: 29 May 95 10:34:37 MET Hello everybody, I' having difficulties with something which must be trivial. I'm currently developing a small application which has a scrollview containing a view with three text objects as its subviews. (This is under 3.2; will migrate to 3.3 soon.) Only on of the text objects is user selectable and editable. The others are managed by the software. I would like the text object to automatically size itself vertically on input and have thus sent it the setVertResizable message. Now, whenever I enter a key, the width of the text shrinks to zero. This also happens if I send the sizeToFit message. What is the correct procedure to handle such a situation? I couldn't locate any informat specifically about this in the online documentation nor in NeXTAnswers (perhaps I just didn't have the right keywords for searching.) Can anyone help? Thanks in advance for any help. -Robert Institut fuer Informatik tel +41 (0)61 321 99 67 Universitaet Basel fax. +41 (0)61 321 99 15 Robert Frank Mittlere Strasse 142 rfc822: frank@ifi.unibas.ch (NeXT,MIME mail ok) CH-4056 Basel X400: S=frank;OU=ifi;O=unibas;P=switch;A=arcom;C=ch Switzerland
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: Re: Avoiding a FileViewer Date: 29 May 1995 07:54:45 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3qbuk5$ca@snaps.dannug.dk> cedman@freedom.princeton.edu (host is unknown) points to the following dwrite: dwrite Workspace MainFileViewer No but on my NS 3.2 Intel system it does not seem to have any effect. I have tried replacing No with NO (and 0), but it did not change anything. Doing strings on WM.app/WM reveals that there is indeed a string called MainFileViewer. Anyone that has tried the above dwrite with succes? Geert
From: Cedar Systems <Cedar@cedar.demon.co.uk> Newsgroups: comp.sys.next.programmer Subject: Re: autosizing text objects Date: 29 May 1995 13:47:35 +0100 Organization: Cedar Systems Sender: news@news.demon.co.uk Message-ID: <801750851snz@cedar.demon.co.uk> References: <1995May29.103437.44872@yogi.urz.unibas.ch> In article <1995May29.103437.44872@yogi.urz.unibas.ch> frank@ifi.unibas.ch writes: > Hello everybody, > > I' having difficulties with something which must be trivial. > > I'm currently developing a small application which has a scrollview containing > a view with three > text objects as its subviews. (This is under 3.2; will migrate to 3.3 soon.) > > Only on of the text objects is user selectable and editable. The others are > managed by the > software. > > I would like the text object to automatically size itself vertically on input > and have thus sent > it the setVertResizable message. > > Now, whenever I enter a key, the width of the text shrinks to zero. This also > happens if I send > the sizeToFit message. > > What is the correct procedure to handle such a situation? I couldn't locate any > informat > specifically about this in the online documentation nor in NeXTAnswers (perhaps > I just didn't have > the right keywords for searching.) > > Can anyone help? > > Thanks in advance for any help. > -Robert > Institut fuer Informatik tel +41 (0)61 321 99 67 > Universitaet Basel fax. +41 (0)61 321 99 15 > Robert Frank > Mittlere Strasse 142 rfc822: frank@ifi.unibas.ch (NeXT,MIME mail ok) > CH-4056 Basel X400: S=frank;OU=ifi;O=unibas;P=switch;A=arcom;C=ch > Switzerland > The problem is that you have not sent a setMinSize: that forces the Text to maintain a particular width. Look at my reply to the posting 'PRINT text' to find the relevant documentation on how to configure a Text object correctly. Regards, Paul Heffernan. ----------------------------------------------- Cedar Systems email: Cedar@cedar.demon.co.uk telephone: +44 1242 239221 facsimile: +44 1242 254367 -----------------------------------------------
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <STEFAN.BOSSUWE@CEDELLUX.tmailuk.sprint.com> X400-Received: by /PRMD=CEDELLUX/ADMD=TMAILUK/C=GB/; Relayed; Mon, 29 May 1995 11:14:29 -0400 X400-Received: by /PRMD=CEDELLUX/ADMD=TMAILUK/C=GB/; Relayed; Mon, 29 May 1995 11:14:29 -0400 X400-Received: by /PRMD=CEDELLUX/ADMD=TMAILUK/C=GB/; Relayed; Mon, 29 May 1995 11:14:29 -0400 X400-Received: by /PRMD=CEDELLUX/ADMD=TMAILUK/C=GB/; Relayed; Mon, 29 May 1995 11:14:29 -0400 X400-Received: by /PRMD=CEDELLUX/ADMD=TMAILUK/C=GB/; Relayed; Mon, 29 May 1995 11:14:29 -0400 Date: Mon, 29 May 1995 11:14:29 -0400 X400-Originator: STEFAN.BOSSUWE@CEDELLUX.tmailuk.sprint.com X400-Recipients: comp-sys-next-programmer@antigone.com X400-Mts-Identifier: [/PRMD=CEDELLUX/ADMD=TMAILUK/C=GB/;950529151429] X400-Content-Type: P2-1984 (2) Content-Identifier: CSI NC V3.0 Alternate-Recipient: Allowed From: ITI BOSSUWE STEFAN <STEFAN.BOSSUWE@CEDELLUX.tmailuk.sprint.com> Message-ID: <00065952.MAI*/G=STEFAN/S=BOSSUWE/PRMD=CEDELLUX/ADMD=TMAILUK/C=GB/@MHS> Subject: Re: Avoiding a FileViewer I've done some similar things more than a year ago. What I've done is hard-coding the dock with dwrites. You know that if you log in that the Workspace is always starting the first application in the dock. In the normal situation this would be the Workspace Manager with its FileViewer. If you remove with dwrites the first app from the dock (WM or Workspace) and put another application (that you want to start) as the first in row, then you'll have a Workspace with only the dock. Watch out, this is very dangerous and trashy. You should make the Icon of your first application unremoveable, because its 'quit' menu-item is also the log-out of your home-made Workspace. I'll ask you the same question I asked my customer at that time: "Why should you want to remove a super FileViewer with a lot of wonderful items and possibilities ?" Stefan Bossuwe Object Oriented Software Engineer Belgium-Luxembourg <STEFAN.BOSSUWE@cedellux.tmailuk.sprint.com>
From: un7j@rzstud2.rz.uni-karlsruhe.de (Hans-Joerg Fischer) Newsgroups: comp.sys.next.programmer Subject: Beginners question Date: 29 May 1995 17:42:01 GMT Organization: University of Karlsruhe, Germany Message-ID: <3qd119$9th@nz12.rz.uni-karlsruhe.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi out there! One simple question of a beginner: I tried to compile bash for NSI. Things worked fine, it recognized the system and Hardware, however, wehn trying to start bash, I just get "unknown command". Why? The file *does* exists! Thanx! CU -JF- -- _____..---======+*+=======---.._____ ___________________ __,-='=====____ ============== _____====== (.__________________I__) - _-=_/ ------=+=-------' / /__...---==='---+---_' '----'---.___ - _ = _.-' Joerg Fischer -------' Werderstrasse 73 76137 Karlsruhe Joerg.Fischer@stud.uni-karlsuhe.de
From: mtie@carleton.edu (Michael Tie) Newsgroups: comp.sys.next.programmer Subject: program profiling Date: 29 May 1995 22:41:17 GMT Organization: Carleton College, Northfield, MN, USA Message-ID: <3qdiid$ntl@chuangtsu.acns.carleton.edu> Keywords: gprof, profile Hi, Does anyone know of a way to profile the execution of a C program under NeXTSTEP? gprof works fine if all you want to profile is the number of times certain functions/procedures are called and how long they took, but right now I would like profiling information about some of the loops in my programs (eg, how many times they looped and how much time they took). Yep, I could move the loops into procedures, but that's a pain... Did I overlook an option to gprof or some other profiling tool? -mtie -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michael N. Tie mtie@carleton.edu Department of Math/CS phn: (507) 663-4067 Carleton College fax: (507) 663-4312 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs Subject: NEXTSTEP Resources on the Internet Date: 29 May 1995 04:15:10 GMT Organization: Digital Fix Development Message-ID: <3qbhoe$7cj@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment - Status reports on GNUStep, a freely-available implementation of OpenStep now being developed NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff ftp://ftp.informatik.uni-muenchen.de: In Germany. ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.nmr.embl-heidelberg.de/pub/next/ eduStep ftp://ftp.next.com: See below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn) Newsgroups: comp.sys.next.programmer Subject: Re: Let's make Objective-C better Date: 30 May 1995 00:35:12 GMT Organization: Rensselaer Polytechnic Institute, Troy NY, USA Distribution: world Message-ID: <3qdp80$22m@usenet.rpi.edu> References: <SHESS.95May24174644@subzero.winternet.com> shess@subzero.winternet.com (Scott Hess) writes: > But, compare that to what happened in "real life". We took the > tack of giving the program a decent architecture, which the > architects felt was capable of ramping up to our performance > needs, and then worrying about performance as it became a problem. > [You might call that _extremely_ late dynamic binding.] Since > then, every three to six months, as the package is put to more > uses, we've identified a performance problem and targetted some > portion of the code for revision. The results are generally a > 3x-5x speedup for the problem segment. Periodically we even get > a ten-bagger, where the package moves to an entirely new level > of performance. > > I don't know about how everyone else feels, but 10% is peanuts. > Algorithmic optimizations rule. This is definitely true. In the distant past, I worked on a mainframe system which did a good job of providing services to lots of users at low overhead. The raging debate at the time was whether we should stick with assembler, or head for a higher-level language. Certainly with 370 assembler, a good assembler programmer can optimize code better than just about any compiler (certainly it'd beat C++!). Of course, that's "better" optimization for any given algorithm. The key is, with the higher level language we would tackle more elaborate algorithms, and system benchmarking showed that the better algorithm gained us more than sticking with assembler would, because we'd never use those algorithms if we had to write them in assembler. In some sense, the issue's the same here. The higher-level language gave us more flexibility, and more reliable code (so we'd spend less time debugging it...). I'd say that Objective-C does the same, when comparing it to C++. It's certainly good to optimize heavily-used parts of the runtime, but don't get so obsessed with micro-level optimizing that you never get around to looking over the algorithms you're using. C++ is a language that's definitely obsessed with micro-level optimization, to the point that no one can keep track of all the cute tricks that one can do with the language, and how those tricks interact with each other. All the time spent juggling those tricks would be better spent studying the algorithms used by the application... -- Garance Alistair Drosehn = gad@eclipse.its.rpi.edu ITS Systems Programmer (handles NeXT-type mail) Rensselaer Polytechnic Institute; Troy NY USA
From: rmasse@cnri.reston.va.us (Roger E. Masse) Newsgroups: comp.sys.next.programmer Subject: Try 2 - Debugging EOF Adaptor bundles? Date: 30 May 1995 19:34:44 GMT Organization: Corporation for National Research Initiatives Distribution: world Message-ID: <3qfs0k$8um@news.CNRI.Reston.Va.US> Hello, I posted this a few weeks ago and thanks for those of you that responded with advice to 'p [NSBundle stripAfterLoading:0]' before loading my adaptor... Unfortunately I still can't seem to 'insert' a breakpoint that I've set as you can see from the following gdb example session... Any other ideas? ---- Snip Snip 8< ------ % gdb EOModeler GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.7 (NeXT 3.1), Copyright 1992 Free Software Foundation, Inc... Reading symbols from /NextDeveloper/Apps/EOModeler.app/EOModeler...(no debugging symbols found)...done. Reading symbols from /usr/shlib/libEOAccess_s.B.shlib...(no debugging symbols found)...done. Reading symbols from /usr/shlib/libEOInterface_s.B.shlib...(no debugging symbols found)...done. Reading symbols from /usr/shlib/libFoundation_s.E.shlib...done. Reading symbols from /usr/shlib/libMedia_s.A.shlib...done. Reading symbols from /usr/shlib/libNeXT_s.C.shlib...done. Reading symbols from /usr/shlib/libIndexing_s.A.shlib...done. Reading symbols from /usr/shlib/libsys_s.B.shlib...done. (gdb) attach 29444 Attaching program `/NextDeveloper/Apps/EOModeler.app/EOModeler', pid 29444 0x5007c40 in msg_receive_trap () (gdb) p [NSBundle stripAfterLoading:0] Reading in symbols for NSFoundationGlobals.m...done. $1 = -256 (gdb) add-file ~/Library/Adaptors/FooAdaptor/i386_obj/FooAdaptorChannel.o Reading symbols from ~/Library/Adaptors/FooAdaptor/i386_obj/FooAdaptorChannel.o...done. (gdb) br -[FooAdaptorChannel describeEntities] Reading in symbols for FooAdaptorChannel.m...done. Breakpoint 1 at 0x4e1: FooAdaptorChannel.m:208. (gdb) cont Continuing. Cannot insert breakpoint 1: Cannot access memory: address 0x4e1 out of bounds.
From: gideon@black_albatross.otago.ac.nz (Gideon King) Newsgroups: comp.sys.next.programmer Subject: Re: NXCachedImageRep to NXBitmapImageRep under NXImage Date: 30 May 1995 21:24:01 GMT Organization: University of Otago, Dunedin, NZ Message-ID: <3qg2dh$7mf@celebrian.otago.ac.nz> As far as I'm aware, the only way to do this is get the data from a NXCachedImageRep into a NXBitmapImageRep is to composite it to a window, and then do an initData:fromRect: to grab it. Pretty messy, and limited to the colour depth of your window server too. We have found that it's quite difficult to keep an image at a higher colour depth than the window server. Anyway, here's a code snippet that may help: pt.x = pt.y = 0; tempWindow = [[Window newContent:&clipRect style:NX_PLAINSTYLE backing:NX_RETAINED buttonMask:0 defer:NO] reenableDisplay]; [[tempWindow contentView] lockFocus]; [clipImage composite:NX_COPY toPoint:&pt]; tempRep = [[NXBitmapImageRep allocFromZone:[self zone]] initData:NULL fromRect:&clipRect]; [[tempWindow contentView] unlockFocus]; [clipImage useRepresentation:tempRep]; [tempWindow free]; Where clipImage is your NXImage, clipRect is the size of the image, and I think the rest is self explanatory. Hope this helps. Let me know if someone has a better solution. --- Gideon King | Phone +64-3-479 8347 University of Otago | Fax +64-3-479 8529 Computer Science Applied | Research Centre | Department of Computer Science | e-mail gideon@Black_Albatross.otago.ac.nz P.O. Box 56 | NeXT mail ok Dunedin | Every new day is the New Zealand | dawn of a new error.
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: forwardInvocation: Does it work? In-Reply-To: martin@rat.se's message of Thu, 25 May 1995 11:55:38 GMT Message-ID: <RANDY.95May29171451@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <D94uGr.BnD@rat.se> Date: Mon, 29 May 1995 22:14:51 GMT In article <D94uGr.BnD@rat.se> martin@rat.se writes: I'm trying to use the NSObject forwarding mechanism but I run into problems. According to the docs it is quite simple, -just override the NSObject method - (void)forwardInvocation:(NSInvocation *)anInvocation I've done so, but my method never gets called. Instead the old style forward:: is called. This one is however much more cumbersome to use and obsoleted. The NSInvocation stuff wasn't working as of EOF 1.1. The fact that it was documented and appeared to work is a bug. Use the old-fangled forwarding stuff for now. Has anyone made this work or are fundamental parts of the foundation kit still unimplemented? The NSInvocation stuff is tied into the "new DO" mechanisms which is tied into the archiving and coding mechanisms which weren't fully baked when EOF 1.1 shipped. Stay tuned... -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: Re: New NS programming book? Date: 30 May 1995 23:20:51 GMT Organization: Netcom Distribution: world Message-ID: <3qg98j$8gt@ixnews4.ix.netcom.com> References: <jpanicoD96q99.1o6@netcom.com> In <jpanicoD96q99.1o6@netcom.com> jpanico@netcom.com (Joe Panico) writes: > >Hi, > >Has anyone read: > > ADVANCED NEXTSTEP PROGRAMMING: DISTRIBUTED OBJECTS, OODBMS, HYPERMEDIA, > GROUPWARE > + Author: Craighill, Nancy Knolle > + ISBN: 0471308595 > + Edition: First > + Publisher: Wiley, John, & Sons, Inc, 2/1/95 > + Pages: 516 > + Binding: Softcover, Paper > + Status: In Print >o > I just checked with the Bookstore in Virginia, they told me that the book will be in the self by June 6 ,1995 Kurniawan
From: claspac@jri.ucsc.edu (Jas-Russell) Newsgroups: comp.sys.next.programmer Subject: NXCachedImageRep to NXBitmapImageRep under NXImage Date: 30 May 1995 00:09:30 GMT Organization: University of California, Santa Cruz Message-ID: <3qdnnq$2tt@darkstar.UCSC.EDU> Dear Fellow NeXTSTEP programmers, I have written a simple function to convert NXImage objects into a format suitable for saving as a GIF image. Unfortunately this function only works if the last representation in the NXImage was an NXBitmapImage with 24 bit color. I am not savvy enough to know how to convert an arbitrary NXImage object (such as that with a single NXCachedImageRep representation) into an NXImage with an additional NXBitmapImageRep in its representation list. I have tried allocating and initializing a separate NXBitmapImageRep and then calling [my_image useRepresentation: my_bitmap_rep] but this doesn't seem to work. Any ideas? You help will be greatly appreciated, and then I would be glad to share the GIF output stuff as well. Thanks, Please e-mail to will@jri.ucsc.edu When I have a solution I will post it back here. -- Will Russell & Frank Jas c/o Computer Science University of California Santa Cruz, CA 95064
Subject: SOLUTION: Compiling GNU's m4 Date: Tue, 30 May 95 19:41:20 PDT Message-ID: <000DABAE.fc@iqinc.com> Newsgroups: comp.sys.next.programmer From: Gary_Affonso@iqinc.com (Gary Affonso) Organization: ImagingQuest In a previous message I wrote: >This is the compile command from the Makefile: >cc -c -DHAVE_CONFIG_H -I.. -I. -I./../lib -g -O builtin.c > >And this is a sample of the rather lengthy output produced: >builtin.c:357: illegal expression, found `__extension__' >builtin.c:357: illegal expression, found `int' concerning my difficulting compiling GNU m4 version 1.4. I got my answer, a big thanks to everyone who responded. Here it is: There is a typo in the header file ./lib/obstack.h that is included with the package. A entry listed as NeXt should actually be NeXT. Yes, that's it, just a difference in case in the last character. I did the change by hand but I also received some patch code that should do the trick although I have not tested it myself. The patch code: --- lib/obstack.h.BAK Sat Nov 5 08:04:21 1994 +++ lib/obstack.h Tue May 30 17:23:42 1995 @@ -272,7 +272,7 @@ /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and does not implement __extension__. But that compiler doesn't define __GNUC_MINOR__. */ -#if __GNUC__ < 2 || (NeXt && !__GNUC_MINOR__) +#if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) #define __extension__ #endif I reported the problem to the GNU folks (who responded within hours, thanks!) and it should be fixed in the next version of m4 released. Thanks again, Gary P.S. I'll be uploading a binary of the latest sendmail and m4 to cs.orst.edu soon for those without compilers of their own (as I was until recently).
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Does NXTableView allow custom formatter with static rows and columns? Message-ID: <D9FBn3.1JJ@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems Date: Wed, 31 May 1995 03:42:38 GMT I've been trying to use a NXTableView with static rows, static columns and a custom formatter to no avail. (The tableview is also editable) The components work in isolation, but not together. The tableview's vectors do point to the custom formatter, but the tableview ignores the custom formatter and uses a default one. Does NXTableView support custom formatters when both rows and columns are static? If so, how does it decide which formatter to use (the column vector's or the row vector's)? Any help would be greatly appreciated. (This very useful UI class has a pretty convoluted API to say the least) -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Re: NXCachedImageRep to NXBitmapImageRep under NXImage Date: 31 May 1995 04:37:00 GMT Organization: Stanford University Message-ID: <3qgrpc$ocp@nntp.Stanford.EDU> References: <3qdnnq$2tt@darkstar.UCSC.EDU> Hello Will, your problem can be quickly solved with the following trick, assuming you already have an existing NXImage instance. NXBitmapImageRep * bitmapize (NXImage *img) { NXBitmapImageRep *b; NXRect r; NX_X(&r) = NX_Y(&r) = 0; [img getSize:&r.size]; [img lockFocus]; b = [[NXBitmapImageRep alloc] initData:NULL fromRect:&r]; [img unlockFocus]; [img useRepresentation:b]; return b; } It should be noted that unlike pointed out earlier, this is not dependant on the WindowServer depth if you send a [img setCacheDepthBounded:NO] message upon the first image creation. Well, that's it. It works, at least for me. Hope you find it as useful! - Stan --- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss CS Guy | | | stanj@cs.stanford.edu NeXTmail / MIME | When you find yourself | | http://www-leland.stanford.edu/~stanj/ | in a hole, stop digging | | Box 2642, Stanford, CA 94309, USA | | +-------------------------------------------+-------------------------+
Newsgroups: comp.sys.next.programmer From: martin@rat.se Subject: Re: forwardInvocation: Does it work? Message-ID: <D9G1zv.2Dp@rat.se> Keywords: forwardInvocation, NSInvocation, NSMethodSignature, forward Sender: martin@rat.se (Martin Wennerberg) Organization: Research & Trade, AB. References: <RANDY.95May29171451@wort.id.com> Date: Wed, 31 May 1995 13:11:54 GMT I finally got it to work. The trick is to implement the methodSignatureForSelector: method also. One should NOT implement the old forward:: I do not know if this is an undocumented feature or a bug. Anyway if one implements something like - (NSMethodSignature *) methodSignatureForSelector:(SEL)sel { if ([super respondsToSelector:sel]) { return [super methodSignatureForSelector:sel]; } return [delegate methodSignatureForSelector:sel]; } - (void) forwardInvocation:(NSInvocation *)invocation { [invocation setTarget:delegate]; [invocation invoke]; } everything works fine. (Substitute delegate for the correct object if needed.) Thanks to those who helped. Martin Wennerberg ____________________________________________________ Research & Trade AB Phone: + 46 - 8 - 21 17 50 Email: martin@rat.se Snailmail: Box 7742, S-103 95 Stockholm, SWEDEN Visiting: Kungsgatan 33
From: frank@heron.cc.gatech.edu (Frank Cobia) Newsgroups: comp.sys.next.programmer Subject: How to do an inspector like the Box inspector. Date: 31 May 1995 02:39:05 GMT Organization: Cybernetx, Inc. Distribution: world Message-ID: <3qgks9$mhp@news0.cybernetics.net> I have made a subview of Box and would like to make an inspector for it. The part I am having problems with is the title placement. I can emulate the functionality by disabling the ButtonCell corresponding to the current title position. My problem is that the current title position ButtonCell (which is disabled) is gray while all the others are black. Is it possible to switch the colors of the enabled and dissabled buttons. Is there another way to do it? Thanks Frank -- Frank Cobia frank@cobra.cybernetics.net
From: maagr@iprolink.ch (Rolf Maag) Newsgroups: comp.sys.next.programmer Subject: NextStep and X25 Date: 31 May 1995 14:39:07 GMT Organization: Internet ProLink Message-ID: <maagr-3105951540190001@port22.iprolink.ch> Hi there, I would like to write an application using X25 on a white Next computer. Are there any x25 cards you can recommend? Is there an API for X25-programming around? any answers? thanx a lot... email to: maag@now.ch or maagr@iprolink.ch
From: tom@hukatronic.cz (Tomas Hurka) Newsgroups: comp.sys.next.programmer Subject: Re: Try 2 - Debugging EOF Adaptor bundles? Date: 31 May 1995 09:23:47 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9505311333.AA01562@hukatronic.cz> References: <3qfs0k$8um@news.CNRI.Reston.Va.US> In comp.sys.next.programmer article <3qfs0k$8um@news.CNRI.Reston.Va.US> rmasse@cnri.reston.va.us (Roger E. Masse) wrote: > I posted this a few weeks ago and thanks for those of you that > responded with advice to 'p [NSBundle stripAfterLoading:0]' before loading > my adaptor... Unfortunately I still can't seem to 'insert' a breakpoint > that I've set as you can see from the following gdb example session... > > Any other ideas? [stuff deleted]; > (gdb) br -[FooAdaptorChannel describeEntities] > Reading in symbols for FooAdaptorChannel.m...done. > Breakpoint 1 at 0x4e1: FooAdaptorChannel.m:208. > (gdb) cont > Continuing. > Cannot insert breakpoint 1: > Cannot access memory: address 0x4e1 out of bounds. Your problem is that the adaptor code is not in the memory, when you try to set the breakpoint there. Try to use 'future breakpoint' instead of normal breakpoint. Here is what gdb help says about it: (gdb) help future breakpoint Set breakpoint at expression. If it can't be done now, attempt it again each time code is dynamically loaded. I hope it helps you. Best regards, --- Tomas Hurka tom@hukatronic.cz NeXTMAIL and MIME OK (international mail <50 KB accepted) -- Tomas Hurka tom@hukatronic.cz NeXTMAIL and MIME OK (international mail <50 KB accepted)
From: schoppe@vera.imsd.uni-mainz.de (Dirk Schoppe) Newsgroups: comp.sys.next.programmer Subject: Linker-errors when compiling with -ObjC++ option Date: 31 May 1995 13:01:39 GMT Organization: Johannes Gutenberg-Universität Mainz, Germany Message-ID: <3qhpbj$17f@kralle.zdv.Uni-Mainz.DE> Keywords: linker ObjC++ Hello, I have got a PB-project, and I am compiling (exactly) one of the subprojects with the -ObjC++-option. The including of Objective-C-Headers in this subproject works fine (no parse errors in NeXT-App-Headers). However, the linker produces error messages: ld: Undefined symbols: _NXWriteType__FPvPCcPCv _NXReadType__FPvPCcT0 _NXCopyStringBuffer__FPCc _NXWriteObject__FPvP11objc_object _NXReadObject__FPv _NXWriteObjectReference__FPvP11objc_object *** Exit 1 Stop. *** Exit 1 Stop. They do not occur when we compile the same subproject without -ObjC++ option (after having removed the simple C++-code). The undefined symbols appear in the subprojects .o-file (TherapyGraph_subproj.o), not in the o-files of the classes in the subproject. Is it possible that some extern "Objective-C" { ... } commands, mixed with non-extern include commands, can cause the problem, although the parser does not produce error messages? Do we have to include a special C++-lib (including libg++.a did not solve the problem)? Any pointers from ld, cc++ experts are welcome. Thank you very much in advance Dirk.
From: clloyd@sierra.net (Charles C. Lloyd) Newsgroups: comp.sys.next.programmer Subject: Behavior Pools (was Let's make Objective-C better) Date: 31 May 1995 20:07:21 GMT Organization: Sierra-Net Distribution: world Message-ID: <3qii9p$5l@jobes.sierra.net> Frederic STARK writes >* The second thing I would really like -please don't flame too hard- is >... multiple inheritance. >The way I would like it, is not via @interface declaration, but rather by >being able to incorporate code to @protocols constructs (Something like >categories on protocols...). > I was playing around with this a while back and your post made me think of it again. I implemented some hacks to allow you to attach collections of methods to existing classes. I call these collections of methods "BehaviorPools." The basic idea is to allow you to define a set of methods which are independent of any particular class, but that implement a protocol, as it were. This stuff is really easy to implement, so I have included the source below if you want to try it out. A BehaviorPool can be adopted by any class so long as the adopting class implements the "required protocol." The required protocol is that which the BehaviorPool depends upon. In general, these are the ivar accessor methods which the BehaviorPool expects to be there; all ivar access from a BehaviorPool must be done via accessor methods because there's no way to know the actual offset of the ivars in question. I have only used this in test scenarios, but I have found a few uses for it so I may actually use it in a real system. If you're interested in my test cases, send me some email and I'll get you a copy. Charles. --- Charles Lloyd clloyd@sierra.net GiantLeap Software PO BOX 8734 (702) 831-4630 Incline Village, NV 89452 Here's an example of how you might adopt a BehaviorPool (assumes you implemented the DragReceivePool and DragSourcePool as subclasses of BehaviorPool): @implementation DragReceiveView //////////////////////////////////////////////////////////////// // Class Initialization/Pool Adoption //////////////////////////////////////////////////////////////// +initialize; { if ( self == [DragReceiveView class]) { [self adoptBehaviorPool:[DragReceivePool class]]; [self adoptBehaviorPool:[DragSourcePool class]]; } return self; } : : And here's the actual BehaviorPool code: ///////////////////////////////////////////////////////////////////// ////////// // BehaviorPoolObjectCat.m ///////////////////////////////////////////////////////////////////// ////////// //Charles Lloyd //July 15, 1994 #import "BehaviorPoolObjectCat.h" #import "BehaviorPool.h" #import <objc/Protocol.h> @implementation Object (BehaviorPoolCat) //With this method, any class can adopt any BehaviorPool (as long as the receiver conforms to the BehaviorPool's required protocol) +(void)adoptBehaviorPool:(Class)behaviorPoolClass; { struct objc_method_list *aMethodList; Protocol *aRequiredProtocol = [behaviorPoolClass requiredProtocol]; if (![self conformsTo:aRequiredProtocol]) { [self error:"must conform to protocol \"%s\" to adopt BehaviorPool \"%s\"\n", [aRequiredProtocol name], [behaviorPoolClass name]]; } //Get a copy of the MethodList from the BehaviorPool... aMethodList = [behaviorPoolClass behaviorPool]; //...and attach it to the receiver. This flushes the method cache properly so there's no problem replacing exitsing methods. class_addMethods(self, aMethodList); } @end ///////////////////////////////////////////////////////////////////// ////////// // BehaviorPool.h ///////////////////////////////////////////////////////////////////// ////////// #import <objc/Object.h> //This is an abstract superclass of the BehaviorPool hierarchy. BehaviorPool classes are never instantiated. This only serves as a place to put BehaviorPool classes which only serve as a place to put BehaviorPool methods. @interface BehaviorPool : Object { } -(Protocol*)requiredProtocol; +(struct objc_method_list*)behaviorPool; +alloc; -init; @end ///////////////////////////////////////////////////////////////////// ////////// // BehaviorPool.m ///////////////////////////////////////////////////////////////////// ////////// //Charles Lloyd //July 15, 1994 #import "BehaviorPool.h" #import <stdlib.h> #import <string.h> @implementation BehaviorPool -(Protocol*)requiredProtocol; { return [self subclassResponsibility:_cmd]; } +(struct objc_method_list*)behaviorPool; { //Returns the first (and only) category of the receiving class. struct objc_method_list *aMethodList = ((Class)self)->methods; int aMethodListSize = sizeof(struct objc_method_list); int aMethodCount = aMethodList->method_count; int aMethodSize = sizeof(struct objc_method); // must subtract 1 here to account for space already allocated by struct objc_method_list int aMethodListBufSize = aMethodListSize + ((aMethodCount-1) * aMethodSize); struct objc_method_list *aMethodListCopy = malloc(aMethodListBufSize); memcpy(aMethodListCopy, aMethodList, aMethodListBufSize); return aMethodListCopy; } @end -- NewsGrazer, a NeXTstep(tm) news reader, posting -- M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.UQF,5QF M;FEL(%1I;65S+5)O;6%N.WT*7&UA<F=L,3(P"EQM87)G<C$R,`I[7&-O;&]R M=&)L.UQR960X,%QG<F5E;C@P7&)L=64X,#M<<F5D,%QG<F5E;C!<8FQU93`[ M7')E9#8P7&=R965N-C!<8FQU938P.UQR960W,UQG<F5E;C<S7&)L=64W,SM< M<F5D-S)<9W)E96XW,EQB;'5E-S([?0I<<&%R9%QT>#$Q-#!<='@R,S`P7'1X M,S0T,%QT>#0V,#!<='@U-S8P7'1X-CDP,%QT>#@P-C!<='@Y,C`P7'1X,3`S M-C!<='@Q,34R,%QF,%QB,%QI,%QU;&YO;F5<9G,R-%QF8S!<8V8P($9R961E M<FEC(%-405)+('=R:71E<UP*/BH@5&AE('-E8V]N9"!T:&EN9R!)('=O=6QD M(')E86QL>2!L:6ME("UP;&5A<V4@9&]N)W0@9FQA;64@=&]O(&AA<F0M(&ES M("!<"CXN+BX@;75L=&EP;&4@:6YH97)I=&%N8V4N7`H^5&AE('=A>2!)('=O M=6QD(&QI:V4@:70L(&ES(&YO="!V:6$@0&EN=&5R9F%C92!D96-L87)A=&EO M;BP@8G5T(')A=&AE<B!B>2`@7`H^8F5I;F<@86)L92!T;R!I;F-O<G!O<F%T M92!C;V1E('1O($!P<F]T;V-O;',@8V]N<W1R=6-T<R`H4V]M971H:6YG(&QI M:V4@(%P*/F-A=&5G;W)I97,@;VX@<')O=&]C;VQS+BXN*2Y<"CY<"EP*22!W M87,@<&QA>6EN9R!A<F]U;F0@=VET:"!T:&ES(&$@=VAI;&4@8F%C:R!A;F0@ M>6]U<B!P;W-T(&UA9&4@;64@=&AI;FL@;V8@:70@86=A:6XN("!)(&EM<&QE M;65N=&5D('-O;64@:&%C:W,@=&\@86QL;W<@>6]U('1O(&%T=&%C:"!C;VQL M96-T:6]N<R!O9B!M971H;V1S('1O(&5X:7-T:6YG(&-L87-S97,N("!)(&-A M;&P@=&AE<V4@8V]L;&5C=&EO;G,@;V8@;65T:&]D<R`B0F5H879I;W)0;V]L M<RXB("!4:&4@8F%S:6,@:61E82!I<R!T;R!A;&QO=R!Y;W4@=&\@9&5F:6YE M(&$@<V5T(&]F(&UE=&AO9',@=VAI8V@@87)E(&EN9&5P96YD96YT(&]F(&%N M>2!P87)T:6-U;&%R(&-L87-S+"!B=70@=&AA="!I;7!L96UE;G0@82!P<F]T M;V-O;"P@87,@:70@=V5R92X@(%1H:7,@<W1U9F8@:7,@<F5A;&QY(&5A<WD@ M=&\@:6UP;&5M96YT+"!S;R!)(&AA=F4@:6YC;'5D960@=&AE('-O=7)C92!B M96QO=R!I9B!Y;W4@=V%N="!T;R!T<GD@:70@;W5T+EP*7`I!($)E:&%V:6]R M4&]O;"!C86X@8F4@861O<'1E9"!B>2!A;GD@8VQA<W,@<V\@;&]N9R!A<R!T M:&4@861O<'1I;F<@8VQA<W,@:6UP;&5M96YT<R!T:&4@(G)E<75I<F5D('!R M;W1O8V]L+B(@(%1H92!R97%U:7)E9"!P<F]T;V-O;"!I<R!T:&%T('=H:6-H M('1H92!"96AA=FEO<E!O;VP@9&5P96YD<R!U<&]N+B`@26X@9V5N97)A;"P@ M=&AE<V4@87)E('1H92!I=F%R(&%C8V5S<V]R(&UE=&AO9',@=VAI8V@@=&AE M($)E:&%V:6]R4&]O;"!E>'!E8W1S('1O(&)E('1H97)E.R!A;&P@:79A<B!A M8V-E<W,@9G)O;2!A($)E:&%V:6]R4&]O;"!M=7-T(&)E(&1O;F4@=FEA(&%C M8V5S<V]R(&UE=&AO9',@8F5C875S92!T:&5R92=S(&YO('=A>2!T;R!K;F]W M('1H92!A8W1U86P@;V9F<V5T(&]F('1H92!I=F%R<R!I;B!Q=65S=&EO;BY< M"EP*22!H879E(&]N;'D@=7-E9"!T:&ES(&EN('1E<W0@<V-E;F%R:6]S+"!B M=70@22!H879E(&9O=6YD(&$@9F5W('5S97,@9F]R(&ET('-O($D@;6%Y(&%C M='5A;&QY('5S92!I="!I;B!A(')E86P@<WES=&5M+B`@268@>6]U)W)E(&EN M=&5R97-T960@:6X@;7D@=&5S="!C87-E<RP@<V5N9"!M92!S;VUE(&5M86EL M(&%N9"!))VQL(&=E="!Y;W4@82!C;W!Y+EP*7`I#:&%R;&5S+EP*+2TM7`H@ M("`@("`@0VAA<FQE<R!,;&]Y9"`@("`@("`@("`@("`@("`@("`@("`@(&-L M;&]Y9$!S:65R<F$N;F5T7`H@("`@("`@1VEA;G1,96%P(%-O9G1W87)E("`@ M("`@("`@("`@("`@("`@(%!/($)/6"`X-S,T7`H@("`@("`@*#<P,BD@.#,Q M+30V,S`@("`@("`@("`@("`@("`@("`@("`@($EN8VQI;F4@5FEL;&%G92P@ M3E8@.#DT-3)<"EP*7`I<"EP*"EQP87)D7'1X-38P7'1X,3$R,%QT>#$V.#!< M='@R,C0P7'1X,C@P,%QT>#,S-C!<='@S.3(P7'1X-#0X,%QT>#4P-#!<='@U M-C`P7&9C,%QC9C`@2&5R92=S(&%N(&5X86UP;&4@;V8@:&]W('EO=2!M:6=H M="!A9&]P="!A($)E:&%V:6]R4&]O;"`H87-S=6UE<R!Y;W4@:6UP;&5M96YT M960@=&AE($1R86=296-E:79E4&]O;"!A;F0@1')A9U-O=7)C95!O;VP@87,@ M<W5B8VQA<W-E<R!O9B!"96AA=FEO<E!O;VPI.EP*7`H*7'!A<F1<='@U-#!< M='@Q,#@P7'1X,38R,%QT>#(Q-C!<='@R-S`P7'1X,S(T,%QT>#,W.#!<='@Y M,C`P7'1X,3`S-C!<='@Q,34R,%QF,5QF<S(X7&=R87DS,S-<9F,Q7&-F,2!` M:6UP;&5M96YT871I;VX*7&=R87DP7&9C,EQC9C(@($1R86=296-E:79E5FEE M=UP*7`H*7&=R87DS,S-<9F,P7&-F,"`O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O7`HO M+PD)0VQA<W,@26YI=&EA;&EZ871I;VXO4&]O;"!!9&]P=&EO;EP*+R\O+R\O M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+R\O+UP*"EQG<F%Y,%QF8S)<8V8R(%P**PI<8B!I;FET:6%L M:7IE"EQB,"`[7`I<>UP*"EQP87)D7'1X,38R,%QT>#(Q-C!<='@R-S`P7'1X M,S(T,%QT>#,W.#!<='@Y,C`P7'1X,3`S-C!<='@Q,34R,%QF:2TU-#!<;&DQ M,#@P7&9C,EQC9C(@:68@*"!S96QF(#T](%M$<F%G4F5C96EV959I97<@8VQA M<W-=*2!<>UP*"EQP87)D7'1X,C$V,%QT>#(W,#!<='@S,C0P7'1X,S<X,%QT M>#DR,#!<='@Q,#,V,%QT>#$Q-3(P7&9I+34T,%QL:3$V,C!<9F,R7&-F,B!; M<V5L9B!A9&]P=$)E:&%V:6]R4&]O;#I;1')A9U)E8V5I=F50;V]L(&-L87-S M75T[7`I;<V5L9B!A9&]P=$)E:&%V:6]R4&]O;#I;1')A9U-O=7)C95!O;VP@ M8VQA<W-=73M<"@I<<&%R9%QT>#$V,C!<='@R,38P7'1X,C<P,%QT>#,R-#!< M='@S-S@P7'1X.3(P,%QT>#$P,S8P7'1X,3$U,C!<9FDM-30P7&QI,3`X,%QF M8S)<8V8R(%Q]7`IR971U<FX@<V5L9CM<"@I<<&%R9%QT>#4T,%QT>#$P.#!< M='@Q-C(P7'1X,C$V,%QT>#(W,#!<='@S,C0P7'1X,S<X,%QT>#DR,#!<='@Q M,#,V,%QT>#$Q-3(P7&9C,EQC9C(@7'U<"@I<<&%R9%QT>#4V,%QT>#$Q,C!< M='@Q-C@P7'1X,C(T,%QT>#(X,#!<='@S,S8P7'1X,SDR,%QT>#0T.#!<='@U M,#0P7'1X-38P,%QF,%QF<S(T7&9C,%QC9C`@7`H*7&(@"3I<"@DZ7`H*7&(P M(`E<"EP*06YD(&AE<F4G<R!T:&4@86-T=6%L($)E:&%V:6]R4&]O;"!C;V1E M.EP*7`H*7'!A<F1<='@W,C!<='@U,#8P7'1X.3(P,%QT>#$P,S8P7'1X,3$U M,C!<9C%<9G,R.%QF:2TQ.#!<;&DQ.#!<9F,P7&-F,"`O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+R\O+R\O+R\O+R\O7`H*7'!A<F1<='@Q,30P7'1X,C,P,%QT M>#,T-#!<='@T-C`P7'1X-3<V,%QT>#8Y,#!<='@X,#8P7'1X.3(P,%QT>#$P M,S8P7'1X,3$U,C!<9FDM,3@P7&QI,3@P7&9C,%QC9C`@+R\*7&)<9G,T.%QF M8S)<8V8R("`@("!"96AA=FEO<E!O;VQ/8FIE8W1#870N;0I<8C!<9G,R.%QF M8S!<8V8P(%P*+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+UP* M"EQP87)D7'1X-S(P7'1X-3`V,%QT>#DR,#!<='@Q,#,V,%QT>#$Q-3(P7&9I M+3$X,%QL:3$X,%QF8S)<8V8R(%P*+R]#:&%R;&5S($QL;WED7`HO+TIU;'D@ M,34L(#$Y.31<"@I<<&%R9%QT>#$Q-#!<='@R,S`P7'1X,S0T,%QT>#0V,#!< M='@U-S8P7'1X-CDP,%QT>#@P-C!<='@Y,C`P7'1X,3`S-C!<='@Q,34R,%QF M,%QF<S(T7&9C,%QC9C`@7`H*7&8Q7&9S,CA<9FDM,3@P7&QI,3@P7&=R87DS M,S-<9F,S7&-F,R`C:6UP;W)T(")"96AA=FEO<E!O;VQ/8FIE8W1#870N:")< M"B-I;7!O<G0@(D)E:&%V:6]R4&]O;"YH(EP*(VEM<&]R="`\;V)J8R]0<F]T M;V-O;"YH/EP*"EQF:3!<;&DP(%P*0&EM<&QE;65N=&%T:6]N"EQG<F%Y,%QF M8S)<8V8R("!/8FIE8W0@*$)E:&%V:6]R4&]O;$-A="E<"@I<<&%R9%QT>#<R M,%QT>#4P-C!<='@Y,C`P7'1X,3`S-C!<='@Q,34R,%QF:2TQ.#!<;&DQ.#!< M9F,R7&-F,B!<"@I<:5QG<F%Y,S,S7&9C-%QC9C0@+R]7:71H('1H:7,@;65T M:&]D+"!A;GD@8VQA<W,@8V%N(&%D;W!T(&%N>2!"96AA=FEO<E!O;VP@*&%S M(&QO;F<@87,@=&AE(')E8V5I=F5R(&-O;F9O<FUS('1O('1H92!"96AA=FEO M<E!O;VPG<R!R97%U:7)E9"!P<F]T;V-O;"E<"@I<:3!<9W)A>3!<9F,R7&-F M,B!<"BLH=F]I9"D*7&(@861O<'1"96AA=FEO<E!O;VPZ"EQB,"`H0VQA<W,I M"EQI(&)E:&%V:6]R4&]O;$-L87-S"EQI,"`[7`I<>UP*"EQP87)D7'1X,38R M,%QT>#(Q-C!<='@R-S`P7'1X,S(T,%QT>#,W.#!<='@Y,C`P7'1X,3`S-C!< M='@Q,34R,%QF:2TU-#!<;&DQ,#@P7&9C,EQC9C(@<W1R=6-T(&]B:F-?;65T M:&]D7VQI<W0@*F%-971H;V1,:7-T.UP*4')O=&]C;VP@*F%297%U:7)E9%!R M;W1O8V]L(#T@6V)E:&%V:6]R4&]O;$-L87-S(')E<75I<F5D4')O=&]C;VQ= M.UP*:68@*"%;<V5L9B!C;VYF;W)M<U1O.F%297%U:7)E9%!R;W1O8V]L72D@ M7'M<"@I<<&%R9%QT>#(Q-C!<='@R-S`P7'1X,S(T,%QT>#,W.#!<='@Y,C`P M7'1X,3`S-C!<='@Q,34R,%QF:2TU-#!<;&DQ-C(P7&9C,EQC9C(@6W-E;&8@ M97)R;W(Z(FUU<W0@8V]N9F]R;2!T;R!P<F]T;V-O;"!<7"(E<UQ<(B!T;R!A M9&]P="!"96AA=FEO<E!O;VP@7%PB)7-<7")<7&XB+"!;85)E<75I<F5D4')O M=&]C;VP@;F%M95TL(%MB96AA=FEO<E!O;VQ#;&%S<R!N86UE75T[7`H*7'!A M<F1<='@Q-C(P7'1X,C$V,%QT>#(W,#!<='@S,C0P7'1X,S<X,%QT>#DR,#!< M='@Q,#,V,%QT>#$Q-3(P7&9I+34T,%QL:3$P.#!<9F,R7&-F,B!<?5P*"EQI M7&9I+3$X,%QL:3<R,%QG<F%Y,S,S7&9C-5QC9C4@+R]'970@82!C;W!Y(&]F M('1H92!-971H;V1,:7-T(&9R;VT@=&AE($)E:&%V:6]R4&]O;"XN+EP*"EQI M,%QF:2TU-#!<;&DQ,#@P7&=R87DP7&9C,EQC9C(@84UE=&AO9$QI<W0@/2!; M8F5H879I;W)0;V]L0VQA<W,@8F5H879I;W)0;V]L73M<"@I<:5QF:2TQ.#!< M;&DW,C!<9W)A>3,S,UQF8S5<8V8U("\O+BXN86YD(&%T=&%C:"!I="!T;R!T M:&4@<F5C96EV97(N("!4:&ES(&9L=7-H97,@=&AE(&UE=&AO9"!C86-H92!P M<F]P97)L>2!S;R!T:&5R92=S(&YO('!R;V)L96T@<F5P;&%C:6YG(&5X:71S M:6YG(&UE=&AO9',N7`H*7&DP7&9I+34T,%QL:3$P.#!<9W)A>3!<9F,R7&-F M,B!C;&%S<U]A9&1-971H;V1S*'-E;&8L(&%-971H;V1,:7-T*3M<"@I<<&%R M9%QT>#<R,%QT>#4P-C!<='@Y,C`P7'1X,3`S-C!<='@Q,34R,%QF:2TQ.#!< M;&DQ.#!<9F,R7&-F,B!<?5P*7`H*7'!A<F1<='@Q,30P7'1X,C,P,%QT>#,T M-#!<='@T-C`P7'1X-3<V,%QT>#8Y,#!<='@X,#8P7'1X.3(P,%QT>#$P,S8P M7'1X,3$U,C!<9W)A>3,S,UQF8S-<8V8S($!E;F1<"@I<<&%R9%QT>#4V,%QT M>#$Q,C!<='@Q-C@P7'1X,C(T,%QT>#(X,#!<='@S,S8P7'1X,SDR,%QT>#0T M.#!<='@U,#0P7'1X-38P,%QG<F%Y,S,S7&9C,UQC9C,@7`I<"@I<<&%R9%QT M>#<R,%QT>#4P-C!<='@Y,C`P7'1X,3`S-C!<='@Q,34R,%QF:2TQ.#!<;&DQ M.#!<9F,P7&-F,"`O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M7`H*7'!A<F1<='@Q,30P7'1X,C,P,%QT>#,T-#!<='@T-C`P7'1X-3<V,%QT M>#8Y,#!<='@X,#8P7'1X.3(P,%QT>#$P,S8P7'1X,3$U,C!<9FDM,3@P7&QI M,3@P7&9C,%QC9C`@+R\*7&)<9G,T.%QF8S)<8V8R(`E"96AA=FEO<E!O;VPN M:`I<8C!<9G,R.%QF8S!<8V8P(%P*+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+UP*"EQP87)D7'1X-S(P7'1X-3`V,%QT>#DR,#!<='@Q,#,V M,%QT>#$Q-3(P7&9I+3$X,%QL:3$X,%QF8S)<8V8R("-I;7!O<G0@/&]B:F,O M3V)J96-T+F@^7`I<"@I<:5QG<F%Y,S,S7&9C-%QC9C0@+R]4:&ES(&ES(&%N M(&%B<W1R86-T('-U<&5R8VQA<W,@;V8@=&AE($)E:&%V:6]R4&]O;"!H:65R M87)C:'DN("!"96AA=FEO<E!O;VP@8VQA<W-E<R!A<F4@;F5V97(@:6YS=&%N M=&EA=&5D+B`@5&AI<R!O;FQY('-E<G9E<R!A<R!A('!L86-E('1O('!U="!" M96AA=FEO<E!O;VP@8VQA<W-E<R!W:&EC:"!O;FQY('-E<G9E(&%S(&$@<&QA M8V4@=&\@<'5T($)E:&%V:6]R4&]O;"!M971H;V1S+EP*"EQI,%QG<F%Y,%QF M8S)<8V8R(%P*"EQG<F%Y,S,S7&9C,UQC9C,@0&EN=&5R9F%C90I<9W)A>3!< M9F,R7&-F,B`@0F5H879I;W)0;V]L(#H@3V)J96-T7`I<>UP*7'U<"EP*+2A0 M<F]T;V-O;"HI"EQB(')E<75I<F5D4')O=&]C;VP*7&(P(#M<"BLH<W1R=6-T M(&]B:F-?;65T:&]D7VQI<W0J*0I<8B!B96AA=FEO<E!O;VP*7&(P(#M<"BL* M7&(@86QL;V,*7&(P(#M<"BT*7&(@:6YI=`I<8C`@.UP*7`H*7&=R87DS,S-< M9F,S7&-F,R!`96YD"EQG<F%Y,%QF8S)<8V8R(%P*"EQP87)D7'1X-38P7'1X M,3$R,%QT>#$V.#!<='@R,C0P7'1X,C@P,%QT>#,S-C!<='@S.3(P7'1X-#0X M,%QT>#4P-#!<='@U-C`P7&9C,EQC9C(@7`H*7'!A<F1<='@W,C!<='@U,#8P M7'1X.3(P,%QT>#$P,S8P7'1X,3$U,C!<9FDM,3@P7&QI,3@P7&9C,%QC9C`@ M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+UP*"EQP87)D7'1X M,3$T,%QT>#(S,#!<='@S-#0P7'1X-#8P,%QT>#4W-C!<='@V.3`P7'1X.#`V M,%QT>#DR,#!<='@Q,#,V,%QT>#$Q-3(P7&9I+3$X,%QL:3$X,%QF8S!<8V8P M("\O"EQB7&9S-#A<9F,R7&-F,B`)0F5H879I;W)0;V]L+FT*7&(P7&9S,CA< M9F,P7&-F,"!<"B\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R]< M"@I<<&%R9%QT>#<R,%QT>#4P-C!<='@Y,C`P7'1X,3`S-C!<='@Q,34R,%QF M:2TQ.#!<;&DQ.#!<9F,R7&-F,B!<"B\O0VAA<FQE<R!,;&]Y9%P*+R]*=6QY M(#$U+"`Q.3DT7`H*7&=R87DS,S-<9F,S7&-F,R!<"@I[>UQ.95A42&5L<$QI M;FLT,#8X(%QM87)K97)N86UE(#M<;&EN:T9I;&5N86UE($)E:&%V:6]R4&]O M;"YH.UQL:6YK36%R:V5R;F%M92`[?0JL?5QP87)D7'1X-S(P7'1X-3`V,%QT M>#DR,#!<='@Q,#,V,%QT>#$Q-3(P7&8Q7&(P7&DP7'5L;F]N95QF<S(X7&9I M+3$X,%QL:3$X,%QG<F%Y,S,S7&9C,UQC9C,@(VEM<&]R="`B0F5H879I;W)0 M;V]L+F@B7`HC:6UP;W)T(#QS=&1L:6(N:#Y<"B-I;7!O<G0@/'-T<FEN9RYH M/EP*"EQG<F%Y,%QF8S)<8V8R(%P*"EQG<F%Y,S,S7&9C,UQC9C,@0&EM<&QE M;65N=&%T:6]N"EQG<F%Y,%QF8S)<8V8R("!"96AA=FEO<E!O;VQ<"EP*+2A0 M<F]T;V-O;"HI"EQB(')E<75I<F5D4')O=&]C;VP*7&(P(#M<"EQ[7`H)<F5T M=7)N(%MS96QF('-U8F-L87-S4F5S<&]N<VEB:6QI='DZ7V-M9%T[7`I<?5P* M7`HK*'-T<G5C="!O8FIC7VUE=&AO9%]L:7-T*BD*7&(@8F5H879I;W)0;V]L M"EQB,"`[7`I<>UP*"EQI7&=R87DS,S-<9F,T7&-F-"`O+U)E='5R;G,@=&AE M(&9I<G-T("AA;F0@;VYL>2D@8V%T96=O<GD@;V8@=&AE(')E8V5I=FEN9R!C M;&%S<RY<"@I<<&%R9%QT>#$V,C!<='@R,38P7'1X,C<P,%QT>#,R-#!<='@S M-S@P7'1X.3(P,%QT>#$P,S8P7'1X,3$U,C!<:3!<9FDM-30P7&QI,3`X,%QF M8S)<8V8R('-T<G5C="!O8FIC7VUE=&AO9%]L:7-T("IA365T:&]D3&ES="`] M("@H0VQA<W,I<V5L9BDM/FUE=&AO9',[7`II;G0@84UE=&AO9$QI<W13:7IE M(#T@<VEZ96]F*'-T<G5C="!O8FIC7VUE=&AO9%]L:7-T*3M<"FEN="!A365T M:&]D0V]U;G0@/2!A365T:&]D3&ES="T^;65T:&]D7V-O=6YT.UP*:6YT(&%- M971H;V13:7IE(#T@<VEZ96]F*'-T<G5C="!O8FIC7VUE=&AO9"D[7`H*7&E< M9FDM,3@P7&QI-S(P7&=R87DS,S-<9F,U7&-F-2`O+R!M=7-T('-U8G1R86-T M(#$@:&5R92!T;R!A8V-O=6YT(&9O<B!S<&%C92!A;')E861Y(&%L;&]C871E M9"!B>2!S=')U8W0@;V)J8U]M971H;V1?;&ES=%P*"EQI,%QF:2TU-#!<;&DQ M,#@P7&=R87DP7&9C,EQC9C(@:6YT(&%-971H;V1,:7-T0G5F4VEZ92`](&%- M971H;V1,:7-T4VEZ92`K("@H84UE=&AO9$-O=6YT+3$I("H@84UE=&AO9%-I M>F4I.UP*<W1R=6-T(&]B:F-?;65T:&]D7VQI<W0@*F%-971H;V1,:7-T0V]P M>2`](&UA;&QO8RAA365T:&]D3&ES=$)U9E-I>F4I.UP*;65M8W!Y*&%-971H M;V1,:7-T0V]P>2P@84UE=&AO9$QI<W0L(&%-971H;V1,:7-T0G5F4VEZ92D[ M7`IR971U<FX@84UE=&AO9$QI<W1#;W!Y.UP*"EQP87)D7'1X-S(P7'1X-3`V M,%QT>#DR,#!<='@Q,#,V,%QT>#$Q-3(P7&9I+3$X,%QL:3$X,%QF8S)<8V8R M(%Q]7`I<"@I<9W)A>3,S,UQF8S-<8V8S($!E;F0*7&=R87DP7&9C,EQC9C(@ %7`H*?0I< `
From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Newsgroups: comp.sys.next.programmer Subject: NS3.3/Sparc: GDB won't `step'? Date: 31 May 1995 21:22:16 GMT Organization: Corporation for National Research Initiatives Distribution: world Message-ID: <3qin2s$9tu@news.CNRI.Reston.Va.US> I've been using NS3.3 and Dev3.3 on Sparc, building stuff with Project Builder. I've recently noticed that while running my app under gdb, I can no longer step into method calls from other methods. I can set a breakpoint in the method that I want to step into, but I have to continue and let gdb break again. `step' just acts like `next'. At one time it was working, but now it's not and I can't think of anything I've changed that might affect this (yup, all files are compiled with -g). Has anybody seen this? I know I've seen this on older versions of gdb using C++ on SunOS, and NeXT's gdb is based on 4.7 I think. TIA, -Barry
From: clloyd@sierra.net (Charles C. Lloyd) Newsgroups: comp.sys.next.programmer Subject: BehaviorPools post is RTF! Date: 31 May 1995 20:16:47 GMT Organization: Sierra-Net Distribution: world Message-ID: <3qiirf$93@jobes.sierra.net> Oooops! Sorry, I forgot to put the magic "RTF" in the subject line of my previous post. Since the post has color in it, it throws everyone's NewsGrazer into a funky state. Sorry... Charles. --- Charles Lloyd clloyd@sierra.net GiantLeap Software PO BOX 8734 (702) 831-4630 Incline Village, NV 89452
From: dstrout@clark.net (Dave Strout) Newsgroups: comp.sys.next.programmer Subject: Any solution for EOF Flattened Attributes vs. Null bug? Date: 31 May 1995 20:31:27 GMT Organization: Clark Internet Services, Inc., Ellicott City, MD USA Message-ID: <3qijmv$2mm@clarknet.clark.net> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Has anyone else run into this EOF bug, and if so, what's the work-around: Imagine you have 2 entities, Foo and Bar, with a flattened attribute in Foo called baz which is really Bar.bamf. If there is a record in Bar with bamf=null, the corresponding record in Foo and all subsequent records in Foo won't come back. This is under EOF 1.1. Any ideas how to work around this? Thanks, Dave Strout Strout Systems, Inc.
Newsgroups: comp.sys.next.programmer From: woden@asgard.csuohio.edu (A. P. Santilli) Subject: ppp server Message-ID: <1995May31.184752.29978@news.csuohio.edu> Sender: news@news.csuohio.edu (USENET News System) Organization: Cleveland State University Date: Wed, 31 May 1995 18:47:52 GMT Hello All ! I am trying to use the PPP2.2 package (v 0.1.9) to set up a ppp dial-up on my NS 3.3 Intel workstation (Dell Optiplex)... Anyone do this yet ????? The PPP2.2 package seems to work pretty good, I have been able to use it on both black and white hardware under NS 3.3 to call into our campus service (Xylogics Annex Servers), but have been unable to set up a ppp connection dialing from my home machine (classic black w/NS 3.3) or my laptop (NEC Versa w/MSWIN and FTP's PCTCP v3.1) to my work machine (the aforementioned Dell Optiplex w/NS 3.3). I have been able to dial into the Dell and login to my regular account, but unable to login and get ppp started. The following is a list of the actions that I have taken and modifications that have been made to standard files: 1) I modified /etc/gettytab, adding with following line m|D19200|Fast-Dial-19200:\ :nx=9600:tc=19200-baud: 2) I modified /etc/ttys ttyfa "/usr/etc/getty D19200" dialup on secure 3) I customized the "pppup.remote" included in the distibution, 4) I created a group "ppp" 5) I created a user "ppp" with the default group ppp and "pppup.remote" as the shell 6) I replaced the ifconfig statement in the rc.local with the one suggested in the ppp faq "arp -s othermachinesipaddress myownethernetaddress permanent public ifconfig pppNUMBER myipaddress othermachinesipaddress [other params] up" 7) I modified the "routed" setup in the rc from -q (quiet option) to -g (gateway option) - I use this on my home machine to connect my laptop through my old cube to the campus network. and it didn't work... so 8) I tried to comment out the "arp -s othermachinesipaddress myownethernetaddress permanent public" line that I added to the rc.local (not knowing if the NeXT would handle arp). 9) I moved the ttyfa entry made in the /etc/gettytab to ttyfb, ttydfa, and ttydfb... trying both references to D19200 and the std.19200 and every concievable combination of the above =:0 The modem answers fine, and if I use a regular terminal program I am able to login to my normal user account with absolutely no difficulty (as I said before)... If I try to login as ppp (to start off the pppd with my pppup.remote shell) the login process locks up after asking for a password, and the whole thing hangs until the login process times out (5 minutes later). I think that my problem is in this "pppup.remote" shelll I am trying to use, but haven't the foggiest notion of where to look next (having exhausted myself on the man pages, faq, readme's etc). Is there is something that I am missing here or are the NS 3.3 drivers so bad that I can't use my Dell as a ppp server ?????? If anyone has had success with this, or from the provided information sees a mistake I made, or understands what I am trying to do here and feels inclined to give me a hand PLEASE DROP ME A LINE !!!!! they say that a mind is a terrible thing to waste, and mine is going to be totally wasted if I can't figure out if this is possible and what I am doing wrong. Thanks (in advance) -- Angelo Santilli * Cleveland State University * Cleveland Ohio woden@asgard.csuohio.edu * NeXTMAIL/MIME * woden@max.net23.csuohio.edu
From: mneher@homer1.ive.mrg.uswest.com (Mark_Tyler_Neher) Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.bugs Subject: problem in Preferences Date: 31 May 1995 23:08:16 GMT Organization: U S WEST Marketing Resources Message-ID: <3qist0$6o6@engineer.mrg.uswest.com> Has anyone seen this problem?? It is repeatable on several machines in our office running 3.3. If we log in as root, Preferences is auto-launched. If we then double-click on Preferences to make it the active app, it crashes with no message in the log file. Double-clicking to relaunch it doesn't work -- it appears to crash almost immediately. Any feedback would be appreciated. It's a pain not to be able to tailor the environment for a root user, such as setting UNIX expert to see the whole file system. Thanks, MTN
Newsgroups: comp.sys.next.programmer From: rfenney@netcom.com (Robert J. Fenney) Subject: NeXTSTEP HTTP Server Message-ID: <rfenney-310595220208@rfenney.slip.netcom.com> Followup-To: comp.sys.next.programmer Sender: netnews@mork.netcom.com Organization: FenTek Date: Thu, 1 Jun 1995 05:01:32 GMT Does anyone know of an HTTP server and maybe a gopher server? Thanks, Robert
From: Bernhard Scholz <scholz@informatik.tu-muenchen.de> Newsgroups: comp.sys.next.software,comp.sys.next.programmer Subject: Re: Perl5.001 binaries? Date: Thu, 1 Jun 1995 13:15:20 +0200 Organization: Technische Universitaet Muenchen, Germany Distribution: world Message-ID: <Pine.HPP.3.91.950601131428.10642E-100000@hphalle4b.informatik.tu-muenchen.de> References: <3qfkvm$7co@eurybia.rz.uni-konstanz.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <3qfkvm$7co@eurybia.rz.uni-konstanz.de> I was compiling Perl5.002 using the config.sh without any problems. Try to get this updated version. Greetings, Boerny. Bernhard Scholz (IRC: Boerny) Look at http://www.leo.org/archiv/NeXT/ scholz@informatik.tu-muenchen.de, scholz@c86501.rm.op.dlr.de 'X is what it was designed for --- to open multiple terminal windows.' T.W.
From: athan@sait136.morgan.com (Andrew C Athan) Newsgroups: comp.sys.next.programmer Subject: Re: DDS2 DAT and dump/restore Date: 01 Jun 1995 17:46:30 GMT Organization: Morgan Stanley & Co., Inc. Message-ID: <ATHAN.95Jun1134630@sait136.morgan.com> References: <9505221326.AA13887@serve.network.cfc.com> <D91nto.Jx@silber.rhein-main.de> In-reply-to: richard@silber.rhein-main.de's message of Tue, 23 May 1995 18:39:24 GMT You may need to set the tape device block size. You can do this using /usr/etc/stblocksize if you have it, otherwise ... well, send me an email. aca
Date: 1 Jun 1995 18:18:48 GMT From: swong@pobox.com (Sylvia Wong) Message-ID: <cancel.3qk46u$c91@news.asiaonline.net> Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3qk46u$c91@news.asiaonline.net> Control: cancel <3qk46u$c91@news.asiaonline.net> Spam cancelled by clewis@ferret.ocunix.on.ca
From: pgeiss@giotto.iwr.uni-heidelberg.de (Peter Geissler) Newsgroups: comp.sys.next.programmer Subject: C Source Beautifier Date: 1 Jun 1995 08:59:26 GMT Organization: University of Heidelberg, Germany Distribution: world Message-ID: <3qjvhe$e5o@sun0.urz.uni-heidelberg.de> Hi everybody, I am looking for a c source code beautifier, which eg. makes keywords appear as bold, comments as italic, organizes {} in a nice way and prints a header with file name and page number on each side of the listing. Does such a thing exists and where can it be found ? Thanx in advance 4 any help Peter Geissler pgeiss@giotto.iwr.uni-heidelberg.de NEXT MAIL WELCOME
From: paradigm@fohnix.metronet.com (Marianna Vayntrub) Newsgroups: comp.sys.next.programmer Subject: HELP! any other NeXT editors? Date: 1 Jun 1995 15:56:29 -0500 Organization: Texas Metronet, Inc (login info (214/705-2901 - 817/571-0400)) Distribution: world Message-ID: <3ql9ht$cl4@fohnix.metronet.com> Now, I know how Jobs feels about hot keys and such, but are there any other editors out there for NeXT Step that feel more like the ones I'm used to in DOS. I'm particularly fond of MultiEdit. What I am looking for includes: page up and page down key support home and end key support marking lines with shift and the arrow keys insert and delete support It's not too much to ask is it? Conversely if anyone has ever sucessfully hacked up the generic editor to intercept key events and such that would also be very useful. Doesn't anyone else out there miss these keys? Regards, Paradigm Apogee Software
From: apandit@acs.uswest.com (Ajay Pandit) Newsgroups: comp.sys.next.programmer Subject: Re: error message Date: 1 Jun 1995 20:00:14 GMT Organization: US West !nterprise Networking Systems Message-ID: <3ql68e$jsj@acsnews.uswc.uswest.com> References: <3qkk5e$bg8@zip.eecs.umich.edu> In article <3qkk5e$bg8@zip.eecs.umich.edu> maklh@uranus.eecs.umich.edu (Aimee Holdwick) writes: > Jun 1 10:36:10 [676] *** Uncaught exception: *** MyNSObject > doesNotRecognizeSelector: +_canAlloc > > I am receiving this error message, but I never use "+_canAlloc" anywhere. > It doesn't exist in any of the code that I have written, nor does it > appear in any of the code that was generated for me. Whenever I use an > NSObject in Interface Builder, I end up with this error message. Does > anyone know why this is happening? > > - A. Holdwick It's a bug in NEXTSTEP 3.3 that you can't instantiate an NSObject in Interface Builder. Fortunately, there is a workaround. Add /NextDeveloper/Examples/EnterpriseObjects/RadioMatrixAssociation/NSObject- IBFixes.m in your project and then it will work. - Ajay
From: wkwong@bellman.eng.ohio-state.edu (Waihon Andrew Kwong) Newsgroups: comp.sys.next.programmer Subject: Q: Compiling 4xFAT Date: 2 Jun 1995 00:06:38 GMT Organization: The Ohio State University Distribution: usa Message-ID: <3qlkme$rtp@charm.magnus.acs.ohio-state.edu> Hi, I'm trying to compile a 4xFAT app that uses dblib, sybase, and dbkit under NS3.3. The Project manager quit (DIE) whenever it come to linking all the .o files and library......Is this a bug? I had some of my libraries compiled with my own makefile (uses libtool to get the 4xFAT) and imported to the project manager under library. Andy -- //|| // @ E-mail: wkwong@ee.eng.ohio-state.edu // ||// @ 75662.2020@compuserve.com //==||\\ @ "If you put your mind to it, you can accompish anything!" // || \\ @ "NeXTMAIL and MIME IS WELCOME!"
From: kiwi@cs.tu-berlin.de (Axel Habermann) Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.bugs Subject: Re: problem in Preferences Followup-To: comp.sys.next.software,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.bugs Date: 2 Jun 1995 06:35:14 GMT Organization: Technical University of Berlin, Germany Message-ID: <3qmbf2$ds9@news.cs.tu-berlin.de> References: <3qist0$6o6@engineer.mrg.uswest.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mark_Tyler_Neher (mneher@homer1.ive.mrg.uswest.com) wrote: : Has anyone seen this problem?? It is repeatable on several machines in : our office running 3.3. : If we log in as root, Preferences is auto-launched. If we then : double-click on Preferences to make it the active app, it crashes with no : message in the log file. Double-clicking to relaunch it doesn't work -- : it appears to crash almost immediately. Last summer I experienced this on my Pentium 66 MHz System. After installing an additional processor fan, everything was fine (This was with 3.2, but I don't think there's much difference in this respect). Sounds odd, but it's real. Hope that helps. Axel -- Axel Habermann kiwi@cs.tu-berlin.de \\|// Muellerstr. 145 kiwi@buran.fb10.tu-berlin.de )o o( D-13353 Berlin (Wedding) \ | / Fon: +49 30 45478986 (privat) 030 314 23 281 (uni) \~/
Newsgroups: comp.sys.next.software,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.bugs From: rdl@world.std.com (Robert La Ferla) Subject: Re: problem in Preferences In-Reply-To: mneher@homer1.ive.mrg.uswest.com's message of 31 May 1995 23:08:16 GMT Message-ID: <RDL.95Jun2000702@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3qist0$6o6@engineer.mrg.uswest.com> Date: Fri, 2 Jun 1995 04:07:02 GMT Do you have any custom preferences modules installed in /LocalLibrary/Preferences or /Library/Preferences? It's also possible that you have a corrupt defaults database. Preferences may be trying to read a default that it can't handle. Also, if you have a development environment installed, try running Preferences using gdb. It may help diagnose the problem. Finally, I don't understand why NeXT ships NEXTSTEP with UNIX expert turned off for root. Robert La Ferla HTI Registered NS Consultant / Developer / Trainer + 1 (617) 252-0088
From: ccwf@locke.klab.caltech.edu (Charles Fu) Newsgroups: comp.std.c++,comp.sys.next.programmer,gnu.g++.help Subject: Re: scope of names in for-init-statement Followup-To: comp.sys.next.programmer,gnu.g++.help Date: 2 Jun 1995 06:10:52 GMT Organization: California Institute of Technology, Pasadena Message-ID: <3qma1c$c6b@gap.cco.caltech.edu> References: <3q2l8k$hni@news.doit.wisc.edu> <9514916.10436@mulga.cs.mu.OZ.AU> <3qefi1$3a1@etca.etca.fr> <9515307.18691@mulga.cs.mu.oz.au> I'm somewhat reluctant to post this in comp.std.c++, but I'm doing so anyways :-) because it might be very useful for some (and have redirected further followups elsewhere). >chris@alofi.etca.fr (Christian Millour) writes: >>Any reason for not using >> >>#define for if (0) ; else for >> >>instead ? In article <9515307.18691@mulga.cs.mu.oz.au>, Fergus Henderson <fjh@munta.cs.mu.OZ.AU> wrote: >No, I think I just got up on the wrong side of the bed that day. >Your suggestion is best; unlike my suggestions, it works even with >`for' statements that have commas in them I don't know of any reason not to use this definition in standard C++ programs (and I, in fact, do so). However, if mixing C++ and Objective-C code (which, for example, some versions of gcc will let you do), you can run into problems because it allows C and C++ reserved words to be used as parts of method names. So, [object new:problem for:programmer.project()]; is valid Objective-C++ code. Fortunately, if you do use gcc, you can use its nonstandard variable argument macros instead in this case. -ccwf
From: ndawson@icarus.weber.edu (Neil Dawson) Newsgroups: comp.sys.next.programmer Subject: Need help with defaults database!!! Date: 1 Jun 1995 23:17:43 GMT Organization: University Of Utah Computer Center Distribution: world Message-ID: <3qlhqn$pmk@news.cc.utah.edu> Hello, I have written an app (my second) that uses the defaults database but when I try to launch it, it won't. I physically wrote the defaults to my database with dwrite and now it will run for me but nobody else can use it. I coded the DefaultsVector correctly: static NXDefaultsVector GraphDefaults = { {"XMax", "10"}, {"XMin", "-10"}, {"YMax", "10"}, {"YMin", "-10}, {"FColor", "1.000 0.000 0.000"}, {"GColor", "0.000 1.000 0.000"}, {"HColor", "0.000 0.000 1.000"}, {NULL, NULL}}; and registered them: NXRegisterDefaults("Graph", GraphDefaults); I thought that if NXRegisterDefaults could not find the defaults in the database that it would write them to the database and to the cache also, am I wrong or am I missing something somewhere? Please send replies to ndawson@csnext.weber.edu. Thanks in adavance. Neil
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.lang.objective-c,comp.sys.hp.hpux,comp.sys.next.programmer Subject: Test release libTL (and new DBG) Followup-To: comp.lang.objective-c Date: 02 Jun 1995 09:23:18 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Jun2112318@cobra.es.ele.tue.nl> Available as `ftp://ftp.es.ele.tue.nl/pub/tiggr/tl-0.08.1.tar.gz' is the first test release of Tiggr's Objective-C Library (in search for a better name). Included in this library is a new DBG (my Dial Back Getty for HP-UX), of which a binary distribution can be obtained as `ftp://ftp.es.ele.tue.nl/pub/tiggr/dbg-0.2-bindist-hpux9.05.tar.gz'. STATUS This is a test release of TL. It is by no means a complete library (yet). Lost of things are still missing, see the file TODO (in the TL distribution) for more information. DESCRIPTION TL is a basic Objective-C library, which happens to incorporate a Lisp interpreter, which provides a seamless integration between Objective-C and Lisp. (It is neither common lisp nor emacs lisp; it is probably best described by the name tiggr's lisp.) TL provides mark & sweep garbage collection to instances of TLObject or a subclass thereof. TL provides the following classes: The `root' object TLObject, a patch for existing root objects (like TLPatchObject), TLString (and TLMutableString), TLRange, TLDictionary plus enumerators (TLDictionaryEnumerator, TLDictionaryDictEnumerator, TLDictionaryKeyEnumerator, TLDictionaryValueEnumerator), basic streams (TLFDStream, TLFILEStream), TLSocketStream (TLInetSocketStream, TLUnixSocketStream) plus addresses (TLInetAddress, TLUnixAddress), TLStringStream (TLConstantStringStream, TLMutableStringStream), TLBase64Stream (TLBase64InputStream, TLBase64OutputStream), various other streams (TLBufferedStream, TLHTTPStream, TLSyslogStream, TLWrapStream), lisp specific classes (TLCons, TLLDelegate, TLLInvocation, TLLLambda, TLLLex, TLLStringConstant, TLLSubroutine, TLLTag, TLNil, TLSymbol, TLSymbolValue) and various others: TLMimeItem, TLNumber, TLURL and TLVector. Furthermore, it includes a host of Lisp invokable (but C written and thus also C invokable) functions. If reference counting is not provided by another library, TL provides reference counting and an NSAutoreleasePool. TL has been tested on HP9000/735 HP-UX 9.05 with the GNU runtime, and on a NeXTstation Mono Turbo NS3.3 with the NeXT runtime. TL is distributed under the GNU General Public License. TL comes WITHOUT ANY WARRANTY. See the file LICENSE in the TL distribution for details. --Tiggr <tiggr@es.ele.tue.nl>
From: mikef@sprewell.nwest.mccaw.com (Mike Faulkner) Newsgroups: comp.sys.next.programmer Subject: principalClass returns subproject's subproject Date: 30 May 1995 21:58:59 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3qg4f3$htk@nwestmail.nwest.mccaw.com> Keywords: bundle, subproject Greetings, I have a subproject (bundle) which also has a subproject. The problem is that the principalClass returned from the bundle is the sub-subproject's and not the subproject's. Can this nesting scheme be made to work or do I have to find a work-around? TIA
From: hacker@access5.digex.net (Dark Hacker) Newsgroups: comp.sys.next.programmer Subject: How to return values from runModalFor:? Date: 1 Jun 1995 10:33:29 -0400 Organization: Fortress Of Computation Message-ID: <3qkj3p$m8o@access5.digex.net> One of my coworkers has a problem... We would like to do a runModalFor: on a Panel, accumulate some values in the Panel, terminate runModalFor with stopModal:, and then return to the place where the runModalFor started. Problem is that stopModal goes back to the event loop which isn't the behavior we want because we want to process the values we accumulated after interacting with the Panel. We use stopModal: because we terminate the modal session with a cancel button from the Panel. We can't process the values from inside the modal session because the whole process returns an object which is to be processed later by a calling controller. Thanks for the attention! - Hacker -- Dark Hacker @ Black Silicon, Fortress Of Computation hacker@black-silicon.mclean.va.us "Life itself is... COMPUTATION!"
Newsgroups: comp.sys.next.programmer Subject: Summary: How does ps (process status) work on NS? Message-ID: <3qmhto$i1f@goliat.eik.bme.hu> From: pataki@next-1b.manuf.bme.hu (pataki balazs) Date: 2 Jun 1995 08:25:28 GMT Organization: Technical University of Budapest Hi, first I would like to thank to all who responded. Here is the summary of tips and a bit of code I got so far. From the original post: [...] > to be more precise my question is: How does ps know what command a > process was started with? [...] Yves Arrouye (Yves.Arrouye@imag.fr) wrote: Yves> In nearly all Unixes (Linux is an exception because of the /proc Yves> pseudo fs), ps maps the kernel memory and reads info from there... Yves> Not the kind of portable program one can recompile on any system ;-) Yves> I think it does that on NS, too (because of the BSD heritage). Felix Rauch, (felix@nice.ch) wrote: Felix> I don't know how to do this myself, but you could look at Felix> 'Informer.app' which does some things that 'ps' does (I think it Felix> gives even more information about processes, tasks and other Felix> resources on your system). Its source-code could help you... Glen Biagioni (glen@prosoft.com) Glen> My impression is that ps knows about the organization of kernel data Glen> structures and use /dev/kmem to get at them. I wish UNIX had a Glen> standard API defined to get at all interesting kernel information. I took a look at the source of 'Informer.app' as Felix advised and found the code below which reads the process table from the kernel memory using `/dev/kmem'. To access `/dev/kmem' you must have extra (root) privilege. <--------- Code starts here ---------> #import <stdio.h> #import <sys/user.h> #import <nlist.h> #import <sys/proc.h> #define VMUNIX "/mach" #define KMEM "/dev/kmem" //////////////////////////////////////////////////////////////// // Get a value out of kernel memory. // offset is the byte offset into the kernel, // ptr points to a buffer into which the value is put, // size is the size of the buffer (and of the object to get). static void getkval(int kfile, unsigned long offset, int size, void *ptr) { if (lseek(kfile, (long)offset, 0) == -1) { fprintf(stderr, "Processes : getkval : lseek error for %x\n", offset); exit(1); } if (read(kfile, (char *)ptr, size) == -1) { fprintf(stderr, "Processes : getkval : read error at %x\n", offset); exit(1); } } //////////////////////////////////////////////////////////////// #define BUFFER_SIZE (16*9) main() { int kmem_file; struct nlist corelist[2]; struct proc *proc; struct proc tmpProcess; unsigned char buffer[BUFFER_SIZE]; int i, j; /////// Get list of processes if ((kmem_file = open(KMEM, 0)) < 0) { fprintf(stderr, "Processes : error opening KMEM.\n"); exit(1); } corelist[0].n_un.n_name = "_allproc"; corelist[1].n_un.n_name = 0; nlist(VMUNIX, corelist); if ((corelist[0].n_type == 0) && (corelist[0].n_value == 0)) { fprintf(stderr, "Processes : error in nlist().\n"); exit(1); } getkval(kmem_file, corelist[0].n_value, sizeof(struct proc *), &proc); getkval(kmem_file, (int)proc, sizeof(struct proc), &tmpProcess); for (;;) { // This assumes there is at least one process (!) getkval(kmem_file, (int)tmpProcess.task, BUFFER_SIZE, &buffer); for (i = 0; i < BUFFER_SIZE; i += 16) { printf("%4.4d : ", i); for (j = 0; j < 16; j++) printf("%2.2x ", buffer[i + j]); printf("\n"); } printf("----------------------------------------\n"); if ( ! tmpProcess.p_nxt) break; getkval(kmem_file, (int)tmpProcess.p_nxt, sizeof(struct proc), &tmpProcess); } if (close(kmem_file) < 0) fprintf(stderr, "Processes : error closing kmem_file.\n"); } <--------- End of code ---------> Bye, Balazs ------ pataki@next-1b.manuf.bme.hu ------
From: etienne@venus.univ-lr.fr (Etienne Gourdon) Newsgroups: comp.sys.next.programmer Subject: setRecordLimit (DBKit) => ? (EOF) Date: 1 Jun 1995 14:01:55 GMT Organization: Universite de La Rochelle Message-ID: <3qkh8j$6pv@hpuniv.univ-lr.fr> Keywords: EOF DBKIT setRecordLimit I just want to know if there is a equivalent method of setrecordLimit: (unsigned int) from DBRecordList class with EOF adaptor (I guest there is but with which class and what's name ? ). Thanks... --------------------------------------------------------------- etienne@cri.univ-lr.fr (NeXT/MIME-mail are welcome !) ---------------------------------------------------------------
From: maklh@uranus.eecs.umich.edu (Aimee Holdwick) Newsgroups: comp.sys.next.programmer Subject: Re: NeXTSTEP HTTP Server Date: 1 Jun 1995 14:44:04 GMT Organization: University of Michigan EECS Dept. Message-ID: <3qkjnk$b7r@zip.eecs.umich.edu> References: <rfenney-310595220208@rfenney.slip.netcom.com> In article <rfenney-310595220208@rfenney.slip.netcom.com> rfenney@netcom.com (Robert J. Fenney) writes: > Does anyone know of an HTTP server and maybe a gopher server? > > Thanks, > > Robert The standard HTTP servers available from NCSA and CERN compile and work fine on NeXTs.
From: Paul Lynch <Paul_Lynch@plsys.com> Newsgroups: comp.sys.next.programmer Subject: Re: Q: Compiling 4xFAT Date: 2 Jun 1995 07:02:44 +0100 Organization: P & L Systems Sender: news@news.demon.co.uk Distribution: usa Message-ID: <1995Jun2.052742.27562@seer.demon.co.uk> References: <3qlkme$rtp@charm.magnus.acs.ohio-state.edu> In article <3qlkme$rtp@charm.magnus.acs.ohio-state.edu> wkwong@bellman.eng.ohio-state.edu (Waihon Andrew Kwong) writes: > I'm trying to compile a 4xFAT app that uses dblib, sybase, and dbkit under > NS3.3. The Project manager quit (DIE) whenever it come to linking all the > .o files and library......Is this a bug? Yes, PB often quits if a library or sysbols are missing. Paul -- Paul Lynch (NeXTmail) paul@plsys.com Tel: (01494)671501 9 Stable Lane, Seer Green, Fax: (01494)680228 Bucks, HP9 2YT, UK
From: maklh@uranus.eecs.umich.edu (Aimee Holdwick) Newsgroups: comp.sys.next.programmer Subject: error message Date: 1 Jun 1995 14:51:26 GMT Organization: University of Michigan EECS Dept. Message-ID: <3qkk5e$bg8@zip.eecs.umich.edu> Jun 1 10:36:10 [676] *** Uncaught exception: *** MyNSObject doesNotRecognizeSelector: +_canAlloc I am receiving this error message, but I never use "+_canAlloc" anywhere. It doesn't exist in any of the code that I have written, nor does it appear in any of the code that was generated for me. Whenever I use an NSObject in Interface Builder, I end up with this error message. Does anyone know why this is happening? - A. Holdwick
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <@mail.uunet.ca,@beltrix:mark@oa.guild.org> Message-ID: <m0sH83H-000aooC@oa.guild.org> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Mark Onyschuk <mark@oa.guild.org> Date: Thu, 1 Jun 1995 07:04:34 -0400 Subject: using IP multicast for broadcast of data NS 3.3 is said to support IP multicasting. Knowing this, I'm curious whether this is a reasonable alternative to Distributed Objects as a mechanism for transmitting large volumes of data to a large number of hosts (e.g. security quotations). The overhead of packaging and broadcasting point-to-point makes DO a bit heavy to use for some time-critical applications. I'll summarize responses. Best regards, Mark Onyschuk (ps. please cc: replies to marko@wgatg.com) --- M. Onyschuk and Associates Inc. 15 LaRose Ave, Ste 702 NEXTSTEP Software Development Etobicoke, ON, M9P 1A7 (416)241-1652
From: falkman@hegel2.cs.chalmers.se.u.cs.chalmers.se (G|ran Falkman) Newsgroups: comp.sys.next.bugs,comp.sys.next.programmer Subject: Strange PB behavior Date: 2 Jun 1995 11:13:34 GMT Organization: Chalmers University of Technology Message-ID: <3qmrou$o9b@nyheter.chalmers.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, Since I upgraded my HP 712/60 to NS 3.3 PB behaves very strange: If I try to create a new application with the default name "PB.project" PB loops for a while and then dies. The result is not a new project but just the "English.lproj" directory containing a nib-file named "T.nib"!?! I doesn't matter if I edit the textfield containing the project name (inserting some characters and then removing them, copy the name then cut and then paste it back, etc.), only when I actually change the name to something else I get my project. What is this? Does PB has something against the name PB.project? Anyone else having the same problem? Göran Falkman Göran Falkman Email: falkman@cs.chalmers.se Department of Computing Science Tel: + 46 31 772 5412 Chalmers University of Technology Fax: + 46 31 16 56 55 S-412 96 Göteborg, Sweden
Newsgroups: comp.sys.next.programmer From: gdkuch@neumann.uwaterloo.ca (Jerry Kuch) Subject: Generating Random Numbers Message-ID: <D9I5yE.3B8@undergrad.math.uwaterloo.ca> Sender: news@undergrad.math.uwaterloo.ca (news spool owner) Organization: University of Waterloo Date: Thu, 1 Jun 1995 16:32:38 GMT I'm writing some simulation code under NEXTSTEP 3.2, running on white hardware (an Intel DX4/100). I need a decent source of random numbers. This doesn't have to be the world's best source, just something that's not going to do anything obviously pathetic. For my first draft I used just rand and srand in a way something like the following: - (double)tcRND { struct timeval tp; struct timezone tzp; int RandInt; double NormedRandVal; /** Want to pick a random number and scale it into [0,1] **/ gettimeofday(&tp,&tzp); /* Get system time */ srand(tp.tv_usec); /* Use usec part to seed generator */ RandInt = rand(); /* Generate int in [0,2**31 - 1] */ /* Normalize the produced random value into [0.0,1.0] */ NormedRandVal = ((double)RandInt)/((double)MAXRAND); return NormedRandVal; } When I look at the stuff coming back from this, it seems to have a nice mean value of around .50, as I'd want for a uniform distribution. I haven't done any detailed statistical analysis on what's come back, so it may be lumpy in undesirable ways. My question is... is this a reasonable way of doing things? The microseconds part of the result returned by gettimeofday has a system-dependent granularity. Does anybody have any experience as to whether or not the granularity will be sufficiently poor on my hardware that it will come back and bite me later? In the meantime, it's little enough work to rewrite this using random and srandom, and they appear to be considerably better generators... still the question of whether or not seeding with the microseconds part of the clock is an obvious travesty makes me wonder. I'll probably end up writing some test code to machinegun sample it and then see whether there's some obviously repetitive artifact introduced by the resolution of the clock. -- Jerry Kuch, EMail: gdkuch@neumann.uwaterloo.ca, NeXTMAIL acceptable. IMPORTANT NEWS: As reported in VARIETY, GAMERA - DAIKAIJU KUCHU KESSEN brought in $751,805 in thirteen theaters in Tokyo during its second week of release. This brings the film's two-week total to $1,633,888.
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: HELP! any other NeXT editors? In-Reply-To: paradigm@fohnix.metronet.com's message of 1 Jun 1995 15:56:29 -0500 Message-ID: <RDL.95Jun2131808@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3ql9ht$cl4@fohnix.metronet.com> Date: Fri, 2 Jun 1995 17:18:08 GMT There has been a recent flood of non-programming related posts to this group. I feel compelled to suggest that posts that do not pertain to "programming" be posted to another group such as "comp.sys.next.software", "comp.sys.next.hardware", "comp.sys.next.sysadmin". If you can't categorize it, post it to "comp.sys.next.misc" Robert
From: Jeff Franco <jeff_franco@notes.pw.com> Newsgroups: comp.sys.next.programmer Subject: Help, need graphing pallet/app/object Date: 2 Jun 1995 13:36:52 GMT Organization: BDM International, Inc. Message-ID: <3qn45k$fke@news.bdm.com> I need an object/pallet/app that can accept data and generate spreadsheet type graphs. I haven't been able to find anything yet. Parasheet won't work, because there's no API that will accept my data and make a graph on my app. I imagine the financial people have had to do this same thing in their apps. I would appreciate any help or direction in the matter. Thanks, Jeff Franco jeff_franco@notes.pw.com *
Newsgroups: comp.sys.next.programmer From: Howland_Royce@pcp.ca (Royce Howland) Subject: Re: Does NXTableView allow custom formatter with static rows and columns? Message-ID: <1995Jun1.145926.8972@pcp.ca> Sender: news@pcp.ca Organization: PanCanadian Petroleum Ltd. References: <D9FBn3.1JJ@genoa.com> Date: Thu, 1 Jun 95 14:59:26 GMT In article <D9FBn3.1JJ@genoa.com> alex@genoa.com (Alex Blakemore) writes: > > I've been trying to use a NXTableView with static rows, static columns and a > custom formatter to no avail. (The tableview is also editable) > > The components work in isolation, but not together. The tableview's vectors > do point to the custom formatter, but the tableview ignores the custom > formatter and uses a default one. > > Does NXTableView support custom formatters when both rows and columns are > static? NXTableView does not support use of custom formatters when both rows and columns are static. Its behavior in this situation is exactly as you have observed: the table view just uses a default internal formatter. Fortunately, you can get the behavior you want fairly easily by using a category on NXTableView. (Or you could subclass, but subclassing NXTableView is normally difficult and painful.) Either way, implement the method -formatterAt:(unsigned int)row :(unsigned int)column to return the formatter instance you wish to use for the given row/column coordinates passed in. -- Royce Howland, Object Systems Group howlandr@cadvision.com (home, NeXT mail OK) Howland_Royce@pcp.ca (PanCanadian Petroleum, NeXT & MIME mail OK) I speak, but not necessarily for OSG or PCP.
From: dstrout@clark.net (Dave Strout) Newsgroups: comp.sys.next.programmer Subject: Re: C Source Beautifier Date: 2 Jun 1995 17:13:38 GMT Organization: Clark Internet Services, Inc., Ellicott City, MD USA Distribution: world Message-ID: <3qngs2$ps@clarknet.clark.net> References: <3qjvhe$e5o@sun0.urz.uni-heidelberg.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In a terminal, type 'man vgrind' without the quotes. dave. Peter Geissler (pgeiss@giotto.iwr.uni-heidelberg.de) wrote: : Hi everybody, : I am looking for a c source code beautifier, : which eg. makes keywords appear as bold, : comments as italic, organizes {} in : a nice way and prints a header with file : name and page number on each side of the : listing. : Does such a thing exists and where can it : be found ? : Thanx in advance 4 any help : Peter Geissler : pgeiss@giotto.iwr.uni-heidelberg.de : NEXT MAIL WELCOME
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: Perl5.001 binaries? Date: 1 Jun 1995 18:10:30 GMT Organization: University of Heidelberg, Germany Distribution: world Message-ID: <3qkvqm$s67@sun0.urz.uni-heidelberg.de> References: <3qfkvm$7co@eurybia.rz.uni-konstanz.de> In article <3qfkvm$7co@eurybia.rz.uni-konstanz.de> Erland.Wittkoetter@uni-konstanz.de (Erland Wittkoetter) writes: > Does anyone know, where I get Perl5.001 binaries for the NeXTstep 3.3 ftp://dtp.nmr.embl-heidelberg.de/pub/next/Unix/Scripts/perl* -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
From: jq@phcs.phcs.com (James E. Quick) Newsgroups: comp.sys.next.programmer Subject: Re: 680X0 assembler Date: 26 May 1995 07:43:46 -0400 Organization: PHCS Message-ID: <3q4eti$3s8@papoose.quick.com> References: <D94BHz.DrI@cc.umontreal.ca> In article <D94BHz.DrI@cc.umontreal.ca>, Dalpe Nathalie <dalpen@JSP.UMontreal.CA> wrote: >I'm planning to buy a Black NeXT soon to do a little programing. > >My question is : is it possible to write my own procedures in assembler and >link them in my 'C' program. I know this will not be portable to other hardware >but I like to program in 680X0 !! :) I can't imagine why you wish to do so, but you can. There is on-line documentation describing the syntax used by as(1) for each CPU family. If you plan on writing large projects in assembler, additional help is available - and your medical insurance might help defray the cost 8^) -- ___ ___ | James E. Quick jq@phcs.com / / / | Private HealthCare Systems NeXTMail O.K. \_/ (_\/ | Systems Integration Group (617) 895-3343 ) | - My other car has a mouse.
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <stes@ruca.ua.ac.be> Message-ID: <199506020804.BAA12430@netcomsv.netcom.com> Date: Fri, 2 Jun 95 10:04:18 +0200 From: David Stes <stes@ruca.ua.ac.be> Subject: Objects Computer Algebra (Beta) C O M P U T E R A L G E B R A K I T Objects for Computer Algebra Contact: David Stes Computer Algebra Objects Hoge Meerheuvel 5 B-2960 Brecht - Belgium e-mail : stes@maze.ruca.ua.ac.be PRE-RELEASE AVAILABLE The Computer Algebra Kit is a comprehensive collection of Objective C objects for exact integer arithmetic, polynomial arithmetic and for computing with matrices of polynomials. There's a pre-release package of the Computer Algebra Kit available right now for NEXTSTEP 3.x (Developer Version) for NeXT computers or Intel processors. We're looking for people that want to volunteer to act as beta-tester of the Computer Algebra Kit. We are interested to hear from Objective C programmers, working either with NeXT's or Stepstone's implementation of Objective C. Note that we're providing you with a pre-release for testing and development purposes; please describe your project and explain how Computer Algebra Kit objects can help you in developing your software. For more information on the Computer Algebra Kit, look on the World Wide Web server of the Foundation Computer Algebra Netherlands at "Computer Algebra Kit" http://www.can.nl under the section "What's new this month". PRODUCT DESCRIPTION The Computer Algebra Kit consists of 14 objects. Objects have easy-to-use interfaces, similar to Smalltalk class libraries, without the performance penalty of that language, because objects are implemented in C. The CA Integer object of the Computer Algebra Kit makes it easy for you to add efficient arbitrary-precision integer arithmetic to your own program. It will allow you to perform the usual arithmetical operations, such as adding, multiplying and dividing integers or computing greatest common divisors and floating-point approximations. The CA Polynomial object of the Computer Algebra Kit bundles dozens of efficient internal representations of polynomials into a single, comprehensive object for polynomial arithmetic. The CA Polynomial interface permits manipulation of the polynomial as a sum of either CA Term or CA Monomial objects, and allows you to perform such structural and arithmetical operations, as expanding out powers of polynomials, or as computing the greatest common divisor of pairs of polynomials. With the Computer Algebra Kit's CA Matrix and associated CA Vector object, you will be able to work with matrices of integers, fractions, polynomials etc. The CA Matrix interface permits you to perform structural operations, such as adding and removing rows or columns to the matrix, computing the transpose of the matrix, or to perform arithmetical operations, such as computing the determinant or inverse of the matrix. -=-
From: Greg_Anderson@afs.com (Gregory H. Anderson) Newsgroups: comp.sys.next.programmer Subject: Re: HELP! any other NeXT editors? Date: 2 Jun 1995 19:58:10 GMT Organization: Anderson Financial Systems Inc. Message-ID: <3qnqgi$548@shelob.afs.com> References: <RDL.95Jun2131808@world.std.com> Robert La Ferla writes > There has been a recent flood of non-programming related posts to this > group. I feel compelled to suggest that posts that do not pertain to > programming be posted to another group such as "comp.sys.next.software", > "comp.sys.next.hardware", "comp.sys.next.sysadmin". If you can't > categorize it, post it to "comp.sys.next.misc" I just scanned the headlines in our spool, and I didn't see many off- topic posts in here. I would say that a request for an "editor," as compared to a "word processor," most likely is relevant to programmers. At least that's how I took it. I wish we had time to make an "editor" version of WriteUp, because as a programmer, I miss all the stuff Marianna was talking about in Edit.app, too. My religion forbids me to use Emacs, so that is not an option... Are you sure you're not thinking of c.s.n.advocacy, Robert? 8^) In that group, "flood" would not be a strong enough word to describe the recent s/n ratio. -- Gregory H. Anderson | "Honey, there're few programming Gaffer/Best Boy/Key Grip | problems that can't be solved Anderson Financial Systems | with duct tape." -- 'Father' Duke greg@afs.com (NeXTmail OK) | (paraphrased), Doonesbury, 2/17/95
From: clloyd@sierra.net (Charles C. Lloyd) Newsgroups: comp.sys.next.programmer Subject: ThreadKit? Date: 3 Jun 1995 07:22:53 GMT Organization: Sierra-Net Distribution: world Message-ID: <3qp2kd$sqo@jobes.sierra.net> I have a real old copy of the ThreadKit (v0.92) and have been unable to find a more recent version. Did this die on the vine? Is there something else which accomplishes the same thing? Charles. --- Charles Lloyd clloyd@sierra.net GiantLeap Software PO BOX 8734 (702) 831-4630 Incline Village, NV 89452
From: Christopher_Lane@Med.Stanford.EDU Newsgroups: comp.sys.next.programmer Subject: Re: C Source Beautifier Date: 2 Jun 1995 21:04:17 GMT Organization: Stanford University Distribution: world Message-ID: <3qnuch$com@nntp.Stanford.EDU> References: <3qjvhe$e5o@sun0.urz.uni-heidelberg.de> > I am looking for a c source code beautifier, which eg. makes keywords > appear as bold, comments as italic, organizes {} in a nice way and > prints a header with file name and page number on each side of the > listing. I wrote short descriptions of several ways to beautify C code for our local NeXT programmers which you can find on: http://www-camis.stanford.edu/people/lane/tips/0058.html http://www-camis.stanford.edu/people/lane/tips/0061.html These two messages briefly discuss 'vgrind', 'indent', RTF source code & {ansic,c++,krc,objc}2latex, plus a little about using tabs and spaces in C code that you want to beautify. - Christopher
From: Paul Lynch <Paul_Lynch@plsys.com> Newsgroups: comp.sys.next.programmer,comp.sys.next.software Subject: Re: Help, need graphing pallet/app/object Followup-To: comp.sys.next.software Date: 3 Jun 1995 09:19:00 +0100 Organization: P & L Systems Sender: news@news.demon.co.uk Message-ID: <1995Jun3.071801.565@seer.demon.co.uk> References: <3qn45k$fke@news.bdm.com> In article <3qn45k$fke@news.bdm.com> Jeff Franco <jeff_franco@notes.pw.com> writes: > I need an object/pallet/app that can accept data and generate spreadsheet > type graphs. I haven't been able to find anything yet. Parasheet won't > work, because there's no API that will accept my data and make a graph > on my app. I imagine the financial people have had to do this same thing > in their apps. I would appreciate any help or direction in the matter. Off hand, I can suggest Mesa and ChartSmith. Both have APIs that can produce graphs from table data. Paul -- Paul Lynch (NeXTmail) paul@plsys.com Tel: (01494)671501 9 Stable Lane, Seer Green, Fax: (01494)680228 Bucks, HP9 2YT, UK
From: db86@hrz.th-darmstadt.de (Caroline Roehr) Newsgroups: comp.sys.next.programmer Subject: uncaught exceptions with DO Date: 4 Jun 1995 15:04:55 GMT Organization: Technische Hochschule Darmstadt Message-ID: <3qsi2n$t7h@rs18.hrz.th-darmstadt.de> when dealing with distributed objects I often get an uncaught exception 0x110nn although I have done an registerForInvalidationNotification. But if the server process dies by segmentation fault, kill -9 or something like that, senderIsInvalid is never called. I have tried to install an MACH exception handler and handöe these exception myself, but these exceptiion remain uncaught. Is there another way to dtermine whether a proxy object is accessible or not? What else can I do to prevent my program to crash on an uncaught exception? Sonja Schellenberg, Schellenberg@rz.fh-frankfurt.d400.de
Newsgroups: comp.sys.next.programmer From: belka@il.us.swissbank.com (Andy Belk) Subject: Big Cursor Message-ID: <1995Jun1.214803.403@il.us.swissbank.com> Keywords: big large cursor NXCursor Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division Date: Thu, 1 Jun 1995 21:48:03 GMT Hi, Anyone know how to make the cursor large (for demos, etc.) ? NXCursors seem to be restricted to 16x16 pixels. The nifty coloured cursor trick (in PostScript) also seems to have this restriction. Any help much appreciated. Thanks, Andy Belk SBC Chicago
From: ehutch@hypnos.norden1.com (E. Hutchinson) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP/Developer/Career Position/ILL Date: 3 Jun 1995 15:12:58 GMT Organization: Norden 1 Communications Message-ID: <3qpu5q$67@news1.channel1.com> Position-----------Programmer/Analyst/Developer Platform------------NEXTSTEP Language-------------Objective C Type of position------Career position Opportunity------------Outstanding Benefits----------------Excellent Area---------------------ILL To be considered----------Fax resume or mail a hard copy resume. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: cedman@freedom.princeton.edu (Carl Edman) Newsgroups: comp.sys.next.programmer Subject: Re: HELP! any other NeXT editors? Date: 2 Jun 1995 15:53:06 GMT Organization: Princeton University Message-ID: <3qnc52$6d0@cnn.Princeton.EDU> References: <3ql9ht$cl4@fohnix.metronet.com> In article <3ql9ht$cl4@fohnix.metronet.com>, Marianna Vayntrub <paradigm@fohnix.metronet.com> wrote: > Now, I know how Jobs feels about hot keys and such, but are there any > other editors out there for NeXT Step that feel more like the ones I'm > used to in DOS. I'm particularly fond of MultiEdit. > > What I am looking for includes: > > page up and page down key support > home and end key support > marking lines with shift and the arrow keys > insert and delete support Needless to say all of that is either default or can be done with Emacs for NS. In particular, something like this in your ~/.emacs should work if you use the default mapping. If you use the NeXTfoo keyboard mappings the system steals these keys and the editor never sees them: (global-set-key [kp-home] 'beginning-of-buffer) (global-set-key [kp-end] 'end-of-buffer) (global-set-key [kp-prior] 'scroll-down) (global-set-key [kp-next] 'scroll-up) You can also global-set-key kp-insert and kp-delete, but I'm not quite sure what you'd want them to do. In any case, there certainly is a function for it. You can get the various package in the US from these URLs: ftp://ftp.cs.orst.edu/software/NeXT/binaries/editors/Emacs_for_NeXTstep_4.1.README ftp://ftp.cs.orst.edu/software/NeXT/binaries/editors/Emacs_for_NeXTstep_4.1.pkg.NIHS.b.tar.gz ftp://ftp.cs.orst.edu/software/NeXT/sources/editors/Emacs_for_NeXTstep_4.1.src.NIHS.s.tar.gz In Europe you probably want to use these: ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/Unix/editor/Emacs_for_NeXTstep.4.1.README ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/Unix/editor/Emacs_for_NeXTstep.4.1.s.tar.gz ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/Unix/editor/Emacs_for_NeXTstep.4.1.NIHS.b.tar.gz Note that both the binary and source release are over 7.5 MBytes in size. If you are unsure which to get, read the readme file first. Carl Edman
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: ThreadKit? Message-ID: <D9Lp3B.6Go@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems References: <3qp2kd$sqo@jobes.sierra.net> Date: Sat, 3 Jun 1995 14:18:46 GMT Charles C. Lloyd writes > I have a real old copy of the ThreadKit (v0.92) and have been > unable to find a more recent version. Did this die on the vine? > Is there something else which accomplishes the same thing? In the latest version of NSFoundation, NeXT added a few more of the OpenStep classes (NSThread, NSLock and its subclasses). I haven't used them yet, and they don't appear to give you all the multithread support of, say, Ada95. But you can create threads and simple low level locks. Isn't it nice to know something got better in NS Developer 3.3 ? (The library also seems to contain NSSet, but the header files aren't there yet) -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
From: Kevin Hiebert <khiebert@wimsey.com> Newsgroups: comp.sys.next.programmer Subject: CustomView supporting VT100? Followup-To: comp.sys.next.programmer Date: 5 Jun 1995 00:11:13 GMT Organization: Online at Wimsey Information Services Distribution: world Message-ID: <3qti31$dab@wolfe.wimsey.com> Summary: Wanted: a custom view object supporting VT100 Keywords: VT100 NEXTSTEP IB PB Programming I am trying to write a front-end for a UNIX command line utility which outputs VT100-style control characters. Terminal.app knows how display them, but the source code for that isn't public domain, is it? I am using the Subprocess example in /NextDeveloper but its view is too simple. Does anyone have a CustomView object that "just works"? Reply or followup if you have a chance. Thanks hugely. --- Kevin Hiebert <khiebert@wimsey.com> http://www.wimsey.com/~khiebert/ * MIME/NeXTmail welcome * PGP public key available for secure messages *
From: clloyd@sierra.net (Charles C. Lloyd) Newsgroups: comp.sys.next.programmer Subject: Viewing globals from Edit/gdb browser Date: 4 Jun 1995 07:03:22 GMT Organization: Sierra-Net Distribution: world Message-ID: <3qrlrq$9bp@jobes.sierra.net> Is there any clever/hidden trick for looking at global variables from the graphical gdb browser in Edit.app? (Say I wanted to to scope out the state of NXApp.) Charles. --- Charles Lloyd clloyd@sierra.net GiantLeap Software PO BOX 8734 (702) 831-4630 Incline Village, NV 89452
From: idpt820@tpts1.seed.net.tw (JesseH) Newsgroups: comp.sys.next.programmer Subject: Satan Date: 5 Jun 1995 12:49:52 GMT Organization: Div.Cardiology, National Defense Medical Center Message-ID: <3quuhg$t4o@aladdin.iii.org.tw> Dear Next Users, I have get the latest version of perl5 for intel and motorola and install it successfully on my intel platform successfully. But I encountered difficulty in porting satan to next according to the receipe of nextanswer. After step-by-step configuration as stated, I get could find /usr/local/perl on running reconfig. Could anyone tell how to solve thid problem? Thank you in advance. Simon Chih-L Han MB idpt820@tpts1.seed.net.tw Div. of Cardiovascular Medicine National Defense Medical Center What will be the future????????????????????????????????????????????????????? ????????????????????The future is now....................................
From: wfc@cl.cam.ac.uk (W F Clocksin) Newsgroups: comp.sys.next.programmer Subject: Multiple views of same document? Date: 5 Jun 1995 16:03:23 GMT Organization: University of Cambridge, England Message-ID: <3qv9sb$lg3@lyra.csx.cam.ac.uk> Has anybody implemented a way of having multiple window views of the same document (so one can be at 100% mag while the other is at 400% say), making sure that changes in one window are made in the other?
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs,comp.soft-sys.nextstep Subject: NEXTSTEP Resources on the Internet Date: 5 Jun 1995 04:15:15 GMT Organization: Digital Fix Development Distribution: inet Message-ID: <3qu0cj$sjl@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment - Status reports on GNUStep, a freely-available implementation of OpenStep now being developed NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff ftp://ftp.informatik.uni-muenchen.de: (Peanuts) Located in Germany. ftp://ftp.dn.net/pub/next Peanuts mirror in the US ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.nmr.embl-heidelberg.de/pub/next/ eduStep ftp://ftp.next.com: See below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
From: ivor@cs.mcgill.ca (Ivo ROTHSCHILD) Newsgroups: comp.sys.next.programmer Subject: Linking to a COFF lib Date: 5 Jun 1995 15:39:44 GMT Organization: Hutchison Avenue Software Corp. Message-ID: <3qv8g0$ioq@sifon.cc.mcgill.ca> Does anyone know how I can link a COFF library into my NEXTSTEP program? Anyone have any COFF-MachO conversion programs? -ivo ivo@hasc.ca
From: pascal@wsc.com () Newsgroups: comp.sys.next.programmer Subject: perform:with:afterDelay in Foundation kit? Date: 5 Jun 1995 18:35:42 GMT Organization: WSC Investment Services, Inc. Distribution: world Message-ID: <3qvipu$22s@cerberus.wsc.com> Is there a foundation kit equivalent for Object's - perform:with:afterDelay:cancelPrevious: method? Thanks, - Pascal
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: uncaught exceptions with DO Date: 05 Jun 1995 11:10:52 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Jun5131052@cobra.es.ele.tue.nl> References: <3qsi2n$t7h@rs18.hrz.th-darmstadt.de> In-reply-to: db86@hrz.th-darmstadt.de's message of 4 Jun 1995 15:04:55 GMT In article <3qsi2n$t7h@rs18.hrz.th-darmstadt.de> db86@hrz.th-darmstadt.de (Caroline Roehr) writes: Is there another way to dtermine whether a proxy object is accessible or not? What else can I do to prevent my program to crash on an uncaught exception? Register for proxy death notifies you of a proxy's death. This is desirable and you should do this for every proxy. BUT, since the proxy can die while you're trying to invoke one of its methods, you should put an NS_HANDLER around every proxy method invocation, unless you can cope with the exception at that point in your program. Of course, you should always have a top level exception handler, to avoid the uncaught exception warnings to file descriptor 2. --Tiggr
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: Avoiding a FileViewer Date: 5 Jun 1995 13:48:02 GMT Organization: The University of York, UK Distribution: world Message-ID: <3qv1ui$h12@mailer.york.ac.uk> References: <3ptegl$hv1@snaps.dannug.dk> <3ptjfu$ls1@cnn.Princeton.EDU> Carl Edman (cedman@freedom.princeton.edu) wrote: > I'm not quite sure what you want, but this undocumented dwrite avoids > the opening of a file viewer on Workspace startup. > dwrite Workspace MainFileViewer No but you must still start up the file viewer in order to log out, as there is no other method of logging out. this rather gets around the whole object of the exercise! cheers, rog.
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: DO problem Date: 5 Jun 1995 20:07:58 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3qvo6u$241@snaps.dannug.dk> Hi there, I have just switched to using 3.3 Dev. and a pot. problem has surfaced: When a client sends a message to a server the following message appear in e.g. the debug window: received reply message from port 5888 via dps Anyone aware of what the above means? Geert
From: jq@phcs.phcs.com (James E. Quick) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3qvq9a$7ff@papoose.quick.com> Control: cancel <3qvq9a$7ff@papoose.quick.com> Date: 6 Jun 1995 07:26:00 -0400 Organization: Private Healthcare Systems, Inc Message-ID: <3r1e0b$8e5@papoose.quick.com> <3qvq9a$7ff@papoose.quick.com> was cancelled from within trn. -- ___ ___ | James E. Quick jq@phcs.com / / / | Private HealthCare Systems NeXTMail O.K. \_/ (_\/ | Systems Integration Group (617) 895-3343 ) | - My other car has a mouse.
From: jq@phcs.phcs.com (James E. Quick) Newsgroups: comp.sys.next.programmer Subject: Re: Avoiding a FileViewer Date: 6 Jun 1995 07:27:21 -0400 Organization: PHCS Message-ID: <3r1e2p$8fe@papoose.quick.com> References: <3ptegl$hv1@snaps.dannug.dk> <3ptjfu$ls1@cnn.Princeton.EDU> <3qv1ui$h12@mailer.york.ac.uk> <3qvq9a$7ff@papoose.quick.com> In article <3qvq9a$7ff@papoose.quick.com>, James E. Quick <jq@phcs.phcs.com> wrote: In article <3qv1ui$h12@mailer.york.ac.uk>, Roger Peppe <rog@talisker.ohm.york.ac.uk> wrote: >Carl Edman (cedman@freedom.princeton.edu) wrote: >> I'm not quite sure what you want, but this undocumented dwrite avoids >> the opening of a file viewer on Workspace startup. >> dwrite Workspace MainFileViewer No > >but you must still start up the file viewer in order to log out, >as there is no other method of logging out. > >this rather gets around the whole object of the exercise! No, you do not have to open the file viewer to log out. If you disable the file viewer using Carl's approach, or simply do not select 'Start up at Login' in the Dock preferences of Workspace, you can still log out without seeing the viewer. If you Alt-Command-Double-Click on the workspace Icon you can invoke the logout panel without starting up the rest of the WorkSpace. -- ___ ___ | James E. Quick jq@phcs.com / / / | Private HealthCare Systems NeXTMail O.K. \_/ (_\/ | Systems Integration Group (617) 895-3343 ) | - My other car has a mouse. -- ___ ___ | James E. Quick jq@phcs.com / / / | Private HealthCare Systems NeXTMail O.K. \_/ (_\/ | Systems Integration Group (617) 895-3343 ) | - My other car has a mouse.
From: axel@tumbolia.ppp.informatik.uni-muenchen.de (Axel Seibert) Newsgroups: comp.sys.next.programmer Subject: Re: Avoiding a FileViewer Date: 7 Jun 1995 08:51:01 +0200 Organization: my private site Distribution: world Message-ID: <AXEL.95Jun7085100@tumbolia.ppp.informatik.uni-muenchen.de> References: <3ptegl$hv1@snaps.dannug.dk> <3ptjfu$ls1@cnn.Princeton.EDU> <3qv1ui$h12@mailer.york.ac.uk> In-reply-to: rog@talisker.ohm.york.ac.uk's message of 5 Jun 1995 13:48:02 GMT >>>>> "Roger" == Roger Peppe <rog@talisker.ohm.york.ac.uk> writes: Roger> Carl Edman (cedman@freedom.princeton.edu) wrote: >> I'm not quite sure what you want, but this undocumented dwrite >> avoids the opening of a file viewer on Workspace startup. dwrite >> Workspace MainFileViewer No Roger> but you must still start up the file viewer in order to log Roger> out, as there is no other method of logging out. Holding the Alt & Command-Keys while double-clicking on the NeXT-icon will do the same (only much faster). Axel -- aseibert@tumbolia.ppp.informatik.uni-muenchen.de (NeXTmail welcome) seiberta@informatik.tu-muenchen.de (please no NeXTmail here!) You are young only once, but you can stay immature indefinitely.
Newsgroups: comp.sys.next.programmer From: david@zion.com(David J. Ferrero) Subject: Re: CustomView supporting VT100? Message-ID: <D9qGB3.2uM@zion.com> Keywords: customview vt100 Sender: david@zion.com (David J. Ferrero) Organization: Zion Software & Consulting References: <3qti31$dab@wolfe.wimsey.com> Date: Tue, 6 Jun 1995 03:57:00 GMT In article <3qti31$dab@wolfe.wimsey.com> Kevin Hiebert <khiebert@wimsey.com> writes: > I am trying to write a front-end for a UNIX command line utility which outputs > VT100-style control characters. Terminal.app knows how display them, but the > source code for that isn't public domain, is it? I am using the Subprocess > example in /NextDeveloper but its view is too simple. Does anyone have a > CustomView object that "just works"? > > Reply or followup if you have a chance. Thanks hugely. > > --- > Kevin Hiebert <khiebert@wimsey.com> http://www.wimsey.com/~khiebert/ > * MIME/NeXTmail welcome * PGP public key available for secure messages * Take a look at ZionDECView.palette.tar.gz - should be somewhere on ftp.cs.orst.edu, in palettes maybe? Here is a basic overview as per the ZionDECViePalette.README file: Regards, David Ferrero david@zion.com Summary: Zion's ZionDECView.palette, libZionDECView.a, and associated files provide the building blocks for any custom or commercial NEXTSTEP applications utilizing either VT100/VT102 or ANSI terminal emulation. Whether the application needs a command line interface in addition to the NEXTSTEP GUI, or the application is an intermediate step while moving legacy applications to a Client/Server (NEXTSTEP) environment, Zion's palettized terminal emulation objectware will fit the bill. You don't have to throw away your valuable data and supporting mainframe or mini software just because your company is migrating towards client/server. With objectware such as Zion's ZionDECView, your developers can begin building custom terminal based software in a GUI environment, or allow existing software to be accessed from your NEXTSTEP environment. Why redevelop and debug terminal emulation code when your application can take advantage of Zion's efforts within minutes? PRODUCT HIGHLIGHTS Palette Inspector support ------------------------- Window Size: Columns, Rows. Screen Colors Enabled, Background, Foreground, Cursor Color. Scrollback Buffer Enabled, Length, Scroll to the bottom on input. Fixed pitch font to use. Copy support: Ascii. Paste support: Ascii. Find support: Next, Previous, Case, Jump to selection. Font Panel support: Fixed Pitch. Terminal Emulation ------------------ DEC VT102/VT100, ANSI Color VT100/102 Function Key support: PF1-4 keys are emulated via the 4 top keys on the number-key-pad. Cursor Key / Application Mode support: Full cursor key and keypad emulation for applications using the proper escape sequences.
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: Re: Avoiding a FileViewer - a solution Date: 5 Jun 1995 21:13:15 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3qvs1b$2ks@snaps.dannug.dk> References: <3qv1ui$h12@mailer.york.ac.uk> With some research and the help from a couple of netters, I have found a simple approach that works for me: dwrite Workspace DockPathsForHt<your res> "<full path for your app>" dwrite Workspace DockOnTop 0 This will launch <full path for your app> upon login. I have found three caveats: The recycler will always show up as well. When <full path for your app> quits, the normal logout panel is ordered front, if Cancel is selected, the app will die, but no logout. Its app icon will, however, be visible and a double-click will relaunch it. If Log out is selected, the app dies and you are logged out. An app developed with 3.2 does not work "correctly" with 3.3, i.e. develop the app with the same version as the user. Geert Roger Peppe writes > Carl Edman (cedman@freedom.princeton.edu) wrote: > > I'm not quite sure what you want, but this undocumented dwrite avoids > > the opening of a file viewer on Workspace startup. > > dwrite Workspace MainFileViewer No > > but you must still start up the file viewer in order to log out, > as there is no other method of logging out. > > this rather gets around the whole object of the exercise! > > cheers, > rog.
From: cedman@freedom.princeton.edu (Carl Edman) Newsgroups: comp.sys.next.programmer Subject: Re: Avoiding a FileViewer Date: 6 Jun 1995 03:54:48 GMT Organization: Princeton University Message-ID: <3r0ji8$67a@cnn.Princeton.EDU> References: <3ptegl$hv1@snaps.dannug.dk> <3ptjfu$ls1@cnn.Princeton.EDU> <3qv1ui$h12@mailer.york.ac.uk> In article <3qv1ui$h12@mailer.york.ac.uk>, Roger Peppe <rog@talisker.ohm.york.ac.uk> wrote: > Carl Edman (cedman@freedom.princeton.edu) wrote: > > I'm not quite sure what you want, but this undocumented dwrite avoids > > the opening of a file viewer on Workspace startup. > > dwrite Workspace MainFileViewer No > > but you must still start up the file viewer in order to log out, > as there is no other method of logging out. > > this rather gets around the whole object of the exercise! Actually I'm not quite sure what the whole object of the exercise is myself. However in the matter I think you are mistaken. It is true that you need to use Workspace to log out (e.g. by typing cmd-q, using the quit menu item when Workspace is the active app or hitting the power button when it is configured to log you out). The dwrite I mentioned has nothing at all to do with whether Workspace is started up and so has no impact on logging out. What it _does_ is prevent Workspace from opening a File Viewer window when it starts and it allows you to close the last File Viewer window if you open one. But that has nothing to do with logging out. Carl Edman
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <cfctech!network.cfc.com!t6882tm@msen.com> Message-ID: <9506061549.AA27021@serve.network.cfc.com> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Timothy Mills <t6882tm@network.cfc.com> Date: Tue, 6 Jun 95 11:50:48 -0400 Subject: Re: Avoiding a FileViewer rog@talisker.ohm.york.ac.uk (Roger Peppe) wrote: >Carl Edman (cedman@freedom.princeton.edu) wrote: >> I'm not quite sure what you want, but this undocumented dwrite avoids >> the opening of a file viewer on Workspace startup. >> dwrite Workspace MainFileViewer No > >but you must still start up the file viewer in order to log out, >as there is no other method of logging out. > >this rather gets around the whole object of the exercise! Instead of using this "undocumented" dwrite, I would suggest that you merely bring up the Preferences panel for Workspace Manager, select Dock from the pop-up list, de-select the switch next to the Workspace Manager title at the top of the panel, and click on the Set button. That will keep Workspace Manager from bringing up any file viewers until you double-click on the Workspace Manager icon. When you want to log out, hold down the Command key and the Alt key simultaneously while double-clicking on the Workspace Manager icon at the top of the dock. That will immediately bring up the logout panel without bringing up any file viewers and without making Workspace Manager the active application. Timothy
From: sdroll@troi.mathematik.uni-wuerzburg.de (Droll Sven) Newsgroups: comp.sys.next.programmer Subject: pixel test? Date: 7 Jun 1995 11:51:20 GMT Organization: University of Wuerzburg, Germany Distribution: world Message-ID: <3r43ro$ajg@winx03.informatik.uni-wuerzburg.de> Is there an easy function or trick to determine, if a pixel is set in my bitmap (black pixel on white background, no alpha). It should be quite efficient, cause there are zillions of pixels to test ;-). Thanx in advance -- Sven Droll __ ______________________________________________________/ / ______ __ sdroll@cip.mathematik.uni-wuerzburg.de / /_/ ___/ /_ _/ _/ "...and I see your schwartz =====\_/======= is as big as mine" (Dark Helmet) LOGOUT FASCISM! ___________________________________________________________________ NeXT-mail welcome ;-))
From: idpt820@tpts1.seed.net.tw Newsgroups: comp.sys.next.programmer Subject: Building Satan Date: 6 Jun 1995 12:15:50 GMT Organization: Seednet, Institute for Information Industry, Taiwan Distribution: world Message-ID: <3r1gtm$1f6@aladdin.iii.org.tw> Dear Readers, I have installed the latest perl5 bin for intel and m68k successfully on my intel-based PC. While trying to build satan 1.0 as NeXTanswer receipe stated, I failed . I always get the following message while running reconfig: jesse:21# reconfig* /usr/local/bin/perl: Command not found. Anyone who can tell me how to solve this problem, I would be very appreciated. Simon Chih-L Han idpt820@tpts1.seed.net.tw
Newsgroups: comp.sys.next.programmer From: tim@aplcenmp.apl.jhu.edu (Tim Pugh) Subject: C++ Development Message-ID: <D9o6I0.6tu@aplcenmp.apl.jhu.edu> Organization: Johns Hopkins Continuing Professional Programs Date: Sun, 4 Jun 1995 22:29:59 GMT I would like to develop essentially "pure" C++, but on a NeXT Cube running version 3.3 of NEXTSTEP Developer. I am aware of the benefits of Objective-C but am doing this for a course in C++, where NS is not an option. A small experiment in this direction produced some problems. Specifically: o If I uses make instead of project builder to produce an executable, I find that make does not recognized that I have edited the source. I must remove the executable before it will perform a remake. o Although I have the G++ library, and in particular <iostream.h>, if I try to use it either by #include or #import and with or without the specification: extern "C" { #include <iostream.h> }; I get numerous compiler errors. Does this mean that I must get either gmake or Pmake to correct the first problem and another copy of gcc to cure the second problem. Or perhaps I must (should?) use project builder in some special way? I would appreciate any suggestions you might have. Thanks, Tim -- Tim Pugh |MicroCALL Services tim@aplcenmp.apl.JHU.EDU |8713 Briarcroft Lane |Laurel, MD 20708-1355 ------------------------------------------------------------------------------
From: Michael Pizolato <michael@afs.com> Newsgroups: comp.sys.next.programmer Subject: Why does the compiler do this? Date: 7 Jun 1995 20:58:31 GMT Organization: Anderson Financial Systems Inc. Distribution: world Message-ID: <3r53tn$5ao@shelob.afs.com> Here's the setup: Shared library project directory, /LocalDeveloper/Projects/foo Bar.[hm], subclass of Object foo.h, master include file for library (like appkit.h), imports Bar.h User's working directory, ~/Developer/Working/foo Bar.[hm], local copies Compiler include flags: -I. -I~/Developer/Working/foo -I/LocalDeveloper/Projects/foo VPATH set up to look at shared directory for sources not found in local. All .m files #import "foo.h" User starts a build. Make finds Bar.m in the user's directory, begins to compile it. Encounters #import "foo.h". Uses include flags to find foo.h in shared directory. Here's the problem: As the compiler passes over foo.h, it encounters #import "Bar.h". Instead of beginning its search for the imported file in the build directory (which is the user's working directory), it begins in the directory where it found the file that imports Bar.h (the shared directory). The user's modified copy of Bar.h is never used in the build! IMHO the compiler has the wrong idea of what constitutes "current directory." When I use the -I flags above, I expect the compiler to interpret "-I." to mean the current directory at the time the cc command is issued, and for that interpretation to remain constant for the duration of the compile so that the build directory is _always_ searched first for _any_ file included via quotation marks (rather than angle brackets). You might say that Bar.m should be importing Bar.h directly. That would fix the problem, but to my mind it's a hack rather than a good solution. I think it's good practice for .h files to include exactly and only the headers they require to compile properly, which keeps .p files as small as possible if you're building them. But .[cm] files should include as _few_ headers as possible, which means they must use the most inclusive headers they can. Why? If you've already figured out the exact list of required headers for the .h file, why redo that research or duplicate the code? That's what included files are for. In addition, using the most inclusive headers possible in .[cm] files means that you don't have to worry about referencing something new in the code and having to change the includes at the top of the file; the all-inclusive header should already have a reference to what you need. Anyone's thoughts on this? Thanx, Michael -- Michael Pizolato, CTO Anderson Financial Systems Inc.
From: samschap@merle.acns.nwu.edu (Sam Schapmann) Newsgroups: comp.sys.next.programmer Subject: Should this bug me ??? Date: 7 Jun 1995 21:44:31 GMT Organization: Orrington Investments, Ltd. Message-ID: <3r56jv$ad@news.acns.nwu.edu> EOFaults don't check to see whether their database channel is open or not before resolving themselves. This generates errors if the channel has been closed sometime after the fault was instantiated. This has come up and bitten me on the leg. Fortunately, I've been able to work around it. Is this a "feature"? Wouldn't it be more logical to have the faults auto- matically open the channel (if it's not already open) and then restore the channel to its initial state after the fault resolves itself? Or am I just whining? -Sam (ASCII only, please)
From: Sebastian Niesen <sniesen@pool.informatik.rwth-aachen.de> Newsgroups: comp.sys.next.programmer Subject: Re: Beginners question Date: 6 Jun 1995 12:30:24 GMT Organization: Rheinisch Westfaelische Technische Hochschule Aachen Message-ID: <3r1hp0$et6@news.rwth-aachen.de> References: <3qd119$9th@nz12.rz.uni-karlsruhe.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: un7j@rzstud2.rz.uni-karlsruhe.de Well, look at the PATH your specified. UNIX can only execute commands in paths specified in the path variable. By the way try de.comp.sys.next It's in German. --Sebastian ________________________________________________________________________________ Sebastian Niesen sniesen@pool.informatik.rwth-aachen.de Student Of Computer Science Tel: +49-(0)241-911409 RWTH Aachen http://www-users.informatik.rwth-aachen.de/~sniesen
From: rjevridg@sacam.OREN.ORTN.EDU (Robert Bob J Evridge) Newsgroups: comp.sys.next.programmer Subject: Mac Printing on a NEXT Network Date: 6 Jun 1995 14:57:27 GMT Organization: Oak Ridge National Lab, Oak Ridge, TN Message-ID: <3r1qcn$pj0@stc06.ctd.ornl.gov> I have a Mac on a NEXT network. I need to be able to print from the Mac to the NEXT printer. If you can help, please send email to: rjevridg@sacam.oren.ortn.edu -- Thanx, Bob ****************************************************************************** Bob Evridge User Support Services Oak Ridge Educational Network Oak Ridge National Laboratory Oak Ridge, TN 615-241-3257 ******************************************************************************
From: robin@pencom.com (Robin D. Wilson) Newsgroups: comp.sys.next.programmer Subject: Subclassing "Button" to get a _solid_border_ Button? Date: 7 Jun 1995 22:45:53 GMT Organization: Pencom Software Message-ID: <3r5a71$1c28@digdug.pencom.com> I'm trying (rather unsuccessfully) to subclass "Button" to make a button with a solid border (instead of the standard "raised bezel"). I want this because I can think of lots of places to use such a monster (basically it would look like a textCell, but act like a button). Needless to say, due to the fact that I have little time to spend learning NEXTSTEP (and ObjC) programming, I am stumped. I'd love screw around with for weeks and figure it out myself, but I thought -- "hey, if someone else has an easy sample I could glom/copy, I'd really appreciate it!" So, anyone? Hello? -- ----------------------------------------------------------------------------- *** These are my opinions... Mine! All Mine! Minemineminemineminemine! *** ----------------------------------------------------------------------------- Robin D. Wilson robin@pencom.com Pencom Software 701 Canyon Bend Dr. 9050 Capital of Texas Hwy Pflugerville, TX 78660 Austin, TX 78759
Newsgroups: comp.sys.next.programmer From: tomi@shinto.nbg.sub.org (Thomas Engel) Subject: HeaderViewer...arrrgggl Message-ID: <D9tEID.1uG@shinto.nbg.sub.org> Keywords: Frustration, HeaderView, 3.3, Arrrrgl Sender: tomi@shinto.nbg.sub.org (Thomas Engel) Organization: STEPeople's home (A NUGI member) Date: Wed, 7 Jun 1995 18:11:01 GMT Sorry for this post..but..frustration got too strong today. Could anybody tell me what happened to HeaderViewer in 3.3. I know that it had its problems under 3.2 with categories etc. pp. but it has gotten quite useless under 3.3. It is so brain dead that when it searches for the docu of a method it seems to start at the bottom of the text and then simply grab for the first time the methods selector appears ?? Didn't they improve it for EOF 1.0 ? Somehow NeXT slightly adjusted its docustyle...but I don't think that this has brought down the HeaderViewer....the new format is even a lot simpler to parse. So can anybody tell me if I just grabbed an ill version of the 3.3 CD-ROM or do you have a hard time finding the right method docu too ? Aloha Tomi -- _________________________________________________________ (tomi@shinto.nbg.sub.org) Thomas Engel Neptunstr. 9 NeXTMail welcome D - 90522 Oberasbach Germany
Newsgroups: comp.sys.next.programmer From: martin@rat.se Subject: Re: perform:with:afterDelay in Foundation kit? Message-ID: <D9sM24.p2@rat.se> Keywords: perform, NSTimer, OpenStep, FoundationKit Sender: martin@rat.se (Martin Wennerberg) Organization: Research & Trade, AB. References: <3qvipu$22s@cerberus.wsc.com> Date: Wed, 7 Jun 1995 07:56:28 GMT In article <3qvipu$22s@cerberus.wsc.com> pascal@wsc.com () writes: > Is there a foundation kit equivalent for Object's > - perform:with:afterDelay:cancelPrevious: method? > > Thanks, > > - Pascal The NSTimer class can be used for the same functionality, but it is not included in the current implementation of foundation kit. You will have to wait for OpenStep. If you need to use this with foundation kit I suggest you implement the perform:... as a cathegory to NSObject using Events,DPS or an Object with forwards to the NSObject. You can then replace your implementation when you have OpenStep. Martin Wennerberg ____________________________________________________ Research & Trade AB Phone: + 46 - 8 - 21 17 50 Email: martin@rat.se Snailmail: Box 7742, S-103 95 Stockholm, SWEDEN Visiting: Kungsgatan 33
From: don@darth (Don Yacktman) Newsgroups: comp.sys.next.programmer Subject: Re: perform:with:afterDelay in Foundation kit? Date: 7 Jun 1995 23:32:40 GMT Organization: XMission Public Access Internet (801 539 0900) Message-ID: <3r5cuo$2qg@news.xmission.com> References: <3qvipu$22s@cerberus.wsc.com> <D9sM24.p2@rat.se> martin@rat.se wrote: >In article <3qvipu$22s@cerberus.wsc.com> pascal@wsc.com () writes: >> Is there a foundation kit equivalent for Object's >> - perform:with:afterDelay:cancelPrevious: method? > The NSTimer class can be used for the same functionality, but it > is not included in the current implementation of foundation kit. > You will have to wait for OpenStep. > If you need to use this with foundation kit I suggest you > implement the perform:... as a cathegory to NSObject using > Events,DPS or an Object with forwards to the NSObject. You can > then replace your implementation when you have OpenStep. A note on this; I suppose I'm clear to mention this now that the official "NIL is dead" post went out. For NIL #5 I was working with an author who put together an article and demonstration app that showed how/why/when to use the -perfrom:... method. He had put together a sidebar and a second copy of the demo showing how to do it with the Foundation Kit--basically what you suggest: a category on NSObject to implement the method. It turns out to be relatively simple. I'll work with the author and see if he wouldn't mind us putting it up on the archives for FTP. The article itself is nearly complete so it would certainly be of use to everyone... --- Later, -Don Yacktman Don_Yacktman@byu.edu yackd@xmission.com NOT don@darth.byu.edu -- it has gone away!
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: HeaderViewer...arrrgggl Message-ID: <jpanicoD9tsE6.LJG@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <D9tEID.1uG@shinto.nbg.sub.org> Date: Wed, 7 Jun 1995 23:10:54 GMT Sender: jpanico@netcom20.netcom.com Thomas Engel (tomi@shinto.nbg.sub.org) wrote: : Sorry for this post..but..frustration got too strong today. : Could anybody tell me what happened to HeaderViewer in 3.3. : I know that it had its problems under 3.2 with categories etc. pp. but it : has gotten quite useless under 3.3. I too have been having problems with HeaderView in 3.3. Not only does it not always find the right selector, but it also now crashes a fair amount when accessing foundation and EOF header files. But 3.2 was rock solid for me. Anyone else having this problem? Joe Panico jpanico@netcom.com -- Joe Panico jpanico@netcom.com /* Please no NeXTMail, I can't read it at this address */
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: perform:with:afterDelay in Foundation kit? Message-ID: <D9sD4G.EA@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems References: <3qvipu$22s@cerberus.wsc.com> Date: Wed, 7 Jun 1995 04:43:27 GMT > Is there a foundation kit equivalent for Object's > - perform:with:afterDelay:cancelPrevious: method? In OpenStep, there is a class called NSNotificationQueue that provides a similar capability with alot more control over the details. Its basically a NSNotificationCenter that can queue notifications to be posted at the end of the event loop, rather than synchronously -- with the ability to coalesce similar notifications if desired. It doesnt seem to be in NS3.3 though. -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
From: gbrown@alumni.caltech.edu (Glenn Brown) Newsgroups: comp.sys.next.programmer Subject: Needed: GNU source from NeXTstep/Sparc Dev CD. Date: 7 Jun 1995 23:05:35 GMT Organization: California Institute of Technology, Pasadena Message-ID: <3r5bbv$srn@gap.cco.caltech.edu> Could someone please tar, compress, and ftp the GNU source directory from the NeXTstep/Sparc developer CD to csvax.cs.caltech.edu in the /mosaic directory? The resulting archive is about 17MB, according to NeXT. I believe the full path of the source is /NextDeveloper/Source/GNU. This source is covered by the Gnu General Public License, so it is legal to redistribute it. If you like, check the "COPYING" file in any of the source directories for proof. NeXT offered to get it to me for $150 per hour... Please respond via Email; I don't have convenient news access. Thanks in advance, --Glenn
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: NeXTSTEP HTTP Server Message-ID: <jpanicoD9sqsv.DxB@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <rfenney-310595220208@rfenney.slip.netcom.com> <3qkjnk$b7r@zip.eecs.umich.edu> <3r3d4n$ca8@shore.shore.net> Date: Wed, 7 Jun 1995 09:38:54 GMT Sender: jpanico@netcom11.netcom.com Guy K. Hillyer (gkh@shore.net) wrote: : How about a browser? OmniWeb is a fantastic brwoser (better than Netscape for what it does, though it doesn't have all of Netscapes features). Another great feature of OmniWeb is that it is free. You can get OmniWeb from the standard NS archives on cs.orst.edu: http://www.cs.orst.edu Joe Panico jpanico@netcom.com -- Joe Panico jpanico@netcom.com /* Please no NeXTMail, I can't read it at this address */
From: bakker@fsu_1 (Cary A. Bakker) Newsgroups: comp.sys.next.programmer Subject: compiling MA c programs... Date: 7 Jun 1995 15:43:27 GMT Organization: U.S. Department of Commerce, NOAA/AOML Message-ID: <3r4hev$sjd@wave.aoml.erl.gov> How do you compile simple c programs for multiple architectures? Thanks, Cary
From: whizer@cs.uoregon.edu (John Boyd Candlish) Newsgroups: comp.sys.next.programmer Subject: photo realistic renderman? Date: 6 Jun 1995 16:07:26 -0700 Organization: University of Oregon Computer and Information Sciences Dept. Message-ID: <3r2n3e$km8@pragmatix.cs.uoregon.edu> I would like to be able to use prman, but I have not been able to to connect to the server. Do I have to fiddle the NetInfo database to get this to work, and if so how? This is the #1 question in my NeXT mysteries file. 1. How can I get prman to work? /NextDeveloper/Demos/RenderManager.app refuses to configure a server, and 3DRenderPanel sends clnt_create: RPC: Unknown host to the console. Here's what rpcinfo shows... dunce:/private/etc 31 # rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 200100001 1 udp 698 netinfobind 200100001 1 tcp 700 netinfobind 100011 1 udp 2565 rquotad 100001 1 udp 2566 rstat_svc 100001 2 udp 2566 rstat_svc 100001 3 udp 2566 rstat_svc 100002 1 udp 2567 rusersd 100002 2 udp 2567 rusersd 100012 1 udp 2568 sprayd 100008 1 udp 2569 walld 200100002 1 udp 2570 renderd Any tips from someone using prman would be appriectiated! jCandlish .
Newsgroups: comp.sys.next.programmer From: rasmus@dannug.dk Subject: Object Linking ... system problem ... Content-Type: text/plain; charset=US-ASCII Message-ID: <950608114900.1966AABkF.rasmusp@op1d110nwk> Sender: rasmus@dannug.dk Organization: Swiss Bank Corporation CM&T Division Mime-Version: 1.0 (Generated by Eloquent) Date: Thu, 8 Jun 1995 09:49:00 GMT Hi guys, I'm not able to do Object Linking any more ... :-(( When eg. I want to paste a link into Edit.app ... a panel comes up talling smth like this ... "Couldn't connect to appkit server ... " How do I get to paste links again ... Cheers Peter
From: jq@phcs.phcs.com (James E. Quick) Newsgroups: comp.sys.next.programmer Subject: Seeking solutions for EOF back ends. Date: 7 Jun 1995 12:40:07 -0400 Organization: PHCS Message-ID: <3r4kp7$mk@papoose.phcs.com> I have one mono turbo slab and one 486 box both running 3.3. I have 3.2 available for the slab as well. I am looking for inexpensive solutions to do some home development with EOF. I also have a couple of small projects which would benefit from a relational back-end. 1. I know that I can run EOF with msql between systems, but that has pretty limited functionality. 2. I also have a small sybase database which I can run on the slab (but which I cannot connect to from the PC). I can also connect (via my SLIP link) to Oracle v7 at work, but I would prefer not to deal with the latency issues. I know that a black Oracle instance can run on 3.2. Is it possible to connect to that client from NSFIP3.3 with EOF1.1? What other options are available? Thanks in advance. -- ___ ___ | James E. Quick jq@phcs.com / / / | Private HealthCare Systems NeXTMail O.K. \_/ (_\/ | Systems Integration Group (617) 895-3343 ) | - My other car has a mouse.
From: jq@phcs.phcs.com (James E. Quick) Newsgroups: comp.sys.next.programmer Subject: Re: compiling MA c programs... Date: 7 Jun 1995 12:49:32 -0400 Organization: PHCS Message-ID: <3r4las$op@papoose.phcs.com> References: <3r4hev$sjd@wave.aoml.erl.gov> In article <3r4hev$sjd@wave.aoml.erl.gov>, Cary A. Bakker <bakker@fsu_1> wrote: > >How do you compile simple c programs for multiple architectures? The -arch flag to cc specifies which architectures to produce code for. e.g. cc -arch m68k -arch i386 -o foo foo.c would produce a fat binary for intel and moto from foo.c. -- ___ ___ | James E. Quick jq@phcs.com / / / | Private HealthCare Systems NeXTMail O.K. \_/ (_\/ | Systems Integration Group (617) 895-3343 ) | - My other car has a mouse.
From: klett002@maroon.tc.umn.edu (James P Klett) Newsgroups: comp.sys.next.programmer Subject: Does it make sense? Date: 8 Jun 1995 04:57:16 GMT Organization: University of Minnesota Message-ID: <3r5vvc$1hn@epx.cis.umn.edu> I am in the beginning stages of a large software project (1 year deal) I am still evaluating platforms. Does it make sense to delve into OpenStep or will I be risking everything on the future? The delema is that I can go will Mr. Gates and be safe and knowone will be the wiser, Or I can got with leading edge technology and only I will be the wiser. Thoughts, suggestions, comments are much welcome JIM -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ James P. Klett klett002@maroon.tc.umn.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: premise@umich.edu (Sean Michael Willson) Newsgroups: comp.sys.next.programmer Subject: Locking with NXLock Date: 7 Jun 1995 16:37:17 GMT Organization: University of Michigan Message-ID: <3r4kjt$ln7@lastactionhero.rs.itd.umich.edu> I am having trouble with the following code: @implementation DAObject - init { [super init]; myLock = [[NXRecursiveLock alloc] init]; // Other init calls } - (void) queueSR: (SR *) aSR { [myLock lock]; [mySRList addObject: aSR]; [myLock unlock]; } - (oneway void) takeSR: (SR *) aSR { [myLock lock]; switch([dataServer ownership: [aSR number] forMachine: machineName]) { case PARENT: [self queueSR: aSR]; break; case PERSONAL: [distributor takeSR: aSR]; [self notifyBackupsToRelease: aSR]; break; } [myLock unlock]; } @end @implementation InputPort - (oneway void) startSending { int i; id tempSR; puts("InputPort Sending ..."); for (i = 0; i < 60; i++) { tempSR = [[SR alloc] init]; [delivery takeSR: tempSR]; } } @end The method in the InputPort is called first, at which time, it sends objects to the DAObject. The method called in the DAObject is a oneway, we need this, because each of these objects is threaded and we want them to be able to process data as fast as possible. I am getting a collision of locks/objects using this type of oneway, and locking usage. Are we approaching this problem wrong, and if so can anyone suggest a solution. We have had simular problems in the past with an object trying to access a locked object, and when it trys the lock method, it times out both objects. Any suggestions, this applies to this yet doesn't, since if I comment out the locks it behaves the same, which tells me that the laocking is being ignored. We have experimented with using a bycopy with the takeSR: method in DAObject but run into errors freeing memory of the object sent to DAObject from InputPort since the copy is in DAObject. I believe there is still a reference somewhere back to the origional object, not a true copy, or new instance. We have tried NXLock, NXConditionLock, and NXSpinLock for this app to no success, and we CANNOT USE FOUNDATION in this application due to a problem with the MultiThread DO system in Foundation and its relation to autorelease pools. Any help would be greatly appreciated, We are running NeXTStep 3.3, and I am testing on an HP 712/60. Sean Willson Lynn-Arthur Associates -- _________________________________________________________________________ | Sean M. Willson "Chance favors a prepared mind..." | | University of Michigan College of Engineering | | ASCII: premise@umich.edu NeXTMail: premise@engin.umich.edu | | http://www.engin.umich.edu/~premise/ WWW Page (NeXT Stuff) | | NeXT Programmer for Lynn-Arthur Associates | |_______________________________________________________________________|
From: don@darth (Don Yacktman) Newsgroups: comp.sys.next.programmer Subject: Re: Subclassing "Button" to get a _solid_border_ Button? Date: 8 Jun 1995 03:08:21 GMT Organization: XMission Public Access Internet (801 539 0900) Message-ID: <3r5pj5$eo8@news.xmission.com> References: <3r5a71$1c28@digdug.pencom.com> robin@pencom.com (Robin D. Wilson) wrote: > I'm trying (rather unsuccessfully) to subclass "Button" to make > a button with a solid border (instead of the standard "raised > bezel"). [...] > I thought -- "hey, if someone else has an easy sample I could > glom/copy, I'd really appreciate it!" Since it sounds like you are feeling rather lazy anyhow, why not just surround a borderless Button with a Box in IB? Send the Box to zero margin inside and size it to wrap closely around the button and you should have it... --- Later, -Don Yacktman Don_Yacktman@byu.edu yackd@xmission.com NOT don@darth.byu.edu -- it has gone away!
Newsgroups: comp.sys.next.programmer From: Askew_Kelly@pcp.ca (Kelly Askew) Subject: Re: Subclassing "Button" to get a _solid_border_ Button? Message-ID: <1995Jun8.132346.23193@pcp.ca> Sender: news@pcp.ca Organization: PanCanadian Petroleum Ltd. References: <3r5pj5$eo8@news.xmission.com> Date: Thu, 8 Jun 95 13:23:46 GMT In article <3r5pj5$eo8@news.xmission.com> don@darth (Don Yacktman) writes: > robin@pencom.com (Robin D. Wilson) wrote: > > I'm trying (rather unsuccessfully) to subclass "Button" to make > > a button with a solid border (instead of the standard "raised > > bezel"). [...] (basically it would look > > like a textCell, but act like a button). > > I thought -- "hey, if someone else has an easy sample I could > > glom/copy, I'd really appreciate it!" > > Since it sounds like you are feeling rather lazy anyhow, why not > just surround a borderless Button with a Box in IB? Send the > Box to zero margin inside and size it to wrap closely around > the button and you should have it... > Or why not just put a transparent button over a textfield? Kelly
From: besler@nova.mdd.comm.mot.com (Steve Besler) Newsgroups: comp.sys.next.programmer Subject: Re: uncaught exceptions with DO Date: 08 Jun 1995 22:13:58 GMT Organization: Motorola - Wireless Data Group; Seattle, WA Distribution: na Message-ID: <BESLER.95Jun8151358@nova.mdd.comm.mot.com> References: <3qsi2n$t7h@rs18.hrz.th-darmstadt.de> <1995Jun8.202936.21526@instep.bc.ca> In-reply-to: brad@instep.bc.ca's message of Thu, 8 Jun 1995 20:29:36 GMT In article <1995Jun8.202936.21526@instep.bc.ca> brad@instep.bc.ca writes: Caroline Roehr writes [stuff deleted] >What else can I do to prevent my program to crash on an uncaught exception? > >Sonja Schellenberg, Schellenberg@rz.fh-frankfurt.d400.de brad@instep.bc.ca writes >You should be trapping for exceptions using the exception handling >facilities. You need to set up your handlers by calling, for example, >the ExceptionHandlingInit function below sometime early in the program. >This then allows you to trap the DO exceptions yourself. Even better, if you have access to Foundation Kit, use NS_DURING, NS_HANDLER, NS_ENDHANDLER and the nifty new NSException class. I find it much nicer. Digression: One interesting thing which I discovered is that Foundation objects (NSObjects) don't have the same behaviour as regular Objects when they receive a method call they do not understand. Rather than dying, they raise the NSException called "NSInvalidArguments" (or something like that). This (potentially) allows for much more robust programs. The curious thing was that when I was getting this exception, the default top level handler did not appear to recognize the exception. It would print out the numeric value for the exception, and my program continued to execute, leaving me more or less clueless. I believe that this is due to the fact that the default top-level handler catches old-style exceptions (like those generated by the AppKit). Question: Does anyone know how I can install an uncaught exception handler that catches both old-style exceptions and NSExceptions? I must have missed this in the documentation. Thanks for any information! Steven K. Besler -- Steven Besler, Coop Student "I do not speak for Motorola." Motorola Wireless Data Group
Newsgroups: comp.sys.next.programmer From: anderson (Ken Anderson) Subject: Re: Help, need graphing pallet/app/object Message-ID: <1995Jun8.125517.6920@biztech.com> Sender: news@biztech.com Organization: Biztech, Inc. References: <3qn45k$fke@news.bdm.com> Date: Thu, 8 Jun 1995 12:55:17 GMT In article <3qn45k$fke@news.bdm.com> Jeff Franco <jeff_franco@notes.pw.com> writes: >I need an object/pallet/app that can accept data and generate spreadsheet >type graphs. I haven't been able to find anything yet. Parasheet won't >work, because there's no API that will accept my data and make a graph >on my app. I imagine the financial people have had to do this same thing >in their apps. I would appreciate any help or direction in the matter. > >Thanks, > >Jeff Franco >jeff_franco@notes.pw.com >* Objective Technologies makes a palette called GraphsPalette that should do what you need (I like using it). You can send mail to info@object.com. Ken
Date: 7 Jun 1995 20:47:50 GMT From: ts4@iis.joanneum.ac.at Newsgroups: comp.sys.next.programmer Message-ID: <cancel.ts4_468@piis10.joanneum.ac.at> Control: cancel <ts4_468@piis10.joanneum.ac.at> Subject: cmsg cancel <ts4_468@piis10.joanneum.ac.at> Excessive multi-posting (aka spam) cancelled by clewis@ferret.ocunix.on.ca
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: Subclassing "Button" to get a _solid_border_ Button? Date: 8 Jun 1995 17:15:42 GMT Organization: The SenseMedia Network, http://sensemedia.net/, info@sensemedia.net Distribution: world Message-ID: <3r7b7u$bt4@emerald.oz.net> References: <3r5a71$1c28@digdug.pencom.com> In article <3r5a71$1c28@digdug.pencom.com> robin@pencom.com (Robin D. Wilson) writes: > I'm trying (rather unsuccessfully) to subclass "Button" to make a button with > a solid border (instead of the standard "raised bezel"). I want this because > I can think of lots of places to use such a monster (basically it would look > like a textCell, but act like a button). > But then there's the issue of following NS GUI standards. Users learn how a button and a textCell appear across all NS apps, so now you're going to confuse them by making a button look like a textCell. Is this good GUI design? --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: gkh@shore.net (Guy K. Hillyer) Newsgroups: comp.sys.next.programmer Subject: Re: NeXTSTEP HTTP Server Date: 7 Jun 1995 01:23:35 -0400 Organization: North Shore Access/Eco Software, Inc; (info@shore.net) Message-ID: <3r3d4n$ca8@shore.shore.net> References: <rfenney-310595220208@rfenney.slip.netcom.com> <3qkjnk$b7r@zip.eecs.umich.edu> How about a browser?
Newsgroups: comp.sys.next.software,comp.sys.next.programmer From: andylee@netcom.com (Andy A. Lee) Subject: Make Edit.app Display White-on-Black? Message-ID: <andylee-0906950011430001@idtech.com> Sender: netnews@mork.netcom.com Organization: Idealicus Technologies Date: Fri, 9 Jun 1995 07:11:43 GMT Hi, all, How can I change Edit.app's windows to display white text on black background instead of its default black-on-white? There is no color option in Edit.app's preference like Terminal.app. I am starting to do a lot of Objective-C programming and this really bothers my eyes. I could use emacs in a Terminal window to edit my .m and .h codes, which can be set to display white text on black background, but then I can't "click-goto" the compiler errors from the ProjectBuilder's window, and the gdb from Edit.app. Andy Lee andylee@netcom.com andylee@cs.ucla.edu
From: don@darth (Don Yacktman) Newsgroups: comp.sys.next.programmer Subject: Re: perform:with:afterDelay in Foundation kit? Date: 9 Jun 1995 07:00:13 GMT Organization: XMission Public Access Internet (801 539 0900) Message-ID: <3r8rht$nb2@news.xmission.com> References: <3qvipu$22s@cerberus.wsc.com> <D9sM24.p2@rat.se> <3r5cuo$2qg@news.xmission.com> I wrote: >[...] For NIL #5 I was working with >an author who put together an article and demonstration app >[...] I'll work with the author and see if >he wouldn't mind us putting it up on the archives for FTP. OK, just an update. I got permission to make it publically available. Try out the URL: http://www.stepwise.com/Resources/Magazines/NEXT_IN_LINE/NEXT_IN_ LINE_5/DelayedPerform.htmld This article never made it through the final editing stages, so if it had made it onto paper there would definitely have been some changes. (Rob really is a perfectionist.) However, most will agree that it is in darn good shape and quite a useful (and well written) article. Thanks Mike! :-) The info most people would want (for FK stuff) is in the sidebar. It has links to the source code as well (the example both with and without the foundation kit support). For novices who don't even know why this method is so important that it gets its own thread, *do* read the article. Even some of us who are familiar with it can pick up a new idea or two... Enjoy it, everybody! --- Later, -Don Yacktman Don_Yacktman@byu.edu yackd@xmission.com NOT don@darth.byu.edu -- it has gone away!
Newsgroups: comp.sys.next.programmer From: brad@instep.bc.ca Subject: Re: uncaught exceptions with DO Message-ID: <1995Jun8.202936.21526@instep.bc.ca> Sender: usenet@instep.bc.ca (usenet) Organization: InStep Mobile Communications Inc. References: <3qsi2n$t7h@rs18.hrz.th-darmstadt.de> Date: Thu, 8 Jun 1995 20:29:36 GMT Caroline Roehr writes >when dealing with distributed objects I often get an uncaught exception > 0x110nn although I have done an registerForInvalidationNotification. >But if the server process dies by segmentation fault, kill -9 or something like that, senderIsInvalid is never called. >I have tried to install an MACH exception handler and hand e these exception myself, but these exceptiion remain uncaught. >Is there another way to dtermine whether a proxy object is accessible or not? >What else can I do to prevent my program to crash on an uncaught exception? > >Sonja Schellenberg, Schellenberg@rz.fh-frankfurt.d400.de You should be trapping for exceptions using the exception handling facilities. You need to set up your handlers by calling, for example, the ExceptionHandlingInit function below sometime early in the program. This then allows you to trap the DO exceptions yourself. NX_DURING [proxy someMessage]; NX_HANDLER NXLocalHandler.data2 = sel_getName(_cmd); RemoteException(&NXLocalHandler, proxy); NX_ENDHANDLER void RemoteException(NXHandler* handler, id proxy) { if (handler->code >= NX_REMOTE_EXCEPTION_BASE && handler->code <= NX_REMOTE_LAST_EXCEPTION) { NXReportError(handler); } else _NXRaiseError(handler->code, handler->data1, handler->data2); return; } void ExceptionHandlingInit() { NXSetUncaughtExceptionHandler(UncaughtExceptionHandler); NXRegisterErrorReporter(NX_REMOTE_EXCEPTION_BASE, NX_REMOTE_LAST_EXCEPTION, RemoteExceptionReporter); return; } void RemoteExceptonReporter(NXHandler *handler) { syslog(LOG_ERR, "Distributed Object exception %d (%s) in '%s'.\n", handler->code, (char *)handler->data1, (char *)handler->data2); } -- Brad Head <brad@instep.bc.ca> Software Developer, InStep Mobile Communications Inc. Vancouver, British Columbia CANADA
Newsgroups: comp.sys.next.programmer From: as@asci.fdn.fr (Antoine Schmitt) Subject: Re: perform:with:afterDelay in Foundation kit? Message-ID: <1995Jun6.224411.2104@asci.fdn.fr> Sender: as@asci.fdn.fr Organization: Antoine Schmitt - Paris, France. References: <3qvipu$22s@cerberus.wsc.com> Date: Tue, 6 Jun 1995 22:44:11 GMT In article <3qvipu$22s@cerberus.wsc.com> pascal@wsc.com () writes: > Is there a foundation kit equivalent for Object's > - perform:with:afterDelay:cancelPrevious: method? > Nope. If you dont need the 'cancelPrevious' part, use a DPSTimedEntry. If you need the cancelPrevious part, you'll have to wait for OpenStep, I guess. Antoine -- ________________________________________________________ Antoine Schmitt Consultant Informatique - Paris - France as@asci.fdn.fr - (33 1) 44 62 97 77 - NeXT mail welcome
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: HeaderViewer...arrrgggl Date: 8 Jun 1995 17:02:30 GMT Organization: The SenseMedia Network, http://sensemedia.net/, info@sensemedia.net Distribution: world Message-ID: <3r7af6$bcj@emerald.oz.net> References: <D9tEID.1uG@shinto.nbg.sub.org> In article <D9tEID.1uG@shinto.nbg.sub.org> tomi@shinto.nbg.sub.org (Thomas Engel) writes: > Could anybody tell me what happened to HeaderViewer in 3.3. > I know that it had its problems under 3.2 with categories etc. pp. but it > has gotten quite useless under 3.3. > > It is so brain dead that when it searches for the docu of a method it > seems to start at the bottom of the text and then simply grab for the > first time the methods selector appears ?? > HeaderViewer 3.3 appears to start searching at the top of the documentation stopping at the first match with the method name which isn't usually where the method is documented :-( I usually end up having to run Find on the method name within HeaderViewer until I get to the actual documentation which is a bother. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: df@watershed.com Newsgroups: comp.sys.next.programmer Subject: Sys V Compatibility Libs Date: 9 Jun 1995 04:07:56 GMT Organization: UltraNet Communications, Inc. Message-ID: <3r8hes$c1h@caesar.ultra.net> I seem to remember that someone was selling Sys V compatibility libs for NeXTSTEP (shared memory and all that fun stuff)... Anyone have any more info? Actually I'd love to hear from anyone that has used it (we have a big project that we need to port from AIX to NeXTSTEP that uses Sys V shared memory). Thanks, --- Dirk Fromhein df@watershed.com Dirk.P.Fromhein@Fmr.com --- Arguing with an Engineer is like mud-wrestling a pig, sooner or later you realize they like it.
Newsgroups: comp.sys.next.programmer From: ehutch@hypnos.norden1.com (E. Hutchinson) Subject: NEXTSTEP Developer/Career position/ILL Message-ID: <1995Jun9.030604.20963@norden1.com> Sender: news@norden1.com (Net News Admin) Organization: Norden 1 Communications Date: Fri, 9 Jun 1995 03:06:04 GMT Programmer/analyst/developer NEXTSTEP Objective C A plus--DB Kit or EOF A plus--Sybase or Oracle Career position Outstanding opportunity Relocation assistance Greater Chicago area To be considered--------Fax resume or mail a hard copy. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: d89cb@efd.lth.se (Christian Brunschen) Newsgroups: comp.sys.next.programmer Subject: Re: perform:with:afterDelay in Foundation kit? Date: 8 Jun 1995 12:56:44 GMT Organization: Lund Institute of Technology, Sweden Message-ID: <3r6s2c$fvk@nic.lth.se> References: <3qvipu$22s@cerberus.wsc.com> NNTP-Posting-User: d89cb In article <3qvipu$22s@cerberus.wsc.com>, <pascal@wsc.com> wrote: >Is there a foundation kit equivalent for Object's >- perform:with:afterDelay:cancelPrevious: method? Quoting from the OpenStep spec: Sending Deferred Messages + (void)cancelPreviousPerformRequestsWithTarget:(id)aTarget selector:(SEL)aSelector object:(id)anObject Cancels previous perform requests having the same target and argument (as determined by isEqual:), and the same selector. This method removes timers only in the current run loop, not all run loops. - (void)performSelector:(SEL)aSelector object:(id)anObject afterDelay:(NSTimeInterval)delay Sends an aSelector message to anObject after delay. self and anObject are retained until after the action is executed. So, there is support for it -- but only for sending deferred "action" type messages (the kind that take one argument, which is a id). I find this somewhat sad; I would have liked to have a method like, for instance, a hypothetical - (void)performInvocation:(NSInvocation *)invocation sender:(id)anObject afterDelay:(NSTimeInterval)delay with a corresponding + (void)cancelPreviousPerformRequestWithTarget:(id)aTarget invocation:(NSInvocation *)invocation sender:(id)anObject [or possibly + (void)cancelPreviousPerformRequestWithInvocation:(NSInvocation *)invocation sender:(id)anObject since the target is specified in the NSInvocation anyway ... ] The "sender:(id)anObject" argument is there to distinguish perform requests that come from different sources, and (basically) fills the same role as the "object:(id)anObject", except that it isn't automagically given as the argument in the actual call (the arguments used in the call are specified in the NSInvocation as usual). This gives me a thought: The sender of a message is often used, in order to send response messages, or get information from the sender of a message ... maybe it would have been good to make the sender of a message an implicit argument to a method, like "self" ? Hmm ... > >Thanks, > >- Pascal // Christian Brunschen -- | Christian Brunschen, Husmansv. 26, S-227 38 Lund, Sweden | | voice/fax/data +46 (0)46 139345, email d89cb@efd.lth.se | | PGP 2.2 Public Key available on request. | ObCelebrityQuote: | | "Oh, foo." | | - Andrew R. Koenig (ark@research.att.com) after dropping a piece | | of chalk during a lecture on C++ in Lund, Sweden, April 1993 |
From: Narayanan Iyer <niyer> Newsgroups: comp.sys.next.software,comp.sys.next.programmer Subject: XVIEW on NEXTSTEP under CubX Date: 8 Jun 1995 16:53:20 GMT Organization: Intel Corporation Message-ID: <3r79u0$r55@ornews.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello: Has anyone successfully ported the XView Toolkit for X11R5 to NEXTSTEP using either CubX or any other X port? Thanks Narayanan niyer@mipos2.intel.com
From: turner@mongo.nist.gov (Justin L. Turner) Newsgroups: comp.sys.next.programmer Subject: Beginner question Date: 8 Jun 1995 21:00:16 GMT Organization: NIST Message-ID: <3r7od0$8k@dove.nist.gov> Hello. I'm just starting to learn NeXT programming and was hoping someone could help me out. I have two lists that I want to display. The elements in the lists correspond to each other, so I would like the browsers to scroll vertically together. Also, when the user selects an object in one list, I would like the corresponding element in the other list to be highlighted. Any help would be much appreciated. --Justin (turner@bruce.nist.gov)
Newsgroups: comp.sys.next.programmer Subject: [Q] ASCII-file structure of EOModel-files Message-ID: <1995Jun9.135203.44949@yogi.urz.unibas.ch> From: krampe@hoopy (Dirk Krampe) Date: 9 Jun 95 13:52:02 MET I need some documentation on the ASCII-file structure of EOModel-files because I want to write some tools in Prolog to generate them automatically. There is some documentation on DBModel-files but none on EOModels. I know the posibility using the EOModel class but I would like to use the ASCII-format directly. Any hint? Thanks Dirk --- =================================================================== Dirk Krampe phone: ++41 61 267 3254 (office) Universitaet Basel ++49 7621 77909 (private) Institut fuer Informatik / WWZ fax: ++41 61 267 3251 Petersgraben 51 email: krampe@ifi.wwz.unibas.ch CH-4051 Basel (NeXT-Mail accepted) ===================================================================
From: epsilon@MCS.COM (Andrew Kwong) Newsgroups: comp.sys.next.programmer Subject: DBKIT Problem Date: 8 Jun 1995 10:24:40 -0500 Organization: /usr/lib/news/organi[sz]ation Distribution: usa Message-ID: <3r74no$ge6@Mercury.mcs.com> Hi all, Does anyone use dbkit with NS3.2 to qualify the rootFetchGroup? I'm trying to fetch a table where its content is limited by a DBQualifier. The reason for me to qualify the rootFetchGroup is that the database I'm fetching is huge, and I only want to fetch what it is needed. I did the following in NS3.2 and it failed: >dbQualifier = [[DBQualifier alloc] > initForEntity:employee > fromDescription:"emp_lname LIKE %s", searchStr]; >[dbModule fetchContentsOf:employee usingQualifier:dbQualifier] I compile the ***SAME*** code under NS3.3 and everything works out! Is this a bug in NS3.2? Andy
Newsgroups: comp.sys.next.programmer Subject: Re: compiling MA c programs... Message-ID: <1995Jun9.095912.1259@ittpub> From: miked@ittpub.nl (Mike Davis) Date: 9 Jun 95 09:59:11 WET References: <3r4hev$sjd@wave.aoml.erl.gov> <3r4las$op@papoose.phcs.com> jq@phcs.phcs.com (James E. Quick) wrote: >In article <3r4hev$sjd@wave.aoml.erl.gov>, Cary A. Bakker <bakker@fsu_1> wrote: >> >>How do you compile simple c programs for multiple architectures? >The -arch flag to cc specifies which architectures to produce code for. >e.g. >cc -arch m68k -arch i386 -o foo foo.c >would produce a fat binary for intel and moto from foo.c. >-- > ___ ___ | James E. Quick jq@phcs.com > / / / | Private HealthCare Systems NeXTMail O.K. >\_/ (_\/ | Systems Integration Group (617) 895-3343 > ) | - My other car has a mouse. Also "arch" is a handy shell tool.
From: Jesus M. Izquierdo <72332.3705@CompuServe.COM> Newsgroups: comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.misc,comp.sys.next.programmer,comp.sys.next.software Subject: NEXT PEOPLE NEEDED IN MADRID Date: 5 Jun 1995 09:10:09 GMT Organization: KROP AUDIOVISUAL SYSTEMS Message-ID: <3quhlh$g8c$2@mhadg.production.compuserve.com> Need people with experience in NextStep for Intel in Madrid for occassional projects. English/Spanish languages. Please answer with personal E-mail to: 72332.3705@compuserve.com Or Tel: 34 1 6779774 Fax: 34 1 6772649 Jesus Izquierdo
From: sanguish@digifix.com (Scott Anguish) Newsgroups: comp.sys.next.programmer Subject: Classes for GIS, Lat/Longitude conversion? Date: 9 Jun 1995 05:52:42 -0000 Organization: Digital Fix Development Distribution: world Message-ID: <3r8nja$k2m@digifix.digifix.com> Does anyone have any classes (or source for that matter) that does conversion of latitude/longitude co-ordinates to a map? I've got a huge library of lat/long pairs that I'd like to be able to generate maps from... Any source, pointers, examples would be appreciated. Thanks Scott -- - Scott Anguish - sanguish@digifix.com (NextMail) next-announce@digifix.com (comp.sys.next.announce submissions) http://www.stepwise.com/ (Stepwise NEXTSTEP/OpenStep Information Server)
Newsgroups: comp.sys.next.programmer From: jliu@DATAP.CA (Joshua Liu) Subject: help on IPC Message-ID: <1995Jun8.163023.7746@datap.ca> Sender: cnews@datap.ca Organization: Sandwell Inc. Datap Systems Division, Calgary Date: Thu, 8 Jun 1995 16:30:23 GMT Hi All, I have several processes runing on different platforms (Sun/Sparc/Solaris, Alpha/OSF1, Pentium/NT to name a few). Now I have need for those processes to talk to each other. I want to know what is the best way to implement those interprocess communication. As I understand, socket would be one way to implement these. I am not sure if winsock API would be the same as in BSD socket. If you know that there are libraries package that can provide platform independent API for interprocess communication, Could you send me some info to: jliu@datap.ca Your help will be appreciated. Thank you for your attention. --Joshua
From: perkins@cps.msu.edu (Stephen J. Perkins) Newsgroups: comp.sys.next.programmer Subject: Struct padding and portability Date: 10 Jun 1995 20:18:21 GMT Organization: Michigan State University Distribution: world Message-ID: <3rcumd$o6i@msunews.cl.msu.edu> Howdy all, I'd be rather embarrased if this was an RTFM, but after searching DL and reading about the supported Pragmas I can't find the answer. I'm coding in straight C and NeXT specific extensions or libraries are not allowed. I have a structure whose size on Intel is 208 and on moto is 206. Currently I dump the structure to disk (in host byte order) using an fwrite. If the reader is of a different byte order I swap the bytes right after I refill my structure using fread. As the first line of this paragraph should show, I'm having trouble because the compiler is padding the structure. Thus, reads on Intel don't work for writes on Moto and vice versa. I want portability (HP and Sparc also). What is the best accepted and portable mechanism for ensuring proper alignment inside a structure such that all architectures will be able read/write the fields of the structure. Having to swap byte order is OK. I just want to make sure they all read the proper fields (albiet maybe in the wrong byte order) from the file. In the past, compilers have typically contained a pragma switch that would allow you turn off padding inside of structures. I don't think this is the appropriate mechanism for doing this and I couldn't find such a switch under gcc anyway. Any hints greatly appreciated. - Steve -- ============================================================== Stephen J. Perkins | perkins@cps.msu.edu Dept. of Comp. Science | NeXT, MIME, finger for PGP Michigan State University | NeXT OS 3.2 using PPP-2.2
From: Robert Lutwak <robert@amo.mit.edu> Newsgroups: comp.sys.next.programmer Subject: Is there a patch for BUG #21973 ? Date: 10 Jun 1995 20:25:33 GMT Organization: Massachvsetts Institvte of Technology Message-ID: <3rcv3u$1h0@senator-bedfellow.MIT.EDU> From the NS3.2 Developer Release Notes: --- BUG # 21973: When using Distributed Objects, if you pass a string (using char * or const char *) as an argument to a Distributed Objects server, the memory allocated by the server for this argument is not freed. Workaround: none --- I've tried calling free((char *)passedpointer) from my server app, but it doesn't help. Does anybody have a workaround for this? If there is no way to free the memory, is it possible to coerce D.O. to use the same buffer repeatedly? Is it fixed in 3.3 Developer? Thanks, Robert -- Robert Lutwak robert@amo.mit.edu MIT Atomic Resonance and Spectroscopy Laboratory ---> NeXTmail always welcome <---
From: jksmyth@eos.ncsu.edu (James Kidd Smyth) Newsgroups: comp.sys.next.programmer Subject: Sites for GNU Smalltalk?? Date: 7 Jun 1995 20:32:39 GMT Organization: North Carolina State University, Project Eos Distribution: world Message-ID: <3r52d7$ibr@taco.cc.ncsu.edu> Originator: jksmyth@c00804-247dan.eos.ncsu.edu Does anyone know where I can get a recent version of GNU Smalltalk?? I have version 1.1.1, copyright circa 1990.. I know, you're asking why would someone with access to Nextstep want to mess with Smalltalk, but I would really appreciate any help thanks, jksmyth@eos.ncsu.edu
From: premise@umich.edu (Sean Michael Willson) Newsgroups: comp.sys.next.programmer Subject: Re: HeaderViewer...arrrgggl Date: 8 Jun 1995 20:13:22 GMT Organization: University of Michigan Message-ID: <3r7ll3$qj3@lastactionhero.rs.itd.umich.edu> References: <D9tEID.1uG@shinto.nbg.sub.org> Thomas Engel (tomi@shinto.nbg.sub.org) wrote: : Sorry for this post..but..frustration got too strong today. : Could anybody tell me what happened to HeaderViewer in 3.3. [article deleteText] We are having the same trouble here, it seemed to work fine with the EOF upgrade, but as soon as we installed 3.3 all hell broke loose, I have resorted to not using HeaderViewer as often and just using the DigitalLibrarian for about everything. Anyone know if it would be wise to reinstall the old HeaderViewer? Sean Willson -- _________________________________________________________________________ | Sean M. Willson "Chance favors a prepared mind..." | | University of Michigan College of Engineering | | ASCII: premise@umich.edu NeXTMail: premise@engin.umich.edu | | http://www.engin.umich.edu/~premise/ WWW Page (NeXT Stuff) | | NeXT Programmer for Lynn-Arthur Associates | |_______________________________________________________________________|
From: sanguish@digifix.com (Scott Anguish) Newsgroups: comp.sys.next.programmer Subject: Re: Sys V Compatibility Libs Date: 9 Jun 1995 06:14:38 -0000 Organization: Digital Fix Development Distribution: world Message-ID: <3r8ose$k89@digifix.digifix.com> References: <3r8hes$c1h@caesar.ultra.net> df@watershed.com writes > > I seem to remember that someone was selling Sys V compatibility libs for > NeXTSTEP (shared memory and all that fun stuff)... > > Anyone have any more info? > from the archives of comp.sys.next.announce From: gerben@rna.indiv.nluug.nl (Gerben Wierda) Newsgroups: comp.sys.next.announce Subject: PRESS RELEASE: R&A SHIPS SysVIPC: SYSTEM V SHARED MEMORY & SEMAPHORE EMULATION FOR NEXTSTEP Date: 29 Aug 1993 21:48:41 -0400 Organization: Next Announcements Lines: 43 Sender: sanguish@digifix.com Approved: sanguish@digifix.com Message-ID: <25rm9p$7cf@digifix.digifix.com> R&A SHIPS SysVIPC: SYSTEM V SHARED MEMORY & SEMAPHORE EMULATION FOR NEXTSTEP R&A is in the process of porting the University POSTGRES database system to NEXTSTEP (an announcement will be made within a couple of weeks). In the process of porting POSTGRES to NEXTSTEP we have written a System V shared memory and semaphore emulation. The emulation is not complete (due to system limitations), but we use this emulation succesfully for POSTGRES for example, and most uses will be without problems. SysVIPC has been compiled and tested under NEXTSTEP 3.x. It comes with a set of UNIX man pages. We offer three different licensing possibilities: A 1 CPU MAB license $50 A >1 CPU MAB (site) license $75 A source license $500 If there is much demand for a complete version, we will write a complete implementation. People who buy the current implementation get a free upgrade to a complete implementation if it is written. (Of course, source license owners can try to add the functionality themselves). For more information you can mail to gerben@rna.indiv.nluug.nl or call/fax to +31 70 3230851. Due to ongoing reconstruction activities, this fax is operational on weekdays only from 9.00 CDT until 21.00 CDT. That is approximately from 3:00 EDT until 15:00 EDT and 0:00 PDT until 12:00 PDT. You can also write to: R&A Goudreinetstraat 582 2564 PX Den Haag The Netherlands We prefer e-mail. NeXTmail welcome. gerben@rna.indiv.nluug.nl (Gerben Wierda) R&A is a small firm specialized in quality software design and implementation and consultancy. We are specialized in OO, Unix and NEXTSTEP. -- - Scott Anguish - sanguish@digifix.com (NextMail) next-announce@digifix.com (comp.sys.next.announce submissions) http://www.stepwise.com/ (Stepwise NEXTSTEP/OpenStep Information Server)
Newsgroups: comp.sys.next.programmer From: tomi@shinto.nbg.sub.org (Thomas Engel) Subject: Re: HeaderViewer...arrrgggl...NeXT please Message-ID: <D9wp80.H5@shinto.nbg.sub.org> Sender: tomi@shinto.nbg.sub.org (Thomas Engel) Organization: STEPeople's home (A NUGI member) References: <3r7af6$bcj@emerald.oz.net> Date: Fri, 9 Jun 1995 12:55:12 GMT In article <3r7af6$bcj@emerald.oz.net> art@cubicsol.com (Art Isbell) writes: > HeaderViewer 3.3 appears to start searching at the top of the > documentation stopping at the first match with the method name which isn't > usually where the method is documented :-( I usually end up having to run > Find on the method name within HeaderViewer until I get to the actual > documentation which is a bother. It is really depressing because even my stupid ClassEditor can do it better. It only takes a: - (BOOL)findText:(const char *)string ignoreCase:(BOOL)ignoreCaseflag backwards:(BOOL)backwardsflag wrap:(BOOL)wrapflag font:aSharedFont Now set the font to the Helvetica-Bold 18pt (?) font and everything should work at least in a useful fashion. That method is part of the MiscKits text categories (I guess still in Temp) Could anybody at NeXT take the HeaderViewer sources add the MiscKits text category and recompile with a font-based search...and then put that version on the ftp archives ? Aloha Tomi -- _________________________________________________________ (tomi@shinto.nbg.sub.org) Thomas Engel Neptunstr. 9 NeXTMail welcome D - 90522 Oberasbach Germany
From: jq@phcs.phcs.com (James E. Quick) Newsgroups: comp.sys.next.programmer Subject: Re: Seeking solutions for EOF back ends. Date: 9 Jun 1995 10:51:22 -0400 Organization: PHCS Message-ID: <3r9n5a$44i@papoose.quick.com> References: <3r4kp7$mk@papoose.phcs.com> In article <3r4kp7$mk@papoose.phcs.com>, James E. Quick <jq@phcs.phcs.com> wrote: >I have one mono turbo slab and one 486 box both running 3.3. >I have 3.2 available for the slab as well. > >I am looking for inexpensive solutions to do some home development >with EOF. I also have a couple of small projects which would benefit >from a relational back-end. Thanks to those who responded via email. Due to a tip from Art Isabell, I was able to get Sybase working by making some changes to my server side Sybase interfaces file. It looks like QuickBase is the best solution for when I outgrow the Sybase functionality. Thanks again -- ___ ___ | James E. Quick jq@phcs.com / / / | Private HealthCare Systems NeXTMail O.K. \_/ (_\/ | Systems Integration Group (617) 895-3343 ) | - My other car has a mouse.
From: Greg.Titus@mccaw.com (Greg Titus) Newsgroups: comp.sys.next.programmer Subject: Re: NeXTSTEP HTTP Server Date: 8 Jun 1995 21:40:15 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3r7qnv$5ue@nwestmail.nwest.mccaw.com> References: <jpanicoD9sqsv.DxB@netcom.com> In article <jpanicoD9sqsv.DxB@netcom.com> jpanico@netcom.com (Joe Panico) writes: > Guy K. Hillyer (gkh@shore.net) wrote: > : How about a browser? > > OmniWeb is a fantastic brwoser (better than Netscape for what it does, > though it doesn't have all of Netscapes features). Another great feature > of OmniWeb is that it is free. Just to make sure this isn't misunderstood... OmniWeb includes a free permanent one user license; i.e. only one copy can be running on a subnet at any time. Additional licences are available through Lighthouse Design (http://www.lighthouse.com/). I'm not sure what the pricing structure is... > You can get OmniWeb from the standard NS archives on cs.orst.edu: > > http://www.cs.orst.edu > > > Joe Panico > jpanico@netcom.com --------------------- Greg Titus Omni Development Inc. toon@omnigroup.com
From: chris@iastate.edu (Chris Wong) Newsgroups: comp.sys.next.programmer Subject: ncurses 1.9.2c compiled error on NS 3.3 Date: 11 Jun 1995 02:53:49 GMT Organization: Iowa State University, Ames, Iowa USA Message-ID: <3rdlrt$n4@news.iastate.edu> I've got these message while trying to compile ncurses on NS 3.3. Hope someone can help this. Thanks. Chris next> make cd src; make all compiling comp_main.o ./comp_main.c: In function `main': ./comp_main.c:111: `F_OK' undeclared (first use this function) ./comp_main.c:111: (Each undeclared identifier is reported only once ./comp_main.c:111: for each function it appears in.) *** Exit 1 Stop. *** Exit 1 Stop. -- MIME welcomed, NeXTMail Ok. Chris Wong | "Hardware is supposed to serve Software." chris@iastate.edu | Computer Engineering & Computer Science <:)>:)<:)>:)<:)>:)<:) | Iowa State University of Science and Technology
From: dcell@tudhope.com (Dan Ellison) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <dcell-0906951521590001@tudhope.tor.hookup.net> Control: cancel <dcell-0906951521590001@tudhope.tor.hookup.net> Date: Fri, 09 Jun 1995 15:23:19 +0500 Organization: Tudhope Associates Inc. Message-ID: <dcell-0906951523190001@tudhope.tor.hookup.net> cancel <dcell-0906951521590001@tudhope.tor.hookup.net>
From: sanguish@digifix.com (Scott Anguish) Newsgroups: comp.sys.next.programmer Subject: Re: perform:with:afterDelay in Foundation kit? Date: 9 Jun 1995 18:48:50 -0000 Organization: Digital Fix Development Distribution: world Message-ID: <3ra52i$qbs@digifix.digifix.com> References: <3r8rht$nb2@news.xmission.com> Don Yacktman writes > I wrote: > >[...] For NIL #5 I was working with > >an author who put together an article and demonstration app > >[...] I'll work with the author and see if > >he wouldn't mind us putting it up on the archives for FTP. > > OK, just an update. I got permission to make it publically > available. Try out the URL: > http://www.stepwise.com/Resources/Magazines/NEXT_IN_LINE/NEXT_IN_LINE_5/Delayed Perform.htmld > I'd just like to add that there is always room on Stepwise for these types of articles. If you have written, or want to write something of a programmer or user nature, please contact me. -- - Scott Anguish - sanguish@digifix.com (NextMail) next-announce@digifix.com (comp.sys.next.announce submissions) http://www.stepwise.com/ (Stepwise NEXTSTEP/OpenStep Information Server)
From: william@beirut.berkeley.edu (Andy Grosso) Newsgroups: comp.sys.next.programmer Subject: Finding out machine names ? Date: 9 Jun 1995 19:54:04 GMT Organization: Worm-Eaters Anonymous Message-ID: <3ra8ss$cq1@agate.berkeley.edu> Suppose I have a program running on a (small) network. How do I (programmatically) access details of the network-- machine names and addresses, etcetera... This is a general question and I'm really just looking for pointers to spots int he documentation. E-mail replies are encouraged. Andy Grosso
Newsgroups: comp.sys.next.programmer From: tom@basil.icce.rug.nl (Tom R.Hageman) Subject: Re: Sys V Compatibility Libs Message-ID: <D9xDAs.17z@basil.icce.rug.nl> Originator: root@obelix.icce.rug.nl Sender: tom@basil.icce.rug.nl (Tom R.Hageman) Organization: Warty Wolfs References: <3r8ose$k89@digifix.digifix.com> Date: Fri, 9 Jun 1995 21:35:15 GMT In article <3r8ose$k89@digifix.digifix.com> sanguish@digifix.com (Scott Anguish) writes: > df@watershed.com writes > > > > I seem to remember that someone was selling Sys V compatibility libs for > > NeXTSTEP (shared memory and all that fun stuff)... > > > > Anyone have any more info? > > > > from the archives of comp.sys.next.announce > > > From: gerben@rna.indiv.nluug.nl (Gerben Wierda) > Newsgroups: comp.sys.next.announce > Subject: PRESS RELEASE: R&A SHIPS SysVIPC: SYSTEM V SHARED MEMORY & SEMAPHORE > EMULATION FOR NEXTSTEP > Date: 29 Aug 1993 21:48:41 -0400 > Organization: Next Announcements > Lines: 43 > Sender: sanguish@digifix.com > Approved: sanguish@digifix.com > Message-ID: <25rm9p$7cf@digifix.digifix.com> > > R&A SHIPS SysVIPC: SYSTEM V SHARED MEMORY & SEMAPHORE EMULATION FOR NEXTSTEP [munch] > For more information you can mail to gerben@rna.indiv.nluug.nl or Just for the record, this email address is not valid anymore. Use <info@rna.nl> instead. -- __/__/__/__/ Tom Hageman <tom@basil.icce.rug.nl> [NeXTmail/Mime OK] __/ __/_/ IC Group <tom@icgned.nl> (work) __/__/__/ "...to baldly go where no one has gone before." __/ _/_/ -- star trek TNG
From: dcell@tudhope.com (Dan Ellison) Newsgroups: comp.sys.next.programmer Subject: Freeing objects which own windows Date: Fri, 09 Jun 1995 15:24:58 +0500 Organization: Tudhope Associates Inc. Distribution: world Message-ID: <dcell-0906951524580001@tudhope.tor.hookup.net> This may seem like a simple question, but I'm just getting into ObjC under NEXTSTEP. What's the accepted way of freeing an object which owns a window when a user clicks on the close button or hits command-w? As it stands, I implement windowWillClose, having the object free itself via "return [self free];". This seems to short-circuit the closing of the window. My "free" method does exit properly with "return [super free];", but the window stays on the screen. It's only after I send the window a "close" command from my "free" method that it disappears. Is this safe? It doesn't seem quite right to me. Please excuse my seeming naivite, but it puzzles me, and I don't want any undesirable side effects if I'm going about this the wrong way. ------------------------------------------------- Daniel C. Ellison Vox: 416-366-7100 Tudhope Associates Inc. Fax: 416-366-7711 International Graphic Design dcell@tudhope.com -------------------------------------------------
Newsgroups: comp.sys.next.programmer From: mreynold@netcom.com (Marc B. Reynolds) Subject: Re: Sites for GNU Smalltalk?? Message-ID: <mreynoldD9x6DB.L63@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <3r52d7$ibr@taco.cc.ncsu.edu> Date: Fri, 9 Jun 1995 19:05:35 GMT Sender: mreynold@netcom6.netcom.com In article <3r52d7$ibr@taco.cc.ncsu.edu>, James Kidd Smyth <jksmyth@eos.ncsu.edu> wrote: >Does anyone know where I can get a recent version of GNU Smalltalk?? >I have version 1.1.1, copyright circa 1990.. >I know, you're asking why would someone with access to Nextstep want to >mess with Smalltalk, but I would really appreciate any help 1.1.1 is the latest "release" version of GNU Smalltalk. V2.0 is being actively worked on. I however don't know where they are storing the alpha versions. You can probably get ahold of it, if your will to accept that it's provided "as is" and will be buggy. I'm sure they wouldn't mind an extra developer, if your "really" interested. :) There's another smalltalk package from germany (SmallTalk/X) which works (supposedly) on a NeXT. This is the educational version of a commerial product. I can't remember where it's distributed from, however. Cheers, Marc R -- ------------------------------------------------------------------------------- Marc B. Reynolds W: (510) 814-6384 mreynold@netcom.com (No NeXT-mail) -------------------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer From: as@asci.fdn.fr (Antoine Schmitt) Subject: Re: Does it make sense? Message-ID: <1995Jun8.231756.4624@asci.fdn.fr> Sender: as@asci.fdn.fr Organization: Antoine Schmitt - Paris, France. References: <3r5vvc$1hn@epx.cis.umn.edu> Date: Thu, 8 Jun 1995 23:17:56 GMT In article <3r5vvc$1hn@epx.cis.umn.edu> klett002@maroon.tc.umn.edu (James P Klett) writes: > The delema is that I can go will Mr. Gates and be safe and knowone > will be the wiser, Or I can got with leading edge technology and > only I will be the wiser. Take your glass, my friend, and drink, You'll have centuries to sleep. Omar Khayyam Go ahead, please yourself ! Antoine -- ________________________________________________________ Antoine Schmitt Consultant Informatique - Paris - France as@asci.fdn.fr - (33 1) 44 62 97 77 - NeXT mail welcome
Newsgroups: comp.sys.next.programmer From: as@asci.fdn.fr (Antoine Schmitt) Subject: Re: perform:with:afterDelay in Foundation kit? Message-ID: <1995Jun8.232451.4746@asci.fdn.fr> Sender: as@asci.fdn.fr Organization: Antoine Schmitt - Paris, France. References: <3r5cuo$2qg@news.xmission.com> Date: Thu, 8 Jun 1995 23:24:51 GMT In article <3r5cuo$2qg@news.xmission.com> don@darth (Don Yacktman) writes: > martin@rat.se wrote: > He had put > together a sidebar and a second copy of the demo showing how to > do it with the Foundation Kit--basically what you suggest: a > category on NSObject to implement the method. It turns out to > be relatively simple. It is very simple if you do not want the 'cancelPrevious' part. If you want it, you have to keep by hand a datastructure of all selectors and targets that are pending and remove the pending ones when you get a new one, remembering the last delay, and then when your turn comes, you send only the remaining one. THIS is a pain. Especially if you want this thing to go fast. I know, I wrote one some time ago, but the code is not mine any more... Antoine -- ________________________________________________________ Antoine Schmitt Consultant Informatique - Paris - France as@asci.fdn.fr - (33 1) 44 62 97 77 - NeXT mail welcome
From: Adrian Smith <ams94@ecs.soton.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: Freeing objects which own windows Date: 11 Jun 1995 17:06:45 GMT Organization: Electronics and Computer Science, University of Southampton Message-ID: <3rf7r5$amo@bright.ecs.soton.ac.uk> References: <dcell-0906951524580001@tudhope.tor.hookup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: dcell@tudhope.com dcell@tudhope.com (Dan Ellison) wrote: >As it stands, I >implement windowWillClose, having the object free itself via "return [self >free];". This seems to short-circuit the closing of the window. My "free" >method does exit properly with "return [super free];", but the window stays >on the screen. It's only after I send the window a "close" command from my >"free" method that it disappears. Is this safe? It doesn't seem quite >right to me. I too am new to NEXTSTEP and ObjC: in fact I don't even have a NEXTSTEP platform yet!! But: in my understanding, your windowWillClose method needs to return a BOOL. I think (although it could be the other way round) that returning 1 means that the window should close as normal (as if no method had been registered with the system), and 0 means that the window should not close (eg. user has decided to 'cancel' the close window from some dialogue box). Hope this is of help (check your documentation for the exact values of constants). Anyone: feel free to correct me if I'm not right. Adrian.
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: comp.sys.next.programmer Subject: shlibs in NEXTSTEP ? Date: 10 Jun 1995 14:22:06 GMT Organization: University of Heidelberg, Germany Message-ID: <3rc9qe$mqe@sun0.urz.uni-heidelberg.de> Please someone enlighten me a little bit: What's situation with shlib's in NEXTSTEP ? I darkly remember that support for compiling your own shared libs once was announced for 3.3 Developer, but it didn't seem to have made it through yet. A build in the compiler sources delivered with 3.3Dev fails while trying to build a shlib version (!) of the runtime libraries due to the lack of <libsys/shlib.h>. The build is triggered from static to shlib only by the inclusion of -DSHLIB, which's only effect is to include <libsys/shlib.h> in libgcc1.c. Then the RTF files documenting the compiler sources list the following as 'features in test bed', 'not enabled as default': - "Shlib codegen; -fpic and -fPIC. (m68k only) Generate code for the new shared library scheme." These switches are used by many other platforms, too. for shlibs. With cc from 3.3Dev they don't seem to work yet. - "Dylib codegen; -k. (m68k and i386) Generate code for the new dynamic shared library scheme. Eventually, this flag will be named `-NEXTSTEP-deployment- target 3.3'." -k with 3.3Dev cc results in bigger .o files, so there's some functionality. Finally, libtool shows command line options "[-static] [-dynamic [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#]]" which aren't documented anywhere. They seem to be used in ranlib, too. Using -dynamic with libtool gives the error message "ld: can't locate file for: -ldylib1.o; libtool: internal link edit command failed". All I wanna do at the moment is to build a library, kpathsearch, as shlib. On other architectures (Linux, HP/UX) this is possible with a compiler switch like "-shared" (gcc), and another switch at the final lib link like "-Wl,soname...". Is there anything similar with NEXTSTEP ? I'm afraid not... Any hint appreciated! Gregor -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
From: jcr@best.com (John C. Randolph) Newsgroups: comp.sys.next.programmer Subject: Re: Freeing objects which own windows Date: 11 Jun 1995 11:57:29 -0700 Organization: Best Internet Communications, Inc. (info@best.com) Message-ID: <3rfeba$dof@shell1.best.com> References: <dcell-0906951524580001@tudhope.tor.hookup.net> First point: the 'windowWillClose:' method returns an id. The value of this id is usually the id of the window's delegate, but if the delegate wants to veto the window closing, it can return nil from this method. Second point: if you free the window's delegate in windowWillClose, then it dies within the scope of the windowWillClose method. You really need it to stick around a bit, at least until the next passthrough the event loop. The Appkit comes to your rescue with the 'perform:with:afterDelay:cancelPrevious:' method. You can use this to cue up the free message, like this: - windowWillClose:sender { [self perform:@selector(free) with:nil afterDelay:0 cancelPrevious:YES]; return self; } The upshot is that the window sees the id of this delegate as the value returned from this method, so it goes ahead and closes. But, the free message will kill the delegate the next time the app looks for events. Hope this helps, -jcr
From: idpt820@tpts1.seed.net.tw Newsgroups: comp.sys.next.programmer Subject: satan Date: 10 Jun 1995 07:26:46 GMT Organization: Seednet, Institute for Information Industry, Taiwan Distribution: world Message-ID: <3rbhfm$opn@aladdin.iii.org.tw> Dear NeXT Experts, On running reconfig, the script was terminated unexpectedly because it could not find config/path.pl and path.sh files. I have tried to solve this problem by either put the config folder under root directory or modify the reconfig script. Thus the reconfig script could locate those files successfully( adding satan-1.1/ before config/paths.pl and paths.sh. However I still get the following message on running reconfig-checking to make sure all the target(s) are here... Ok, trying to find perl5 now... hang on a bit... Perl5 is in /usr/local/bin/perl5.001 changing the source in: satan-1.1/bin/get_targets satan-1.1/bin/faux_fping satan-1.1/ satan-1.1/bin/boot.satan satan-1.1/bin/dns.satan satan-1.1/bin/finger.satan satan-1.1/bin/ftp.satan satan-1.1/bin/nfs-chk.satan satan-1.1/bin/rex.satan satan-1.1/bin/rpc.satan satan-1.1/bin/rsh.satan satan-1.1/bin/rusers.satan satan-1.1/bin/showmount.satan satan-1.1/bin/tcpscan.satan satan-1.1/bin/tftp.satan satan-1.1/bin/udpscan.satan satan-1.1/bin/xhost.satan satan-1.1/bin/yp-chk.satan satan-1.1/bin/ypbind.satan satan-1.1/perl/html.pl Can't do inplace edit: satan-1.1/ is not a regular file at -e line 1, <> line 75. Cannot find a web browser! SATAN cannot be run except in CLI So far so good... Looking for all the commands now... AEEEIIII...!!! can't find xhost Ok, now doing substitutions on the shell scripts... Changing paths in satan-1.1/config/paths.pl... Changing paths in satan-1.1/config/paths.sh... [Process completed] The director of all above bin files like get_targets, faux_fping etc were changed to satan-1.1/bin/ rather than initial bin/. Then I follow receipe from NeXTAnswer step by step. On running make bsd, I got the following error message:jesse:8# make bsd cd src/misc; make "LIBS=" "XFLAGS=-DAUTH_GID_T=int" "RPCGEN=rpcgen" cc -O -I. -DAUTH_GID_T=int -o ../../bin/safe_finger safe_finger.c putenv.c putenv.c:1: illegal expression, found `/' putenv.c:1: illegal external declaration, missing `;' after `sh' putenv.c:2: undefined type, found `bin' putenv.c:3: illegal external declaration, missing `;' after `md5' putenv.c:3: undefined type, found `sys_socket' putenv.c:3: illegal function definition, found `/' putenv.c:3: undefined type, found `timeout' putenv.c:3: illegal function definition, found `/' putenv.c:3: undefined type, found `rcmd' putenv.c:3: illegal function definition, found `/' putenv.c:3: undefined type, found `safe_finger' putenv.c:3: illegal function definition, found `/' putenv.c:3: undefined type, found `rex' putenv.c:5: illegal external declaration, missing `;' after `)' putenv.c:6: illegal method definition, found `=' putenv.c:8: undefined or invalid # directive putenv.c:36: illegal method definition, missing `{' after `c' *** Exit 1 Stop. *** Exit 1 Stop. *** Exit 1 Stop. What should I do to solve this problem?
From: bm10009@hermes.cam.ac.uk (Ben Moseley) Newsgroups: comp.sys.next.programmer Subject: Re: Freeing objects which own windows Date: 11 Jun 1995 19:31:10 GMT Organization: University of Cambridge, England Message-ID: <3rfg9u$98c@lyra.csx.cam.ac.uk> References: <3rf7r5$amo@bright.ecs.soton.ac.uk> In article <3rf7r5$amo@bright.ecs.soton.ac.uk> Adrian Smith <ams94@ecs.soton.ac.uk> writes: > dcell@tudhope.com (Dan Ellison) wrote: > >As it stands, I > >implement windowWillClose, having the object free itself via "return [self > >free];". This seems to short-circuit the closing of the window. My "free" > >method does exit properly with "return [super free];", but the window stays > >on the screen. It's only after I send the window a "close" command from my > >"free" method that it disappears. Is this safe? It doesn't seem quite > >right to me. > > I too am new to NEXTSTEP and ObjC: in fact I don't even have a NEXTSTEP > platform yet!! But: in my understanding, your windowWillClose method needs to > return a BOOL. I think (although it could be the other way round) that > returning 1 means that the window should close as normal (as if no method had > been registered with the system), and 0 means that the window should not close > (eg. user has decided to 'cancel' the close window from some dialogue box). > > Hope this is of help (check your documentation for the exact values of > constants). Anyone: feel free to correct me if I'm not right. > > Adrian. Have you tried using Application's delayedFree: method? I think it should be safe to call that from the delegate method. I believe it is similar to using autorelease in the default pool under the Foundation kit in that it gets applied after the end of the current event. Alternatively set the window to free automatically when closed. Ben.
From: plongsi@falcon.inetnebr.com (Pohl Longsine) Newsgroups: comp.sys.next.programmer Subject: Re: HeaderViewer...arrrgggl Date: 9 Jun 1995 01:28:23 GMT Organization: Internet Nebraska Message-ID: <3r883n$1q9@duck.inetnebr.com> References: <D9tEID.1uG@shinto.nbg.sub.org> <jpanicoD9tsE6.LJG@netcom.com> Joe Panico (jpanico@netcom.com) wrote: : Thomas Engel (tomi@shinto.nbg.sub.org) wrote: : I too have been having problems with HeaderView in 3.3. Not only does : it not always find the right selector, but it also now crashes a fair : amount when accessing foundation and EOF header files. But 3.2 was : rock solid for me. Anyone else having this problem? Yup. I noticed it, too. Anyone else? -- ____/| | Pohl Longsine, OpenStep Software Developer \ o.O| GPF! | "I don't do Windows." =(_)= CTLALTDLT! | plongsi@inetnebr.com (Internet Nebraska) U (Bill Gates, The Cat) | NeXT & MIME mail formats accepted.
From: plongsi@falcon.inetnebr.com (Pohl Longsine) Newsgroups: comp.sys.next.programmer Subject: Re: Does it make sense? Date: 9 Jun 1995 01:36:23 GMT Organization: Internet Nebraska Message-ID: <3r88in$1q9@duck.inetnebr.com> References: <3r5vvc$1hn@epx.cis.umn.edu> James P Klett (klett002@maroon.tc.umn.edu) wrote: : I am in the beginning stages of a large software project (1 year deal) : I am still evaluating platforms. : Does it make sense to delve into OpenStep or will I be risking : everything on the future? : The delema is that I can go will Mr. Gates and be safe and knowone : will be the wiser, Or I can got with leading edge technology and : only I will be the wiser. I think that it may make a lot of sense to develop for OpenStep. (Then again, it may not. I'm not familiar with the problem that your software needs to solve.) If it's going to be a custom piece of software, the operation of which will be pivotal in the role of the success to the business -- one which may need to be updated and change as the shape of the business changes -- then "yes." It's a marvelous choice to go with OpenStep. Of course, there are tons of other issues involved. (The resources you have to spend on programmer-hours, the need for the system to be "portable," etc...) It would take a more detailed understanding of your needs to make a more educated statement. The good news is that I can't think of *any* circumstances where it might be beneficial to use Windows for custom software development. -- ____/| | Pohl Longsine, OpenStep Software Developer \ o.O| GPF! | "I don't do Windows." =(_)= CTLALTDLT! | plongsi@inetnebr.com (Internet Nebraska) U (Bill Gates, The Cat) | NeXT & MIME mail formats accepted.
Newsgroups: comp.sys.next.programmer From: anderson (Ken Anderson) Subject: Re: Freeing objects which own windows Message-ID: <1995Jun11.181639.266@biztech.com> Sender: news@biztech.com Organization: Biztech, Inc. References: <dcell-0906951524580001@tudhope.tor.hookup.net> Date: Sun, 11 Jun 1995 18:16:39 GMT Daniel, Since -free returns nil, you are effectively telling the window that you don't want it to close. Returning nil to -windowWillClose: will stop the window from closing. Ken Anderson anderson@biztech.com In article <dcell-0906951524580001@tudhope.tor.hookup.net> dcell@tudhope.com (Dan Ellison) writes: >This may seem like a simple question, but I'm just getting into ObjC under >NEXTSTEP. > >What's the accepted way of freeing an object which owns a window when a >user clicks on the close button or hits command-w? As it stands, I >implement windowWillClose, having the object free itself via "return [self >free];". This seems to short-circuit the closing of the window. My "free" >method does exit properly with "return [super free];", but the window stays >on the screen. It's only after I send the window a "close" command from my >"free" method that it disappears. Is this safe? It doesn't seem quite >right to me. > >Please excuse my seeming naivite, but it puzzles me, and I don't want any >undesirable side effects if I'm going about this the wrong way. > >------------------------------------------------- >Daniel C. Ellison Vox: 416-366-7100 >Tudhope Associates Inc. Fax: 416-366-7711 >International Graphic Design dcell@tudhope.com >-------------------------------------------------
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: Is there a patch for BUG #21973 ? In-Reply-To: Robert Lutwak's message of 10 Jun 1995 20:25:33 GMT Message-ID: <RANDY.95Jun11001656@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <3rcv3u$1h0@senator-bedfellow.MIT.EDU> Date: Sun, 11 Jun 1995 05:16:56 GMT In article <3rcv3u$1h0@senator-bedfellow.MIT.EDU> Robert Lutwak <robert@amo.mit.edu> writes: From the NS3.2 Developer Release Notes: --- BUG # 21973: When using Distributed Objects, if you pass a string (using char * or const char *) as an argument to a Distributed Objects server, the memory allocated by the server for this argument is not freed. Workaround: none --- I've tried calling free((char *)passedpointer) from my server app, but it doesn't help. Does anybody have a workaround for this? If there is no way to free the memory, is it possible to coerce D.O. to use the same buffer repeatedly? Is it fixed in 3.3 Developer? Actually freeing the pointer yourself should work. When you say it "doesn't help", do you mean the memory is still leaked? Anyway, just calling free() with the pointer should work. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
From: richard@runner.uucp@usc.edu (Richard Ruth) Newsgroups: comp.sys.next.programmer Subject: Using Stuart vice Terminal from Proj. Build. Date: 10 Jun 1995 16:59:19 -0700 Organization: runner Message-ID: <3rdbkn$qrl@runner.uucp> Keywords: ProjectBuilder Stuart Terminal When I press the debug button in ProjectBuilder, one of the windows that opens is a Terminal.app terminal window. I would much rather have ProjectBuilder open a Stuart.app terminal window. How do I make this change? I have tried re-naming Stuart.app and then placing a soft link in the /NextApps directory: ln -s /LocalApps/utility/Stuart.app Terminal.app and then placing the following soft link within Stuart.app: ln -s Stuart Terminal This causes an error from Project Builder. (But ProjectBrilder does open Stuart.) Any suggestions? richard%runner.uucp@usc.edu -- Richard richard%runner.uucp@usc.edu (ok to send NeXT Mail)
From: stefanos@Vir.com (Stefanos Kiakis) Newsgroups: comp.sys.next.programmer Subject: How to remove a user defined palette from IB. Date: 11 Jun 1995 18:38:54 -0400 Organization: Communications Vir, Internet Access Montreal. Message-ID: <3rfr9u$p4s@Vir.com> Hello, I just loaded a palette in IB, but every time I start IB the palette is still there. I checked the tools directory but there is no menu entry to remove the palette. How do I remove the palette? Thanks in advance, stef
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: Freeing objects which own windows In-Reply-To: Adrian Smith's message of 11 Jun 1995 17:06:45 GMT Message-ID: <RANDY.95Jun11175136@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <dcell-0906951524580001@tudhope.tor.hookup.net> <3rf7r5$amo@bright.ecs.soton.ac.uk> Date: Sun, 11 Jun 1995 22:51:36 GMT In article <3rf7r5$amo@bright.ecs.soton.ac.uk> Adrian Smith <ams94@ecs.soton.ac.uk> writes: >As it stands, I >implement windowWillClose, having the object free itself via "return [self >free];". This is bad -- the window sends the windowWillClose: message when it's about to close but it has things to do before it gets freed. If you free it here, it will attempt to continue processing but it will have been freed, and the additional processing may access a freed object which will result in a crash. I too am new to NEXTSTEP and ObjC: in fact I don't even have a NEXTSTEP platform yet!! But: in my understanding, your windowWillClose method needs to return a BOOL. I think (although it could be the other way round) that returning 1 means that the window should close as normal (as if no method had been registered with the system), and 0 means that the window should not close (eg. user has decided to 'cancel' the close window from some dialogue box). Yep, this is in the documentation. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs,comp.soft-sys.nextstep Subject: NEXTSTEP Resources on the Internet Date: 12 Jun 1995 04:15:14 GMT Organization: Digital Fix Development Distribution: inet Message-ID: <3rgf0i$m1m@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment - Status reports on GNUStep, a freely-available implementation of OpenStep now being developed NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff ftp://ftp.informatik.uni-muenchen.de: (Peanuts) Located in Germany. ftp://ftp.dn.net/pub/next Peanuts mirror in the US ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.nmr.embl-heidelberg.de/pub/next/ eduStep ftp://ftp.next.com: See below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: How to remove a user defined palette from IB. In-Reply-To: stefanos@Vir.com's message of 11 Jun 1995 18:38:54 -0400 Message-ID: <RDL.95Jun12011808@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3rfr9u$p4s@Vir.com> Date: Mon, 12 Jun 1995 05:18:08 GMT In 3.3, this is very simple though obscure. Go into Info->Preferences, select "Palettes" from the popuplist, ALT-drag the unwanted palette out of the window. Prior to 3.3 (or was that 3.2?) you needed to edit ~/.NeXT/defaults.nibd and remove the unwanted palette by hand. Robert La Ferla Registered NS Consultant / Developer / Trainer + 1 (617) 252-0088
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: HeaderViewer...arrrgggl In-Reply-To: plongsi@falcon.inetnebr.com's message of 9 Jun 1995 01:28:23 GMT Message-ID: <RDL.95Jun12012021@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <D9tEID.1uG@shinto.nbg.sub.org> <jpanicoD9tsE6.LJG@netcom.com> <3r883n$1q9@duck.inetnebr.com> Date: Mon, 12 Jun 1995 05:20:21 GMT While we're beating on HeaderViewer, I thought I'd mention that everyone should check out a very cool and free application called "ClassEditor" An announcement was recently posted to comp.sys.next.announce. Robert
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: Re: Freeing objects which own windows Date: 12 Jun 1995 06:59:51 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3rgol7$15m@snaps.dannug.dk> References: <3rfeba$dof@shell1.best.com> A simple [NXApp delayedFree:<object>] may also do the trick. Geert John C. Randolph writes > First point: the 'windowWillClose:' method returns an id. The value of > this id is usually the id of the window's delegate, but if the delegate > wants to veto the window closing, it can return nil from this method. > > Second point: if you free the window's delegate in windowWillClose, then > it dies within the scope of the windowWillClose method. You really need > it to stick around a bit, at least until the next passthrough the event loop. > > The Appkit comes to your rescue with the > 'perform:with:afterDelay:cancelPrevious:' method. You can use this to > cue up the free message, like this: > > - windowWillClose:sender > { > [self perform:@selector(free) with:nil afterDelay:0 cancelPrevious:YES]; > return self; > } > > The upshot is that the window sees the id of this delegate as the value > returned from this method, so it goes ahead and closes. But, the free > message will kill the delegate the next time the app looks for events. > > Hope this helps, > > -jcr
From: eric@du.com Newsgroups: comp.sys.next.programmer Subject: Good Smalltalk books? Date: 12 Jun 1995 06:53:38 GMT Organization: Rust Net - High Speed Internet in Detroit 810-642-2276 Message-ID: <3rgo9i$b6n@oxy.rust.net> First, does anyone know of good introductory SmallTalk books? Second, is there anything available in the public domain that brings Smalltalk in any form to NEXTSTEP? aTdHvAaNnKcSe, Eric eric@du.com
From: malloggi@intersoft.next.it Newsgroups: comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.misc,comp.sys.next.programmer,comp.sys.next.software Subject: Re: NEXT PEOPLE NEEDED IN MADRID Date: 7 Jun 1995 18:14:28 GMT Organization: CompuServe Incorporated Message-ID: <3r4qa4$p5c@dub-news-svc-1.compuserve.com> References: <3quhlh$g8c$2@mhadg.production.compuserve.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: malloggi@intersoft.next.it Jesus M. Izquierdo <72332.3705@CompuServe.COM> wrote: >Need people with experience in NextStep for Intel in Madrid for >occassional projects. English/Spanish languages. > >Please answer with personal E-mail to: >72332.3705@compuserve.com > >Or Tel: 34 1 6779774 >Fax: 34 1 6772649 > >Jesus Izquierdo
From: Jeff Franco <jeff_franco@notes.pw.com> Newsgroups: comp.sys.next.programmer Subject: EOF Adaptor not loading Date: 12 Jun 1995 13:21:46 GMT Organization: BDM International, Inc. Message-ID: <3rhf1a$8cr@news.bdm.com> While trying to load and compile an app from PB I get this error: Uncaught exception: _newDataBaseWithModel:databaseName:: EOModel file:"users/....dsaa1.eomodel: specifies nonexistent adaptor with name "Oracle7". exiting ..Undefined symbols: Has anybody seen this before, if so, please help. Thanks, Jeff Franco jeff_franco@notes.pw.com
From: Mike Hostetter <Michael_Hostetter@JHUAPL.Edu> Newsgroups: comp.sys.next.programmer Subject: Help! Passing Function Pointers in Methods Date: 12 Jun 1995 15:02:16 GMT Organization: JHU/Applied Physics Laboratory Message-ID: <3rhkto$ft3@aplinfo.jhuapl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NeXT-o-philes, I would like to pass a function pointer into a method but I am not able to figure out the correct syntax. Can this be done? If so, how? If not, what other options might I have (i.e., what's the NeXT way to do this)? Thanks! Mike
From: Mike Hostetter <Michael_Hostetter@JHUAPL.Edu> Newsgroups: comp.sys.next.programmer Subject: Is there a Date/Time object? Date: 12 Jun 1995 17:37:18 GMT Organization: JHU/Applied Physics Laboratory Message-ID: <3rhu0e$of7@aplinfo.jhuapl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NeXTperts, Is there such a thing as a Date/Time object in the standard NeXT libraries? If not, does anyone out there have a good implementation that they would be willing to send me? Thanks! Mike
From: Mike Hostetter <Michael_Hostetter@JHUAPL.Edu> Newsgroups: comp.sys.next.programmer Subject: More Help! Function Pointers as Attributes Date: 12 Jun 1995 17:39:35 GMT Organization: JHU/Applied Physics Laboratory Message-ID: <3rhu4n$of7@aplinfo.jhuapl.edu> References: <3rhkto$ft3@aplinfo.jhuapl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Your NeXTellencies, Also, how would I (or should I) make a function pointer an attribute of an object? Thanks again! Mike
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Is there a Date/Time object? In-Reply-To: Mike Hostetter's message of 12 Jun 1995 17:37:18 GMT Message-ID: <RDL.95Jun12135704@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3rhu0e$of7@aplinfo.jhuapl.edu> Date: Mon, 12 Jun 1995 17:57:04 GMT The FoundationKit has the NSDate class. If you are not using FoundationKit, you can try the MiscKit. Robert La Ferla Registered NEXTSTEP Consultant / Developer / Trainer + 1 (617) 252-0088
Newsgroups: comp.sys.next.software,comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Make Edit.app Display White-on-Black? In-Reply-To: andylee@netcom.com's message of Fri, 9 Jun 1995 07:11:43 GMT Message-ID: <RDL.95Jun12135911@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <andylee-0906950011430001@idtech.com> Date: Mon, 12 Jun 1995 17:59:11 GMT This would be hard to do since Edit.app uses the Text object. If you really need this, try Emacs.app. It's a NEXTSTEP GUI version of emacs 19. Robert La Ferla Registered NEXTSTEP Consultant / Developer / Trainer + 1 (617) 252-0088
From: pisul_cj@cowley.uwlax.edu (Charles Pisula S92) Newsgroups: comp.sys.next.programmer Subject: Unwanted code optimization Date: 12 Jun 1995 18:50:22 GMT Organization: University of Wisconsin - La Crosse Message-ID: <3ri29e$io9@alfred.acs.uwlax.edu> I have had a problem with the compiler optimizing out some variables when they definitely should not have been. The code should work as written, but inorder for the compiler not to optimize out the _cellList_ variable, I had to do a work around. The work around is no big deal, but it is rather annoying to have to do and the error is hard to find when you aren't expecting it! Any comments and suggestions are welcome. Has anyone else had similar problems. Here is the code snippet followed by the work around: Snippet: - formSelectedFromMatrix:matrix { int i=0; id cell,selList; [matrix getSelectedCells:selList]; for(i=0;i<[selList count];i++) { cell = [selList objectAt:i]; if(![self formulateCell:cell]) { [TheScrollView deselectCell:cell]; [selList removeObject:cell]; } } return self; } workaround: - formSelectedFromMatrix:matrix { int i=0; id cell; id selList = [[List alloc] init]; [matrix getSelectedCells:selList]; for(i=0;i<[selList count];i++) { cell = [selList objectAt:i]; if(![self formulateCell:cell]) { [TheScrollView deselectCell:cell]; [selList removeObject:cell]; } } return self; } -----> keep in mind -getSelectedCells is supposed to create a list if it's argument is nil. -- Thanks in Advance Chuck Pisula ------------------------------------------------- Steve Jobs quote From UnixWorld, April 1993 "If we give people an alternative to Microsoft... it will have been a greater good." ------------------------------------------------- ***
From: toddt@nshade.uah.ualberta.ca (Todd Thomas) Newsgroups: comp.sys.next.programmer Subject: Eval3.3 and Interface Builder? Date: 12 Jun 1995 19:05:50 GMT Organization: Computing and Network Services, U of Alberta, Edmonton, Canada Message-ID: <3ri36e$e7c@rover.ucs.ualberta.ca> Hello fellow developers, Has anyone else who's had a little time to play with Eval 3.3 thought about what it would be like if Eval was combined with Interface Builder? You could then incrementally compile your controller classes and all those views that you normally use the "Custom View" placeholder for. Within reason, you could pretty much write your entire app in IB. Just open a code window, make a small change to your subclass of view, and load the class again. You could then use "Test Interface" and have everything work. Has anyone else thought about this? And for anyone who hasn't taken a look at Eval3.3, make sure you do. It is an excellent piece of work. Todd Thomas todd@avocado.supernet.ab.ca [NeXTMail, MIME] toddt@nshade.uah.ualberta.ca [ASCII, MIME] Edmonton, AB, Canada
From: Greg.Titus@mccaw.com (Greg Titus) Newsgroups: comp.sys.next.programmer Subject: Re: Unwanted code optimization Date: 12 Jun 1995 20:23:15 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3ri7nj$f17@nwestmail.nwest.mccaw.com> References: <3ri29e$io9@alfred.acs.uwlax.edu> In article <3ri29e$io9@alfred.acs.uwlax.edu> pisul_cj@cowley.uwlax.edu (Charles Pisula S92) writes: > > I have had a problem with the compiler optimizing out some variables > when they definitely should not have been. The code should work as > written, but inorder for the compiler not to optimize out the _cellList_ > variable, I had to do a work around. The work around is no big deal, > but it is rather annoying to have to do and the error is hard to find > when you aren't expecting it! Any comments and suggestions are welcome. > Has anyone else had similar problems. Here is the code snippet followed > by the work around: [most of code removed] This isn't a compiler bug, see below.... > > [matrix getSelectedCells:selList]; > > -----> keep in mind -getSelectedCells is supposed to create a list if > it's argument is nil. You have two problems here. First, yes it does create a list if it's argument is nil. The last sentence of the method documentation reads: "Returns the List containing the Cells". You would be just fine if you had written: selList = [matrix getSelectedCells:nil]; The second problem with your original code is you declared selList as a local variable and haven't set its value yet, i.e. it's pointing off at some random spot in memory, and isn't neccesarily nil. > Thanks in Advance > > Chuck Pisula -Greg --------------------- Greg Titus Omni Development Inc. toon@omnigroup.com
From: shess@subzero.winternet.com (Scott Hess) Newsgroups: comp.sys.next.programmer Subject: How does IB determine what actions and outlets my object has? Date: 12 Jun 1995 23:01:23 GMT Organization: Is a sign of weakness Distribution: world Message-ID: <SHESS.95Jun12180123@subzero.winternet.com> I'm working on a palette for IB which contains an object with dynamic actions and outlets. Depending on certain parameters, it can provide a different set of actions or outlets for the user to hook things up with. Unfortunately, I'm not clear on how InterfaceBuilder determines what options it has for hooking an object up! For custom objects and views, the user has to either enter the data manually, or parse it in. That's literally not an option in this case, since the names of the outlets and actions are coming from my code, not from the user (except indirectly). One area I've been looking at is a connections inspector. I could reimplement all of the outlet-connecting parts of the connections inspector. This would be annoying (since I'd want it to perform _exactly_ as it currently does, with the extra benefit of being able to query my object for it's outlets). It also wouldn't help for the action side of things, since I don't believe that I can implement a connection inspector for other object's target/action connections! What I'd really love to have would be something on the order of the following to be used to figure out which outlets I have: -(unsigned)outletCount; -(const char *)outletNameAt:(unsigned)index; or perhaps: -(const char **)outletNames; Then the connection's inspector can traverse the list of outlet names for my object, and load the browser with that. I'd like the same basic thing for availeble actions. Any other related interfaces would be interesting to know about, too. Thanks, -- scott hess <shess@winternet.com> (WWW to "http://www.winternet.com/~shess/") Home: 12901 Upton Avenue South, #326 Burnsville, MN 55337 (612) 895-1208 Office: 101 W. Burnsville Pkwy, Suite 108F, Burnsville, MN 55337 890-1332 <?If you haven't the time to design, where will you find the time to debug?>
From: pgriffin@anole (Paul A Griffin) Newsgroups: comp.sys.next.programmer Subject: Re: Multiple views of same document? Date: 13 Jun 1995 02:22:54 GMT Organization: Internet Exchange Carrier Message-ID: <3rispu$1g6@ixc.ixc.net> References: <3qv9sb$lg3@lyra.csx.cam.ac.uk> Here is how you use the same text object with multiple parent views: I have a document manager, which controls the text object and insures the integrity of the data. One of its methods is update. The viewerList is a time ordered (0 is most recent) list of view which display the text object. the update method insures that all views of the text get updated. A viewer object is a controller for a view of the text. The key line is /* get text to regard this viewer's contentView as ancestor */ [scroller setDocView:[manager text]]; This assigned the text to the viewer for a while. What a hack! --Paul Griffin pgriffin@inx.net - update /* update viewers */ { id aViewer; int i, viewerCount = [viewerList count]; BOOL isMain = [[mostRecentViewer window] isMainWindow]; NXSelPt start, end; if (isMain) { if (viewerCount == 1) return self; [text getSel:&start :&end]; } for (i = viewerCount - 1; i>= 0; i--){ aViewer = [viewerList objectAt:i]; [aViewer update]; [[aViewer window] displayIfNeeded]; } if (isMain && (start.cp == end.cp)) [text setSel:start.cp :end.cp]; return self; } This is the viewer update method: - update /* update the contents of the viewer */ { NXRect visibleRect, oldTextBounds; NXSize newSize, maxScrollSize; NXPoint scrollPoint; id text = [manager text]; /* turn off drawing to the screen */ [window disableDisplay]; /* get old coordinate origin and size of *displayed* text */ [scroller getDocVisibleRect:&visibleRect]; /* get text to regard this viewer's contentView as ancestor */ [scroller setDocView:[manager text]]; /* get the bounds rect of the text (the full size of the text) */ [text getBounds:&oldTextBounds]; /* set the width of the text to be the viewers width * and the height to be at least the height of the visible * part of the viewer */ newSize.width = visibleRect.size.width; newSize.height = (visibleRect.size.height > oldTextBounds.size.height) ? visibleRect.size.height : oldTextBounds.size.height ; [text sizeTo:newSize.width :newSize.height]; /* scroll to correct (initial if possible) position */ maxScrollSize.width = newSize.width - visibleRect.size.width; maxScrollSize.height = newSize.height - visibleRect.size.height; scrollPoint.x = (maxScrollSize.width < visibleRect.origin.x) ? maxScrollSize.width : visibleRect.origin.x ; scrollPoint.y = (maxScrollSize.height < visibleRect.origin.y) ? maxScrollSize.height : visibleRect.origin.y ; [[scroller contentView] rawScroll:&scrollPoint]; [scroller reflectScroll:[scroller contentView]]; /* allow results to be sent to screen */ [window reenableDisplay]; return self; }
From: leigh@antechinus.cs.uwa.oz.au (Leigh Smith) Newsgroups: comp.sys.next.programmer Subject: Matrices with uneven spaced cells? Date: 13 Jun 1995 04:36:15 GMT Organization: The University of Western Australia, Department of Computer Science Distribution: world Message-ID: <3rj4jv$2hi@bilby.cs.uwa.oz.au> Hi all, I have an application to have a horizontal matrix (a vector?) of sliders, except for user intf design reasons, I want them unevenly spaced across the panel (to mimic the front panel of a music synthesiser). I can't seem to find a way to have them spaced as I need, as one matrix, with each slider accessible by a tag (as I need to update the slider position according to external events). My other options are to have a matrix of matrices (possible?), or just lots of outlets connected to each sub-matrix (messy). Any suggestions? BTW, I'm on NS3.2, has this been addressed under 3.3? Thanks -- Leigh Smith NeXTMail: leigh@cs.uwa.edu.au Computer Science Dept Phone: +61-9-380-1945,Fax:+61-9-380-1089 University of Home NeXTMail:leigh@psychokiller.dialix.oz.au Western Australia Home Phone: +61-9-382-3071 *--=----=----=----=----=----=---====---=----=----=----=----=----=----=--*
From: chris@michelob.wustl.edu (chris cleeland) Newsgroups: comp.sys.next.programmer Subject: Anybody have sys/table.h? Date: 13 Jun 1995 04:58:22 GMT Organization: St. Louis Users' Groups Message-ID: <3rj5te$ej4@cerberus-138.wustl.edu> Well, somewhere along the upgrade path I lost this pretty useful header file. And right now I'm trying to get some source code to compile that depends rather heavily on this particular beast (some mods to EPS' iwf code, if anybody cares). Anyway, I believe the last time this saw the light of day outside NeXT was 2.x days. If anybody has a copy of it laying around that they could forward to me, I would be most appreciative! And, yes, I am legally allowed to it as I have one of the original NeXT Colorstations. Thanks much! -cj
Date: 12 Jun 1995 20:27:57 GMT From: clewis@ferret.ocunix.on.ca (Sylvia Wong) Message-ID: <cancel.3rhqfj$c3c@news.asiaonline.net> Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3rhqfj$c3c@news.asiaonline.net> Control: cancel <3rhqfj$c3c@news.asiaonline.net> Spam cancelled by clewis@ferret.ocunix.on.ca
Newsgroups: comp.sys.next.programmer From: Chris Huston <chuston@dudley.com> Subject: Re: Eval3.3 and Interface Builder? Content-Type: text/plain; charset=US-ASCII Message-ID: <950613095832.286AAD/E.chuston@sam> Sender: Chris Huston <chuston@dudley.com> Organization: D.C. Dudley & Associates, Denver, Colorado References: <3ri36e$e7c@rover.ucs.ualberta.ca> Mime-Version: 1.0 (Generated by Eloquent) Date: Tue, 13 Jun 1995 15:58:32 GMT >Has anyone else who's had a little time to play with Eval 3.3 >thought about what it would be like if Eval was combined with >Interface Builder? You could then incrementally compile your >controller classes and all those views that you normally use >the "Custom View" placeholder for. Within reason, you could >pretty much write your entire app in IB. I seem to remember that at the '94 Expo there was a lot of talk about a new program called CodeEdit or CodeBuilder or some such that will be in 4.0 that does exactly that. Incremental compile/reload rings a bell - they were talking about drastically shortening the debug/compile cycle. -Chris
Newsgroups: comp.sys.next.programmer From: ehutch@hypnos.norden1.com (E. Hutchinson) Subject: NEXTSTEP/Career Position/ILL Message-ID: <1995Jun13.175922.9342@norden1.com> Sender: news@norden1.com (Net News Admin) Organization: Norden 1 Communications Date: Tue, 13 Jun 1995 17:59:22 GMT Programmer/analyst/developer NEXTSTEP Objective C A plus--Sybase or Oracle A plus--DB Kit or EOF Career position Outstanding opportunity Excellent benefits Relocation assistance ILL To be considered--Fax resume or mail a hard copy -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: william@beirut.berkeley.edu (Andy Grosso) Newsgroups: comp.sys.next.programmer Subject: Foundation Kit ? Date: 13 Jun 1995 19:49:51 GMT Organization: Worm-Eaters Anonymous Message-ID: <3rkq4v$1ht@agate.berkeley.edu> I've been reading the docs for Foundation Kit. There are currently two different versions that have been defined-- the one that comes with EOF and the one that is defined as part of the OpenStep specification. Now, EOF's seems to be for the most part, a subset of the OpenStep specification. but, there are some slight differences. For example, the Foundation kit documentation that comes with EOF mentions "clusters" quite a bit and the OpenStep specification does not. Are there really going to be two (slightly) differnt Foundation kits ? Or does one set of documentation supersede the other ? Cheers, Andy Grosso
Newsgroups: comp.sys.next.programmer From: richard@silber.rhein-main.de (Richard Scholz) Subject: Re: Eval3.3 and Interface Builder? Message-ID: <DA4nJ5.I9@silber.rhein-main.de> Sender: richard@silber.rhein-main.de (Richard Scholz) Organization: Green sprinkled Green References: <3ri36e$e7c@rover.ucs.ualberta.ca> Date: Tue, 13 Jun 1995 19:59:29 GMT In article <3ri36e$e7c@rover.ucs.ualberta.ca> toddt@nshade.uah.ualberta.ca (Todd Thomas) writes: > Hello fellow developers, > > Has anyone else who's had a little time to play with Eval 3.3 > thought about what it would be like if Eval was combined with > Interface Builder? You could then incrementally compile your > controller classes and all those views that you normally use > the "Custom View" placeholder for. Within reason, you could > pretty much write your entire app in IB. A really interesting idea. I've been playing with a similar approach, only with an C interpreter instead of the Eval 3.3 app. But I think the approach with Eval is much better. > > Just open a code window, make a small change to your subclass > of view, and load the class again. You could then use "Test > Interface" and have everything work. The tricky part is the integration into the IB. Let me tell you the way IB handles Objects. - IB has an internal structure IBClassData, in which it stores Information about Classes, outlets and actions. When you Subclass, parse and edit outlets and actions you really edit the IBClassData information. - Instantiated Objects are represented by Custom classes, which poses as if they were the real object. These Classes are CustomObject, CustomView and CustomMenu. Take a look at IB with AppInspector, and you'll see these classes. - These Custom Classes replace themself with the real classes, when they are instantiated from the nib file, either in IB Test mode, or in the compiled application. But only if the real classes exists. So if the modules with the real classes are already loaded, the CustomObjects replace themself with the real Objects ! The problems, or tasks, of an integration of Eval and IB are: - Eval places its modules into the tmp directory. These files should go into the nib directory, so they become a part of the IB document. - Eval, or some parts of Eval, have to be integrated as an Inspector. One would have to design a palette, which contains an object which does the Job of dynamically loading and unloading the modules when entering and leaving the test mode of IB, or when the compiled App is run. One thing I didn't understand about the way Eval works is: how does it unload it's modules ? I found a function objc_unloadModules, which unloads the modules which were loaded by the last call of objc_loadModules. This works like a stack. So you can't be sure which Modules are unloaded, if you don't have full control of the calling sequence. To me it looks like you can make Eval unload a module of your choice. But I think it can only unload the least loaded module. I'm going to give it a try, and I'll build a pallette with a loader. I'll post if I have some success. Greetings, Richard PS: Does anybody know a free available source for a good C interpreter ? I'm tired of writing one myself. ------------------------------------------------------------------------- Richard Scholz, Frankfurt, Germany richard@silber.rhein-main.de (priv) richard@subito.de (biz)
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <mt1!stwo@netcom.com> From: Dennis Warn <mt1!stwo@netcom.com> Message-ID: <9506131804.AA01953@mt1.mantech.com> Date: Tue, 13 Jun 95 11:04:05 -0700 Subject: TCP/IP comms with non-NeXT system I see in the Librarian under UNIX Manual Pages that NeXT has access to TCP/IP commands such as: socket, accept, bind, connect, recv, send, etc. It looks like the compiler accepts these commands but is there any documentation on the system or a good book that explains the sequence of use and how NeXTSTEP interfaces with a socket that is not a NeXTSTEP system? I know very little of the UNIX system and how it operates; I need some help. Thanks for your time, Dennis Warn
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Unwanted code optimization In-Reply-To: Greg.Titus@mccaw.com's message of 12 Jun 1995 20:23:15 GMT Message-ID: <RDL.95Jun14004502@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <3ri29e$io9@alfred.acs.uwlax.edu> <3ri7nj$f17@nwestmail.nwest.mccaw.com> Date: Wed, 14 Jun 1995 04:45:02 GMT And the third problem with his code is that [selList count] is being evaluated in the for loop which will cause problems since selList's count is being changed by the removeObject: method. It should be changed to something like this: int count; count = [selList count]; for(i=0;i<count;i++) { ... } Robert La Ferla Registered NEXTSTEP Consultant / Developer / Trainer + 1 (617) 252-0088
From: dcell@tudhope.com (Dan Ellison) Newsgroups: comp.sys.next.programmer Subject: Re: Freeing objects which own windows Date: Wed, 14 Jun 1995 11:08:12 +0500 Organization: Tudhope Associates Inc. Distribution: world Message-ID: <dcell-1406951108120001@tudhope.tor.hookup.net> Thanks for all the replies to my simple query. I do want to free the window in the delegate's 'free' method (on app termination), so I think the best solution would be to use the technique suggested (albeit differently) by John Randolf and Geert(?): Sending self a 'free' via [NXApp delayedFree:<object>]. Art Isbell suggested the same thing in an Email message, which I promptly misunderstood and replied to in error. Sorry, Art. Thanks to everyone who replied, whether here or via Email. ------------------------------------------------- Daniel C. Ellison Vox: 416-366-7100 Tudhope Associates Inc. Fax: 416-366-7711 International Graphic Design dcell@tudhope.com -------------------------------------------------
From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Newsgroups: comp.sys.next.programmer Subject: Re: ncurses 1.9.2c compiled error on NS 3.3 Date: 14 Jun 1995 11:25:08 GMT Organization: University of Heidelberg, Germany Message-ID: <3rmgul$fb6@sun0.urz.uni-heidelberg.de> References: <3rdlrt$n4@news.iastate.edu> Chris Wong (chris@iastate.edu) wrote: : I've got these message while trying to compile ncurses on NS 3.3. Hope : someone can help this. ... : next> make : cd src; make all : compiling comp_main.o : ./comp_main.c: In function `main': : ./comp_main.c:111: `F_OK' undeclared (first use this function) : ./comp_main.c:111: (Each undeclared identifier is reported only once : ./comp_main.c:111: for each function it appears in.) : *** Exit 1 Well, I found that regardless of the claim in the README's the ncurses distribution did not build with NEXTSTEP since a long time. Probably Thomas Funke submitted his patches for 1.8 and they did never verify this for newer versions. Jyst my experiences: Compilation of ncurses-1.9.2c runs much better if you add '-posix' to CFLAGS and LDFLAGS in the various Makefile's. In fact the settings configure finds seem to be for POSIX. But even with -posix, there are still some errors. The definition of isascii() is missing (can be found in <ctype.h>), and, I don't know why, the linker doesn't find the definition of color_pairs. With some dubious cheats, I finally got the library linked, and most of the examples compiled. Most of them even worked ;-) Anyway, I would like to know if it is the right way to build the ncurses library as POSIX application. AFAIK, POSIX and plain BSD code should not be mixed within NEXTSTEP, i.e. if ncurses was compiled with -posix, all applications utilitzing ncurses also must be compiled as POSIX apps using -posix. Since POSIX support in NEXTSTEP is said to be broken (still with 3.3Dev ? The release notes don't say much about bug fixes for POSIX from 3.2 to 3.3), it might be no good idea to have this restriction. Therefore it might be necessary to patch ncurses to work without POSIX on NEXTSTEP. Perhaps a more competent person could comment on this issue. I've no idea the above maybe rubbish. Gregor -- | Gregor Hoffleit admin MATHInet / contact HeidelNeXT | | MAIL: Mathematisches Institut PHONE: (49)6221 56-5771 | | INF 288, 69120 Heidelberg / Germany FAX: 56-3812 | | EMAIL: flight@mathi.uni-heidelberg.de (NeXTmail) |
Newsgroups: comp.sys.next.programmer From: fred@improve.fdn.org (Frederic STARK) Subject: Re: HeaderViewer...arrrgggl...NeXT please Message-ID: <1995Jun13.134545.1132@improve.fdn.org> Sender: news@improve.fdn.org Organization: improve SA - La Defense, Paris, France. References: <D9wp80.H5@shinto.nbg.sub.org> Date: Tue, 13 Jun 1995 13:45:45 GMT In article <D9wp80.H5@shinto.nbg.sub.org> tomi@shinto.nbg.sub.org (Thomas Engel) writes: > In article <3r7af6$bcj@emerald.oz.net> art@cubicsol.com (Art Isbell) > writes: > > HeaderViewer 3.3 appears to start searching at the top of the > > documentation stopping at the first match with the method name which > isn't > > usually where the method is documented :-( I usually end up having to > run > > Find on the method name within HeaderViewer until I get to the actual > > documentation which is a bother. > #ifdef HUMOR Wait for the 4.0 :-) Well, remember Alt-Drag in InterfaceBuilder, it disapeared in 3.0/3.1/3.2. I suggest a fun game: "What 'little functionnality' will NeXT drop (by mistake) in 4.0 ?" * Drag file in Terminal.app paste path ? * Tear-Off menus ? * gdb ? #endif > It is really depressing because even my stupid ClassEditor can do it > better. > It only takes a: > > - (BOOL)findText:(const char *)string ignoreCase:(BOOL)ignoreCaseflag > backwards:(BOOL)backwardsflag wrap:(BOOL)wrapflag font:aSharedFont > > Now set the font to the Helvetica-Bold 18pt (?) font and everything should > work at least in a useful fashion. > > That method is part of the MiscKits text categories (I guess still in > Temp) > > Could anybody at NeXT take the HeaderViewer sources add the MiscKits text > category and recompile with a font-based search...and then put that > version on the ftp archives ? > That would be nice. And does anybody knows if there is a patch for the 'reverse-gdb-stack-frame' feature in Edit.app ? Cheers, ----------------------------------------------------------------- frederic stark -- fred@improve.fdn.org -----------------------------------------------------------------
From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott) Newsgroups: comp.sys.next.programmer Subject: Re: Struct padding and portability Date: 14 Jun 1995 05:06:30 GMT Organization: Center for Computer Music Research and Composition, U.C.S.B. Distribution: world Message-ID: <3rlqom$97r@yuggoth.ucsb.edu> References: <3rcumd$o6i@msunews.cl.msu.edu> In article <3rcumd$o6i@msunews.cl.msu.edu> perkins@cps.msu.edu writes: ] ]I have a structure whose size on Intel is 208 and on moto is 206. ]Currently I dump the structure to disk (in host byte order) using an ]fwrite. If the reader is of a different byte order I swap the bytes right ]after I refill my structure using fread. As the first line of this ]paragraph should show, I'm having trouble because the compiler is padding ]the structure. Thus, reads on Intel don't work for writes on Moto and ]vice versa. ] ]I want portability (HP and Sparc also). What is the best accepted and ]portable mechanism for ensuring proper alignment inside a structure such ]that all architectures will be able read/write the fields of the ]structure. Having to swap byte order is OK. I just want to make sure they ]all read the proper fields (albiet maybe in the wrong byte order) from the ]file. ] ]In the past, compilers have typically contained a pragma switch that would ]allow you turn off padding inside of structures. I don't think this is ]the appropriate mechanism for doing this and I couldn't find such a switch ]under gcc anyway. ] There is a Gnu C++ technique for doing this, but I agree that it is not the way to go if you wish to write portable code. As far as I know, there is no way to do this using a struct that involves a simple write or read of the struct from memory into or out of a file. You will need to do a separate call to write or read for each element (or at least for each group of elements with sizes less than 4 bytes). I wrote a whole C++ class devoted to the solution of this problem, and it still involves separate i/o for each member. Dont feel bad -- I understand that this is and has been a perennial C language problem (actually, not limited to C). -- Douglas Scott | Senior Development Engineer Tel: (805) 893-8352 | Center for Computer Music Research and Composition Internet (NeXTMail ok): | University of California, Santa Barbara <doug@ccmrc.ucsb.edu> | http://www.ccmrc.ucsb.edu/
From: Alexandre Odoux <odoux_alexandre@jpmorgan.com> Newsgroups: comp.sys.next.advocacy,comp.sys.next.programmer Subject: Taligent CommonPoint - smells like 'Deja vu' Date: 14 Jun 1995 11:15:57 GMT Organization: JP Morgan Message-ID: <3rmgdd$kcp@hardcopy.ny.jpmorgan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Just give a look at <http://www.taligent.com/cpconstructor.html> and you will understand. Look the icons. Look the how the menu is layed out. Read the different steps for building applications. So, is cpConstructor only a copy of Interface Builder ? Has someone already seen/used the real thing ? // ----------------------------------- // only personnal views expressed here
Newsgroups: comp.sys.next.programmer From: andylee@netcom.com (Andy Lee) Subject: Need IXFileFinder Example Message-ID: <andyleeDA4ynE.8uw@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Tue, 13 Jun 1995 23:59:38 GMT Sender: andylee@netcom14.netcom.com Hello, All, Can someone please point me to some examples of IXFileFinder? More specifically, query IXFileFinder to get a list of IXFileRecord, and how to extract all files contained in an IXFileFinder. I looked in /NextDeveloper/Examples/IndexingKit, but there is not very much in there. And nothing in NeXTanswer's min-examples pertains to IXFileFinder... Thanks for listening. Andy Lee andylee@cs.ucla.edu andylee@netcom.com
From: Yibing Wu <yibwu> Newsgroups: comp.sys.next.programmer Subject: (no subject) Date: 13 Jun 1995 23:27:15 GMT Organization: BDM International, Inc. Message-ID: <3rl6sj$sn0@news.bdm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Is there any FAQ for this group? (Or this question is a FAQ itself? :) Please POST a follow up, my mail account doesn't work! Thanks in advance. Regards, Yibing Wu
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: Re: Freeing objects which own windows Date: 13 Jun 1995 07:52:58 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3rjg4q$apg@snaps.dannug.dk> References: <3rgol7$15m@snaps.dannug.dk> A little caveat, though, if you "walk thru" the windows in [NXApp windowList] after windowWillClose and free of the delegate, the window is still there, but as a FREED object (same with the delegate). How to ask such an "object" whether it lives or it is FREED, I am not sure of. I remember a discussion on this topic a little while ago, but what wasthe outcome? Geert gclem@dannug.dk writes > A simple [NXApp delayedFree:<object>] may also do the trick. > > Geert > > John C. Randolph writes > > First point: the 'windowWillClose:' method returns an id. The value of > > this id is usually the id of the window's delegate, but if the delegate > > wants to veto the window closing, it can return nil from this method. > > > > Second point: if you free the window's delegate in windowWillClose, then > > it dies within the scope of the windowWillClose method. You really need > > it to stick around a bit, at least until the next passthrough the event > loop. > > > > The Appkit comes to your rescue with the > > 'perform:with:afterDelay:cancelPrevious:' method. You can use this to > > cue up the free message, like this: > > > > - windowWillClose:sender > > { > > [self perform:@selector(free) with:nil afterDelay:0 > cancelPrevious:YES]; > > return self; > > } > > > > The upshot is that the window sees the id of this delegate as the value > > returned from this method, so it goes ahead and closes. But, the free > > message will kill the delegate the next time the app looks for events. > > > > Hope this helps, > > > > -jcr
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: Re: Is there a Date/Time object? Date: 13 Jun 1995 07:53:39 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3rjg63$aph@snaps.dannug.dk> References: <3rhu0e$of7@aplinfo.jhuapl.edu> NSCalendarDate in the foundation kit seems quite OK. Geert Mike Hostetter <Michael_Hostetter@JHUAPL.Edu> writes > NeXTperts, > Is there such a thing as a Date/Time object in the standard NeXT > libraries? If not, does anyone out there have a good implementation > that they would be willing to send me? > Thanks! > Mike >
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: Compiler mess-up? Date: 13 Jun 1995 15:30:15 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3rkau7$i3s@snaps.dannug.dk> After having spent an afternoon fighting with what I thought was a compiler error (3.3), I found the problem to be mine, but maybe you want to share the experience? Try the following: - aMethod { NSString *id; NS_DURING printf("Whatever code you want here\n"); NS_HANDLER NSLog(@"%@", [exception exceptionReason]); NS_ENDHANDLER return self; } The compiler will tell you: Controller.m:106: parse error before `_localHandler' Controller.m:108: warning: assignment from incompatible pointer type Controller.m:108: parse error before `0' It would have been nice if it instead would tell me that I am redefining the "otherwise sacret" type id (to become a variable). Geert
From: gclem@dannug.dk Newsgroups: comp.sys.next.programmer Subject: When do windows get freed (for real)? Date: 13 Jun 1995 15:39:13 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3rkbf1$i3u@snaps.dannug.dk> If a window is closed, and its delegate is freed, it does not seem to go away, at least not immediately. The above bothers me when I walk thru the list of windows (from [NXApp windowList]) and do stuff like: win = [winList objectAt:i]; del = [win delegate]; if (del && [delegate class] == [MyObject class]) // Whatever del has in most cases its isa set to FREED(object), i.e. non-nil, so the app crashes whenever sending a message to the object. My work-around is to do [window setDelegate:nil] in the windowWillClose method. Why is the Window floating around in the window list? Is it because of a mix-up with the retain/release stuff (the window object responds to e.g. the retainCount method)? Geert
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: PDO access from Windows app Date: 14 Jun 1995 02:16:08 GMT Organization: The SenseMedia Network, http://sensemedia.net/, info@sensemedia.net Distribution: world Message-ID: <3rlgp8$n6l@Sequoia.picosof.com> I have been asked to surmise how a Windows app might communicate with a NS D.O. server using PDO. I don't have a clue. Since PDO/Windows 95/NT hasn't been released yet, maybe no one knows for sure, but the same issue exists for the various PDO implementations that have already been released. So assume that I know that I want to communicate with a server named Foo on a host named Bar on my local subnet. What do I need to do to establish a connection from a non-NS app? Assume that I know that the server responds to (id)gimmeInfo and that once I have established a local proxy, I know the API to extract various bits of info. What message must I send from my non-NS app? Thanks. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
Newsgroups: comp.sys.next.programmer From: pelletk@il.us.swissbank.com (Ken Pelletier) Subject: Re: PDO access from Windows app Message-ID: <1995Jun14.134554.22096@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3rlgp8$n6l@Sequoia.picosof.com> Date: Wed, 14 Jun 1995 13:45:54 GMT Art Isbell writes > I have been asked to surmise how a Windows app might communicate with > a NS D.O. server using PDO. I don't have a clue. Since PDO/Windows 95/NT > hasn't been released yet, maybe no one knows for sure, but the same issue > exists for the various PDO implementations that have already been > released. > > So assume that I know that I want to communicate with a server named > Foo on a host named Bar on my local subnet. What do I need to do to > establish a connection from a non-NS app? > > Assume that I know that the server responds to (id)gimmeInfo and that > once I have established a local proxy, I know the API to extract various > bits of info. What message must I send from my non-NS app? > > Thanks. > --- > Art Isbell NeXTmail: art@cubicsol.com > NeXT Registered Consultant Voice: +1 408 335 1154 > Trego Systems Fax: +1 408 335 2515 > CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 > contract and case management solutions Quite a long time ago I fiddled with this idea just to see if there was a way to make this happen. I was able to get a couple of simple Windows client applications to make requests to a NEXTSTEP server fairly easily. The approach was to create a broker on NEXTSTEP that fielded RPC requests from the Windows client and serviced them by contacting a NEXTSTEP DO server. I also tried a similar thing using sockets. I got the plumbing working fairly easily, but didn't go any further with it. WindowsClient<---rpc/sockets--z-->NSBroker<---DO--->NSDOServer It appeared to me that, if you were to devise a clever enough protocol, the broker between the Windows client and the DO server could fade into semi-transparency. I was using garden variety ONC RPC's and Winsock on Novell's Lan Workplace for DOS, though there a many other choices for the Windows side. - Ken -- ________________o__________________ | \ | | Ken Pelletier | | NiKA Software | | 1207 W. Newport Ave. __| | Chicago, IL 60657 | / --------------------------------
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <stes@ruca.ua.ac.be> Message-ID: <199506140738.AAA12172@netcomsv.netcom.com> Date: Wed, 14 Jun 95 09:37:43 +0200 From: David Stes <stes@ruca.ua.ac.be> Subject: building libcakit_p.a Hi, the Computer Algebra Kit (http://www.can.nl) is a set of Objective C objects, each object groups together a set of supporting function packages and objects. We have built a library "libcakit_p.a", with profiling information for use by gprof, but are somewhat reluctant to include it in the Computer Algebra Kit package as long as profiles show timings of "internal" functions. Is there a way to "hide" supporting routines from the call graphs ? How are the libXXX_p.a libraries that NeXT ships, created ? We'd like to have the timings of supporting routines "add up" for the total timings of public methods, somewhat along the lines of the "-a" flag of gprof. Thanks, David Stes stes@maze.ruca.ua.ac.be
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: PDO access from Windows app Date: 14 Jun 1995 16:38:33 GMT Organization: The SenseMedia Network, http://sensemedia.net/, info@sensemedia.net Distribution: world Message-ID: <3rn3aa$ltp@emerald.oz.net> References: <3rlgp8$n6l@Sequoia.picosof.com> I posted about access to NS D.O. servers via Windows 95/NT client apps using the planned PDO for Windows 95/NT. Maybe I'm mistaken about this PDO product being planned because PDO's NeXTanswers entries seem to suggest (to me, at least :-) that PDO is intended for platforms without an OpenStep implementation which won't be the case for Windows 95/NT. Also, the PDO information seems to suggest that PDO is intended to implement D.O. servers on foreign OS's; no mention was made of using PDO as I had suggested (a communication link between a Windows client app and a NS D.O. server). Is this mode supported on current PDO products? --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: woo@ornl.gov (John W. Wooten) Newsgroups: comp.sys.next.programmer Subject: zooming in Clipview Date: 14 Jun 1995 20:02:48 GMT Organization: Oak Ridge National Lab, Oak Ridge, TN Distribution: world Message-ID: <3rnf98$hne@stc06.ctd.ornl.gov> The following is a scrap of code from a section where I'm trying to zoom by a factor of xval and yval. The lastMouseDown position is fixed in the example. xval might equal yval and be 1/2, 1, or 2 in any sequence. (other values possible, but not needed here for question). docView = [[[NXApp currentDocument] scrollView] docView]; [docView getBounds:&gbounds]; w = gbounds.size.width/(zoomX/xval); h = gbounds.size.height/(zoomY/yval); lastMouseDown.x = 100.; lastMouseDown.y = 200.; x = lastMouseDown.x - w/4; y = lastMouseDown.y - h/4; if (x < 0.) x = 0.; if (y < 0.) y = 0.; [[[NXApp currentDocument] window] disableDisplay]; gbounds.origin.x = x; gbounds.origin.y = y; gbounds.size.width = w; gbounds.size.height = h; [docView setFrame:&gbounds]; [docView scale:zoomX/xval :zoomY/yval]; [[[NXApp currentDocument] window] reenableDisplay]; [self display]; The object is to scale the entire drawing in the clipView (docView) by the factor. The objects are drawn with PSlineto, etc. The setFrame makes the frame scale properly, but the scale method seems to have no effect on the drawn objects themselves. I want to have the section where the mouseDown be centered in the window, with the objects drawn 2x larger i.e. if the "square" was 1 inch on a side, it is now 2 inches on a side on the screen. What is the proper sequence of methods to get this to happen? - - - - - - - - - J. W. Wooten
From: besler@nova.mdd.comm.mot.com (Steve Besler) Newsgroups: comp.sys.next.programmer Subject: Re: Struct padding and portability Date: 14 Jun 1995 21:00:46 GMT Organization: Motorola - Wireless Data Group; Seattle, WA Distribution: world Message-ID: <BESLER.95Jun14140046@nova.mdd.comm.mot.com> References: <3rcumd$o6i@msunews.cl.msu.edu> In-reply-to: perkins@cps.msu.edu's message of 10 Jun 1995 20:18:21 GMT In article <3rcumd$o6i@msunews.cl.msu.edu> perkins@cps.msu.edu (Stephen J. Perkins) writes: From: perkins@cps.msu.edu (Stephen J. Perkins) Newsgroups: comp.sys.next.programmer Date: 10 Jun 1995 20:18:21 GMT Organization: Michigan State University Reply-To: perkins@cps.msu.edu Howdy all, I'd be rather embarrased if this was an RTFM, but after searching DL and reading about the supported Pragmas I can't find the answer. I'm coding in straight C and NeXT specific extensions or libraries are not allowed. Why not use XDR? Either that, or use some other endian/padding - neutral format that you develop yourself... Hope that helps... Steven Besler -- Steven Besler, Coop Student "I do not speak for Motorola." Motorola Wireless Data Group
Newsgroups: comp.os.ms-windows.programmer.win32,comp.os.os2.programmer.porting,comp.sys.next.programmer,comp.unix.unixware.misc,biz.sco.opendesktop,comp.unix.solaris From: vc@world.std.com (vc) Subject: Software Engineers needed.... Message-ID: <DA50J6.5qJ@world.std.com> Organization: The World Public Access UNIX, Brookline, MA Distribution: ne Date: Wed, 14 Jun 1995 00:40:18 GMT Hello. I am a Software Engineer with 10 years experience working in and around the Boston area. Right now, I am looking for 2-4 other Software Engineers in the Boston area to assist in an ongoing project on Unix, Windows NT, Windows 95, OS/2 and perhaps Apple and Next systems as well. The Unix systems I have in mind right now are Solaris x86, Unixware, Linux and SCO. All PC based Unix. All development up until now has been in C++ on Unixware. This project is one in which if the people working on it at the time of it's completion feel that it is marketable, we can jointly form a development company, market it and sell it. In other words, I'm looking for other Software Engineers who would like to possibly form a start-up and develop our own software products. Need people willing to brain-storm on possible markets to target and applications to develop. There is absolutely no funding for this right now. The Engineers must provide their own PC's and development environments. Preferably more than one development environment. The main thrust of the development up until now has been to develop the following: * A portable graphics library that spans all native windowing system API's. - Motif - WIN32 - PM - MAC - Next The current status is that I have created a C++ based API that has roughly 200 unique calls that map to various X/Motif calls for doing such things as creating push buttons, dialog boxes, etc. This API in theory should be easily able to map to WIN32, PM and Next also. I just haven't gotten that far. Hence, this post. This software could potentially act as the foundation for this project, or not. It's wide open. My idea though, is whatever may be developed, must run natively on all Intel platforms. I'd also like to extend it to the PowerPC if possible. I think what is needed, is roughly 3-4 people willing to supply their own hardware platforms. Their own Operating Systems and development environments. be willing to brain-storm, be flexible, put in the necessary time on the side, and potentially backup the product financially in the absence of any venture capital. So if something like this fits in with what you'd like to do, please feel free to drop a line to this account. Please state the following when responding: o A text based resume would be perfect.... o # Years you've been a Software Engineer. o Why would you like to be a member of this project. o What Operating Systems interest you the most for development? o if you were to join this project, what Operating Systems and development environments could you contribute and develop on? Here's my responses to some of the above questions: I have a BS in Computer Science, 1985. I've been developing software professionally for 10 years. I've been contracting for the last 5+ years. I've developed mainly on Unix systems, with alot of my development in the graphics area. The last 5+ years being spend in and around the X Window System. I've done Unix device drivers, applications development using X/Motif, a little bit of DOS programming, X Window System internals development. Been to companies like Digital Equipment, Lotus, Compugraphic, Number Nine Computer Corp, GTE Labs, Cabletron Systems, Interactive Systems, Wang Labs. What drives me to want to do something like this is the fact that I'd love to start my own company. And theres no motivator like money. If I'm going to spend alot of time developing something in my spare time, I'd like to get rewarded for it somehow. Even if something gets started and it all falls through in the end, I feel something positive will definitely come from it all. If nothing else, more stuff to put on the resume to make yourself more marketable as an Engineer. Nothing ventured, nothing gained... I will try to respond by July 1, depending on how many replies I get. Jim
From: gideon@black_albatross.otago.ac.nz (Gideon King) Newsgroups: comp.sys.next.programmer Subject: Solution to the reverse-gdb-stack-frame "feature" Date: 14 Jun 1995 22:33:08 GMT Organization: University of Otago, Dunedin, NZ Message-ID: <3rno34$j8p@celebrian.otago.ac.nz> I posted a thing a week ago asking this same question, and now I see someone else has posted it, so here is the answer: Grab your 3.2 CD, and replace /usr/lib/GdbClient.bundle /bin/gdb with the corresponding NS 3.2 files. This should be in KBNS - anyone know how to get it there? In the KBNS files I have, there are lots of references to Raf_Schietekat (I presume he's the administrator), but I don't know where Raf_Schietekat is @.
Newsgroups: comp.sys.next.programmer From: samr@wri.com (Sam Roseman) Subject: varargs on sparc Message-ID: <samr.803159442@saipan.wri.com> Keywords: varargs Sender: news@wri.com ( ) Organization: Wolfram Research, Inc. Date: Wed, 14 Jun 1995 19:50:42 GMT are there any known bugs and fixes for varargs on sparc? it works for simple examples, but breaks on more complicated ones. i really dont want to debug this mess. #define va_arg(pvar,TYPE) \ __extension__ \ ({ TYPE __va_temp; \ ((__builtin_classify_type (__va_temp) >= 12) \ ? ((pvar) = (char *)(pvar) + __va_rounded_size (TYPE *), \ **(TYPE **) (void *) ((char *)(pvar) - __va_rounded_size (TYPE *))) \ : __va_rounded_size (TYPE) == 8 \ ? ({ union {char __d[sizeof (TYPE)]; int __i[2];} __u; \ __u.__i[0] = ((int *) (void *) (pvar))[0]; \ __u.__i[1] = ((int *) (void *) (pvar))[1]; \ (pvar) = (char *)(pvar) + 8; \ *(TYPE *) (void *) __u.__d; }) \ : ((pvar) = (char *)(pvar) + __va_rounded_size (TYPE), \ *((TYPE *) (void *) ((char *)(pvar) - __va_rounded_size (TYPE)))));}) -- Sam Roseman samr@wri.com http://www.wri.com/~samr
From: lloyd@goldhost.lscf.ucsb.edu (Lloyd Goldwasser) Newsgroups: comp.sys.next.programmer Subject: Getting to matrices from their views Date: 15 Jun 1995 00:15:47 GMT Organization: University of California, Santa Barbara Message-ID: <3rnu3j$5hh@ucsbuxb.ucsb.edu> Reply-To: goldwass@lifesci.lscf.ucsb.edu I have, say, some matrices in lots of boxes. I'd like to be able to access these matrices without connecting them beforehand in IB (too many outlet names, etc.). I know that I can use findViewWithTag: within my program to get ahold of the views that these matrices use for drawing themselves, but how do I go from there to the matrices themselves? Thanks, Lloyd Goldwasser goldwass@lifesci.lscf.ucsb.edu
From: Gerald Wildgruber <gewil@ue801be.ppp.lrz-muenchen.de> Newsgroups: comp.sys.next.programmer,comp.sys.next.misc Subject: Full Text Database for NeXT (awk-Frontend??) Date: 16 Jun 1995 04:59:36 GMT Organization: Leibniz-Rechenzentrum, Muenchen (Germany) Distribution: world Message-ID: <3rr33o$pam@sunserver.lrz-muenchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I've a typical newby-question about a particular piece of NeXT Software. What i'm looking for is something like a full text database, capable to manage larger amounts of unstructured or only lightly structured texts. Data should be organized in large files containing separated smaller units of data (records) and these should be able to be structured by fields. This apparently seems to be the general structure of classical database applications, but the letter normally don't support larger amounts of unstructured text to be the contents of the fields. The simplest example of what should be possible with this application is the management of excerpts and notes, each of which being separated in fields of e.g. author, body of the excerpt, source, descriptor field etc..Together with this capability of storing the data, the programm should offer the common retrieval facilities, that is, pattern matching with regular expressions. Perhaps a frontend based on the powerful programs of awk, sed or perl would do the task. In fact the only thing that retains me from simply using the awk program is the lack of visualization of the texts being worked on. It would be much nicer to have the retrieval tool and the possibility of entering, displaying and editing your records all together in one program. Does anyone know if this presumptous description matches any existing application ? Thanks for your answers. Gerald
Newsgroups: comp.sys.next.programmer From: anderson (Ken Anderson) Subject: Re: How does IB determine what actions and outlets my object has? Message-ID: <1995Jun15.012607.1865@biztech.com> Sender: news@biztech.com Organization: Biztech, Inc. References: <SHESS.95Jun12180123@subzero.winternet.com> Date: Thu, 15 Jun 1995 01:26:07 GMT In article <SHESS.95Jun12180123@subzero.winternet.com> shess@subzero.winternet.com (Scott Hess) writes: Scott, >One area I've been looking at is a connections inspector. I could >reimplement all of the outlet-connecting parts of the connections >inspector. This would be annoying (since I'd want it to perform >_exactly_ as it currently does, with the extra benefit of being >able to query my object for it's outlets). It also wouldn't help >for the action side of things, since I don't believe that I can >implement a connection inspector for other object's target/action >connections! If you implement a fully functioning connection object, you CAN handle both outlets and actions. >What I'd really love to have would be something on the order of >the following to be used to figure out which outlets I have: > >-(unsigned)outletCount; >-(const char *)outletNameAt:(unsigned)index; > >or perhaps: > >-(const char **)outletNames; First off, IB doesn't have the capability to query your object for outlets/actions. The information is parsed and stored, and, in fact, you can't even access that data (well, you can, but it's private). Besides, even if IB COULD query your object for such items, how would it connect them when it loads the nib? The default connection object that IB uses can only connect to instance variables in your object. The correct approach is to implement a custom connection inspector that can do everything you want. When the nib with your object loads, the connection objects (one per 'connection' as you define it) gets the chance to do everything it needs to to setup your connection. There are plenty of examples of how to create custom connection inspectors. If you'd like, I can provide you with source for one. > >Thanks, >-- >scott hess <shess@winternet.com> (WWW to "http://www.winternet.com/~shess/") >Home: 12901 Upton Avenue South, #326 Burnsville, MN 55337 (612) 895-1208 >Office: 101 W. Burnsville Pkwy, Suite 108F, Burnsville, MN 55337 890-1332 ><?If you haven't the time to design, where will you find the time to debug?> Ken Anderson anderson@biztech.com
Newsgroups: comp.sys.next.programmer From: matthew@marble.com (Matthew Stecker) Subject: cvs, ccvs-1.4 questions for NeXT Message-ID: <DA60p5.J07@marble.com> Sender: news@marble.com Organization: Marble Associates, Inc. Date: Wed, 14 Jun 1995 13:41:28 GMT Hello, We've been using cvs1.3 on a large development project for about a year now and after months of twiggling have found a setup that works reliably for us in an environment sharing 300,000+ lines of code between 10 developers. To make cvs1.3 work properly, we've had to: - replace all tmpnam() calls with an equivalent function that actually works on NS :-( - ensure that NO ONE has the lastest gnu versions of rcs (ci, co) in their paths before the older, NeXT-supplied versions. - The problem that manifests itself with the latest gnu rcs is this: CI will often fail, stating that a file can't be checked in because date A (date on the file being checked in) is not later than date B (what ci reads from the .,v file as being the date of the checked-in version). This makes sense, except that the message usually is incorrect (ie 6/1/95 not later than 5/23/95) !! - Has anyone licked this date problem? Secondly, Has anyone gotten ccvs-1.4 (cyclic cvs) compiled and running reliably on NS? Any help appreciated, Matthew Stecker matthew@marble.com
From: GDENNING@ISLAND.NET (Geoff Denning) Newsgroups: comp.sys.next.programmer Subject: ATTN: Computer Programmers - Career Research Survey Date: 15 Jun 1995 05:42:41 GMT Organization: Island Internet Message-ID: <3roh8h$7g1@cliff.island.net> A T T E N T I O N C O M P U T E R P R O G R A M M E R S C A R E E R R E S E A R C H S U R V E Y My name is Wayne Venables and I am a highschool student enrolled in the Career Preparation course at my school. The final project for Career Prep is a career research project. I have decided to do my research project on Computer Programming and use the Internet reach people involved in this line of work. I would appreciate it if you would please complete the following survey and E-mail it to my mailbox: wvenable@cln.etc.bc.ca Thank you Sincerely, Wayne Venables ------------------------/ Cut Here /--------------------------------------- Career Research Survey Computer Programming Nature of the work ------------------ What kinds of tasks does your job involve? Are you involved in dealing with people? (Please explain) Is there a lot critical thinking involved in your work? Do you enjoy you enjoy your job? Why? Working Conditions ------------------ Do you think of your working conditions as: [_] Excellent [_] Good [_] Average [_] Bad [_] Horrible Please explain your answer for the above question. In your current position, is there a possibilty of promotion? If you were offered a promotion would you take it? Why/Why not? Necessary Qualifications and Preparation ---------------------------------------- Do you have a degree? If so, in what? Do you have any training from a techincal school? If so, explain. Did your company train you? If so, please explain. What kind, if any, education do you need for your position? What kind, if any, experience do you need for your position? If someone wanted to enter you field, what kind of advice would you give them? Remuneration ------------ What is your yearly net income? (Please specify currency) Are you able to work overtime? Employment Opportunities ------------------------ What kinds of employment opportunities are available to you? What kinds of employment opportunities are available to people just out of University or Technical school? (That you are aware of) Please E-mail this completed survey to: Wayne Venables wvenable@cln.etc.bc.ca Thank you, Later, (Don't include this later in the final message <grin>) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- \/\/ayne \/enables ! Jello ! Vernon, British Columbia wvenable@cln.etc.bc.ca ! Power ! Canada. //-//-//-//-// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Newsgroups: comp.sys.next.programmer From: Peter Rasmussen <rasmus@dannug.dk> Subject: Re: F.S.: 3 NEXTColor-Systems Content-Type: text/plain; charset=US-ASCII Message-ID: <950614182330.5118AABkG.rasmusp@op1d110nwk> Sender: rasmus@dannug.dk Organization: Swiss Bank Corporation CM&T Division Mime-Version: 1.0 (Generated by Eloquent) Date: Wed, 14 Jun 1995 16:23:30 GMT In article <3qke9k$8e@unity.westfalen.de>, root@unity (Peter Kopatzki) wrote: > Three NeXT Color Station > 32 MB RAM > 500 HD > 17´´ Monitor > incl. keyboard, soundbox, mouse and NS 3.3 > > each $1200 plus shipping Sorry ... I haven't been able to reach U through E-mail ... I'd be VERY interested in bying one of these system, in case U still have any of them left .... Cheers Peter Rasmussen ---------------------------------------------------------------------- Peter Rasmussen E-mail: rasmus@dannug.dk Oerlikonerstr 35, 8057 Zurich Tel: +41 1 / 311 97 60 CH - Switzerland (Europe) Fax: +41 1 / 311 97 60 ----------------------------------------------------------------------
From: kohler@lithnext (Vincent Kohler) Newsgroups: comp.sys.next.programmer Subject: Re: Adaptor not loading Date: 15 Jun 1995 09:00:33 GMT Organization: Ecole Polytechnique Federale de Lausanne Message-ID: <3rosrh$nt4@disunms.epfl.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit > While trying to load and compile an app from PB I get this error: > Uncaught exception: > _newDataBaseWithModel:databaseName:: EOModel > file:"users/....dsaa1.eomodel: specifies nonexistent > adaptor with name "Oracle7". You have to add the flag: -all_load to the OTHER_LDFLAGS variable into your makefile.preamble You should have a line like this: OTHER_LDFLAGS = (previous flags, ev none) -all_load Have fun. Vincent ------------------------------------------ Vincent Kohler - Laboratoire d'Informatique Theorique EPFL - INF333 1015 Ecublens E-mail: kohler@lithnext.epfl.ch (NeXT mail)
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Application class doc Date: 15 Jun 1995 08:36:10 GMT Organization: University of Heidelberg, Germany Message-ID: <3rordq$ce@sun0.urz.uni-heidelberg.de> Hi, Am I getting crazy or still completely drunk from the last night? I just opened the HeaderViewer to consult the Application class doc, but what I found was the ActionCell description. Well, I know the latest version of HeaderViewer is a bit "strange", so I opened the same doc in the Librarian --- still ActionCell. To be sure I'm not ill, I checked the stuff with both Edit and emacs ... the same result! Is it something wrong with my installation, or the the NeXT doc writer has to learn a bit more how to use cut/copy/paste for the next NS release ;-) -- georg --
Newsgroups: comp.sys.next.programmer,comp.lang.objective-c From: fred@improve.fdn.org (Frederic STARK) Subject: Categories on protocols (LONG) Message-ID: <1995Jun15.094701.10148@improve.fdn.org> Sender: news@improve.fdn.org Organization: improve SA - La Defense, Paris, France. Date: Thu, 15 Jun 1995 09:47:01 GMT SUMMARIZED HISTORY The threads cited here came from 'comp.sys.next.programmers' & 'comp.lang.objective-c' In the thread 'Let's make Objective-C better', Benjamin J. Black (black@iglou.com) asked what could be done to make ObjectiveC better. I suggested that multiple-inheritance was needed, but implemented in a weeker way than C++. The approach I suggested was binding implementation with protocol. This is the example a gave: > /* An objet that have a 'periodic' property */ > @protocol PeriodicObject - (int)periodCount; > /* Number of periods */ > > - (NSCalendarDate *)dateOfPeriod:(int)index; > /* Date of period a index > Stupid results if index out of bounds */ > @end > > > @protocol PeriodicObject(Bonus) - (NSCalendarDate > *)firstPeriod; > /* Returns the first period (if any) */ > > - (NSCalendarDate *)lastPeriod; > /* Returns the last period (if any) */ > > - (int)indexOfPeriodAfter:(NSCalendarDate *)aDate; > /* Binary search the index of the first period > after the date > Dates should be ascending. Returns ... */ > > - (int)dayLengthOfPeriod:(int)index; > /* Returns the length (in day) of the ith period > */ @end > > @protocol-implementation PeriodicObject(Bonus) - > (NSCalendarDate *)firstPeriod { if ([self > periodCount]) > return [self dateOfPeriod:0]; return nil; > } > > /* And so on... */ @end Mr Andrew McCallum (mccallum@cs.rochester.edu) replied that > [...] > Take a look at behavior.c in libobjects; I think it may > do what you want. > [...] Armed of the certitude that it was possible, I went to an implementation of the thing (without looking at libobjects - I didn't have - sorry - I think I have to rebuild gnu Gcc on NS to compile it ? ) Mr Charles C. Lloyd (clloyd@sierra.net) posted then an rought implementation of BehaviorPools [article title:'Behavior Pools (was Let's make Objective-C better)'] After staying in touch with him some time, he suggested me to share with the net my experiences about this subject. So: WHAT ARE PROTOCOL-IMPLEMENTATION (or categories on protocol) GOOD FOR? Protocol-implementation are a place to write code that is not particulary wired to a place in hierarchy. I mean you are not writing a Tree object, but rather writing 'Object with a notion of hierarchy', for example. The C++ approach, in such case is to write separate hierarchy of abstract re-usable code. The Objective-C approach is to write a category of an existing class. More precisely, the approach is to define a protocol, and eventually provide a certain number of objects that implements that protocol, via subclassing or categorizing... There are problems with the later ObjC approach (there are several with the C++ one, but this is not the point of the discussion): If any object could possibly adopt that protocol, and you want help the guy with default implementation, you end implementing it as a category of the root class. First it is not elegant to have every objet adopting your protocol, and second, you have to code it twice, once for Object and once for NSObject (let alone Proxys and EOFaults...) Another problem of coding a functionnality in the root-hierarchy is that you cannot have the choice of the base functionality. Imagine a functionality, which we can call Cloning, that creates an 'clone' of an object. The interface of the functionality is really simplistic: (Note that I am not re-inventing copy & mutableCopy, it is just an example) @protocol <Cloning> - clone; /* Returns an autoreleased clone of receiver in the default zone */ @end The cloning functionality can be obtained in several obvious way: via bit-a-bit copy: - clone { id clone = [[[[self class] alloc] init] autorelease]; bcopy( self, clone, isa->instance_size ); return clone; } via encode/decode in a NSData - clone { return [NSUnarchiver unarchiveObjectWithData: [NSArchiver archivedDataWithRootObject:self]]; } via a convenience method that we could call - takeContentsFrom: wich must be implemented by an object to take content from another one: - clone { return [[[[[self class] alloc] init] autorelease] takeContentsFrom:self]; } or via sharing for cloning of immutable objects. - clone { return self; } The choosed implementation of clone should be of no concern for the object *asking* for a clone, so the interface cannot be 4 different selectors. And the implementation could be really more complex than only one method of a few lines. (Note that in the cloning erxample, it is easy to circumvent in actual objective-C: we could define 4 different methods in the root class, and ask classes to implement clone by messaging the implementation they want. This fact does not invalidate my example, as that workaround can not be applied if the functionality is composed of several grouped methods. There can also be a run-time cost associated with the redirection) Another use of the protocol implementation can be to extend functionnality of a base class. For example, NeXT extension methods for accessing NSArray are very convenient, but they cannot be applied to anything else. You'll find in the shell archive a way to steal implementation of other classes. It enables you to have NSArray compliant objects that are not subclasses of NSArray... THE PROTOCOL-IMPLEMENTATION SO FAR The implementation furnished below is base on a single method, implemented as a category of the NeXT protocol class, which takes two classes as arguments, the source class, and the destination class. This method takes the implementation of all the methods defined by the protocol and copies them in the destination class. This is the heart, all the other stuff is kindof syntactic-sugar, but can be useful to someone... First the macro 'GENERIC_IMPLEMENTATION(protocolName,name)' can be used to declare a generic implementation of the protocol protocolName, under the name 'name', (The name is needed because it is possible to define several alternate implementations of a protocol, as in the case of 'Cloning' example). The stuff done by the macro, is simply to declare a subclass of the '_Behaviour' class to hold the code of that generic implementation Second, the macros pairs BEGIN_GENERIC_IMPLEMENTATION/END_GENERIC_IMPLEMENTATION should be used to bracket the implementation of the generic-code, as they just turn to @implementation and @end directives. Lastly, the macro USE_GENERIC_IMPLEMENTATION could be used int +initialize implementations to grab a generic implementation. Sadly, you need to give the className to that macro. That whole thing is concentrated in Behavior.[hm] sources. IntegerFlow.[hm] is an example of a generic implementation. An <IntegerFlow> if designed as a suite of integers, and a more complex protcol is described (namly <ExtendedFlow>). It is composed of methods to find the min and max of an IntegerFlow. As there is an obviously generic implementation possible, that one is furnished under the name 'Simple'. Classes that implementents the protocol IntegerFlow are free to adopt the generic implementation it provides or not. (See LinearFlow.[hm]) Lastly, WorseHack.h defines a protcol that correspond exactly to the methods implemented in 'NSArray(NSExtendedArray)', and WorseHack.m add LinearFlow the two basics methods needed to be a NSArray. In main.m, a direct call to CopyImplementation(), will make LinearFlow behave like a NSExtendedArray... BUGs AND OBSCURE POINTS + addFunctionalityFromProtocol:toClass: add functionality via several malloc call. I am convinced (but it is not proved) that this will turn to be very costly at run-time... I have not looked yet to Class/Instance methods mess. What should happend if a method is already implemented in the receiving class? (I beleive we need two methods: addFunctionalityFromProtocol and addMissingFunctionalityFromProtocol, but that stay to be proved) There should be a two methods, located in the _Behaviour class that could be back-called before and after the generic implementation is adopted by a new class, at least to leave room for extensionality. So any generic-implementation could define those methods and they will be called at adoption time (like +load on categories). Even better, the adding code should be located in _Behaviour, and not in Protocol, so generic implementations would be free to override the way they are added (For example to perform error-checking, to check that a protocol is really implemented, to implement behaviour coming from somewhere else, and so on...) I haven't looked now to see if the run-time system think that a class that adpoted a protocol-implementation 'really adopted' it (in sense of -conformsToProtocol:). If not, there is yet another hack needed, or the schema will fail with DOs... And, oh, dynamic loading (Should classes already present in application try to adopt implementations at generic-imp load time ?) And, ah, if a protcol inherit of others protocols and if those have generic-implementation of the same name the one I want, should'nt those implementations be added to my object? (via a bit more complex adoption code in the Protocol class...) FUTURE DIRECTION A nice thing that is possible to do is to _change_ the name of the selectors, as we add it to a class. (Yes, yes, I hear you yielling "What is this be good for?") Imagine that there are pools of generic functionnality avalaible to , each one that consist of several alternate implementations. Stupid example: The methods - (NXImage *)icon with three generic implementations, all based on the existence of the method -(NSString *)fullPath. 1/ returns the icon like the Workspace would do 2/ returns the icon like the Librarian would do (kindof small generic icon) 3/ returns the icon like the Workspace would do, but with gray if not accessible and an icon representing the modification date. If I implement a Document object, I could need any of those implementations, maybe simultaneously, so it would be really handy to rename methods when I adopt them, certainly by prefixing selectors. A better approach could be to change the ObjC langage to add a name-resolution operator (a la C++ ::), so we could name an implementation-group when we inherit it... #ifdef DIGRESSION I hear someone saying: "You should not do that (The whole generic-func trick). In your -icon example, you should have three functions for getting an image from a filename, and you should implement your -[Document icon] by calling the one you want" Response: Here is the power of generic implementation: If the designer of the 'icon protocol' decided _after_I_have_finished_the_Document_class_ to add a method in the protocol, let's say -(NXSize)iconSize, this method can be added to the protocol, added to the generic implementation, and I would benefit of it without changing a line of code, without even recompiling, without *understanding*what*this*method*is*made*for*. And if that guy (because he is also the designer of the 'mega-shelf object') want to add a - (NXImage *)mini16x16Image (and use it) cause it please him, he can do it, provided he implements the three generic ways... #endif Even more disgusting: At this point, I ask myself if the next thing I want on Objective-C isn't a kind of ... C++ Templates. The thing is those generic implementations are generaly based on methods that already exists in the class that wants to adopt them (like -(NSString *)fullPath, in the last example). What would be nice is a way to 'parametrize' the selector used, so the interface of the last example could be, with silly syntax: /* The functionnality/protocol that can be gained */ @functionnality WithIcon[- (NSString *)fullPath] - (NXImage *)icon; - (NXSize)iconSize; - (NXImage *)mini16x16Image; @end /* Declaration of the disponible implementations */ @generic-implementation WithIcon(ALaWorkspace); @generic-implementation WithIcon(ALaLibrarian); @generic-implementation WithIcon(BigWithDate); And, in class code /* We want to adopt the WithIcon functionality We want the 'ALaWorkspace' generic-implementation We want it to be based on the method -preferedPath instead of -fullPath */ @adopt WithIcon(ALaWorkspace)[preferedPath]; This goal can be rather easily reached, at the price of yet another indirection in method calling. Thanks for reading so far. I am interested in any reaction. Cheers, Frederic Stark "We need damn good GC to to get rid of all the extra RC accumulated so far..." From now, to the end of the file is a shar archive, with trash-code showing the functionality... This code is free, you can do whatever you want with it, but I warned you :-) [A nice thing would be to re-implement the macros/function for compatibility with Gnu ObjC runtime] The generated executable will be called MI. -------------------------- CUT HERE ------------------------- #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create the files: # MI # This archive created: Thu Jun 15 10:55:32 1995 export PATH; PATH=/bin:$PATH if test ! -d 'MI' then echo shar: creating directory "'MI'" mkdir 'MI' fi echo shar: entering directory "'MI'" cd 'MI' echo shar: extracting "'PB.project'" '(481 characters)' if test -f 'PB.project' then echo shar: will not over-write existing file "'PB.project'" else cat << \SHAR_EOF > 'PB.project' DOCICONFILES = (); FILESTABLE = { OTHER_SOURCES = (Makefile.preamble, Makefile, Makefile.postamble); OTHER_LIBS = (Foundation_s, Media_s, NeXT_s); H_FILES = (Behaviour.h, IntegerFlow.h, LinearFlow.h, WorseHack.h); CLASSES = (Behaviour.m, IntegerFlow.m, LinearFlow.m, main.m, WorseHack.m); }; LOCALIZABLE_FILES = { }; PROJECTVERSION = 1.1; INSTALLDIR = "$(HOME)/bin"; PROJECTTYPE = Tool; PROJECTNAME = MI; GENERATEMAIN = YES; DOCEXTENSIONS = (); LANGUAGE = English; SHAR_EOF if test 481 -ne "`wc -c < 'PB.project'`" then echo shar: error transmitting "'PB.project'" '(should have been 481 characters)' fi fi # end of overwriting check echo shar: extracting "'Makefile.preamble'" '(4426 characters)' if test -f 'Makefile.preamble' then echo shar: will not over-write existing file "'Makefile.preamble'" else cat << \SHAR_EOF > 'Makefile.preamble'
# NeXT Makefile.preamble Template # Copyright 1993, NeXT Computer, Inc. # # This Makefile is used for configuring the standard app makefiles associated # with ProjectBuilder. # # Use this template to set attributes for a project, sub-project, bundle, or # palette. Each node in the project's tree of sub-projects and bundles # should have it's own Makefile.preamble and Makefile.postamble. # ############################################################################### ## Configure the flags passed to $(CC) here. These flags will also be ## inherited by all nested sub-projects and bundles. Put your -I, -D, -U, and ## -L flags here. To change the default flags that get passed to ${CC} ## (e.g. change -O to -O2), see Makefile.postamble. # Flags passed to compiler (in addition to -g, -O, etc) OTHER_CFLAGS = # Flags passed to ld (in addition to -ObjC, etc.) OTHER_LDFLAGS = BUNDLELDFLAGS = # use iff project is a bundle PALETTELDFLAGS = # use iff project is a palette ## Specify which headers in this project should be published to the outside ## world in a flat header directory given in PUBLIC_HEADER_DIR (which will be ## prepended by DSTROOT, below. Any subset of these public headers can be ## precompiled automatically after installation, with extra user-defined flags. PUBLIC_HEADER_DIR = PUBLIC_HEADERS = PUBLIC_PRECOMPILED_HEADERS = PUBLIC_PRECOMPILED_HEADERS_CFLAGS = ## Configure what is linked in at each level here. Libraries are only used in ## the final 'app' linking step. Final 'app' linking is only done via the ## 'app', 'debug', and 'profile' targets when they are invoked for ## the top-level app. # Additional relocatables to be linked in at this level OTHER_OFILES = # Additional libs to link apps against ('app' target) OTHER_LIBS = # Additional libs to link apps against ('debug' target) OTHER_DEBUG_LIBS = # Additional libs to link apps against ('profile' target) OTHER_PROF_LIBS = # More 'app' libraries when $(JAPANESE) = "YES" OTHER_JAPANESE_LIBS = # More 'debug' libraries when $(JAPANESE) = "YES" OTHER_JAPANESE_DEBUG_LIBS = # More 'profile' libs when $(JAPANESE) = "YES" OTHER_JAPANESE_PROF_LIBS = # If this is a bundle, and you *know* the enclosing application will not # be linking with a library which you require in your bundle code, then # mention it here so that it gets linked into the bundle. Note that this # is wasteful but sometimes necessary. BUNDLE_LIBS = ## Configure how things get built here. Additional dependencies, sourcefiles, ## derived files, and build order should be specified here. # Other dependencies of this project OTHER_PRODUCT_DEPENDS = # Built *before* building subprojects/bundles OTHER_INITIAL_TARGETS = # Other source files maintained by .pre/postamble OTHER_SOURCEFILES = # Additional files to be removed by `make clean' OTHER_GARBAGE = # Precompiled headers to be built before any compilation occurs (e.g., draw.p) PRECOMPS = # Targets to be built before installation OTHER_INSTALL_DEPENDS = # A virtual root directory (other than /) to be prepended to the $(INSTALLDIR) # passed from ProjectBuilder. DSTROOT = # Set the following to "YES" if you want the old behavior of recursively # cleaning all nested subprojects during 'make clean'. CLEAN_ALL_SUBPROJECTS = ## Add more obscure source files here to cause them to be automatically ## processed by the appropriate tool. Note that these files should also be ## added to "Supporting Files" in ProjectBuilder. The desired .o files that ## result from these files should also be added to OTHER_OFILES above so they ## will be linked in. # .msg files that should have msgwrap run on them MSGFILES = # .defs files that should have mig run on them DEFSFILES = # .mig files (no .defs files) that should have mig run on them MIGFILES = ## Add additional Help directories here (add them to the project as "Other ## Resources" in Project Builder) so that they will be compressed into .store ## files and copied into the app wrapper. If the help directories themselves ## need to also be in the app wrapper, then a cp command will need to be added ## in an after_install target. OTHER_HELP_DIRS = # Don't add more rules here unless you want the first one to be the default # target for make! Put all your targets in Makefile.postamble. SHAR_EOF if test 4426 -ne "`wc -c < 'Makefile.preamble'`" then echo shar: error transmitting "'Makefile.preamble'" '(should have been 4426 characters)' fi fi # end of overwriting check echo shar: extracting "'Makefile.postamble'" '(4954 characters)' if test -f 'Makefile.postamble' then echo shar: will not over-write existing file "'Makefile.postamble'" else cat << \SHAR_EOF > 'Makefile.postamble'
# NeXT Makefile.postamble Template # Copyright 1993, NeXT Computer, Inc. # # This Makefile is used for configuring the standard app makefiles associated # with ProjectBuilder. # # Use this template to set attributes for a project, sub-project, bundle, or # palette. Each node in the project's tree of sub-projects and bundles # should have it's own Makefile.preamble and Makefile.postamble. Additional # rules (e.g., after_install) that are defined by the developer should be # defined in this file. # ############################################################################### # # Here are the variables exported by the common "app" makefiles that can be # used in any customizations you make to the template below: # # PRODUCT_ROOT - Name of top-level app-wrapper (e.g., Webster.app) # OFILE_DIR - Directory into which .o object files are generated. # (Note that this name is calculated based on the target # architectures specified in Project Builder). # DERIVED_SRC_DIR - Directory used for all other derived files # ALL_CFLAGS - All the flags passed to the cc(1) driver for compilations # # NAME - name of application, bundle, subproject, palette, etc. # LANGUAGE - langage in which the project is written (default "English") # ENGLISH - boolean flag set iff $(LANGUAGE) = "English" # JAPANESE - boolean flag set iff $(LANGUAGE) = "Japanese" # LOCAL_RESOURCES - localized resources (e.g. nib's, images) of project # GLOBAL_RESOURCES - non-localized resources of project # PROJECTVERSION - version of ProjectBuilder that output Makefile # APPICON - application icon file # DOCICONS - dock icon files # ICONSECTIONS - Specifies icon sections when linking executable # # CLASSES - Class implementation files in project. # HFILES - Header files in project. # MFILES - Other Objective-C source files in project. # CFILES - Other C source files in project. # PSWFILES - .psw files in the project # PSWMFILES - .pswm files in the project # SUBPROJECTS - Subprojects of this project # BUNDLES - Bundle subprojects of this project # OTHERSRCS - Other miscellaneous sources of this project # OTHERLINKED - Source files not matching a standard source extention # # LIBS - Libraries to link with when making app target # DEBUG_LIBS - Libraries to link with when making debug target # PROF_LIBS - Libraries to link with when making profile target # OTHERLINKEDOFILES - Other relocatable files to (always) link in. # # APP_MAKEFILE_DIR - Directory in which to find generic set of Makefiles # MAKEFILEDIR - Directory in which to find $(MAKEFILE) # MAKEFILE - Top level mechanism Makefile (e.g., app.make, bundle.make) # INSTALLDIR - Directory app will be installed into by 'install' target # Change defaults assumed by the standard app makefiles here. Edit the # following default values as appropriate. (Note that if no Makefile.postamble # exists, these values will have defaults set in common.make). # Add Makefile.preamble, Makefile.postamble, and Makefile.dependencies here if # you would like changes to them to invalidate previous builds. The project # depends on $(MAKEFILES) so that changes to Makefiles will trigger a re-build. #MAKEFILES = Makefile # Optimization flag passed to compiler: #OPTIMIZATION_CFLAG = -O # Flags always passed to compiler: #COMMON_CFLAGS = $(PROJECT_SPECIFIC_CFLAGS) -g -Wall # Flags passed to compiler in normal 'app' compiles: #NORMAL_CFLAGS = $(COMMON_CFLAGS) $(OPTIMIZATION_CFLAG) # Flags passed to compiler in 'debug' compiles: #DEBUG_CFLAGS = $(COMMON_CFLAGS) -DDEBUG # Flags passed to compiler in 'profile' compiles #PROFILE_CFLAGS = $(COMMON_CFLAGS) -pg $(OPTIMIZATION_CFLAG) -DPROFILE # Flags passed to yacc #YFLAGS = -d # Ownership and permissions of files installed by 'install' target #INSTALL_AS_USER = root # User to chown app to #INSTALL_AS_GROUP = wheel # Group to chgrp app to #INSTALL_PERMISSIONS = # If set, 'install' chmod's executable to this # Options to strip for bundles, apps with bundles, and apps without bundles, # respectively. #RELOCATABLE_STRIP_OPTS = -x -u #DYLD_APP_STRIP_OPTS = -A -n #APP_STRIP_OPTS = #TOOL_STRIP_OPTS = #LIBRARY_STRIP_OPTS = -x -S # Note: -S strips debugging symbols # (Note: APP_STRIP_OPTS and TOOL_STRIP_OPTS default to empty, but # developers doing their own dynamic loading should set this to # $(DYLD_APP_STRIP_OPTS)).
# Put rules to extend the behavior of the standard Makefiles here. Typical # user-defined rules are before_install and after_install (please don't # redefine things like install or app, as they are owned by the top-level # Makefile API), which are rules that get invoked before and after the install # target runs. Such rules should be specified with the '::' syntax rather than # a single colon. SHAR_EOF if test 4954 -ne "`wc -c < 'Makefile.postamble'`" then echo shar: error transmitting "'Makefile.postamble'" '(should have been 4954 characters)' fi fi # end of overwriting check echo shar: extracting "'Makefile'" '(842 characters)' if test -f 'Makefile' then echo shar: will not over-write existing file "'Makefile'" else cat << \SHAR_EOF > 'Makefile' # # Generated by the NeXT Project Builder. # # NOTE: Do NOT change this file -- Project Builder maintains it. # # Put all of your customizations in files called Makefile.preamble # and Makefile.postamble (both optional), and Makefile will include them. # NAME = MI PROJECTVERSION = 1.1 LANGUAGE = English CLASSES = Behaviour.m IntegerFlow.m LinearFlow.m main.m WorseHack.m HFILES = Behaviour.h IntegerFlow.h LinearFlow.h WorseHack.h OTHERSRCS = Makefile.preamble Makefile Makefile.postamble MAKEFILEDIR = /NextDeveloper/Makefiles/app MAKEFILE = tool.make INSTALLDIR = $(HOME)/bin INSTALLFLAGS = -c -s -m 755 SOURCEMODE = 444 LIBS = -lFoundation_s -lMedia_s -lNeXT_s DEBUG_LIBS = $(LIBS) PROF_LIBS = $(LIBS) -include Makefile.preamble include $(MAKEFILEDIR)/$(MAKEFILE) -include Makefile.postamble -include Makefile.dependencies SHAR_EOF if test 842 -ne "`wc -c < 'Makefile'`" then echo shar: error transmitting "'Makefile'" '(should have been 842 characters)' fi fi # end of overwriting check echo shar: extracting "'Behaviour.h'" '(1848 characters)' if test -f 'Behaviour.h' then echo shar: will not over-write existing file "'Behaviour.h'" else cat << \SHAR_EOF > 'Behaviour.h' // ----------------------------------------------------------------------------- // 15/06/95 Frederic STARK [fred]: (Creation) // An object that encapsulate generic-implementation // See associated documentation for use // ----------------------------------------------------------------------------- #import <objc/objc.h> #import <objc/Protocol.h> #import <foundation/NSObject.h> /* A class that holds defintions of derived protocols */ @interface _Behaviour:NSObject { /* JUST A PLACEHOLDER CLASS */ } + (BOOL)addFunctionalityFromProtocol:(Protocol *)protocol toClass:(Class)dest; /* Add the implementation of methods defined by protocol to class dest */ @end BOOL CopyImplementation( Class dest, Class from, Protocol *protocol ); /* The nost general one, can be applied to something else than a _Behaviour class */ /* Those macro are for those that dont want to understant what's going on behind the scene and/or don't want to have to retype code in case of a change of _Behaviour interface specification */ /* Use this macro to declare that you implement a protocol */ #define GENERIC_IMPLEMENTATION(protocolName,name) \ @interface protocolName##_##name##_Behaviour:_Behaviour<protocolName>\ @end /* Use these macro to bracket real implementations of protocols */ #define BEGIN_GENERIC_IMPLEMENTATION(protocolName,name) \ @implementation protocolName##_##name##_Behaviour #define END_GENERIC_IMPLEMENTATION(protocolName,name) \ @end /* Use this macro in +initialize to tell that you want to adopt a generic implementation You have to pass the name of the class that thew initialize if for :-( */ #define USE_GENERIC_IMPLEMENTATION(className,protocolName,name) \ do \ { if (self==[className class])\ [protocolName##_##name##_Behaviour addFunctionalityFromProtocol:@protocol(protocolName) toClass:self];\ } while (0) SHAR_EOF if test 1848 -ne "`wc -c < 'Behaviour.h'`" then echo shar: error transmitting "'Behaviour.h'" '(should have been 1848 characters)' fi fi # end of overwriting check echo shar: extracting "'Behaviour.m'" '(2829 characters)' if test -f 'Behaviour.m' then echo shar: will not over-write existing file "'Behaviour.m'" else cat << \SHAR_EOF > 'Behaviour.m' // ----------------------------------------------------------------------------- // 15/06/95 Frederic STARK [fred]: (Creation) // Implementation of a behaviour // ----------------------------------------------------------------------------- #import "Behaviour.h" #import <stdlib.h> /* ----------------------------------------------------------------------------- Hacking protocols I choosed to implement implementation merging with protocols, cause a protocol is already used to group related methods, and is not tied to a particular node of class-hierarchy. The implementation reside in the Protocol class, cause we need access to private var of protocols... ----------------------------------------------------------------------------- */ @interface Protocol(MergeImplementation) - (BOOL)mergeImplementationOfClass:(Class)from toClass:(Class)dest; @end /* ----------------------------------------------------------------------------- **The _Behaviour class should never get instancied** ----------------------------------------------------------------------------- */ @implementation _Behaviour + (BOOL)addFunctionalityFromProtocol:(Protocol *)protocol toClass:(Class)dest { return CopyImplementation( dest, self, protocol ); } @end @implementation Protocol(MergeImplementation) /* ----------------------------------------------------------------------------- - (BOOL)mergeImplementationOfClass:(Class)from toClass:(Class)dest This is where the bad work reside There are many bugs in this that can be avoided ----------------------------------------------------------------------------- */ - (BOOL)mergeImplementationOfClass:(Class)from toClass:(Class)dest { // Walking throught implemented methods int cnt = instance_methods->count; struct objc_method_description *meth = instance_methods->list; while (cnt--) { // Could be *much* more efficient... // #### To look at: Is adding method separatly more costly for run-time // #### I guess YES // ( Note: we have to malloc ourselves :-( ) struct objc_method_list *ml = malloc( sizeof(struct objc_method_list) ); ml->method_next=NULL; ml->method_count=1; ml->method_list[0].method_name = meth->name; ml->method_list[0].method_types = meth->types; ml->method_list[0].method_imp = [from instanceMethodForSelector:meth->name]; class_addMethods( dest, ml ); meth++; } return YES; } @end /* ----------------------------------------------------------------------------- BOOL CopyImplementation( Class dest, Class from, Protocol *protocol ) This is the more general documented way to move functionality ----------------------------------------------------------------------------- */ BOOL CopyImplementation( Class dest, Class from, Protocol *protocol ) { return [protocol mergeImplementationOfClass:from toClass:dest]; } SHAR_EOF if test 2829 -ne "`wc -c < 'Behaviour.m'`" then echo shar: error transmitting "'Behaviour.m'" '(should have been 2829 characters)' fi fi # end of overwriting check echo shar: extracting "'IntegerFlow.h'" '(578 characters)' if test -f 'IntegerFlow.h' then echo shar: will not over-write existing file "'IntegerFlow.h'" else cat << \SHAR_EOF > 'IntegerFlow.h' // IntegerFlow.h #import <foundation/foundation.h> /* The abstract protocol Any object that is a IntegerFlow should implement that protocol */ @protocol IntegerFlow - (int)nbItems; - (int)intAt:(int)i; @end /* This is the derived protocol It can be implemented in terms of the abstract protocol */ @protocol ExtendedFlow - (int)indexOfMax; - (int)indexOfMin; @end /* A generic implementation is provided, its name is 'Simple', as it loops through indexes to find the minimum and maximum... */ #import "Behaviour.h" GENERIC_IMPLEMENTATION(ExtendedFlow,Simple) SHAR_EOF if test 578 -ne "`wc -c < 'IntegerFlow.h'`" then echo shar: error transmitting "'IntegerFlow.h'" '(should have been 578 characters)' fi fi # end of overwriting check echo shar: extracting "'main.m'" '(850 characters)' if test -f 'main.m' then echo shar: will not over-write existing file "'main.m'" else cat << \SHAR_EOF > 'main.m' #import <foundation/foundation.h> #import <objc/objc.h> #import <objc/Protocol.h> #import <stdio.h> #import "LinearFlow.h" #import "WorseHack.h" int main() { /* Creating a linear flow object */ LinearFlow *lf = [[LinearFlow alloc] initMax:10]; printf( "%d\n", [lf intAt:5] ); /* Those two methods have been defined in a generic-implementation */ printf( "%d\n", [lf indexOfMax] ); printf( "%d\n", [lf indexOfMin] ); /* This is an explicit call to add NSArray functionality to Flow class */ CopyImplementation( [LinearFlow class], [NSArray class], @protocol(NSArray) ); /* Method stolen from NeXT's NSArray implementation */ printf( "%s\n", [[lf componentsJoinedByString:@"-"] cString] ); return 0; } /* When executed this program should print 3 integer and a '-' separated list of integers. 5 9 0 0-1-2-3-4-5-6-7-8-9 */ SHAR_EOF if test 850 -ne "`wc -c < 'main.m'`" then echo shar: error transmitting "'main.m'" '(should have been 850 characters)' fi fi # end of overwriting check echo shar: extracting "'WorseHack.m'" '(613 characters)' if test -f 'WorseHack.m' then echo shar: will not over-write existing file "'WorseHack.m'" else cat << \SHAR_EOF > 'WorseHack.m' // WorseHack.m #import "WorseHack.h" /* This is the minimum for beeing a NSArray */ @implementation LinearFlow(BasicNSArray) - (unsigned)count { return max; } - objectAtIndex:(unsigned)index { return [NSString stringWithFormat:@"%d", [self intAt:index]]; } @end /* At runtime, we are going to steal implementation of the whole NSArray protcol from the class NSArray This is done in main, but it could have been done in +initialize Note that we could also have used a protocol-implementation to furnish the <NSArray> protocol to all the implementors of <IntegerFlow> that would have made the demand. */ SHAR_EOF if test 613 -ne "`wc -c < 'WorseHack.m'`" then echo shar: error transmitting "'WorseHack.m'" '(should have been 613 characters)' fi fi # end of overwriting check echo shar: extracting "'LinearFlow.h'" '(354 characters)' if test -f 'LinearFlow.h' then echo shar: will not over-write existing file "'LinearFlow.h'" else cat << \SHAR_EOF > 'LinearFlow.h' // LinearFlow.h #import "IntegerFlow.h" /* An object that implements the abstract protocol This is normal specialized code */ @interface LinearFlow:NSObject<IntegerFlow> { int max; } - initMax:(int)m; @end /* We shut up warnings so other can consider we implement the derived protcol */ @interface LinearFlow(ExtendedFlow)<ExtendedFlow> @end SHAR_EOF if test 354 -ne "`wc -c < 'LinearFlow.h'`" then echo shar: error transmitting "'LinearFlow.h'" '(should have been 354 characters)' fi fi # end of overwriting check echo shar: extracting "'LinearFlow.m'" '(328 characters)' if test -f 'LinearFlow.m' then echo shar: will not over-write existing file "'LinearFlow.m'" else cat << \SHAR_EOF > 'LinearFlow.m' #import "LinearFlow.h" /* Concrete implementation of the abtract protocol */ @implementation LinearFlow - initMax:(int)m { [super init]; max=m; return self; } - (int)nbItems { return max; } - (int)intAt:(int)i { return i; } + initialize { USE_GENERIC_IMPLEMENTATION(LinearFlow,ExtendedFlow,Simple); return self; } @end SHAR_EOF if test 328 -ne "`wc -c < 'LinearFlow.m'`" then echo shar: error transmitting "'LinearFlow.m'" '(should have been 328 characters)' fi fi # end of overwriting check echo shar: extracting "'IntegerFlow.m'" '(794 characters)' if test -f 'IntegerFlow.m' then echo shar: will not over-write existing file "'IntegerFlow.m'" else cat << \SHAR_EOF > 'IntegerFlow.m' // IntegerFlow.m #import "IntegerFlow.h" #import <ansi/math.h> /* As the implementation of ExtendedFlow called 'Simple' is based on IntegerFlow, we pretend that we have implemented it, to shut up the compiler macro-lovers could add yet another macro in Behaviour.h to hide this... */ @interface _Behaviour(IntegerFlow)<IntegerFlow> @end BEGIN_GENERIC_IMPLEMENTATION(ExtendedFlow,Simple) - (int)indexOfMax { int i=[self nbItems]; int res = -1; int max = MININT; while (i--) if (max<[self intAt:i]) { res = i; max = [self intAt:i]; } return res; } - (int)indexOfMin { int i=[self nbItems]; int res = -1; int min = MAXINT; while (i--) if (min>[self intAt:i]) { res = i; min = [self intAt:i]; } return res; } END_GENERIC_IMPLEMENTATION(ExtendedFlow,Simple) SHAR_EOF if test 794 -ne "`wc -c < 'IntegerFlow.m'`" then echo shar: error transmitting "'IntegerFlow.m'" '(should have been 794 characters)' fi fi # end of overwriting check echo shar: extracting "'WorseHack.h'" '(1107 characters)' if test -f 'WorseHack.h' then echo shar: will not over-write existing file "'WorseHack.h'" else cat << \SHAR_EOF > 'WorseHack.h' // WorseHack.h /* Don't read this or you may end in jail We are stealing NeXT implementation's of NSArray extensions. */ #import "LinearFlow.h" /* First, we declare a protocol that rassembles all the method we want */ @protocol NSArray - (unsigned)indexOfObjectIdenticalTo:anObject; - (unsigned)indexOfObject:anObject; - (BOOL)containsObject:anObject; - (BOOL)isEqualToArray:(NSArray *)otherArray; - lastObject; - (void)makeObjectsPerform:(SEL)aSelector; - (void)makeObjectsPerform:(SEL)aSelector withObject:argument; - (NSArray *)sortedArrayUsingSelector:(SEL)comparator; - (NSArray *)sortedArrayUsingFunction:(int (*)(id, id, void *))comparator context:(void *)context; - (NSString *)componentsJoinedByString:(NSString *)separator; - firstObjectCommonWithArray:(NSArray *)otherArray; - (NSArray *)subarrayWithRange:(NSRange)range; - (NSEnumerator *)objectEnumerator; - (NSEnumerator *)reverseObjectEnumerator; - (NSString *)description; - (NSString *)descriptionWithIndent:(unsigned)level; @end /* Second, let's pretend we responds to the protocol */ @interface LinearFlow(NSArray)<NSArray> @end SHAR_EOF if test 1107 -ne "`wc -c < 'WorseHack.h'`" then echo shar: error transmitting "'WorseHack.h'" '(should have been 1107 characters)' fi fi # end of overwriting check echo shar: done with directory "'MI'" cd .. # End of shell archive exit 0
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: NSObject's initialize metod Date: 15 Jun 1995 09:30:37 GMT Organization: University of Heidelberg, Germany Message-ID: <3roujt$1de@sun0.urz.uni-heidelberg.de> Hi, OS Specs: + (void)initialize EOF 1.1: + initialize Where is the "truth"? Well, it's not really important, but I hate compiler warnings and if this happens with other methods, the result could be unpredictable... -- georg --
Newsgroups: comp.sys.next.programmer From: fred@improve.fdn.org (Frederic STARK) Subject: Re: Unwanted code optimization Message-ID: <1995Jun15.115741.10537@improve.fdn.org> Sender: news@improve.fdn.org Organization: improve SA - La Defense, Paris, France. References: <RDL.95Jun14004502@world.std.com> Date: Thu, 15 Jun 1995 11:57:41 GMT In article <RDL.95Jun14004502@world.std.com> rdl@world.std.com (Robert La Ferla) writes: > And the third problem with his code is that [selList count] is being > evaluated in the for loop which will cause problems since selList's count > is being changed by the removeObject: method. > > It should be changed to something like this: > > int count; > > count = [selList count]; > for(i=0;i<count;i++) { > ... > } Certainly not! (You're gonna loop to far) In the original post, if the cell at index 2 is removed, the loop continues at index 3, so, in fact using the cell that was previously at index 4. If this is what was intended, it is called 'bad programming practice (tm)'. If this is not what was wanted, it is called a bug. IMHO, it is a bug and it is located at the line: [selList removeObject:cell]; /* Should be removing from the matrix, or do-nothing I guess */ Anyway, I'm not flaming, but the analize of the posted code is really hard: the 'optimized' :-) selList variable is called 'cellList' in the introduction. the TheScrollView iVar is of unknown type (and begins with a uppercase) the side-effects of -deselectCell are unkown of us... Cheers, ----------------------------------------------------------------- frederic stark -- fred@improve.fdn.org -----------------------------------------------------------------
Newsgroups: comp.os.mach,comp.sys.next.programmer From: mapdjb@bath.ac.uk (D J Batey) Subject: shared memory Message-ID: <DA7t6B.Do1@bath.ac.uk> Followup-To: duncan@perihelion.co.uk Organization: Perihelion Distributed Software Ltd. Date: Thu, 15 Jun 1995 12:54:10 GMT Hi, I'm using NeXTStep 3.2 (based on mach 2.0 - 2.5) on an Intel box. I'm interested in using shared memory for interprocess communications. So, can anyone tell me a) what shared memory support mach *should* have (all I can find in the NeXTStep docs is map_fd, which doesn't seem to be enough to me) b) if so, whether the mutex, semaphore, and condition synchronisation constructs will be useable by multiple processes if they are allocated in memory shared by these processes? Thanks, Duncan.
From: Simon Chih-L Han <idpt820@tpts1.seed.net.tw> Newsgroups: comp.sys.next.programmer Subject: (no subject) Date: 15 Jun 1995 13:31:09 GMT Organization: Cardiovascular Division, NDMC Message-ID: <3rpcmt$qi@aladdin.iii.org.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Dear NeXT Expert, I have successfully installed satan and got it to work on a text-based lynx interface. However I tried hard, I can't get satan to work properly. I get " hypertext file not available at this time" on choosing some items on the satan control panel. What should I do to solve this problem? Thank you for your assistance in advance. Simon Chih-Lu Han MB 8 Sec 3 Ting-chow Rd Taipei Taiwan ROC Consultant Cardiologist Cardiovascular Division Tri-Service General Hospital National Defense Medical Center idpt820@tpts1.seed.net.tw/ChihluH@aol.com _-_-_-_-_what wll be the future???????????????????????????? the future is now-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Newsgroups: comp.sys.next.programmer Organization: Antigone Press gateway, San Francisco Return-Path: <@mail.uunet.ca,@beltrix:mark@oa.guild.org> Message-ID: <m0sLn31-000alFC@oa.guild.org> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) From: Mark Onyschuk <mark@oa.guild.org> Date: Wed, 14 Jun 1995 03:39:34 -0400 Subject: Dell Dimension XPS 120s parallel port Hmm, switching to a new 120MHz. Dell Dimension XPS machine has brought on 2-1/2 problems. Can anyone suggest fixes: 1. the PAS16 driver is broken (sound simply repeats) 2. the parallel port driver is broken (I can print, but the LJ4M printer "busy" flashing light just continues to flash unless I manually kill the job <<pardon the scientific terminology>>) 2-1/2 the PD alternative parallel port driver is broken even worse (It doesn't print anything, and I get a flashing light that I can't kill -- the machine subsequently fails to shut down cleanly) I hope that the only answer *isn't* to get a JetDirect card :-) -Mark --- M. Onyschuk and Associates Inc. 15 LaRose Ave, Ste 702 NEXTSTEP Software Development Toronto CANADA, M9P1A7 (416)241-3076
From: pmartin@landau.ucdavis.edu (Pat Martin) Newsgroups: comp.sys.next.programmer Subject: libc.a needed for f2c-where is it? Date: 15 Jun 1995 18:00:50 GMT Organization: University of California, Davis Message-ID: <3rpsgi$n7o@mark.ucdavis.edu> libc.a for NeXT or the source--where do I get it? gracia
From: seanl@jujube.cs.umd.edu (Sean Luke) Newsgroups: comp.sys.next.software,comp.sys.next.programmer Subject: MPEG sound player Date: 15 Jun 1995 19:50:24 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Message-ID: <3rq2u1$c1r@mimsy.cs.umd.edu> Does anyone know of a NS app that will read MPEG sound files? I'm not interested in MPEG video, just the sound files. Source code would be great too--I might even include it in a new version of Resound. Sean Luke U Maryland at College Park seanl@cs.umd.edu Today's Chemical: Aluminum Zirconium Tetrachlorohydrex GLY
From: droux@info.isbiel.ch (Nicolas Droux) Newsgroups: comp.sys.next.programmer Subject: GNAT 2.06 Date: 15 Jun 1995 18:24:39 GMT Organization: Biel School of Engineering, CH-2501 Biel, Switzerland Distribution: world Message-ID: <3rptt7$edn@vega.info.isbiel.ch> I'm looking for a binary version of GNAT version 2.06 (GNU Ada Translator) for NEXTSTEP/Intel. Anyone ? -- ---------------------------------------------------------------- Nicolas Droux Rue de la Source 21 Biel School of Engineering CH-2501 Biel-Bienne Computer Science Dpt Switzerland droux@info.isbiel.ch (MIME/NeXTMail) Tel: +41 32 266 314 http://www.isbiel.ch/~don/ Fax: +41 32 266 523
From: 92700454@vax1.dcu.ie Newsgroups: comp.sys.next.programmer Subject: How to get a screen shot ? Message-ID: <1995Jun15.230409.93@vax1.dcu.ie> Date: 15 Jun 95 23:04:09 GMT Keywords: renderman next Hi there, I am probably missing something really obvious, but could you help me out. I am try to get a screen shot of an application that I developed from the RenderMan example Simple.app. Basically I want to show the menu and other windows that are used to control the output in the main window. When I use the Print... option from the menu, it acts like it will render the picture in the main windows - and then just gives me a completely black image. I am running NS3.0 on a mono NeXTstation. Thanks for your help, Somhairle Foley --- Somhairle Foley sfoley@compapp.dcu.ie School of Computer Applications (NeXTMail Welcome) Dublin City University, Ireland www.compapp.dcu.ie/~sfoley/sfoley.html
From: mikef@sprewell.nwest.mccaw.com (Mike Faulkner) Newsgroups: comp.sys.next.programmer Subject: Q:Dragable browser fields Date: 15 Jun 1995 14:46:30 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3rph46$jie@nwestmail.nwest.mccaw.com> Keywords: browser NXTableView dragging Greetings, I want to create a browser with rows that can be reordered by dragging them around; similar to IB. I'm currently using a NXTableView but I don't like the way it sizes the row to fit the browser and its need to have a title to drag. Any ideas? TIA
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Re: Dell Dimension XPS 120s parallel port Message-ID: <jpanicoDA8s82.92o@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <m0sLn31-000alFC@oa.guild.org> Date: Fri, 16 Jun 1995 01:31:14 GMT Sender: jpanico@netcom9.netcom.com Mark Onyschuk (mark@oa.guild.org) wrote: : Hmm, switching to a new 120MHz. Dell Dimension XPS machine has : brought on 2-1/2 problems. Can anyone suggest fixes: : 1. the PAS16 driver is broken (sound simply repeats) PAS16 works without problem on my XPS 90. : 2. the parallel port driver is broken (I can print, but the LJ4M : printer "busy" flashing light just continues to flash unless I : manually kill the job <<pardon the scientific terminology>>) HOORAH!! I was wondering when someone else was going to run into this problem-- I was worried it was just me;). I have had a lot of trouble with the NS postscript printing through the parallel port on my Dell. I know the problem isn't with the software, because I don't have any problems at all on the DEC boxes. : 2-1/2 the PD alternative parallel port driver is broken even worse : (It doesn't print anything, and I get a flashing light that I can't : kill -- the machine subsequently fails to shut down cleanly) Yep, same here. My solution was to stop printing from my Dell :). : -Mark Joe Panico jpanico@netcom.com -- Joe Panico jpanico@netcom.com /* Please no NeXTMail, I can't read it at this address */
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: Help: Problem on Building Pallete Date: 16 Jun 1995 03:07:20 GMT Organization: Netcom Distribution: world Message-ID: <3rqsh8$kl7@ixnews6.ix.netcom.com> References: <m0sLn31-000alFC@oa.guild.org> <jpanicoDA8s82.92o@netcom.com> Hi, I try to build a pallete of the gauge on the busybox. I add 2 new methods ( read & write). Everything is ok. I have the pallete works in the NIB, I create a new nib, and tested the interface. It works fine. Until I compile the source code to create app. I have already put the lib files into library directory. When I compiled and run the app. The needle part of the gauge is not displaying. Is there anybody has try to palletize the gauge view ? Thanks for any help Kurniawan
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Dell Dimension XPS 120s parallel port In-Reply-To: jpanico@netcom.com's message of Fri, 16 Jun 1995 01:31:14 GMT Message-ID: <RDL.95Jun15235059@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <m0sLn31-000alFC@oa.guild.org> <jpanicoDA8s82.92o@netcom.com> Date: Fri, 16 Jun 1995 03:50:59 GMT Let's move this discussion to comp.sys.next.sysadmin. You'll find my reply there. Robert
From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Newsgroups: comp.sys.next.programmer Subject: Re: Application class doc Date: 15 Jun 1995 19:16:39 GMT Organization: Corporation for National Research Initiatives Message-ID: <3rq1b6$pft@news.CNRI.Reston.Va.US> References: <3rordq$ce@sun0.urz.uni-heidelberg.de> To: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) In-reply-to: tuparev@EMBL-Heidelberg.DE's message of 15 Jun 1995 08:36:10 GMT >>>>> "GT" == Georg Tuparev <tuparev@EMBL-Heidelberg.DE> writes: GT> Am I getting crazy or still completely drunk from the last GT> night? I just opened the HeaderViewer to consult the GT> Application class doc, but what I found was the ActionCell GT> description. Well, I know the latest version of HeaderViewer GT> is a bit "strange", so I opened the same doc in the Librarian GT> --- still ActionCell. To be sure I'm not ill, I checked the GT> stuff with both Edit and emacs ... the same result! Is it GT> something wrong with my installation, or the the NeXT doc GT> writer has to learn a bit more how to use cut/copy/paste for GT> the next NS release ;-) I don't know, but I have the exact same problem! (NS+Dev 3.3, EOF 1.1, Sparc). Seems to me though, before I loaded up EOF 1.1, only HeaderViewer was broken. I think that if I opened Application.rtf say, via FileViewer, I got the right doc, but clicking on Application in HeaderViewer's class list still got me ActionCell. I could be mis-remembering though... What a pain! It's the only reason I still go to the hardcopy of General Reference vol 1. -Barry
From: mike@child (Michael Emmel) Newsgroups: comp.sys.next.programmer Subject: Re: Solution to the reverse-gdb-stack-frame "feature" Date: 16 Jun 1995 06:28:23 GMT Organization: inteleNET Internet Services Message-ID: <3rr8a7$hv3@vodka.intele.net> References: <3rno34$j8p@celebrian.otago.ac.nz> gideon@black_albatross.otago.ac.nz (Gideon King) wrote: >I posted a thing a week ago asking this same question, and now I see >someone else has posted it, so here is the answer: >Grab your 3.2 CD, and replace > /usr/lib/GdbClient.bundle > /bin/gdb >with the corresponding NS 3.2 files. >This should be in KBNS - anyone know how to get it there? In the KBNS >files I have, there are lots of references to Raf_Schietekat (I presume >he's the administrator), but I don't know where Raf_Schietekat is @. What about us poor suckers with no 3.2 ? They need to put it on a ftp site (will 3.1 gdb work ?) Mike
Newsgroups: comp.sys.next.programmer From: ian.stephenson@insignia.co.uk Subject: Re: MPEG sound player Message-ID: <DA9Fxn.4Br@isltd.insignia.com> Sender: news@isltd.insignia.com Organization: Insignia Solutions plc References: <3rq2u1$c1r@mimsy.cs.umd.edu> Date: Fri, 16 Jun 1995 10:03:22 GMT In article <3rq2u1$c1r@mimsy.cs.umd.edu> seanl@jujube.cs.umd.edu (Sean Luke) writes: > Does anyone know of a NS app that will read MPEG sound files? > I'm not interested in MPEG video, just the sound files. Source > code would be great too--I might even include it in a new version > of Resound. > MAPlay has support for NeXT. It's a command line program rather than an App. You should be able to find it "around" somewhere. If not I have a binary, or mail pete@ohm.york.ac.uk - he should be able to give you the source. Ian
From: pdell@cs.bu.edu Newsgroups: comp.sys.next.programmer Subject: Re: Eval3.3 and Interface Builder? Date: 16 Jun 95 11:40:20 Organization: Boston University Distribution: world Message-ID: <pdell.95Jun16114020@nano.bu.edu> References: <3ri36e$e7c@rover.ucs.ualberta.ca> <DA4nJ5.I9@silber.rhein-main.de> Mime-Version: 1.0 Content-Type: text/plain What is the ftp site and directory where I can find Eval 3.3? Thanks, Paul Dell Boston University pdell@cs.bu.edu
From: arrouye@petole.imag.fr (Yves Arrouye) Newsgroups: comp.sys.next.programmer Subject: [URGENT] Help archiving dyna-loaded objects w/ [NX/RZ]Bundle Date: 16 Jun 1995 14:40:00 GMT Organization: Institut IMAG, Grenoble, France Distribution: world Message-ID: <3rs540$uj@cosmos.imag.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hello, I have an application whose documents consist of objects instantiated from dynamically-loaded classes. When I save the documents, the objects are saved okay but not the classes, so I cannot restore the document! I tried to write the bundles containing the classes, too, but when I restore the document I get the following: Program generated(1): Memory access exception on address 0x0 (protection failure). 0x500a69c in strrchr () (gdb) back Reading in symbols for NRZBundle.m...done. Reading in symbols for FileRetriever.m...done. Reading in symbols for EveController.m...done. Reading in symbols for Eve_main.m...done. Reading in symbols for crt0.c...done. #0 0x500a69c in strrchr () #1 0x503d54a in -[NXBundle ensureLoaded] () #2 0xa6fb in -[NRZBundle principalClass] (self=0x38a88c, _cmd=0x61a7c2d) at NRZBundle.m:361 where NRZBundle is a slighty modified RZBundle class (mainly looking at different directories to do its preloading). What can I do in order to save documents that can be restored? Also note that since my app. preloads some bundles, I don't want to get a conflict if two bundles contain the same class (if this is possible at all). I'm really stuck here, and time for finishing my thesis flies... If you can be of some help, thanks in advance! Yves. -- Advocates for the C++ school claim that a well designed Yves Arrouye program does not need the extra flexibility (a lie), Yves.Arrouye@imag.fr while advocates for the Objective-C school claim that (33) 76 57 48 64 the errors are no problem in practice (another lie). NeXT Mail / MIME http://www-scope.imag.fr/~arrouye/
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: Foundation Kit ? In-Reply-To: william@beirut.berkeley.edu's message of 13 Jun 1995 19:49:51 GMT Message-ID: <RANDY.95Jun16110444@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <3rkq4v$1ht@agate.berkeley.edu> Date: Fri, 16 Jun 1995 16:04:44 GMT In article <3rkq4v$1ht@agate.berkeley.edu> william@beirut.berkeley.edu (Andy Grosso) writes: Are there really going to be two (slightly) differnt Foundation kits ? Or does one set of documentation supersede the other ? No, in 4.0 there will only be one Foundation Kit, the one in the OpenStep spec. There is only one Foundation Kit now and it's similar to but slightly different than the one in OpenStep. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: PDO access from Windows app In-Reply-To: art@cubicsol.com's message of 14 Jun 1995 02:16:08 GMT Message-ID: <RANDY.95Jun16111806@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <3rlgp8$n6l@Sequoia.picosof.com> Date: Fri, 16 Jun 1995 16:18:06 GMT In article <3rlgp8$n6l@Sequoia.picosof.com> art@cubicsol.com (Art Isbell) writes: Hi Art! I have been asked to surmise how a Windows app might communicate with a NS D.O. server using PDO. I don't have a clue. Since PDO/Windows 95/NT hasn't been released yet, maybe no one knows for sure, but the same issue exists for the various PDO implementations that have already been released. PDO is essentially the DO API on other platforms. You will communicate with it the same way you do a DO platform -- one side registers an object with registerRoot:withName: (or an equivalent) and the other side connects to it with connectToName: (or an equilvalent). On the PDO side you won't have any AppKit stuff such as Application, Window, Text, Font, etc. This also means no event loop. To make up for this a DOEventLoop class is provided that allows you to watch for events on your PDO (really DO) connections as well as watch for data coming in from Mach Ports, file descriptors, timeouts, etc. So assume that I know that I want to communicate with a server named Foo on a host named Bar on my local subnet. What do I need to do to establish a connection from a non-NS app? On host Bar (a PDO server perhaps), your PDO process would registerRoot:bar withName:"bar server" and then run the connection, and your process on Foo (a NEXTSTEP DO process perhaps) will connectToName:"bar server" onHost:"bar". This is all just like DO processes, which is covered in the Intro to DO documentation. Assume that I know that the server responds to (id)gimmeInfo and that once I have established a local proxy, I know the API to extract various bits of info. What message must I send from my non-NS app? You just send the message gimmeInfo to your local proxy just like a regular message. This is sent to the PDO server process via DO (on the client side) and PDO (on the server side). I hope this is clear... let me know if you have any questions. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: PDO access from Windows app In-Reply-To: art@cubicsol.com's message of 14 Jun 1995 16:38:33 GMT Message-ID: <RANDY.95Jun16112356@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <3rlgp8$n6l@Sequoia.picosof.com> <3rn3aa$ltp@emerald.oz.net> Date: Fri, 16 Jun 1995 16:23:56 GMT In article <3rn3aa$ltp@emerald.oz.net> art@cubicsol.com (Art Isbell) writes: I posted about access to NS D.O. servers via Windows 95/NT client apps using the planned PDO for Windows 95/NT. Maybe I'm mistaken about this PDO product being planned because PDO's NeXTanswers entries seem to suggest (to me, at least :-) that PDO is intended for platforms without an OpenStep implementation which won't be the case for Windows 95/NT. PDO is a separate product from NEXTSTEP. This may be true for OpenStep (it would make sense). Right now there is PDO for Sun/SunOS, Sun/Solaris, DEC OSF/1 and HP/UX. Note that this is for those native operating systems, PDO and NEXTSTEP don't reside on the same machine at the same time. In The Future when OpenStep for Windows 95/NT is released, OpenStep and PDO will probably be separate products, so you can either buy PDO for Windows or OpenStep for Windows. It isn't exactly clear to me what DO/PDO support comes with OpenStep if any, so to get that you may have to guy PDO separately. Also, the PDO information seems to suggest that PDO is intended to implement D.O. servers on foreign OS's; no mention was made of using PDO as I had suggested (a communication link between a Windows client app and a NS D.O. server). Is this mode supported on current PDO products? One advantage of PDO is that it can take advantage of any resources on machines with other operating systmes, and NEXTSTEP clients can communicate with the PDO process easily (with the established DO API). So, one way to get access to stuff on a Windows box would be to have a PDO process running on the Windows machine that talked to Windows apps and also talked to NEXTSTEP clients via DO/PDO. In this respect the PDO process would act as a go-between. Depending on what networking is supported on Windows NT it may be possible to communicate with other mechanisms such as sockets if you wanted to (or needed to) bypass DO and PDO altogether. But of course if you had PDO you would have the nice API and a consistently OO system. Hope this helps, Randy -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: Foundation Kit ? Date: 16 Jun 1995 17:54:53 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Jun16195453@cobra.es.ele.tue.nl> References: <3rkq4v$1ht@agate.berkeley.edu> <RANDY.95Jun16110444@wort.id.com> In-reply-to: randy@id.com's message of Fri, 16 Jun 1995 16:04:44 GMT In article <RANDY.95Jun16110444@wort.id.com> randy@id.com (Randy Tidd) writes: No, in 4.0 there will only be one Foundation Kit, the one in the OpenStep spec. There is only one Foundation Kit now and it's similar to but slightly different than the one in OpenStep. But will it have NSPDO (as opposed to NXPDO)? --Tiggr
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: PDO access from Windows app Date: 16 Jun 1995 17:59:40 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Jun16195940@cobra.es.ele.tue.nl> References: <3rlgp8$n6l@Sequoia.picosof.com> <3rn3aa$ltp@emerald.oz.net> <RANDY.95Jun16112356@wort.id.com> In-reply-to: randy@id.com's message of Fri, 16 Jun 1995 16:23:56 GMT In article <RANDY.95Jun16112356@wort.id.com> randy@id.com (Randy Tidd) writes: It isn't exactly clear to me what DO/PDO support comes with OpenStep if any, so to get that you may have to guy PDO separately. Weird, NSConnection definitely is present in the OpenStep spec. One advantage of PDO is that it can take advantage of any resources on machines with other operating systmes Will there ever be the possibility to register more than server name on a single machine, with round robin distribution of connection requests to the different server objects? --Tiggr
From: 92700454@vax1.dcu.ie Newsgroups: comp.sys.next.programmer Subject: Re: How to get a screen shot ? Message-ID: <1995Jun16.193708.95@vax1.dcu.ie> Date: 16 Jun 95 19:37:08 GMT References: <1995Jun15.230409.93@vax1.dcu.ie> Keywords: renderman next Oops, I guess I should have looked harder. The application I was looking for was Grap.app in the /NextApps directory. Thanks to Robert and Georg for their help. Somhairle --- In article <1995Jun15.230409.93@vax1.dcu.ie>, 92700454@vax1.dcu.ie writes: > Hi there, > > I am probably missing something really obvious, but could you > help me out. I am try to get a screen shot of an application > that I developed from the RenderMan example Simple.app. > > Basically I want to show the menu and other windows that are > used to control the output in the main window. When I use the > Print... option from the menu, it acts like it will render > the picture in the main windows - and then just gives me a > completely black image. > > I am running NS3.0 on a mono NeXTstation. > > Thanks for your help, > > Somhairle Foley > --- > Somhairle Foley sfoley@compapp.dcu.ie > School of Computer Applications (NeXTMail Welcome) > Dublin City University, Ireland www.compapp.dcu.ie/~sfoley/sfoley.html >
From: eric@skatter.usask.ca (Eric Norum) Newsgroups: comp.sys.next.programmer Subject: Distributed Foundation Kit Objects? Date: 16 Jun 1995 19:12:33 GMT Organization: University of Saskatchewan Message-ID: <3rsl31$8vg@tribune.usask.ca> Keywords: Foundation Kit, Distributed Objects, bycopy I'm sure I'm missing something obvious, but I can't seem to make Foundation Kit objects (in particular, NSStrings) to work as distributed objects. I've got a number of distributed applications running here. Right now they are using MiscKit MiscStrings for some interapplication communication. I thought I'd try to get up to speed with Foundation Kit by changing my source from using MiscString objects to NSStrings. Here's the interface definition for a little test server i threw together. #import <appkit/appkit.h> #import <foundation/NSString.h> #define CommServerName "CommServer" @protocol CommMethods - (bycopy NSString *)echoString:(bycopy in NSString *)s; @end @interface CommServer:Object <CommMethods> { } ================================================================ In the client: NSString *s, *r; s = @"Hello world"; r = [commServer echoString:s]; . . ================================================================ Whenever the client tries to send the echoString: message, it gets an exception: #0 0x7816a85 in -[NSException raise] () #1 0x781700b in +[NSException(NSExceptionRaisingConveniences) raise:format:arguments:] () #2 0x7816f9f in +[NSException(NSExceptionRaisingConveniences) raise:format:] () #3 0x7821b12 in -[NSObject doesNotRecognizeSelector:] () #4 0x7821bba in -[NSObject methodSignatureForSelector:] () #5 0x78181a7 in -[NSObject(ForwardInvocation) forward::] () #6 0x5006195 in _objc_msgForward () #7 0x507a9e3 in -[NXPortPortal encodeObjectBycopy:] () #8 0x507bf06 in iencodeData () #9 0x507a858 in -[NXPortPortal encodeData:ofType:] () #10 0x509af8a in -[NXMethodSignature encodeMethodParams:onto:] () #11 0x5079b95 in -[NXProxy forward::] () #12 0x5006195 in _objc_msgForward () ================================================================ Things work properly if I change the <CommMethods> protocol to: @protocol CommMethods - (NSString *)echoString:(NSString *)s; @end So how do I control whether or not the object is being `sent across the wire'? -- Eric Norum eric@skatter.usask.ca Saskatchewan Accelerator Laboratory Phone: (306) 966-6308 University of Saskatchewan FAX: (306) 966-6058 Saskatoon, Canada. NeXTMail accepted.
Newsgroups: comp.sys.next.programmer From: empath@netcom.com (Tim Triemstra) Subject: Number fields accuracy problems Message-ID: <empathDAA5w6.DIA@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Fri, 16 Jun 1995 19:24:06 GMT Sender: empath@netcom21.netcom.com My application is using a number field (double float) along with a selector field to set one of 3 possible weights. The conversion and everything "works" but, for some reason, there are problems with the number fields that make enforcing some business rules very difficult. First: The number field has its high value set to 2000.00 and the low set to 0.00. There is a problem when I try to set the field value to 0.91 - it simply won't change the value in the field to what I want! .90 and .92 work (actually, I haven't tested .92 but .94 worked) Actually, the number that I'm trying to put in the field is .9067 but the field only holds up to 2 decimal places and clips the rest. I can find no way around this problem. Second: as I said, the field clips the value at 2 decimal places. I only want to show 2 but need to keep 4 or more. I've been using a mirror value (each time the number is converted I update the mirror) but this is a problem in general that I'd like to fix. Currently, the only way to fix problem #1 is to turn off the high/low limits. With the limits off, however, I have to use the value to determine the limits, which I have no way of finding out if the user has changed the value to a number higher than allowed. This would require alot of extra code to either setup a delegate, inherit the object or rewrite the save and load functions from all the various places that can access this base class. Any sugguestion on how to set the sensitivity to greater than display and why the numbers are sometimes no acceptable would be appreciated. BTW: I'm using NeXT user 3.3 and developer 3.2 - will be switching to 3.3 in a few months. -- Tim Triemstra ... empath@netcom.com ... Detroiter at Heart The RED WINGS rule! 2 down, 2 to go (I think that mean 2 octopi too!)
From: stabl@informatik.uni-muenchen.de (Robert Stabl) Newsgroups: comp.sys.next.programmer Subject: Re: Eval3.3 and Interface Builder? Date: 17 Jun 1995 14:28:39 GMT Organization: Institut fuer Informatik der Ludwig-Maximilians-Universitaet Muenchen Distribution: world Message-ID: <3ruoqn$ln@antigone.ppp.informatik.uni-muenchen.de> References: <pdell.95Jun16114020@nano.bu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In article <pdell.95Jun16114020@nano.bu.edu> pdell@cs.bu.edu writes: > What is the ftp site and directory where I can find Eval 3.3? Index search on peanuts yields: (http://www.informatik.uni-muenchen.de/cgi-bin/peanuts-search-e.html) FR-- 2242 1995/05/16 16:09 Developer/apps/Eval.3.3.README FR-- 289678 1995/05/16 16:09 Developer/apps/Eval.3.3.s.tar.gz (ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/Developer/apps/E val.3.3.s.tar.gz) Mirror of peanuts in the US: digitalNATION - ftp://ftp.dn.net/pub/next Robert. -- Robert Stabl email: stabl@informatik.uni-muenchen.de Computer Science Institute http://www.pst.informatik.uni-muenchen.de/~stabl/ University of Munich Leopoldstr. 11B Tel: +(49) 89 2180 6316 D-80802 Muenchen FAX: +(49) 89 2180 6310 Germany
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: PDO access from Windows app Date: 17 Jun 1995 01:52:53 GMT Organization: The SenseMedia Network, http://sensemedia.net/, info@sensemedia.net Distribution: world Message-ID: <3rtchl$ddo@emerald.oz.net> References: <RANDY.95Jun16112356@wort.id.com> In article <RANDY.95Jun16112356@wort.id.com> randy@id.com (Randy Tidd) writes: > In article <3rn3aa$ltp@emerald.oz.net> art@cubicsol.com (Art Isbell) writes: >> Also, the PDO information seems to suggest that PDO is intended to >> implement D.O. servers on foreign OS's; no mention was made of using PDO >> as I had suggested (a communication link between a Windows client app and >> a NS D.O. server). Is this mode supported on current PDO products? > > One advantage of PDO is that it can take advantage of any resources on > machines with other operating systmes, and NEXTSTEP clients can > communicate with the PDO process easily (with the established DO API). > So, one way to get access to stuff on a Windows box would be to have a > PDO process running on the Windows machine that talked to Windows apps > and also talked to NEXTSTEP clients via DO/PDO. In this respect the > PDO process would act as a go-between. > When you describe "a PDO process running on the Windows machine that talked to Windows apps", how does a PDO process talk to a Windows app? Either I haven't expressed my question well or I don't understand the answers (or probably, both :-) I've gotten many replies (thanks) answering a question that I didn't intend to ask: how does a NS client app access a Windows server app with PDO installed? I realize that this is done just as it's done using DO with a NS client and server. This seems to be the problem that PDO was designed to solve. But I'm interested in going the other way: using a native Windows GUI client app developed using a standard Windows development environment to access a remote NS server. I actually received one response that addressed this using existing HP-UX and Solaris PDO implementations as examples: compile a PDO object file using PDO development tools and, using a native Windows linker, link it with Windows object files compiled using a native Windows compiler. The PDO object file defines functions that implement the DO communication. The Windows object files call these functions. This makes sense (except for apps developed using Visual BASIC - but maybe VB supports function calls to C functions). Of course, a Windows/OpenStep app should be able to use DO without PDO just as NS apps do. However, many Windows developers aren't going to want to abandone their familiar development environment, but are still going to want to access remote NS objects, so maybe they're going to have to get a buddy to build a linkable file under OpenStep that takes care of the DO. Maybe all this will become crystal clear once OpenStep and PDO for Windows 95/NT have been released. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
From: andrew.abernathy@mccaw.com (Andrew Abernathy) Newsgroups: comp.sys.next.programmer Subject: Re: PDO access from Windows app Date: 16 Jun 1995 20:17:33 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3rsost$cs7@nwestmail.nwest.mccaw.com> References: <RANDY.95Jun16112356@wort.id.com> In article <RANDY.95Jun16112356@wort.id.com> randy@id.com (Randy Tidd) writes: > PDO is a separate product from NEXTSTEP. This may be true for > OpenStep (it would make sense). Right now there is PDO for Sun/SunOS, > Sun/Solaris, DEC OSF/1 and HP/UX. Note that this is for those native > operating systems, PDO and NEXTSTEP don't reside on the same machine > at the same time. It's a major shame that you can't buy an inexpensive PDO runtime. The place at which I used to work had a need for this, and were in the position to potentially buy a lot of licenses, but weren't willing to pay $5000+ for each workstation they deployed on. NeXTstep wasn't in the picture - they had Sun/Solaris servers and clients. However, they had examined NeXT some, and having PDO around would have made that adoption much more likely. They probably would have paid $5000+ for the server, but no way for the clients. As for your comment about DO capabilities in OpenStep, it's certainly in the OpenStep spec. (Although it really needs something else, which IS available in 3.3 - note that 3.3 has an NXAutoreleaseConnection, but OpenStep doesn't, and that's going to be pretty darn important.) -- andrew.abernathy@mccaw.com (Seattle area) 14335 Northeast 24th Street Bellevue, WA 98007 (NeXTmail / MIME / MS Mail spoken here) I don't speak for McCaw. I can barely speak for myself.
From: tshores@unlinfo.unl.edu (thomas shores) Newsgroups: comp.sys.next.programmer Subject: gnu software on next Date: 17 Jun 1995 01:09:30 GMT Organization: University of Nebraska--Lincoln Distribution: world Message-ID: <3rta0a$c34@crcnis3.unl.edu> Summary: Does gnu gcc and libg++ work on next? Keywords: gnu I'm trying to install gcc 2.6.3 and libg++ 2.6.2 on an Intel Next. I need these latest versions to compile octave. I've run into a number of problems. Though the whole installation process seemed to go through, and I can compile simple c programs, I run into a problem as soon as I try to compile a c++ program. The headers can't be found, and when I point the compiler in the right direction I still get numerous errors. I realize it's too much to expect someone to walk me through the whole process, but I would like to know if *anyone* has installed these tools on a Nextstep 3.2 system, and if so, are there any unusual pitfalls that I have to watch out for. BTW, bison and makeinfo seemed to be mandatory, so I did install the latest version of texinfo via Next's cc, but the latest gnu release of bison wouldn't compile (problems with the alloca.h header, or lack thereof), so I used the source that comes with the Developer Tools. Any tips or suggestions would be greatly appreciated. Tom Shores Dept. of Math/Stat University of Nebraska
From: masud@emc.worldbank.org (masud cader) Newsgroups: comp.sys.next.misc,comp.sys.next.programmer Subject: Q: DBModeler connections to ORACLE 7 or SQLServer 4.21A Date: 14 Jun 1995 20:27:09 GMT Organization: The World Bank Group Distribution: all Message-ID: <3rngmt$vh5@minerva.worldbank.org> Keywords: SQL*Net, DBModeler, Adaptors, NT, SQLServer Colleagues: I have two questions relating to interfacing NEXTSTEP to a remote database (for both questions, the host is an Intel box running SQLServer 4.21A, or ORACLE7 (7.1) on Windows NT 3.5). Network protocol is TCP/IP. Client is a NEXTSTEP 3.3 box. 1. Is the Sybase adaptor (which one?) certified to get into SQLServer 4.21A. With very limited trials I have not succeeded to get it working. Is there some bit of information I am missing? 2. Does the appropriate ORACLE DBKit adaptor take the place of SQL*Net? I have tried to connect to the remote database in DBmodeler but get a bonk and rejected at the login dialog...no error message, and I believe it never gets to the remote server...so it looks like a network transport error? However, I can get to the server from a Mac unsing SQL*Net on the same net. Therein lies the paradox! I realize that the number of coinfiguration variables not mentioned is high, but I hope someone out there with siomilar experience can comment. Thanks. --Masud ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Masud Cader ESDEM The World Bank masud@emc.worldbank.org (202) 522-3202 [FAX]
From: wkwong@bellman.eng.ohio-state.edu (Waihon Andrew Kwong) Newsgroups: comp.sys.next.programmer Subject: Help! DBTableView Printing Problem.... Date: 14 Jun 1995 00:24:10 GMT Organization: The Ohio State University Distribution: usa Message-ID: <3rla7a$gi@charm.magnus.acs.ohio-state.edu> HI, Is there anyone using the DBTableView to display data tables and then try to print the view (or the window contain the DBTableView) under NS3.0? I have this work fine in NS3.3, but all the computers with NS3.0 can't print the DBTableView!!! (Well, there are PS errors and if I force it to print, it gives me a flipped view, on both left-right and up-down direction). Anyone knows if there is a fix (besides upgrade) to allow users under NS3.0 to print a DBTableView?? Thanks for any suggestions in advance, Andy -- //|| // @ E-mail: wkwong@ee.eng.ohio-state.edu // ||// @ 75662.2020@compuserve.com //==||\\ @ "If you put your mind to it, you can accompish anything!" // || \\ @ "NeXTMAIL and MIME IS WELCOME!"
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: Eval3.3 and Interface Builder? Date: 17 Jun 1995 14:56:42 GMT Organization: University of Heidelberg, Germany Distribution: world Message-ID: <3ruqfa$b5@sun0.urz.uni-heidelberg.de> References: <pdell.95Jun16114020@nano.bu.edu> In article <pdell.95Jun16114020@nano.bu.edu> pdell@cs.bu.edu writes: > What is the ftp site and directory where I can find Eval 3.3? As an eduStep maintainer, you should know, that Eval 3.3 is on the EMBL ftp server ;-) ftp://ftp.nmr.embl-heidelberg.de/pub/next/Developer/Apps/... -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
From: Cedar Systems <Cedar@cedar.demon.co.uk> Newsgroups: comp.sys.next.programmer Subject: How to get a list of file names in a directory? Date: 17 Jun 1995 16:42:42 +0100 Organization: Cedar Systems Sender: news@news.demon.co.uk Message-ID: <803402921snz@cedar.demon.co.uk> I am trying to produce a browser of file names in a selected directory in much the same way as in OpenPanel, and I am looking for the best way to get the list of files in a directory. Any suggestions? Thanks, Paul.
From: Cedar Systems <Cedar@cedar.demon.co.uk> Newsgroups: comp.sys.next.programmer Subject: Re: How to get a screen shot ? Date: 17 Jun 1995 16:42:42 +0100 Organization: Cedar Systems Sender: news@news.demon.co.uk Message-ID: <803403050snz@cedar.demon.co.uk> References: <1995Jun15.230409.93@vax1.dcu.ie> Try using Grab.app in /NextApps. Paul. In article <1995Jun15.230409.93@vax1.dcu.ie> sfoley@compapp.dcu.ie writes: > Hi there, > > I am probably missing something really obvious, but could you > help me out. I am try to get a screen shot of an application > that I developed from the RenderMan example Simple.app. > > Basically I want to show the menu and other windows that are > used to control the output in the main window. When I use the > Print... option from the menu, it acts like it will render > the picture in the main windows - and then just gives me a > completely black image. > > I am running NS3.0 on a mono NeXTstation. > > Thanks for your help, > > Somhairle Foley > --- > Somhairle Foley sfoley@compapp.dcu.ie > School of Computer Applications (NeXTMail Welcome) > Dublin City University, Ireland www.compapp.dcu.ie/~sfoley/sfoley.html > > >
From: leeden@cezanne.pst.informatik.uni-muenchen.de (Christian Leeden van der) Newsgroups: comp.sys.next.programmer Subject: Foundation Class and Error Handling Date: 19 Jun 1995 15:11:29 GMT Organization: Institut fuer Informatik der Universitaet Muenchen Distribution: world Message-ID: <3s4431$odi@arcadia.informatik.uni-muenchen.de> Hi! I have been using the foundation class and the EOF for our latest project. Now when I send a message to an foundation class object which it doesn't respond to, I get these Errormessages: Unknown error code 100003 in NXReportError or Unknown error code 100002 in NXReportError Anybody has an idea how I could get more descriptive messages from the errorhandler (I can remember something on this newsgroup but wasn't paying attention at that time...:( ). Well, I know its probably a very basic question, but I couldn't get an answer in the documentation so please HELP!! CIAO FANTA "Der Ingenieur ist das Kamel auf dem der Kaufmann zur Traenke reitet oder in die Wueste schickt." (anon.) ------------------------------------------------------------
From: willers@butp.unibe.ch (Moritz Willers) Newsgroups: comp.sys.next.programmer Subject: register NXConnection from forked process? Date: 17 Jun 1995 21:49:16 GMT Message-ID: <3rviks$8j9@aragorn.unibe.ch> I tried several times invain to start a DO server from a forked process. e.g. switch (fork()) { case -1: // forked failed break; case 0: // now in child context myObject = [[MyObject alloc] init]; server = [NXConnection registerRoot:myObject withName:"Anything"]; // .... break; default: // here I would like to connect to the established server myObject = [NXConnection connectToName:"Anything"]; break; } myObject gets initialized. The next line returns nil. There is no other server running on the machine registering with the name "Anything". The connectToName naturally failes. The same code workes if not in a forked context, i.e. two seperate processes started from a shell. Are there any restrictions I'm not aware of? And: I don't want it the other way round, register in non forked process and connect from forked. The forked server should stay after I quit the app which forked it of, so that I can reconnect again on the next launch. Thanks for any help - Moritz -- Moritz Willers Institute of Theoretical Physics Sidlerstrasse 5 3012 Bern, Switzerland willers@butp.unibe.ch (NeXTMail, MIME)
From: root@terra (Felipe A. Rodriguez) Newsgroups: comp.sys.next.programmer Subject: Re: gister NXConnection from forked process? Date: 18 Jun 1995 00:13:48 GMT Organization: Network Intensive Message-ID: <3rvr3s$fmn@ni1.ni.net> References: <3rviks$8j9@aragorn.unibe.ch> willers@butp.unibe.ch (Moritz Willers) wrote: > I tried several times invain to start a DO server from a forked process. e.g. > switch (fork()) { > case -1: > // forked failed > break; > case 0: // now in child context > myObject = [[MyObject alloc] init]; > server = [NXConnection registerRoot:myObject withName:"Anything"]; > // .... > break; > default: > // here I would like to connect to the established server > myObject = [NXConnection connectToName:"Anything"]; > break; > } > myObject gets initialized. The next line returns nil. There is no other server running on the machine registering with the name "Anything". The connectToName naturally failes. > The same code workes if not in a forked context, i.e. two seperate processes started from a shell. Well for starters it seems you are setting up a race condition. Will the child have registered and run your new object before the parent tries to connect to it? Felipe A. Rodriguez # ...it cannot be called ingenuity to kill one's Agoura Hills, CA # fellow citizens, to betray friends, to be without far@ni.net # faith, without mercy, without religion; by these # means one can aquire power but not glory. # (NeXTmail prefered) # --Nicolo Machiavelli (MIMEmail welcome) # *******************************************************************************************
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: How to get a list of file names in a directory? Message-ID: <DACL37.4q5@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems References: <803402921snz@cedar.demon.co.uk> Date: Sun, 18 Jun 1995 02:47:31 GMT Cedar Systems <Cedar@cedar.demon.co.uk> writes > I am looking for the best way to get the list of files in a directory. man readdir stat -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
From: tmetzger@infomatch.com (Tom Metzger) Newsgroups: comp.sys.next.programmer Subject: Initializing AND is there a FAQ? Date: Sat, 17 Jun 1995 23:20:06 -0800 Organization: The EDGE Message-ID: <tmetzger-1706952320060001@199.60.99.246> Hi all. I have a nib file in IB that brings up two windows. I want to change one of them into a floating palette, but the "init" method I need to use (which happens to be instantiated in the IB as a custom object in the nib file in question) seems to get called BEFORE the windows even exist! This causes me grief. Can I change the order of initialization? I tried subclassing "Panel" into "FloatingPanel" and putting a [self setFloatingPanel:YES] in the init method right after [super init], but that caused some really odd updating errors. If anyone can solve either of these problems, I would love to hear about it! Where can I find a FAQ for this group? rtfm.something, isn't it? -- Tom Metzger tmetzger@sfu.ca Bass of The EDGE Quartet
From: tmetzger@infomatch.com (Tom Metzger) Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <tmetzger-1706952321400001@199.60.99.246> Control: cancel <tmetzger-1706952321400001@199.60.99.246> Date: Sat, 17 Jun 1995 23:22:01 -0800 Organization: The EDGE Message-ID: <tmetzger-1706952322010001@199.60.99.246> cancel <tmetzger-1706952321400001@199.60.99.246>
From: tmetzger@infomatch.com (Tom Metzger) Newsgroups: comp.sys.next.programmer Subject: Initializing AND is there a FAQ? Date: Sat, 17 Jun 1995 23:22:31 -0800 Organization: The EDGE Message-ID: <tmetzger-1706952322310001@199.60.99.246> Hi all. I have a nib file in IB that brings up two windows. I want to change one of them into a floating palette, but the "init" method I need to use (which happens to be instantiated in the IB as a custom object in the nib file in question) seems to get called BEFORE the windows even exist! This causes me grief. Can I change the order of initialization? I tried subclassing "Panel" into "FloatingPanel" and putting a [self setFloatingPanel:YES] in the init method right after [super init], but that caused some really odd updating errors. If anyone can solve either of these problems, I would love to hear about it! Where can I find a FAQ for this group? rtfm.something, isn't it? -- Tom Metzger tmetzger@sfu.ca Bass of The EDGE Quartet
From: Paul Lynch <Paul_Lynch@plsys.com> Newsgroups: comp.sys.next.programmer Subject: Re: How to get a list of file names in a directory? Date: 18 Jun 1995 16:07:34 +0100 Organization: P & L Systems Sender: news@news.demon.co.uk Message-ID: <1995Jun18.150331.6917@seer.demon.co.uk> References: <DACL37.4q5@genoa.com> In article <DACL37.4q5@genoa.com> alex@genoa.com (Alex Blakemore) writes: > Cedar Systems <Cedar@cedar.demon.co.uk> writes > > I am looking for the best way to get the list of files in a directory. > > man readdir stat Or for that matter, the StringList/FileList example does exactly that (MiniExample, 1254). Paul -- Paul Lynch (NeXTmail) paul@plsys.com Tel: (01494)671501 9 Stable Lane, Seer Green, Fax: (01494)680228 Bucks, HP9 2YT, UK
From: rmasse@cnri.reston.va.us (Roger E. Masse) Newsgroups: comp.sys.next.programmer Subject: EOF and MiniSQL Adaptor problem? Date: 16 Jun 1995 17:49:39 GMT Organization: Corporation for National Research Initiatives Distribution: world Message-ID: <3rsg7j$hnc@news.CNRI.Reston.Va.US> Keywords: EOF MiniSQL Adaptor I just copied version 1.0.5.1 (with tmpnam fix) of Mini-SQL and MiniSQL adaptor version 950408. I have NS 3.3 with developer 3.3 and EOF 1.1 running on Intel. I ran the test SQL script that comes with msql that creates a database test with two tables test and test2. test.name and test2.user are the primary keys and represent one-to-one relationships between one another. So in EOModeler I've used the Model Browser to actually retrieve records from the tables with no problem... NeXT, I add a new relationship to table test2 (to table test) called toTest (after connecting the primary keys test.name and test2.user with the relationship inspector). I select a couple of toTest attributes and proceed to flatten them into test2... So far so good. Problems start when I try to now browse test2 using Model Browser... EOModeler seems to go off into space. I've captured some debugging information here's a dump of the Adaptor Methods that get called with an unmodified entity... (which works fine) Class MiniSQLAdaptorChannel, Method openChannel Class MiniSQLAdaptorChannel, Method connectWithConnectionDictionary Class MiniSQLAdaptorChannel, Method isFetchInProgress Class MiniSQLAdaptorChannel, Method selectAttributes:describedByQualifier:fetchOrder Class MiniSQLAdaptorChannel, Method setResultDescription Class MiniSQLAdaptorChannel, Method adaptorContext Class MiniSQLAdaptorChannel, Method evaluateExpression -evaluateExpression, expression = SELECT t0.age, t0.name, t0.phone FROM test t0 Class MiniSQLAdaptorChannel, Method fetchAttributes:withZone Class MiniSQLAdaptorChannel, Method fetchAttributes:withZone Class MiniSQLAdaptorChannel, Method fetchAttributes:withZone Class MiniSQLAdaptorChannel, Method setResultDescription Class MiniSQLAdaptorChannel, Method closeChannel Class MiniSQLAdaptorChannel, Method isFetchInProgress ... When I attempt to Browse table test2 with the new Relationship... Class MiniSQLAdaptorChannel, Method openChannel Class MiniSQLAdaptorChannel, Method connectWithConnectionDictionary Class MiniSQLAdaptorChannel, Method isFetchInProgress Class MiniSQLAdaptorChannel, Method selectAttributes:describedByQualifier:fetchOrder Class MiniSQLAdaptorChannel, Method setResultDescription Class MiniSQLAdaptorChannel, Method adaptorContext ...and it never get's to method evaluateExpression EOModeler appears to hang... which led me to believe that it could be a problem in EOModeler... However, if I try to create a simple IB app in which I drag an entity controller instance connected up to a fetch button and a Table View Object it works fine if the entity does *not* have an added relationship (inner join), but hangs in the same place with an entity that does have a relationship. I know *both* of these work OK with NS 3.3, Developer 3.2, EOF 1.1 (with the Developer 3.2 patch) and the Sybase adaptor. Please let me know if you think you know what's going on or what I'm doing wrong... P.S. I've already forwarded this message to ask-oa@oa.guild.org, which I presume is Mark Onyschuk... So if Mark is reading this, sorry for the repeat. :-) Regards, Roger E. Masse, Systems Engineer Corporation for National Research Initiatives 1895 Preston White Drive, Suite 100 Reston, Virginia, USA 22091 Internet: rmasse@CNRI.Reston.VA.US (MIME/NeXTmail OK)
From: wkwong@bellman.eng.ohio-state.edu (Waihon Andrew Kwong) Newsgroups: comp.sys.next.programmer Subject: Compiling DB Apps for NS3.0 from NS3.3/2 DEV? Date: 16 Jun 1995 01:56:30 GMT Organization: The Ohio State University Distribution: usa Message-ID: <3rqoce$e30@charm.magnus.acs.ohio-state.edu> Hi, Recently, I have been trying to get some DB apps (using DBKit/DBLib with Sybase) to compile under NS3.3 or 3.2 Developer. This process is relatively smooth but the resulting apps (FAT or NON_FAT) can't run on machines with NS3.0. Would there be a trick to get a NS3.2 or NS3.3 apps run on NS3.0 black hardware? Andy -- //|| // @ E-mail: wkwong@ee.eng.ohio-state.edu // ||// @ 75662.2020@compuserve.com //==||\\ @ "If you put your mind to it, you can accompish anything!" // || \\ @ "NeXTMAIL and MIME IS WELCOME!"
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: Distributed Foundation Kit Objects? In-Reply-To: eric@skatter.usask.ca's message of 16 Jun 1995 19:12:33 GMT Message-ID: <RANDY.95Jun19013127@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <3rsl31$8vg@tribune.usask.ca> Date: Mon, 19 Jun 1995 06:31:27 GMT In article <3rsl31$8vg@tribune.usask.ca> eric@skatter.usask.ca (Eric Norum) writes: I'm sure I'm missing something obvious, but I can't seem to make Foundation Kit objects (in particular, NSStrings) to work as distributed objects. Check out NeXTanswer #1721, "Encoding Foundation Classes with Distributed Objects", which deals with this particular issue. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
From: plongsi@falcon.inetnebr.com (Pohl Longsine) Newsgroups: comp.sys.next.programmer Subject: Re: CustomView supporting VT100? Date: 18 Jun 1995 00:42:51 GMT Organization: Internet Nebraska Message-ID: <3rvsqb$slv@duck.inetnebr.com> References: <3qti31$dab@wolfe.wimsey.com> <D9qGB3.2uM@zion.com> David J. Ferrero (david@zion.com) wrote: : In article <3qti31$dab@wolfe.wimsey.com> Kevin Hiebert : <khiebert@wimsey.com> writes: : > I am trying to write a front-end for a UNIX command line utility which : outputs : > VT100-style control characters. Terminal.app knows how display them, but : Take a look at ZionDECView.palette.tar.gz - should be somewhere on : ftp.cs.orst.edu, in palettes maybe? Sounds like a good way to port NetHack to NeXTstep. I'd still like the color characters that the DOS version has, though. (I can't believe that I wrote that.) Better yet, a completely NeXTstep-like interface, within the character-matrix paradigm of NH, though. -- ____/| | Pohl Longsine, OpenStep Software Developer \ o.O| GPF! | "I don't do Windows." =(_)= CTLALTDLT! | plongsi@inetnebr.com (Internet Nebraska) U (Bill Gates, The Cat) | NeXT & MIME mail formats accepted.
From: plongsi@falcon.inetnebr.com (Pohl Longsine) Newsgroups: comp.sys.next.programmer Subject: Re: NeXTSTEP HTTP Server Date: 18 Jun 1995 00:44:39 GMT Organization: Internet Nebraska Message-ID: <3rvstn$slv@duck.inetnebr.com> References: <rfenney-310595220208@rfenney.slip.netcom.com> <3qkjnk$b7r@zip.eecs.umich.edu> <3r3d4n$ca8@shore.shore.net> Guy K. Hillyer (gkh@shore.net) wrote: : How about a browser? http://www.omnigroup.com/ http://www.lighthouse.com/ I can't remember the URLs to NetSurfer and Spiderwoman. You can probably find a reference to them on http://www.digifix.com/ -- ____/| | Pohl Longsine, OpenStep Software Developer \ o.O| GPF! | "I don't do Windows." =(_)= CTLALTDLT! | plongsi@inetnebr.com (Internet Nebraska) U (Bill Gates, The Cat) | NeXT & MIME mail formats accepted.
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: Generating Random Numbers Date: 19 Jun 1995 11:33:39 GMT Organization: The University of York, UK Distribution: world Message-ID: <3s3naj$bqe@mailer.york.ac.uk> References: <D9I5yE.3B8@undergrad.math.uwaterloo.ca> Jerry Kuch (gdkuch@neumann.uwaterloo.ca) wrote: > I'm writing some simulation code under NEXTSTEP 3.2, running on white > hardware (an Intel DX4/100). I need a decent source of random numbers. > This doesn't have to be the world's best source, just something that's not > going to do anything obviously pathetic. i believe that random number generators are designed to be seeded only once. i think you'll find that (particularly with better generators like random()) seeding it for each call misses all the point of the algorithm. the result of this might or might not contain timer artifacts - it's very hardware and software (and time!) dependent, and hence unreliable. if the randomness of the numbers is very important, i'd recommend using random and initstate with a large state array and seeding it once from some combination if tv_usec, getpid, and any other arbitrary values you can find. if even that isn't enough, go and buy some genuine random number hardware and plug it in :-) something like : - (double)tcRND /* assume >= 32 bit ints and 2s complement */ /* return in range of [0, 1] */ { static BOOL done_seed = NO; if (!done_seed) /* if efficiency's very important, then do this in a separate 'init' method */ { static char state[256]; /* largest that random can cope with */ unsigned seed; struct timeval tv; gettimeofday(&tv, (struct timezone *)0); seed = (tv.tv_usec << 12) + getpid(); initstate(seed, state, sizeof(state)); done_seed = YES; } { double val = (unsigned)random() & 0x7fffffff; return val / (double)0x7fffffff; } } hope this is of some help, cheers, rog.
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs,comp.soft-sys.nextstep Subject: NEXTSTEP Resources on the Internet Date: 19 Jun 1995 00:15:09 GMT Organization: Digital Fix Development Distribution: inet Message-ID: <3s2fid$ilu@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment - Status reports on GNUStep, a freely-available implementation of OpenStep now being developed NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff ftp://ftp.informatik.uni-muenchen.de: (Peanuts) Located in Germany. ftp://ftp.dn.net/pub/next Peanuts mirror in the US ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.nmr.embl-heidelberg.de/pub/next/ eduStep ftp://ftp.next.com: See below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: How to get a list of file names in a directory? Date: 19 Jun 1995 12:22:38 GMT Organization: The University of York, UK Distribution: world Message-ID: <3s3q6e$bqe@mailer.york.ac.uk> References: <803402921snz@cedar.demon.co.uk> Cedar Systems (Cedar@cedar.demon.co.uk) wrote: > I am trying to produce a browser of file names in a selected directory > in much the same way as in OpenPanel, and I am looking for the best > way to get the list of files in a directory. something like this : (put this code into your method definition or whateverj int getFiles(char *pathname) { DIR *dp; /* directory pointer */ struct dirent *de; /* directory entry pointer */ if ((dp = opendir(pathname)) == 0) return -1; /* error - can use perror() or errno for diagnostics here */ while ((de = readdir(dp)) != 0) if (strcmp(de->d_name, ".") && strcmp(de->d_name, "..")) { the file name of each directory entry in turn is held in de->d_name. } closedir(dp); return 0; } cheers, rog.
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: Help! Passing Function Pointers in Methods Date: 19 Jun 1995 12:31:07 GMT Organization: The University of York, UK Message-ID: <3s3qmb$bqe@mailer.york.ac.uk> References: <3rhkto$ft3@aplinfo.jhuapl.edu> Mike Hostetter (Michael_Hostetter@JHUAPL.Edu) wrote: > I would like to pass a function pointer into a method but I am not > able to figure out the correct syntax. same as in C. e.g. definition of function : int function(char *x) { printf("hello, %s!\n", x); return 99; } definition of method : - callFunction:(int(*)(char *))fnpt { (*fnpt)("world"); return self; } invocation of method : [obj callFunction:function]; result : hello, world
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: HeaderViewer...arrrgggl Date: 19 Jun 1995 12:38:37 GMT Organization: The University of York, UK Distribution: world Message-ID: <3s3r4d$bqe@mailer.york.ac.uk> References: <D9tEID.1uG@shinto.nbg.sub.org> <jpanicoD9tsE6.LJG@netcom.com> <RDL.95Jun12012021@world.std.com> seems like when NeXT made HeaderViewer a supported application, they broke it. sounds familiar to me. such a pity, as HeaderViewer was one of the most useful applications... :-( why is it that software reliability often _drops_ as the software is developed ? rog. PS. is it just our installation, or is everybody else missing the documentation for the Application class as well ?
From: dcell@tudhope.com (Dan Ellison) Newsgroups: comp.sys.next.programmer Subject: Re: Freeing objects which own windows Date: Mon, 19 Jun 1995 09:12:10 +0500 Organization: Tudhope Associates Inc. Message-ID: <dcell-1906950912100001@tudhope.tor.hookup.net> References: <3rf7r5$amo@bright.ecs.soton.ac.uk> <3rfg9u$98c@lyra.csx.cam.ac.uk> Thanks for the reply, Ben! You wrote: > Have you tried using Application's delayedFree: method? I think it should > be safe to call that from the delegate method. I believe it is similar to > using autorelease in the default pool under the Foundation kit in that it > gets applied after the end of the current event. I did end up using - windowWillClose { [NXApp delayedFree:self]; return nil; } The nil tells the window not to close. The free method then sent a [myWindow close] message, which doesn't cause another windowWillClose message. This seems to work just fine. ------------------------------------------------- Daniel C. Ellison Vox: 416-366-7100 Tudhope Associates Inc. Fax: 416-366-7711 International Graphic Design dcell@tudhope.com -------------------------------------------------
From: willers@butp.unibe.ch (Moritz Willers) Newsgroups: comp.sys.next.programmer Subject: Re: register NXConnection from forked process? Date: 19 Jun 1995 13:26:40 GMT Message-ID: <3s3tug$7rs@aragorn.unibe.ch> References: <3rvr3s$fmn@ni1.ni.net> Felipe A. Rodriguez writes > willers@butp.unibe.ch (Moritz Willers) wrote: > > I tried several times invain to start a DO server from a forked process. > > Well for starters it seems you are setting up a race condition. Will the child have > registered and run your new object before the parent tries to connect to it? > > The connect call tries for some time before it failes. This is no problem. If you prefer one could put a sleep() before the connect. But that doesn't change the inablility of the child to register the server. Which is even worse: you can try to debug the child and be sure that the NeXT panics at the line with the registerRoot: :-((( I suppose an Intel will just crash. I don't recommend testing it. I had to pull the plug to get the NeXT running again. No chance to sync the disks. -- Moritz Willers Institute of Theoretical Physics Sidlerstrasse 5 3012 Bern, Switzerland willers@butp.unibe.ch (NeXTMail, MIME)
From: Cedar Systems <Cedar@cedar.demon.co.uk> Newsgroups: comp.sys.next.programmer Subject: Re: How to get a list of file names in a directory? Date: 18 Jun 1995 16:49:40 +0100 Organization: Cedar Systems Sender: news@news.demon.co.uk Message-ID: <803490473snz@cedar.demon.co.uk> References: <DACL37.4q5@genoa.com> <1995Jun18.150331.6917@seer.demon.co.uk> Thanks for your suggestions. Art Isbell also suggested scandir, which returns a list of direct entries. Regards, Paul.
From: dcoyle@goanna.mpi-hd.mpg.de (David A. Coyle) Newsgroups: comp.sys.next.programmer Subject: Re: Generating Random Numbers Date: 19 Jun 1995 14:46:20 GMT Organization: University of Heidelberg, Germany Message-ID: <3s42js$o6q@sun0.urz.uni-heidelberg.de> References: <D9I5yE.3B8@undergrad.math.uwaterloo.ca> <3s3naj$bqe@mailer.york.ac.uk> rog@talisker.ohm.york.ac.uk (Roger Peppe) wrote: > Jerry Kuch (gdkuch@neumann.uwaterloo.ca) wrote: > > I'm writing some simulation code under NEXTSTEP 3.2, running on white > > hardware (an Intel DX4/100). I need a decent source of random numbers. > > This doesn't have to be the world's best source, just something that's not > > going to do anything obviously pathetic. > i believe that random number generators are designed to > be seeded only once. i think you'll find that (particularly with > better generators like random()) seeding it for each call misses > all the point of the algorithm. There's an objective-C way: the Random class by Gregor Purdy. You should be able to find this at any good FTP site, I think that my copy came from peanuts. From the README: "Random An Objective-C class for NeXT computers to provide services for random number generation and also die rolling. The Random class implements its own random number generator with a cycle length of 8.8 trillion. The algorithm used by the Random class is that given in the article: "A Higly Random Random-Number Generator" by T.A. Elkins Computer Language, Volume 6, Number 12 (December 1989), Pages 59-65 Published by: Miller Freeman Publications 500 Howard Street San Francisco, CA 94105 (415) 397-1881 Version 1.0, 1991 May 30 Written by Gregor Purdy, Contemporary Design Studios Real Job Contact Information (NOT Contemporary Design Studios): gregor@oit.itd.umich.edu University of Michigan / 1600 SEB / 610 E. University / Ann Arbor / MI / 48109 "
From: Greg_Anderson@afs.com (Gregory H. Anderson) Newsgroups: comp.sys.next.programmer Subject: Re: HeaderViewer...arrrgggl Date: 19 Jun 1995 14:51:00 GMT Organization: Anderson Financial Systems Inc. Distribution: world Message-ID: <3s42sk$ng6@shelob.afs.com> References: <3s3r4d$bqe@mailer.york.ac.uk> Roger Peppe writes > seems like when NeXT made HeaderViewer a supported application, they > broke it. why is it that software reliability often _drops_ as the > software is developed ? Sometimes it actually does, and sometimes it just seems like it does. As an app gets closer to "commercial standard" (however you define that term), expectations rise and small bugs that had been hand waved or ignored take on new importance. It's actually worse for the second and third releases, because then you have an audience watching. The same is true of regular writing. Handwritten text drafts suddenly look miserable when committed to your word processor. You clean that up, create page proofs that compare visually to individual pages from magazines and books, and suddenly your misbegotten prose looks miserable again. You do another round of revisions, send it off to the printer and bindery, and the resulting book seems to contain scores of glaring errors that you never saw the first 20 times you proofed it. This whole phenomenon is due to comparison with the increasing standard of quality that is expected in each of the comparative formats. This also explains why Steve's popular DBKit demos never cut it in the real world... 8^) > PS. is it just our installation, or is everybody else missing the > documentation for the Application class as well ? Yes, it's missing, and that's why HeaderViewer _seems_ broken. I'll bet the .index.store was created before someone's fingers slipped and wiped out Application.rtf with a duplicate copy of ActionCell.rtf. -- Gregory H. Anderson | "Honey, there're few programming Gaffer/Best Boy/Key Grip | problems that can't be solved Anderson Financial Systems | with duct tape." -- 'Father' Duke greg@afs.com (NeXTmail OK) | (paraphrased), Doonesbury, 2/17/95
From: woo@ornl.gov (John W. Wooten) Newsgroups: comp.sys.next.programmer Subject: ScrollViewDeluxe and zoom Button Date: 19 Jun 1995 16:10:02 GMT Organization: Oak Ridge National Lab, Oak Ridge, TN Distribution: world Message-ID: <3s47gq$74v@stc06.ctd.ornl.gov> I've been experimenting with the ScrollViewDeluxe Class developed by Jeff Martin at Next. I altered the little example distributed in the Developer documentation to include a View inside a ScrollViewDeluxe so that I could experiment with zooming a drawing. I've not been able to get the zoomButton to appear even though every thing appears to work correctly. I can't locate Jeff Martin, and though someone else might have experience with the Class. Here is the code fragment. ScrollViewDeluxe came from the Next Archives and is unaltered. Any ideas on getting zoomButton to appear? Scrollers, rulers (if I ask for them) appear and work correctly. -------little.m (as altered for testing) ----- #import <appkit/appkit.h> #import "ScrollViewDeluxe.h" #import "AView.h" void setUp(void) { id myWindow, myPanel, myMenu, scrollView, windowContentView, view; NXRect windowFrameRect, aRect; int count; /*** Step 1: Set up a Window ***/ NXSetRect(&windowFrameRect, 100.0, 350.0, 300.0, 300.0); myWindow = [[Window alloc] initContent:&windowFrameRect style:NX_TITLEDSTYLE backing:NX_BUFFERED buttonMask:NX_MINIATURIZEBUTTON MASK defer:NO]; [myWindow setTitle:"A LittleView Demonstration"]; windowContentView = [myWindow contentView]; [windowContentView getFrame:&aRect]; scrollView = [[ScrollViewDeluxe alloc] initFrame:&aRect]; /*** Step 1a: Establish a view to be in the scrollView ***/ NXSetRect(&aRect, 0.0, 0.0, 500.0, 400.0); view = [[AView alloc] initFrame:&aRect]; [scrollView hideRulers:view]; [scrollView setZoomButtonVisible:YES]; count = [[scrollView horizSyncViews] count]; [scrollView setDocView:view]; [[myWindow setContentView:scrollView] free]; /*** Step 2: Set up a Panel ***/ /* panel setup omitted (same as in little example ) */ /*** Step 3: Set up a Menu ***/ /* Menu setup omitted (same as in little example) */ /*** Step 4: Display all windows that aren't deferred ***/ [myWindow display]; /*** Step 5: Move the principal window on-screen ***/ [myWindow orderFront:nil]; /*** Step 6: Make it the key window ***/ [myWindow makeKeyWindow]; } main() { [Application new]; setUp(); [NXApp run]; [NXApp free]; } -------AView.m contains just enough to draw a square! ---- #import <appkit/appkit.h> @interface AView : View - (BOOL)zoomTo:xval:yval; - drawSelf:(const NXRect *)rects :(int)rectCount; @end @implementation AView /* * Draws an object in the view. * Right now it's a box shown below. Later it will be * a scalable object. * */ - (BOOL)zoomTo:xval:yval; { return NO; } - drawSelf:(const NXRect *)rects :(int)rectCount { PSsetgray(0.); PSmoveto(10.,10.); PSlineto(50.,10.); PSlineto(50.,60.); PSlineto(10.,60.); PSlineto(10.,10.); PSstroke(); return self; } @end - - - - - - - - - J. W. Wooten
Newsgroups: comp.sys.next.programmer From: wetherij@cuug.ab.ca (Wetherill) Subject: Application defined events - what are they? Message-ID: <DAFJM6.Lx8@cuug.ab.ca> Organization: Calgary UNIX User's Group Date: Mon, 19 Jun 1995 17:00:05 GMT The documentation on application defined events is vague and unclear (to me anyways). I need to find out what they are, how they are implemented, and when they might be used. Can someone enlighten me? Thanks in advance, John Wetherill wetherij@cuug.ab.ca
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: How to get a list of file names in a directory? Date: 19 Jun 1995 18:12:54 GMT Organization: The University of York, UK Message-ID: <3s4en6$bqe@mailer.york.ac.uk> Summary: i got it wrong apologies - i wrote : > int getFiles(char *pathname) > { > DIR *dp; /* directory pointer */ > struct dirent *de; /* directory entry pointer */ ^^^^^^ this should of course be : struct direct *de; cheers to robert nicholson for pointing it out, rog.
From: gordo@philzone.pencom.com (Gordon Pitt) Newsgroups: comp.sys.next.programmer Subject: Drag and drop on the app icon. Date: 19 Jun 1995 18:36:58 GMT Organization: Pencom Software Message-ID: <3s4g4a$10o9@digdug.pencom.com> I'm doing some drag and drop from one app to another. The dragging destination is a view object that has been added as a subview of the app icon window. All the view and pasteboard stuff is working just fine but I run into a problem getting drag entered events from the application icon window. I receive these events if my app was launched from a Terminal shell but not if I launched from workspace. Apparently when you launch an app from workspace, the app icon window is "owned" by workspace and events go to workspace rather than to the app. How can I fix this so that my app receives events from the app icon window so that it can act on objects dragged to the app icon? Gordon Pitt
From: Greg_Anderson@afs.com (Gregory H. Anderson) Newsgroups: comp.sys.next.programmer Subject: Re: Application defined events - what are they? Date: 19 Jun 1995 22:47:52 GMT Organization: Anderson Financial Systems Inc. Message-ID: <3s4uqo$p06@shelob.afs.com> References: <DAFJM6.Lx8@cuug.ab.ca> Wetherill writes > The documentation on application defined events is vague and > unclear (to me anyways). I need to find out what they are, > how they are implemented, and when they might be used. You need to start from DPSPostEvent(), which is where you can manufacture your own private events for the general event queue. You create an event structure with this type plus any data that might be interesting for the ultimate consumer. Typically you then override sendEvent: elsewhere in the app and look for your type. Do whatever at that point. -- Gregory H. Anderson | "Honey, there're few programming Gaffer/Best Boy/Key Grip | problems that can't be solved Anderson Financial Systems | with duct tape." -- 'Father' Duke greg@afs.com (NeXTmail OK) | (paraphrased), Doonesbury, 2/17/95
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: NeXTSTEP HTTP Server Date: Mon, 19 Jun 1995 21:57:41 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Message-ID: <950619225741.258AACUH.malc@daneel> References: <rfenney-310595220208@rfenney.slip.netcom.com> <3qkjnk$b7r@zip.eecs.umich.edu> <3r3d4n$ca8@shore.shore.net> <3rvstn$slv@duck.inetnebr.com> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII > I can't remember the URLs to NetSurfer and Spiderwoman. > http://www.netsurfer.com/ http://sente.epfl.ch/~swoman/ Have fun, mmalc.
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: Foundation Class and Error Handling In-Reply-To: leeden@cezanne.pst.informatik.uni-muenchen.de's message of 19 Jun 1995 15:11:29 GMT Message-ID: <RANDY.95Jun19220938@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <3s4431$odi@arcadia.informatik.uni-muenchen.de> Date: Tue, 20 Jun 1995 03:09:38 GMT In article <3s4431$odi@arcadia.informatik.uni-muenchen.de> leeden@cezanne.pst.informatik.uni-muenchen.de (Christian Leeden van der) writes: I have been using the foundation class and the EOF for our latest project. Now when I send a message to an foundation class object which it doesn't respond to, I get these Errormessages: Unknown error code 100003 in NXReportError or Unknown error code 100002 in NXReportError Anybody has an idea how I could get more descriptive messages from the errorhandler Check out NeXTanswer #1820, "EOF Debugging Tips", for a way to get better error messages. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
From: cpayne@optical (Carl Payne) Newsgroups: comp.sys.next.programmer Subject: Text window with counter? Date: 19 Jun 1995 06:34:47 GMT Organization: Fibernet! Satisfy the need for speed Message-ID: <3s35q7$kkq@optical.fiber.net> This is going to sound basic, but is there a text window for NS that, in the title bar, has the current cursor position on it? Some of us green wanna-program-yahoos could really use that feature, especially if the number will change if you click on a character with the mouse. How hard do you thing this'd be to make? I looked through the Garfinkle - Mahoney book and got the inspiration, but I didn't get the free SmartBrain that would make this an easy project. -- Carl
Newsgroups: comp.sys.next.programmer From: waltrip@zephyr.jhuapl.edu Subject: Re: PDO access from Windows app Content-Type: text/plain; charset=US-ASCII Message-ID: <950618134013.959AAEiE.chuck@kant.jhuapl.edu> Sender: usenet@aplcenmp.apl.jhu.edu Organization: Johns Hopkins Continuing Professional Programs References: <RANDY.95Jun16112356@wort.id.com> <3rsost$cs7@nwestmail.nwest.mccaw.com> Mime-Version: 1.0 (Generated by Eloquent) Date: Sun, 18 Jun 1995 17:40:13 GMT >From: andrew.abernathy@mccaw.com (Andrew Abernathy)>Subject: Re: PDO access from Windows app >Date: 16 Jun 1995 20:17:33 GMT > >In article <RANDY.95Jun16112356@wort.id.com> randy@id.com (Randy Tidd) >writes: > [...material deleted...] > >As for your comment about DO capabilities in OpenStep, it's >certainly in the OpenStep spec. (Although it really needs >something else, which IS available in 3.3 - note that 3.3 >has an NXAutoreleaseConnection, but OpenStep doesn't, and >that's going to be pretty darn important.) > I agree. The fact that it's in 3.3 says that NeXT recognized the problem...let's hope they do something about it (a revised OpenStep spec...or some sort of addendum that cites additions that will be considered "standard") soon. ___ cfwaltrip email: waltrip@zephyr.jhuapl.edu NeXTmail welcome. //////////////////////////////////////Opinions expressed are my own. If I said anything that made you think I might know what I'm talking about, please disregard it./////////////////////////////////////////
Newsgroups: comp.sys.next.programmer From: lloyd@world.std.com (Christopher Lloyd) Subject: Re: PDO access from Windows app Message-ID: <DAGswH.C8K@world.std.com> Organization: The World Public Access UNIX, Brookline, MA References: <RANDY.95Jun16112356@wort.id.com> <3rsost$cs7@nwestmail.nwest.mccaw.com> <950618134013.959AAEiE.chuck@kant.jhuapl.edu> Date: Tue, 20 Jun 1995 09:26:41 GMT In article <950618134013.959AAEiE.chuck@kant.jhuapl.edu>, <waltrip@zephyr.jhuapl.edu> wrote: >>From: andrew.abernathy@mccaw.com (Andrew Abernathy) >>As for your comment about DO capabilities in OpenStep, it's >>certainly in the OpenStep spec. (Although it really needs >>something else, which IS available in 3.3 - note that 3.3 >>has an NXAutoreleaseConnection, but OpenStep doesn't, and >>that's going to be pretty darn important.) >> >I agree. The fact that it's in 3.3 says that NeXT recognized the >problem...let's hope they do something about it (a revised OpenStep >spec...or some sort of addendum that cites additions that will be >considered "standard") soon. erf. NXAutoreleaseConnection is just a fix to the old DO mechanisms so that autorelease works, or works better. Since OpenStep embraces the idea of autorelease across the board, I don't think there is a reason to believe that the OpenStep spec. needs to be changed or that these mechanism won't just work by default i.e. NSConnection manages autorelease automatically. OpenStep really is quite a different (and better) beast. -- |: Christopher Lloyd :|: Yrrid Incorporated :|: lloyd@yrrid.com :| |: http://world.std.com/~lloyd :|
Newsgroups: comp.sys.next.programmer From: dimitri@duti609a.twi.tudelft.nl (Dimitri Tischenko) Subject: How to localize dates with Foundation? Sender: news@dutiws.twi.tudelft.nl (TWI News Administration) Organization: Delft University of Technology Date: Tue, 20 Jun 1995 10:06:33 GMT Message-ID: <DAGuqx.BEL@dutiws.twi.tudelft.nl> Hi all, The 3.3 release notes titled `C Library Support for Localization of Date, Time, and Currency' explain how to use dwrites to change formats and names of date-related stuff. Unfortunately, the effect doesn't seem to propagate to Foundation NSDate and NSCalendarDate. In other words: when I write a simple C program which uses strftime(), the localization works; when using NSCalendarDate it doesn't. Is it possible to localize output produced by Foundation date classes? Thanks, Dimitri P.S. Isn't the function localeconv() mentioned in the release notes documented anywhere or is it just me? -- +------------------------------------------------------------------------+ | Dimitri Tischenko | D.B.Tischenko@TWI.TUDelft.NL | NeXTmail preferred! | +------------------------------------+-----------------------------------+ | Delft University of Technology | NeGeN | | Fac Applied Math & Computer Science| NEXTSTEP Gebruikers Nederland | | Dep of Statistics, Probabilitistics| NiNe | | and Operations Research | NEXTSTEP In the Netherlands | +------------------------------------+-----------------------------------+
Date: 20 Jun 1995 10:28:14 GMT From: free-agent-spam@spam.com (Spammer) Message-ID: <cancel.3s1sak$6n3@dub-news-svc-4.compuserve.com> Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3s1sak$6n3@dub-news-svc-4.compuserve.com> Control: cancel <3s1sak$6n3@dub-news-svc-4.compuserve.com> Spam cancelled by clewis@ferret.ocunix.on.ca
From: chuck@its.com (Chuck Swiger) Newsgroups: comp.sys.next.programmer Subject: Re: How to localize dates with Foundation? Date: 20 Jun 1995 19:48:02 GMT Organization: Information Technology Solutions, Inc. Message-ID: <3s78li$s6l@www.its.com> References: <DAGuqx.BEL@dutiws.twi.tudelft.nl> Dimitri Tischenko writes: > P.S. Isn't the function localeconv() mentioned in the release notes > documented anywhere or is it just me? Localeconv() is part of the ANSI C specification, and therefore should be documented in ANSI C reference textbooks. (But, yes, it should have a manpage entry as well.) -Chuck -- Charles Swiger -- chuck@its.com | Information Techology Solutions, Inc. --------------------------------+-------------------------------------- CrashCatcher Development, Systems and Networking Administrator
From: jason@drizzle.Stanford.EDU (Jason Xiaogang Zhang) Newsgroups: comp.sys.next.programmer Subject: runFromAppkit in 2nd thread, what will happen? Date: 20 Jun 1995 15:59:57 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <199506202059.NAA20951@drizzle.Stanford.EDU> I read a program which connects with an root object in a 2nd thread (other than the main thread which runs NXApp.) and then sends the message as [ThisNXConnection runFromAppKit]. I am wondering what might happen to this situation. It seems that it runs ok when you only send message to root in the same 2nd thread from client side, since the connection is in the same thread as it is registered. Though it is not a good practice, could this cause any problem if messages are only sent from client to root? Thanks for you attention. -jason
From: mmalcolm Crawford <m.crawford@dcs.shef.ac.uk> Newsgroups: comp.sys.next.programmer Subject: Re: PDO access from Windows app Date: Sun, 18 Jun 1995 22:12:10 GMT Organization: Institute for Language Speech and Hearing, Sheffield University Distribution: world Message-ID: <950618231210.227AACUZ.malc@daneel> References: <RANDY.95Jun16112356@wort.id.com> <3rtchl$ddo@emerald.oz.net> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII Hmm, I wonder of NeXT know the answers to Art's questions: cf the Windows applications programmer vacancy at NeXT on csn.announce! :-) Have fun, mmalc.
Newsgroups: comp.sys.next.programmer From: rdl@world.std.com (Robert La Ferla) Subject: Re: Initializing AND is there a FAQ? In-Reply-To: tmetzger@infomatch.com's message of Sat, 17 Jun 1995 23:20:06 -0800 Message-ID: <RDL.95Jun19014843@world.std.com> Sender: rdl@world.std.com (Robert La Ferla) Organization: The World Public Access UNIX, Brookline, MA References: <tmetzger-1706952320060001@199.60.99.246> Date: Mon, 19 Jun 1995 05:48:43 GMT I may not be interpreting your question correctly but I think you need to put your initialization code in "awakeFromNib" and not "init". The awakeFromNib method gets called after all the objects in your NIB are loaded. The init method gets called for custom objects as they are loaded. Robert La Ferla Registered NEXTSTEP Consultant / Developer / Trainer + 1 (617) 252-0088
From: fischer@fokus.gmd.de (Robert Fischer) Newsgroups: comp.sys.next.programmer Subject: Re: Q:Dragable browser fields Date: 19 Jun 1995 08:07:16 GMT Organization: GMD-FOKUS Message-ID: <3s3b7k$aa8@stern.fokus.gmd.de> References: <3rph46$jie@nwestmail.nwest.mccaw.com> Mike Faulkner writes > > Greetings, > > I want to create a browser with rows that can be reordered by > dragging them around; similar to IB. I'm currently using a > NXTableView but I don't like the way it sizes the row to fit > the browser and its need to have a title to drag. > Any ideas? > > TIA There is a demo application in /NextDeveloper/Examples/AppKit which shows how to do this job: ScrollDoodScroll by Jayson Adams. Robert. ----------------------------------------------------------------------- Robert Fischer @ GMD-Fokus -------- __o ------- _`\<,_ fischer@fokus.gmd.de ------- (*)/ (*) ## NeXT-Mail welcome ## -----------------------------------------------------------------------
From: tuparev@EMBL-Heidelberg.DE (Georg Tuparev) Newsgroups: comp.sys.next.programmer Subject: Re: How to get a list of file names in a directory? Date: 19 Jun 1995 11:34:25 GMT Organization: University of Heidelberg, Germany Message-ID: <3s3nc1$ics@sun0.urz.uni-heidelberg.de> References: <803402921snz@cedar.demon.co.uk> In article <803402921snz@cedar.demon.co.uk> Cedar Systems <Cedar@cedar.demon.co.uk> writes: > I am trying to produce a browser of file names in a selected directory > in much the same way as in OpenPanel, and I am looking for the best > way to get the list of files in a directory. MiscDirectory class in MiscKit ;-) -- Georg Tuparev EMBL / Protein Design Phone: +49 - 6221 - 387524 Meyerhofstr. 1 FAX: +49 - 6221 - 387517 D-69117 Heidelberg Germany Tuparev@EMBL-Heidelberg.de (NeXT-mail)
From: hill@physihp2 (Sean Hill) Newsgroups: comp.sys.next.programmer Subject: Color palette in Mandelbrot Date: 19 Jun 1995 12:04:26 GMT Organization: University of Lausanne CH (Switzerland) Message-ID: <3s3p4a$b6m@cisun2000.unil.ch> Does anyone (from NeXT?) know the algorithm that was is used in the Mandelbrot demo to synthesize the palettes from the settings in the Color Map panel? I know it seems obvious, either a sin or cos with the frequency, phase, and contrast for each color component. However, when I do that I get nice synthesized color palettes that are fine but rather different. I'm a bit curious what is being done in the Mandelbrot program. Thanks for any tidbits, code, guesses... --- Sean L. Hill Research in Computational Neuroscience Institut de Physiologie E-mail: Sean.Hill@iphysiol.unil.ch Rue du Bugnon, 7 Work: ++41 021 692.5516 CH-1005 Lausanne SWITZERLAND Fax: ++41 021 692.5505
Newsgroups: comp.sys.next.programmer From: rfenney@netcom.com (Robert J. Fenney) Subject: [Q] Micron Millennia? Message-ID: <rfenney-190695224042@rfenney.slip.netcom.com> Followup-To: comp.sys.next.programmer Sender: netnews@mork.netcom.com Organization: FenTek Date: Tue, 20 Jun 1995 05:39:12 GMT Has anyone had any experience with NeXTSTEP on one of these computers? Robert
From: GWILLEM@alpha.ntu.ac.sg (Van Schaik Willem Anthon Johan ) Newsgroups: comp.sys.next.programmer Subject: GDB ... chicken or egg ... or shi%@(* Date: 21 Jun 1995 01:05:26 GMT Organization: Nanyang Technological University Message-ID: <3s7r8m$vib@ntuix.ntu.ac.sg> Hi, I have used already a lot of debuggers, but the user interface of gdb (NS3.2) is one of the worst I have seen. I struggled the whole evening but couldn't get the simplest debugging running. Of course my fault, but I have a real chicken or egg problem. I want to set breakpoints. But then I get the warning "program not running". But when I do run, it doesn't have breakpoints and immediately runs into the error I want to monitor. So my question is: how to set a breakpoint at for example line 99 of a program xyz(.c). With "break 99", I get "No line 99 in file crt0.s". With "break main" I manage to set a breakpoint, but only at the start of the program. Stepping after that doesn't work, because I get the message "Current function has no line number information". Should I compile with additional options? Or is there a (preferable free) debugger with a more NextStep oriented user-interface. It is amazing NeXT doesn't supply such a thing when they ask $$$$$$ for a Developers License. Willem W i l l e m v a n S c h a i k ------------------------------------------------------------------------------- Gintic - Singapore gwillem@ntuvax.ntu.ac.sg
From: woo@ornl.gov (John W. Wooten) Newsgroups: comp.sys.next.programmer Subject: Re: ScrollViewDeluxe and zoom Button Date: 20 Jun 1995 16:19:57 GMT Organization: Oak Ridge National Lab, Oak Ridge, TN Distribution: world Message-ID: <3s6sfd$10u@stc06.ctd.ornl.gov> References: <3s47gq$74v@stc06.ctd.ornl.gov> In article <3s47gq$74v@stc06.ctd.ornl.gov> woo@ornl.gov (John W. Wooten) writes: > I've been experimenting with the ScrollViewDeluxe Class developed by > Jeff Martin at Next. I altered the little example distributed in the > Developer documentation to include a View inside a ScrollViewDeluxe so > that I could experiment with zooming a drawing. I've not been able to > get the zoomButton to appear even though every thing appears to work > correctly. I can't locate Jeff Martin, and though someone else might > have experience with the Class. > > Here is the code fragment. ScrollViewDeluxe came from the Next > Archives and is unaltered. > > Any ideas on getting zoomButton to appear? Scrollers, rulers (if I ask > for them) appear and work correctly. > Code Fragment omitted I believe I found part of the problem. The nib file that contained the matrix of zoomButton (and the zoom Panel if needed) are in a file called ScrollViewDeluxe.nib. Now, in the little example, the makefile is very simple and has no section called -segcreate __NIB ... What do I add to the makefile to get the ScrollViewDeluxe.nib to be included in the executable AND what do I add to the code to make it so that the zoomButton is located in the NIB and placed on screen correctly? BTW, zooming is working fine with the example now. I had to make my own temporary button though. I'm trying to figure out now how to get the default behavior of the ScrollViewDeluxe class. - - - - - - - - - J. W. Wooten
Newsgroups: comp.sys.next.programmer From: brouwer@minnie.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: Re: Matrices with uneven spaced cells? Message-ID: <DAF8J0.E2v@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany References: <3rj4jv$2hi@bilby.cs.uwa.oz.au> Date: Mon, 19 Jun 1995 13:08:59 GMT In <3rj4jv$2hi@bilby.cs.uwa.oz.au> leigh@antechinus.cs.uwa.oz.au (Leigh Smith) writes: >Hi all, Hi Leigh! >I have an application to have a horizontal matrix (a vector?) of sliders, >except for user intf design reasons, I want them unevenly spaced across >the panel (to mimic the front panel of a music synthesiser). I can't seem >to find a way to have them spaced as I need, as one matrix, with each >slider accessible by a tag (as I need to update the slider position >according to external events). My other options are to have a matrix of >matrices (possible?), or just lots of outlets connected to each sub-matrix >(messy). Any suggestions? First: within a Matrix all cells have the same distance Second: drag&drop as much Sliders as you need to the places you want them to, assign each one a unique tag, group everything within a Box and make it untitled and without any border. Connect one outlet to this Box. Now you iterate programatically through the subviews list of this Box, accessing every Slider and ask it for its tag. I'm not quite sure, but I think there is also a -findViewWithTag:(int)tag method defined for the View class. I hope this helps, bye Klaus Brouwer ells:nil]; 2.) removeing an item from a List decrements the indices of all items below that item. My solution: i = 0; while ((cell = [selList objectAt:i]) != nil) { if (![self formulateCell:cell]) { [TheScrollView deselectCell:cell]; [selList removeObject:cell]; } else { i++; } } 3.) in both of your solutions you have a memory leak: 'selList' isn't freed > Thanks in Advance > Chuck Pisula Bye, Klaus Brouwer
Newsgroups: comp.sys.next.programmer From: brouwer@minnie.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: Re: How to get a list of file names in a directory? Message-ID: <DAF8tq.Fop@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany References: <803402921snz@cedar.demon.co.uk> Date: Mon, 19 Jun 1995 13:15:26 GMT In <803402921snz@cedar.demon.co.uk> Cedar Systems <Cedar@cedar.demon.co.uk> writes: >I am trying to produce a browser of file names in a selected directory >in much the same way as in OpenPanel, and I am looking for the best >way to get the list of files in a directory. >Any suggestions? >Thanks, >Paul. Look for opendir(), readdir() and closedir() in the man pages. All functions are available for BSD and POSIX though somewhat different. Bye, Klaus Brouwer
Newsgroups: comp.sys.next.programmer From: brouwer@minnie.informatik.uni-stuttgart.de (Klaus Brouwer) Subject: Re: HeaderViewer...arrrgggl...NeXT please Message-ID: <DAGvAq.FuK@news.informatik.uni-stuttgart.de> Sender: news@informatik.uni-stuttgart.de Organization: Informatik, Uni Stuttgart, Germany References: <D9wp80.H5@shinto.nbg.sub.org> <1995Jun13.134545.1132@improve.fdn.org> Date: Tue, 20 Jun 1995 10:18:26 GMT In <1995Jun13.134545.1132@improve.fdn.org> fred@improve.fdn.org (Frederic STARK) writes: >#ifdef HUMOR >Wait for the 4.0 :-) >Well, remember Alt-Drag in InterfaceBuilder, it disapeared in 3.0/3.1/3.2. I just noticed that automatic width adjustment for module views in Preferences disappeared in 3.3 ! (Yes, in 3.2 it worked). >I suggest a fun game: > "What 'little functionnality' will NeXT drop (by mistake) in 4.0 ?" >* Drag file in Terminal.app paste path ? >* Tear-Off menus ? >* gdb ? I don't want to even think about it. >#endif Bye, Klaus Brouwer
From: andrew.abernathy@mccaw.com (Andrew Abernathy) Newsgroups: comp.sys.next.programmer Subject: Re: PDO access from Windows app Date: 20 Jun 1995 19:29:11 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3s77i7$k13@nwestmail.nwest.mccaw.com> References: <DAGswH.C8K@world.std.com> In article <DAGswH.C8K@world.std.com> lloyd@world.std.com (Christopher Lloyd) writes: > erf. NXAutoreleaseConnection is just a fix to the old DO mechanisms > so that autorelease works, or works better. Since OpenStep embraces the > idea of autorelease across the board, I don't think there is a reason > to believe that the OpenStep spec. needs to be changed or that these > mechanism won't just work by default i.e. NSConnection manages autorelease > automatically. Oh, yeah. Dunno what I was thinking... Thanks for the correction. -- andrew.abernathy@mccaw.com (Seattle area) 14335 Northeast 24th Street Bellevue, WA 98007 (NeXTmail / MIME / MS Mail spoken here) I don't speak for McCaw. I can barely speak for myself.
From: c4craig@csn.net (Craig Anderson) Newsgroups: comp.sys.next.programmer Subject: sql,eof for NT OpenStep? Date: 21 Jun 1995 14:38:23 GMT Organization: SuperNet Inc. (303)-296-8202 Denver Colorado Message-ID: <3s9asv$p4q@news-4.csn.net> What is likely to be available for NT hosted EOF databases? Micrsoft SQL server? Could MiniSQL be built on NT? Thanks, Craig H. Anderson craig@c4.com
From: paulrs@lgs-systems.buf.servtech.com (Paul R. Summermatter) Newsgroups: comp.sys.next.programmer Subject: EOF? Date: 21 Jun 1995 15:59:54 GMT Organization: LGS Systems Message-ID: <paulrs-2106951157560001@lgs-systems.buf.servtech.com> My question is about saving changes to a database. Firstly, let me state that I am using EOF 1.0 and Developer 3.2. I know I'm behind, but I just got started with NeXT two months ago so don't yell at me. (BTW NeXT is incredible) But anyway, I'm confused as to the difference between using the tab key and the return key and how they relate to registering changes to rows. In particular, let's say that I have a EOController with the Buffer Operations option on. If I select a row from the database and make a change to that row, in a text field and not the NXTableView, the application recognizes that the field has been changed, i.e. the delegate method textDidChange gets called. However, the controller does not recognize that any changes have been made until the enter key is pressed. Though both the tab key and the enter key move me from one field to the next, the enter key obviously propagates some other message which notifies the controller of a change. I'm sure you're asking yourself, bfd, just press the enter key. The problem here is that I'm trying to maintain consistency. The people with whom I work are accustomed to tabing between fields and when they are satisfied with any changes they have made they press command-s. If I now say that the enter key must be pressed first, a great deal of confusion will arise. I am aware of the method associationDidEdit:(EOAssociation *)association, and I'm assuming that I could call this method from within my textDidChange method, but I'm unsure as to how I determine which association was changed. Anyway, I guess you get the idea. Any help would be appreciated. Regards, Paul Summermatter paulrs@lgs-systems.buf.servtech.com (MIME mail only please)
From: Sven Rieke <sr> Newsgroups: comp.sys.next.programmer Subject: Problem with getSel:: in text object Date: 21 Jun 1995 16:23:52 GMT Organization: University of Uppsala, Sweden Message-ID: <3s9h2o$q9e@columba.udac.uu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm new in programming under NeXT, so please forgive me if something similiar was asked earlier. I have a editable text object in a scrollview. Everytime the user presses return the actual line should be passed to an other object. If the user instead selects a part of the text (highlighting) only the highlighted part should be passed. So I set the editor function to NXFieldEditor and implement the delegate method textDidEnd:endChar: The delegate method then asks for the characterpositions of the selection with getSel:: But here the first NXSelPt struct, I get back, is wrong, because the cp field is set to -1. Later in my delegate method I use the text method findText:... and after that I ask again for the character positions with getSel::. Now I get the right character position of the beginning of the selection in the field cp. It seems that the text object at the beginning of the delegate method doesn't recognize the selection that the user made in the text. I refer to the text object through "sender", the first argument the delegate method gets. Any solutions?
Newsgroups: comp.sys.next.programmer From: lacsap@sledge-hammer.media.mit.edu (Pascal Chesnais) Subject: Re: GDB ... chicken or egg ... or shi%@(* Message-ID: <1995Jun21.171002.11541@media.mit.edu> Sender: news@media.mit.edu (USENET News System) Organization: MIT Media Laboratory References: <3s7r8m$vib@ntuix.ntu.ac.sg> Date: Wed, 21 Jun 1995 17:10:02 GMT I'd like to address your last point specifically. NeXT does provide an NEXTSTEP user interface to project development. It is called ProjectBuilder. You will find that it has a nice simple button called DEBUG which invokes gdb correctly. You are indeed paying lots of $$$ but you are missing a lot of value by not spending time reading the documentation which is with the system. In the case of gdb, there is a man page, documentation sources, and pretty helpful help functions within the program itself. If this does not help, NeXT has a very good developer course to guide you through program development. It does cost more $$$. pasc In article <3s7r8m$vib@ntuix.ntu.ac.sg> GWILLEM@alpha.ntu.ac.sg (Van Schaik Willem Anthon Johan ) writes: > Hi, .. [lots of stuff about how bad gdb without reading manuals] ... > Or is there a (preferable free) debugger with a more NextStep oriented > user-interface. It is amazing NeXT doesn't supply such a thing when they > ask $$$$$$ for a Developers License. > > Willem > > > W i l l e m v a n S c h a i k > -------------------------------------------------------------------------- ----- > Gintic - Singapore gwillem@ntuvax.ntu.ac.sg
From: chuck@its.com (Chuck Swiger) Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Date: 21 Jun 1995 19:15:00 GMT Organization: Information Technology Solutions, Inc. Message-ID: <3s9r3k$jf0@www.its.com> References: <3s7r8m$vib@ntuix.ntu.ac.sg> GWILLEM wrote: [ ... ] > So my question is: how to set a breakpoint at for example line 99 of > a program xyz(.c). "break xyz.c:99" By the way, it really does help if you read the documentation. <quote> (gdb) help break Set breakpoint at specified line or function. Argument may be line number, function name, or "*" and an address. If line number is specified, break at start of code for that line. If function is specified, break at start of code for that function. If an address is specified, break at that exact address. With no arg, uses current execution address of selected stack frame. This is useful for breaking on return to a stack frame. Multiple breakpoints at one place are permitted, and useful if conditional. Do "help breakpoints" for info on other commands dealing with breakpoints. <end quote> > With "break 99", I get "No line 99 in file crt0.s". Not surprising. crt0.s is the basic startup code which sets up a progam's environment and then calls main(). If you don't specify a file name, you probably break at the first file in the symbol table of the executable. > With "break main" I manage to set a breakpoint, but only at the start > of the program. Stepping after that doesn't work, because I get the > message "Current function has no line number information". Should I > compile with additional options? Yes. You should compile and link with "-g". Alternatively, you should use ProjectBuilder.app and hit the Debug button, which will compile, link, and execute gdb for you-- all in the appropriate way. > Or is there a (preferable free) debugger with a more NextStep oriented > user-interface. It is amazing NeXT doesn't supply such a thing when they > ask $$$$$$ for a Developers License. Again, it really does help if you read the documentation. Execute the "view" command in gdb at a breakpoint. Bring up the Gdb... panel in Edit.app. You now have a GUI interface to gdb-- you can select a line in a file and set a breakpoint that way, for example. -Chuck -- Charles Swiger -- chuck@its.com | Information Techology Solutions, Inc. --------------------------------+-------------------------------------- CrashCatcher Development, Systems and Networking Administrator
From: davis@space.mit.edu (John E. Davis) Newsgroups: comp.sys.next.programmer Subject: Should gcc be upgraded? Date: 21 Jun 1995 20:14:26 GMT Organization: Center for Space Research Distribution: world Message-ID: <3s9uj2$8pq@senator-bedfellow.MIT.EDU> Hi, How buggy is gcc version 2.2.2 under NS 3.2? Does it sometimes generate the wrong code? I know that gcc 2.4.5 is buggy under SunOS. What is the latest version for NS? Thanks, --John
Newsgroups: comp.sys.next.programmer From: empath@netcom.com (Tim Triemstra) Subject: Re: GDB ... chicken or egg ... or shi%@(* Message-ID: <empathDAJHo2.90r@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> Date: Wed, 21 Jun 1995 20:16:50 GMT Sender: empath@netcom21.netcom.com >Maybe you should acquire some knowledge concerning what you're talking about >before judging its quality. Welp, even though the original poster may not have been an expert on GDB, there are plenty of people who use it everyday that think it is horrible - and even changes the program you're debugging substantially enough to at times be a negative influence on program development (I'm one of those people with that belief.) I find myself doing more damn printf's and asserts that I should need to just to avoid using GDB. -- Tim Triemstra ... empath@netcom.com ... Detroiter at Heart The RED WINGS rule! Practice throwing your octopi! That cup is going to be a tough target when Yzerman holds it over his head!
From: kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Date: 21 Jun 1995 20:56:38 GMT Organization: Netcom Distribution: world Message-ID: <3sa126$m06@ixnews4.ix.netcom.com> References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> In <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> tiggr@es.ele.tue.nl (Pieter Schoenmakers) writes: > >In article <3s7r8m$vib@ntuix.ntu.ac.sg> GWILLEM@alpha.ntu.ac.sg (Van Schaik Willem Anthon Johan ) writes: > > Of course my fault > >You could try to read the documentation. Maybe you could even try to type >`help' and read its output. > can somebody tell me where can I buy the documentation of GDB. I think there is online documentation, but I just wondered if there are a hardcopy edition Thanks Kurniawan
Newsgroups: comp.sys.next.programmer From: wang@cup.hp.com (Thomas Wang) Subject: NLS subroutines (catopen) Sender: news@hpax (News Admin) Message-ID: <DAJMDx.A8r@cup.hp.com> Date: Wed, 21 Jun 1995 21:58:45 GMT Organization: Hewlett-Packard Is there a set of NLS subroutines for NeXT, such as catopen, catgets, and gencat utility program? Regards. -Thomas Wang (Software Engineer, Enterprise Objects Program) wang@cup.hp.com http://hpodb03.cup.hp.com/~wang/wang.html
From: root@terra (Felipe A. Rodriguez) Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Date: 21 Jun 1995 22:25:21 GMT Organization: Network Intensive Message-ID: <3sa68h$fl1@ni1.ni.net> References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> <3sa126$m06@ixnews4.ix.netcom.com> kdarmawa@ix.netcom.com (Kurniawan Darmawangsa) wrote: > In <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> tiggr@es.ele.tue.nl (Pieter Schoenmakers) writes: > > > >In article <3s7r8m$vib@ntuix.ntu.ac.sg> GWILLEM@alpha.ntu.ac.sg (Van Schaik Willem Anthon Johan ) writes: > > > > Of course my fault > > > >You could try to read the documentation. Maybe you could even try to type > >`help' and read its output. > > > can somebody tell me where can I buy the documentation of GDB. I think there is online documentation, but I just wondered if there are a hardcopy edition > Thanks > Kurniawan The "Developement Tools and Techniques" manual contains a nice chapter on gdb. Felipe A. Rodriguez # ...it cannot be called ingenuity to kill one's Agoura Hills, CA # fellow citizens, to betray friends, to be without far@ni.net # faith, without mercy, without religion; by these # means one can aquire power but not glory. # (NeXTmail prefered) # --Nicolo Machiavelli (MIMEmail welcome) # **************************************************************************
From: GWILLEM@alpha.ntu.ac.sg (Van Schaik Willem Anthon Johan ) Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Date: 22 Jun 1995 01:16:16 GMT Organization: Nanyang Technological University Message-ID: <3sag90$4en@ntuix.ntu.ac.sg> References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> Pieter Schoenmakers (tiggr@es.ele.tue.nl) wrote: : You could try to read the documentation. Maybe you could even try to type : `help' and read its output. : Maybe you should acquire some knowledge concerning what you're talking about : before judging its quality. `Damn 747 doesn't fly me to Sidney when I press : this button. It must be broken.' --Tiggr Have you tried: "man gdb". Should help you get started. Proves to be completely useless. And the tip I got from someone else that helped me out, is even not mentioned when you do "help breakpoints". Strange that people don't understand that even help-texts can be written so badly that even after reading them you still can't work out what to do. So don't assume automatically that people don't read the documentation. Just like people who immediately ask the net to help them, take the easy way out, others who reply with only the remark "RTFM" are not at all helpful and are taking an even easier way out. "Spreken is zilver, zwijgen is goud" (just for Pieter :-). Willem W i l l e m v a n S c h a i k ------------------------------------------------------------------------------- Gintic - Singapore gwillem@ntuvax.ntu.ac.sg
Newsgroups: comp.sys.next.programmer From: cjones@netcom.com (Carl Jones) Subject: EOF wizzard wanted Message-ID: <cjonesDAK744.7v6@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Thu, 22 Jun 1995 05:26:28 GMT Sender: cjones@netcom13.netcom.com I may have a weeks worth of work for a true EOF wizzard; should know in a day or two. If you are a wiz and would be available and are in the San Francisco Bay Area, please drop me an email. Could work on evenings and weekends if necessary. carl
From: Dave Griffiths <dave@prim.demon.co.uk> Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Date: Thu, 22 Jun 1995 08:09:20 GMT Organization: Primitive Software Ltd. Message-ID: <1995Jun22.080920.1913@prim.demon.co.uk> References: <3s7r8m$vib@ntuix.ntu.ac.sg> <3s9r3k$jf0@www.its.com> In article <3s9r3k$jf0@www.its.com> chuck@its.com writes: > >Again, it really does help if you read the documentation. It helps a bit, but it's not very comprehensive. >Execute the "view" command in gdb at a breakpoint. Bring up the Gdb... panel in >Edit.app. You now have a GUI interface to gdb-- you can select a line in a file and set a >breakpoint that way, for example. But you can't clear it via the GUI! Yuk. Dave -- ************************************************************************ * Estate of the art * * http://www.demon.co.uk/3Wiz/VirtualEstate/ * ************************************************************************
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Date: 22 Jun 1995 11:52:39 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Jun22135239@cobra.es.ele.tue.nl> References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> <3sag90$4en@ntuix.ntu.ac.sg> In-reply-to: GWILLEM@alpha.ntu.ac.sg's message of 22 Jun 1995 01:16:16 GMT In article <3sag90$4en@ntuix.ntu.ac.sg> GWILLEM@alpha.ntu.ac.sg (Van Schaik Willem Anthon Johan ) writes: So don't assume automatically that people don't read the documentation. Just like people who immediately ask the net to help them, take the easy way out, others who reply with only the remark "RTFM" are not at all helpful and are taking an even easier way out. I wouldn't have replied with `rtfm', if you were just asking a question. I was pissed off because you made untrue statements about the quality of NeXT's developer software (well, really the GNU developer software; I never use NeXT's software, except IB if I have to, and PB only to maintain the makefile). Anyway, I'm surprised nobody in this thread suggested reading the GDB info pages. It's about 400k solid. It is not as bad as you suggest. --Tiggr
From: chris@peseta.unice.fr (Taggiasco Christian) Newsgroups: comp.sys.next.programmer Subject: Looking for fortran Date: 22 Jun 1995 15:04:37 GMT Organization: University of Nice Sophia-Antipolis Distribution: world Message-ID: <3sc0q5$bb2@taloa.unice.fr> Keywords: fortran I know, fortran is an old language (with a lot of scientific libraries...). But I'm looking for a f77 or f90 compiler (with libraries etc...). Please, a lot of peaple ask me about this, and I don't know what to do. Thank - T.C. --- ----------------------------------------------------------- ! TAGGIASCO Chritian ! ! ! ! Institut Non Lineaire de Nice ! ! UMR 129 - C.N.R.S. Universite de Nice Sophia Antipolis ! ! 1361 route des lucioles - Sophia Antipolis - ! ! 06560 Valbonne - France ! !---------------------------------------------------------! ! tel : 92.96.73.34 - fax 92.96.73.33 ! ! e-mail : chris@doublon.unice.fr ! ! http://www-inln.unice.fr/~chris ! -----------------------------------------------------------
From: chuck@its.com (Chuck Swiger) Newsgroups: comp.sys.next.programmer Subject: Re: Should gcc be upgraded? Date: 22 Jun 1995 15:29:54 GMT Organization: Information Technology Solutions, Inc. Message-ID: <3sc29i$bel@www.its.com> References: <3s9uj2$8pq@senator-bedfellow.MIT.EDU> John E. Davis wrote: > How buggy is gcc version 2.2.2 under NS 3.2? Does it sometimes generate > the wrong code? I know that gcc 2.4.5 is buggy under SunOS. What is the > latest version for NS? Well, NeXT ships gcc 2.5.8 with NS Developer 3.3 and NS Developer 3.2 for the HP. About the only area I'd watch out for compiler problems would be doing C++ work. No loss, IMNSHO. One of the things you get from having NeXT modify and build gcc is that they tend to test it much more thoroughly than most people who are not gcc gurus can possibly do. They also have the resources to perform proper regression testing on the output of gcc (and they presumably build their operating system with the compiler, too :-). -Chuck -- Charles Swiger -- chuck@its.com | Information Techology Solutions, Inc. --------------------------------+-------------------------------------- CrashCatcher Development, Systems and Networking Administrator
From: paulrs@lgs-systems.buf.servtech.com (Paul R. Summermatter) Newsgroups: comp.sys.next.programmer Subject: which textDidChange Date: 22 Jun 1995 15:36:30 GMT Organization: LGS Systems Message-ID: <paulrs-2206951134320001@lgs-systems.buf.servtech.com> Howdy all, TextFields have the delegate method textDidChange, textWillChange etc which when called are passed a textObject. I am assuming that this textObject will allow me in some way to identify which text field was changed. For example, let's say I have declared an outlet in myController class, id firstName, and I hook this up in IB to a TextField. I set the TextField delegate to myController so that when the text in my firstName field changes, I can grab this event with the textDidChange method. The problem is that when I'm in the textDidChange method, [firstName isEqual:textObject] returns NO. Obviously this textObject is somehow related to the firstName field, but their id's are not the same and I don't know why. Is there any other way to indentify which textDidChange? p.s. I don't really want to use any method which involves the tag of the field. I think that's rather graceless, but I could be wrong. Paul Summermatter LGS Systems paulrs@lgs-systems.buf.servtech.com (MIME only please)
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Date: 21 Jun 1995 13:52:52 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> References: <3s7r8m$vib@ntuix.ntu.ac.sg> In-reply-to: GWILLEM@alpha.ntu.ac.sg's message of 21 Jun 1995 01:05:26 GMT In article <3s7r8m$vib@ntuix.ntu.ac.sg> GWILLEM@alpha.ntu.ac.sg (Van Schaik Willem Anthon Johan ) writes: Of course my fault You could try to read the documentation. Maybe you could even try to type `help' and read its output. Maybe you should acquire some knowledge concerning what you're talking about before judging its quality. `Damn 747 doesn't fly me to Sidney when I press this button. It must be broken.' --Tiggr
From: Cedar Systems <Cedar@cedar.demon.co.uk> Newsgroups: comp.sys.next.programmer Subject: Excel file format? Date: Thu, 22 Jun 95 16:24:57 GMT Organization: Cedar Systems Message-ID: <803838297snz@cedar.demon.co.uk> I know this is not really the place to ask, but I am looking to fill a matrix using data from an Excel 4.0 file. Does any one know where I can get info on the Excel 4.0 file structure? Many thanks, Paul.
Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Message-ID: <1995Jun22.104037.45024@yogi.urz.unibas.ch> From: frank@woodstock (Robert Frank) Date: 22 Jun 95 10:40:36 MET References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> <empathDAJHo2.90r@netcom.com> empath@netcom.com (Tim Triemstra) wrote: >>Maybe you should acquire some knowledge concerning what you're talking about >>before judging its quality. >Welp, even though the original poster may not have been an expert on GDB, >there are plenty of people who use it everyday that think it is horrible >- and even changes the program you're debugging substantially enough to >at times be a negative influence on program development (I'm one of those >people with that belief.) >I find myself doing more damn printf's and asserts that I should need to >just to avoid using GDB. >-- >Tim Triemstra ... empath@netcom.com ... Detroiter at Heart >The RED WINGS rule! Practice throwing your octopi! >That cup is going to be a tough target when Yzerman holds it over his head! Hmm, any of you heard of SuperDebugger? (I'm not afiliated with the makers of that superb front end!) Since I've paid for my licence, I'm constantly using it - no more printf's and all GUI. Oh, by the way, anyone else noticed that the browser's contents differ on black and HP? -Robert --- Institut fuer Informatik tel +41 (0)61 321 99 67 Universitaet Basel fax. +41 (0)61 321 99 15 Robert Frank Mittlere Strasse 142 rfc822: frank@ifi.unibas.ch (NeXT,MIME mail ok) CH-4056 Basel X400: S=frank;OU=ifi;O=unibas;P=switch;A=arcom;C=ch Switzerland
From: ralf@reswi.en.open.de (Ralf E. Stranzenbach) Newsgroups: comp.sys.next.programmer Subject: Re: NLS subroutines (catopen) Date: 22 Jun 1995 18:52:10 GMT Organization: News Server fuer en.open.de Message-ID: <RALF.95Jun22205210@jodokus.en.open.de> References: <DAJMDx.A8r@cup.hp.com> In-reply-to: wang@cup.hp.com's message of Wed, 21 Jun 1995 21:58:45 GMT >>>>> "Thomas" == Thomas Wang <wang@cup.hp.com> writes: In article <DAJMDx.A8r@cup.hp.com> wang@cup.hp.com (Thomas Wang) writes: Thomas> Is there a set of NLS subroutines for NeXT, such as Thomas> catopen, catgets, and gencat utility program? What's wrong with the GNU's set of NLS functions (available as part of GNU tar) ? They worked for me (after some slight changes). - ralf -- Ralf E. Stranzenbach <ralf@reswi.ruhr.de> at Home: +49 2302 / 96200-3 at Work: +49 231 / 75892-15 "Selten der Mann, den man fuer das haelt, was er wirklich ist. Die Welt steckt voller Fehlurteile. Ich allerdings habe auf den ersten Blick erkannt, dass du ein Einhorn bist, und ich bin mir gewiss, dein Freund zu sein. Und dennoch haelst du mich fuer einen Clown, einen Hanswurst, einen Verraeter, und wenn du mich so siehst, muss ich auch einer sein. Der Bann, der auf dir liegt, ist nur ein Truggespinst und wird sich in Nichts aufloesen, sobald du wieder frei bist, die Larve aber, die du mir aus Vorurteil aufgesetzt hast, die muss ich in deinen Augen fuer alle Zeiten tragen. Wir sind nicht immer, was wir scheinen, und selten nur, was wir ertraeumen. Aber irgendwo habe ich gehoert und gelesen, dass vor langer, langer Zeit Einhoerner wohl zu unterscheiden wussten zwischen lachendem Mund und Herzeleid, Hirngespinst und Wirklichkeit." - Peter S. Beagle, Das letzte Einhorn
From: Art Isbell <art@cubicsol.com> Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Date: 22 Jun 1995 21:35:58 GMT Organization: Trego Systems Distribution: world Message-ID: <3scnnu$gno@emerald.oz.net> References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> <3sag90$4en@ntuix.ntu.ac.sg> GWILLEM@alpha.ntu.ac.sg (Van Schaik Willem Anthon Johan ) wrote: > Have you tried: "man gdb". Should help you get started. Proves to be completely > useless. And the tip I got from someone else that helped me out, is even not > mentioned when you do "help breakpoints". > Have you tried searching for "debugger" in NeXT's extensive on-line documentation using that very useful standard app, Librarian? Most developers don't limit their search to UNIX man pages when such extensive on-line documentation exists. > Strange that people don't understand that even help-texts can be written > so badly that even after reading them you still can't work out what to do. > So don't assume automatically that people don't read the documentation. Just > like people who immediately ask the net to help them, take the easy way out, > others who reply with only the remark "RTFM" are not at all helpful and > are taking an even easier way out. "Spreken is zilver, zwijgen is goud" (just > for Pieter :-). > Had you read /NextLibrary/Documentation/NextDev/DevTools/13_Debugger/Debugger.rtf, I don't think you would have had to post at all. This shouldn't be an obscure source of information for anyone at all familiar with NS. -- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
Newsgroups: comp.sys.next.programmer From: lloyd@world.std.com (Christopher Lloyd) Subject: Re: GDB ... chicken or egg ... or shi%@(* Message-ID: <DALGxw.GCM@world.std.com> Organization: The World Public Access UNIX, Brookline, MA References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> <empathDAJHo2.90r@netcom.com> <pskaae6wkr.fsf@birch.mv.us.adobe.com> Date: Thu, 22 Jun 1995 21:56:20 GMT In article <pskaae6wkr.fsf@birch.mv.us.adobe.com>, Scott Byer <byer@mv.us.adobe.com> wrote: >Tim Triemstra writes: >Tim> Welp, even though the original poster may not have been an expert on >Tim> GDB, there are plenty of people who use it everyday that think it is >Tim> horrible Count me in. >I find that this happens only with sloppy programming, and that paying heed >to gcc's warnings and Purify's warnings removes any such problems. If your >program behaves differently under GDB, the usual problem is "variable may be >used uninitialized" or "variable may be clobbered by longjmp". And, if it >runs differently under GDB, it'll run differently under Purify, and it'll >run differently on different machines. That's an application bug, not a GDB >bug. GDB is a debugger, if "that's an application bug" and GDB is no help in tracking it down, it's not a very good debugger now is it?. I used to debug mixed n*100K line old crusty FORTRAN mixed w/ C programs under VAX/VMS and NOS/VE, both of the native debuggers could grind thru this pile of crap no problem, not to mention they were pretty easy to get started with and use. gdb on Ultrix with the same programs proved to be utterly useless (so was dbx). The last 4+ years developing on NS w/ gdb has only reinforced this view of gdb, and it appears to be getting worse with the introduction of new NS architectures and time. >GDB's not perfect, but when I compare it to some of the vendor-provided >tools - especially dbx - GDB comes out _far_ ahead. (GUI debuggers? I have >_yet_ to see one that didn't completely suck, especially for debugging a GUI >application). NeXT could supply a debugger which is a *LOT* better than gdb, gdb may be better than dbx, but that ain't saying much! It is laughable that people are sitting here defending it with such vigor. It works (sometimes) and is better than nothing, but it sure the hell ain't that great. -- |: Christopher Lloyd :|: Yrrid Incorporated :|: lloyd@yrrid.com :| |: http://world.std.com/~lloyd :|
From: robertn@seahawk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: which textDidChange Date: 22 Jun 1995 20:59:41 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <ROBERTN.95Jun22135941@seahawk> References: <paulrs-2206951134320001@lgs-systems.buf.servtech.com> In-reply-to: paulrs@lgs-systems.buf.servtech.com's message of 22 Jun 1995 15:36:30 GMT In article <paulrs-2206951134320001@lgs-systems.buf.servtech.com> paulrs@lgs-systems.buf.servtech.com (Paul R. Summermatter) writes: Path: nwestnews!nwfocus.wa.com!news.cyberstore.ca!vanbc.wimsey.com!news.mindlink.net!agate!howland.reston.ans.net!news.sprintlink.net!murphy.servtech.com!lgs-systems.buf.servtech.com!user From: paulrs@lgs-systems.buf.servtech.com (Paul R. Summermatter) Newsgroups: comp.sys.next.programmer Date: 22 Jun 1995 15:36:30 GMT Organization: LGS Systems Lines: 21 NNTP-Posting-Host: lgs-systems.buf.servtech.com Howdy all, TextFields have the delegate method textDidChange, textWillChange etc which when called are passed a textObject. I am assuming that this textObject will allow me in some way to identify which text field was changed. For example, let's say I have declared an outlet in myController class, id firstName, and I hook this up in IB to a TextField. I set the TextField delegate to myController so that when the text in my firstName field changes, I can grab this event with the textDidChange method. The problem is that when I'm in the textDidChange method, [firstName isEqual:textObject] returns NO. Obviously this textObject is somehow related to the firstName field, but their id's are not the same and I don't know why. Is there any other way to indentify which textDidChange? firstName is the id of the textfield not the text object which is the window's field editor. Take a look at the field editor's ie. textObject delegate it's lazily set to the corresponding text field. I think I've got that right.
Newsgroups: comp.sys.next.programmer From: david@zion.com(David J. Ferrero) Subject: where is Ralph Zazula? Message-ID: <DAKpCn.2pJ@zion.com> Keywords: Ralph Sender: david@zion.com (David J. Ferrero) Organization: Zion Software & Consulting Date: Thu, 22 Jun 1995 12:00:22 GMT Anybody have Ralph's email address? I tried his NeXT address and it bounced...is he still with them? Thanks, David Ferrero david@zion.com ----- Transcript of session follows ----- While connected to next.com: >>> RCPT To:<Ralph_Zazula@NeXT.COM> <<< 554 <Ralph_Zazula@NeXT.COM>... 550 User unknown 554 <Ralph_Zazula@next.com>... 554 Service unavailable ----- Unsent message follows ----- Return-Path: <david@zion.com> Received: from mtzion (root@localhost) by mail.holonet.net with UUCP id CAA12048; Thu, 22 Jun 1995 02:58:10 -0700 Received: by mtzion.zion.com (NX5.67e/NeXT-2.0) id AA02986; Wed, 21 Jun 95 23:04:37 -0400 Message-Id: <9506220304.AA02986@mtzion.zion.com> Reply-To: david@zion.com Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) Received: by NeXT.Mailer (1.118.2) From: "David J. Ferrero" <david@zion.com> Date: Wed, 21 Jun 95 23:04:25 -0400 To: Ralph_Zazula@NeXT.COM
From: suckow@uropax.contrib.de (Ralf Suckow) Newsgroups: comp.sys.next.advocacy,comp.sys.next.programmer Subject: Re: Taligent CommonPoint - smells like 'Deja vu' Date: 23 Jun 1995 00:55:26 +0200 Organization: Internationale Stadt e.V. Message-ID: <3scscu$g6b@uropax.contrib.de> References: <3rmgdd$kcp@hardcopy.ny.jpmorgan.com> Alexandre Odoux <odoux_alexandre@jpmorgan.com> schreibt: >Just give a look at <http://www.taligent.com/cpconstructor.html> >and you will understand. >Look the icons. Look the how the menu is layed out. >Read the different steps for building applications. >So, is cpConstructor only a copy of Interface Builder ? Has someone >already seen/used the real thing ? Isn't Taligent C++ based? Interface Builder with C++???? Never! Ralf PS. Don't ever say "never"! -- melonSoft Ralf Suckow Berlin |-------------------------------| suckow@contrib.de | Developer of MusicBuilder (R) | fax: +4930 9321901 |-------------------------------|
From: robin@batcave.pencom.com (Robin D Wilson) Newsgroups: comp.sys.next.programmer Subject: sizeTo: doesn't work for columns in TableView... Date: 22 Jun 1995 23:52:50 GMT Organization: Pencom Software Message-ID: <3scvoi$vi7@digdug.pencom.com> We have been trying to build an app that uses a TableView hooked to a database through EOF (now at EOF v1.1). We want the user to be able to move the columns around to their preference -- and also to resize the columns as they prefer. We can arrange the columns just fine. But, when using the "sizeTo:" method, to set the column size -- it just doesn't do anything. We have an ID "columnVector" which is used with the sizeTo thusly: [columnVector sizeTo: 500.0]; (We normally wouldn't use a constant here -- but for test purposes we have tried this as well as a variable which is typecast to "NXCoord".) Any help? --- robin -- "Out the 10Base-T, through the router, down the T1, over the leased line, off the bridge, past the firewall...nothing but Net." -- ----------------------------------------------------------------------------- *** These are my opinions... Mine! All Mine! Minemineminemineminemine! *** ----------------------------------------------------------------------------- Robin D. Wilson robin@pencom.com Pencom Software 701 Canyon Bend Dr. 9050 Capital of Texas Hwy Pflugerville, TX 78660 Austin, TX 78759 (512) 251-1737 (512) 343-6666
From: brlepel@america (Brian Richard Lepel) Newsgroups: comp.sys.next.programmer Subject: GDB or ProjectBuilder gooey interface Date: 23 Jun 1995 14:27:56 GMT Organization: Minnesota Regional Network (MRNet) Message-ID: <3sej1c$5hc@news.mr.net> References: <3rjvid$j28@icon1.intercon.net> I was wondering if anyone out there has heard of a gooey graphical window interface for the GDB debugger or the ProjectBuilder.app for NeXTStep workstations. If so, PLEASE let me know. Thank you.
Newsgroups: comp.sys.next.programmer From: beatty@beatty.slip.netcom.com (Derek Beatty) Subject: Re: GDB ... chicken or egg ... or shi%@(* Message-ID: <3sd3v8$14p@beatty.slip.netcom.com> Sender: netnews@mork.netcom.com Organization: none References: <empathDAJHo2.90r@netcom.com> Date: Fri, 23 Jun 1995 01:04:40 GMT In article <empathDAJHo2.90r@netcom.com> empath@netcom.com (Tim Triemstra) writes: > > I find myself doing more damn printf's and asserts that I should need to > just to avoid using GDB. That's funny, I always step through my code with GDB the first time I run it. Specifically, I have a function void NOT_tested() { printf("You're running untested code.\n"); } and my .gdbinit looks something like br NOT_tested commands 1 finish end and I always insert "NOT_tested();" before any new code, and then I watch what the code's doing, simulate some errors to check error handling, etc., before I've forgotten what I was thinking when I wrote the code. By coincidence, since I started stepping through code while it's fresh in my mind, I almost never have a bug escape from this level of testing. -- Derek Lee Beatty _ beatty@netcom.com _| ~-, Austin, Texas \, * ) \_(
From: mouring@netnet.net (Ben A Lindstrom) Newsgroups: comp.sys.next.advocacy,comp.sys.next.programmer Subject: Re: Taligent CommonPoint - smells like 'Deja vu' Followup-To: comp.sys.next.advocacy,comp.sys.next.programmer Date: 23 Jun 1995 16:37:52 GMT Organization: NetNet, Inc. Wisconsin's Leading Internet Provider Message-ID: <3seql0$p1c@netnet2.netnet.net> References: <3rmgdd$kcp@hardcopy.ny.jpmorgan.com> <3scscu$g6b@uropax.contrib.de> Ralf Suckow (suckow@uropax.contrib.de) wrote: : Alexandre Odoux <odoux_alexandre@jpmorgan.com> schreibt: : >Just give a look at <http://www.taligent.com/cpconstructor.html> : >and you will understand. : >Look the icons. Look the how the menu is layed out. : >Read the different steps for building applications. : >So, is cpConstructor only a copy of Interface Builder ? Has someone : >already seen/used the real thing ? : Isn't Taligent C++ based? Interface Builder with C++???? : Never! : Ralf Heck, NeXT wants a C++ version of IB. =-) (Cheezy AT&T commerical) "...And the company that will bring it to you NeXT..." --- mouring@netnet.net
From: Christopher_Lane@Med.Stanford.EDU Newsgroups: comp.sys.next.programmer Subject: Re: Custom screen saver - How? Date: 23 Jun 1995 17:23:36 GMT Organization: Stanford University Message-ID: <3setao$9v2@nntp.Stanford.EDU> References: <3sds61$ag6@nntp.Stanford.EDU> Stan Jirman <stanj@cs.stanford.edu> writes: > has anyone figured out how to implement the 3.3 loginwindow custom > screen savers which have been introduced in 3.3? Any hints would be > appreciated, a possible sample source would be of course great. Yes, but I recommend that if you can, design your custom screen saver as a BackSpace module and then use SpaceSaver to run it when you're logged out. This way you get multiple uses from the same bundle. You can find SpaceSaver on: ftp://ftp.cs.orst.edu/pub/next/binaries/screen/SpaceSaver_3.3.1.tar.gz (or, since your a local Stanford NeXT user, it's also on ftp://camis.stanford.edu/pub/NeXT/SpaceSaver_3.3.1.tar.gz) This is also possible under 3.2 but you need the earlier version of SpaceSaver as the bundle details changed a bit in 3.3. If you still want to write your own loginwindow bundle, SpaceSaver includes sources. - Christopher
From: stanj@cs.stanford.edu (Stan Jirman) Newsgroups: comp.sys.next.programmer Subject: Custom screen saver - How? Date: 23 Jun 1995 07:57:53 GMT Organization: Stanford University Message-ID: <3sds61$ag6@nntp.Stanford.EDU> Hello, has anyone figured out how to implement the 3.3 loginwindow custom screen savers which have been introduced in 3.3? Any hints would be appreciated, a possible sample source would be of course great. Thanks a lot, - Stan --- +-------------------------------------------+-------------------------+ | Stan Jirman -- The Swiss CS Guy | | | stanj@cs.stanford.edu NeXTmail / MIME | When you find yourself | | http://www-leland.stanford.edu/~stanj/ | in a hole, stop digging | | Box 2642, Stanford, CA 94309, USA | | +-------------------------------------------+-------------------------+
From: Uwe Hoffmann <hoffmann@fzi.de> Newsgroups: comp.sys.next.programmer Subject: Precompiled Headers Date: 23 Jun 1995 07:56:31 GMT Organization: Forschungszentrum Informatik (FZI), Karlsruhe, Germany Message-ID: <3sds3f$84k@gate.fzi.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Can someone please explain to me the structure of a precompiled header file and how to extract information from it (I'd like to extract the object hierarchy from it, like in HeaderViewer) ? Thanks, -- uwe....................................hoffmann@fzi.de (nextmail ok)
From: chuck@its.com (Chuck Swiger) Newsgroups: comp.sys.next.programmer Subject: Re: Compressed file system Date: 23 Jun 1995 22:50:46 GMT Organization: Information Technology Solutions, Inc. Message-ID: <3sfgg6$a6i@www.its.com> Christopher_Lane writes: >> Given these factors, it doesn't seem worth it for NEXTSTEP or other >> Unix systems. > > NeXT clearly considers file compression worth it otherwise we wouldn't > be running with compressed swap files. You have the *option* of running with compressed swapfiles; note that it does not always help. The important thing to note here is that swapfile compression is likely to be beneficial when handling pages containing uncompressed color images, and is not likely to help when dealing with program text pages. > The problem is, NeXT chose to implement it as a unique facility for a paticular > file rather than a generic compressed file system in which the swap file just > happens to live. With a little generalization, those who wanted such could have > added their own compressed file spaces as they saw fit. (E.g. for archives, seldom > used documentation, etc.) Well, you have a point there. I personally wouldn't object is compressed filesystems were available under NEXTSTEP, although I would never use them for normal files (unless I was feeling very confident in my backup system, anyway). I still think that compressing files which need it (preferably in a transparent fashion, such as TIFF's) is the better choice. -Chuck -- Charles Swiger -- chuck@its.com | Information Techology Solutions, Inc. --------------------------------+-------------------------------------- CrashCatcher Development, Systems and Networking Administrator
From: mcdougal@jensen.cc.brandeis.edu (brendan mcdougall) Newsgroups: comp.sys.next.programmer,comp.sys.next.misc Subject: Help Subprocess Date: 23 Jun 1995 09:27:55 GMT Organization: Brandeis University Message-ID: <3se1er$fil@news.cs.brandeis.edu> i am posting this for my colleague who is away from his favorite newsgrazer :) bm. ------------- Hi, This is a novice's question - We have written an application which forks a child process for doing some particular task. After this task is done we kill the child process. When we need to do the task again we fork the child process again and the above step is repeated. We find that we cannot create anymore child process after a certain number of times (~ >90). Unless we quit and restart the application we cannot create anymore child process. We understand that there is a limit to the number of child process one can create. What we don't understand is after the task is done we do kill the child process, so there isn't more than one child process resident at any one time. We would greatly appreciate any suggestions as to what can be done to fix this problem. Also mailing the answers to balu@lsu13e.nsls.bnl.gov would be appreciated. Thanks ---------------------------------------------------------------------- Thanks Balu
Newsgroups: comp.sys.next.programmer From: jpanico@netcom.com (Joe Panico) Subject: Changing the width of Scroll inside ScrollView? Message-ID: <jpanicoDAIvsM.5tL@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Wed, 21 Jun 1995 12:24:21 GMT Sender: jpanico@netcom9.netcom.com Hi, Any suggestions for the easiest way to make the Scroll object, inside a ScrollView, wider than the default? I would also like to make the scroll buttons larger in both dimensions. Thanks for any suggestions. -- Joe Panico jpanico@netcom.com /* Please no NeXTMail, I can't read it at this address */
From: pete@ohm.york.ac.uk (-bat.) Newsgroups: comp.sys.next.software,comp.sys.next.programmer Subject: Re: MPEG sound player Date: 23 Jun 1995 10:06:34 GMT Organization: The University of York, UK Message-ID: <3se3na$qa8@mailer.york.ac.uk> References: <3rq2u1$c1r@mimsy.cs.umd.edu> seanl@jujube.cs.umd.edu (Sean Luke) writes: > Does anyone know of a NS app that will read MPEG sound files? > I'm not interested in MPEG video, just the sound files. Source > code would be great too--I might even include it in a new version > of Resound. Grab maplay off IUMA - I did a port to the NeXT of this. Its somewhere on iuma.com, not sure where exactly. If you can't fint it there then grab a copy from maekong.ohm.york.ac.uk in pub/pete - I just tarred up my old source directory and out it there for you. -bat.
Newsgroups: comp.sys.next.programmer From: alex@genoa.com (Alex Blakemore) Subject: Re: sizeTo: doesn't work for columns in TableView... Message-ID: <DAM1oG.3LL@genoa.com> Sender: alex@genoa.com (Alex Blakemore) Organization: Genoa Software Systems References: <3scvoi$vi7@digdug.pencom.com> Date: Fri, 23 Jun 1995 05:24:15 GMT Robin D Wilson writes > the [tableview] "sizeTo:" method ... doesn't do anything. I've noticed the same behavior, and had it confirmed by people at NeXT. -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted
Newsgroups: comp.sys.next.programmer From: tomi@shinto.nbg.sub.org (Thomas Engel) Subject: DO benchmarking. Anyone with a SPARC 10 to help ?? Message-ID: <DAMwKu.LC@shinto.nbg.sub.org> Sender: tomi@shinto.nbg.sub.org (Thomas Engel) Organization: STEPeople's home (A NUGI member) Date: Fri, 23 Jun 1995 16:31:41 GMT Hi! I an trying to compare NeXTSTEPs DO system (Mach Port based) with Suns Spring OO-OS (based on Doors). The Spring OS runs on a SPARC 10 and I would like to have performance numbers for a Sun SPARC 10 so I can estimate some "scale" numbers for my onw NeXT DO benchmarks. If you have a machine, NS Developer, NeXTmail and the time to compile the few lines of my two test apps please contact me (Pete Clark ?) Aloha Tomi -- _________________________________________________________ (tomi@shinto.nbg.sub.org) Thomas Engel Neptunstr. 9 NeXTMail welcome D - 90522 Oberasbach Germany
From: robertn@seahawk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: sizeTo: doesn't work for columns in TableView... Date: 23 Jun 1995 16:12:58 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <ROBERTN.95Jun23091258@seahawk> References: <3scvoi$vi7@digdug.pencom.com> <DAM1oG.3LL@genoa.com> In-reply-to: alex@genoa.com's message of Fri, 23 Jun 1995 05:24:15 GMT In article <DAM1oG.3LL@genoa.com> alex@genoa.com (Alex Blakemore) writes: Newsgroups: comp.sys.next.programmer Path: nwestnews!nwfocus.wa.com!news.omnigroup.com!nwfocus1.wa.com!news3.sprintlink.net!news.sprintlink.net!europa.chnt.gtegsc.com!usenet.eel.ufl.edu!news.mathworks.com!news.kei.com!nexus.coast.net!noc.netcom.net!netcomsv!uu3news.netcom.com!netcomsv!uucp3.netcom.com!saturn!alex From: alex@genoa.com (Alex Blakemore) Sender: alex@genoa.com (Alex Blakemore) Reply-To: alex@genoa.com Organization: Genoa Software Systems References: <3scvoi$vi7@digdug.pencom.com> Date: Fri, 23 Jun 1995 05:24:15 GMT Lines: 9 Robin D Wilson writes > the [tableview] "sizeTo:" method ... doesn't do anything. I've noticed the same behavior, and had it confirmed by people at NeXT. -- Alex Blakemore alex@genoa.com NeXT, MIME and ASCII mail accepted Please consult the issue of NXApp that covers this. Hint: There aren't too many issues :-( Basically you have to use setMinSize and setMaxSize to size the DBTV.
Newsgroups: comp.sys.next.programmer From: ericb@il.us.swissbank.com (Eric_Brown) Subject: Re: sizeTo: doesn't work for columns in TableView... Message-ID: <1995Jun23.151554.4081@il.us.swissbank.com> Sender: root@il.us.swissbank.com (Operator) Organization: Swiss Bank Corporation CM&T Division References: <3scvoi$vi7@digdug.pencom.com> Date: Fri, 23 Jun 1995 15:15:54 GMT Robin D Wilson writes > > We have been trying to build an app that uses a TableView hooked to a > database through EOF (now at EOF v1.1). We want the user to be able to move > the columns around to their preference -- and also to resize the columns as > they prefer. > > We can arrange the columns just fine. But, when using the "sizeTo:" method, > to set the column size -- it just doesn't do anything. We have an ID > "columnVector" which is used with the sizeTo thusly: > > [columnVector sizeTo: 500.0]; > > (We normally wouldn't use a constant here -- but for test purposes we have > tried this as well as a variable which is typecast to "NXCoord".) > After you send the DBTableVector -sizeTo: send it a -setMinSize: with the same value. This should appropriately re-size the vector. I'm not exactly sure why it behaves this way, but I have used this method successfully. Good luck... -- _______________________________________________________________ / Eric Brown | The opinions expressed here \ | NEXTSTEP Consultant | are mine and do not necessarily | | Synectic Design | represent those of my employer | | ericb@il.us.swissbank.com | or SBC. | \___________________________|___________________________________/
Newsgroups: comp.sys.next.programmer From: empath@netcom.com (Tim Triemstra) Subject: Re: GDB ... chicken or egg ... or shi%@(* Message-ID: <empathDAn8I7.2v3@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> <empathDAJHo2.90r@netcom.com> <pskaae6wkr.fsf@birch.mv.us.adobe.com> Date: Fri, 23 Jun 1995 20:49:18 GMT Sender: empath@netcom4.netcom.com Tim> I find myself doing more damn printf's and asserts that I should need Tim> to just to avoid using GDB. >I find that this happens only with sloppy programming, and that paying heed >to gcc's warnings and Purify's warnings removes any such problems. Actually, our monstrous (27meg stripped) application builds without so much as a warning - and it uses C++ in conjunction with ObjC! However, my problems are/were that double's and float's aren't shown properly. I admit that I've been overly hostile towards GDB - it is actually extrememly stable. But, if you are debugging complex floating point code and the debugger is displaying the wrong value it is hard to be complementary :) -- Tim Triemstra ... empath@netcom.com ... Detroiter at Heart The RED WINGS rule! Practice throwing your octopi! That cup is going to be a tough target when Yzerman holds it over his head!
From: sanguish@digifix.com Newsgroups: comp.sys.next.programmer Subject: Re: GDB or ProjectBuilder gooey interface Date: 24 Jun 1995 03:41:18 GMT Organization: Digital Fix Development Message-ID: <3sg1gu$pk8@digifix.digifix.com> References: <3rjvid$j28@icon1.intercon.net> <3sej1c$5hc@news.mr.net> brlepel@america (Brian Richard Lepel) wrote: > I was wondering if anyone out there has heard of a gooey graphical > window interface for the GDB debugger or the ProjectBuilder.app for > NeXTStep workstations. If so, PLEASE let me know. Thank you. SuperDebugger from Impact Software Publishing is a front end for GDB. There is also the Edit.app interaction with GDB, but it leaves alot to be desired. You want a GUI front end to ProjectBuilder??? That's a little redundant. <URL:http://www.stepwise.com/ThirdParty/Developers/Impact_Software_Publishing_Inc. htmld> -- - Scott Anguish - sanguish@digifix.com (NextMail) next-announce@digifix.com (comp.sys.next.announce submissions) http://www.stepwise.com/ (Stepwise NEXTSTEP/OpenStep Information Server)
From: ix@ix.netcom.com (snow_crash (NeXT Mach) ) Newsgroups: comp.sys.next.programmer Subject: is 3.2 ok to get fundamentals right? Date: 24 Jun 1995 06:31:25 GMT Organization: Netcom Distribution: world Message-ID: <3sgbft$s9p@ixnews2.ix.netcom.com> Hi all, In a nutshell, I caught the NeXT bug at my last job, and was able to buy the full developer/user copy of 3.2 for $500 when I was laid off. I've been working though the Garfinkle book, and it makes good sense. My question is: Would paying $1000 for NS 3.3 dev really give me something I don't have in NS 3.2? Remember, I'm not doing anything exotic yet, and am wondering if what I am learning now will be obsolete for NS 3.3, or even NS4.0 / OpenStep... Cheers! Chris
Newsgroups: comp.sys.next.programmer From: Dennis I. Gould <DIG@Gould.COM> Subject: Re: NeXTSTEP HTTP Server Message-ID: <DALL8s.4tJ@gould.com> Sender: dig@gould.com (Dennis I. Gould) Organization: The Gould Group Companies References: <3rvstn$slv@duck.inetnebr.com> Date: Thu, 22 Jun 1995 23:29:16 GMT In article <3rvstn$slv@duck.inetnebr.com> plongsi@falcon.inetnebr.com (Pohl Longsine) writes: > Guy K. Hillyer (gkh@shore.net) wrote: > : How about a browser? > > http://www.omnigroup.com/ > http://www.lighthouse.com/ > > I can't remember the URLs to NetSurfer and Spiderwoman. > > You can probably find a reference to them on http://www.digifix.com/ > > -- > ____/| | Pohl Longsine, OpenStep Software Developer > \ o.O| GPF! | "I don't do Windows." > =(_)= CTLALTDLT! | plongsi@inetnebr.com (Internet Nebraska) > U (Bill Gates, The Cat) | NeXT & MIME mail formats accepted. Try www.netsurfer.com -- Dig Gould /////////////////////////////////////////// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
From: toddwest@raptor.sccs.swarthmore.edu (Todd West) Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Date: 22 Jun 1995 10:03:13 GMT Organization: Swarthmore College Computer Society, Swarthmore, PA, USA Message-ID: <3sbf51$705@larch.cc.swarthmore.edu> References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> <empathDAJHo2.90r@netcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <empathDAJHo2.90r@netcom.com>, Tim Triemstra <empath@netcom.com> wrote: >Welp, even though the original poster may not have been an expert on GDB, >there are plenty of people who use it everyday that think it is horrible I think gdb is great for task-driven debugging, it's just that NeXT's adaptation of it to event-driven processing happens to be woeful. But tolerable if you can access gdb's shell window and (hopefully) the Edit gdb control panel (even if setting and getting to breakpoints can be a black magic at times). Because of some quirks in what I'm working on, one of which involves covering up everything on the screen, gdb is nearly useless as a development tool. If NeXTSTEP supported virtual terminals (or better: consoles!) or if I had a second monitor... or another computer handy so I could telnet in... Also, due to limitations in Interface Builder (I need NX_PLAIN windows, and other things that are unavailable in IB (like reliable object-object communications (flame away, but connected outlets have a distinct tendency to be 0x0 around here))), I'm not using IB. It appears that scrollers in a scrollView only work if the scrollView has a border of other than NX_NOBORDER (which is the default!). Through no fault of it's own, gdb is pretty useless in dealing with this kind of absurdity. Todd
Newsgroups: comp.sys.next.programmer From: bastion1@netcom.com (Gregory Weston) Subject: Programmer Wanted Message-ID: <bastion1DAos6A.40D@netcom.com> Organization: NETCOM On-line Communication Services (408 261-4700 guest) Date: Sat, 24 Jun 1995 16:51:45 GMT Sender: bastion1@netcom17.netcom.com "Programmers Wanted." Isn't that just sooooo informative? Anyway, down to business: Bastion Products is a small startup (or upstart) programming concern for the Macintosh. [Ducking tomato] "Now wait," you may say. "What is a Mac person doing looking for programmers _here_?" What I'm doing is trying to find collaborators. We are currently working on a game. Not just any game, but a strategy board game. (All together: "Ooooooh.") Trouble is, games have gotten sort of passe. Very few people buying new machines say to themselves, "Cool, I can play Lemmings." No...they got talked into buying it because it can help 'manage' their finances. So we've got this game, and want people to want it. After a bit of tossing ideas around, we hit upon the idea of going cross-platform with it. A friend started working on the DOS version and eventually switched over to Windows. Another associate recently started work on a version for OS/2. And I thought: Why not go _really_ cross-platform. And I looked around and discovered that there are some really nice machines that hardly anyone will admit to knowing how to program. So here I am, on groups I don't normally frequent, looking for people that enjoy programming machines that the market unfortunately did not smile upon. How much am I willing to tell before bringing someone on? This much: The game is a strategy board game as I mentioned before. It is in your basic Go/Othello/Checkers genre. There have been other programs that follow the same basic principle but fall far short of the design that we're working on. We're looking for skilled, diverse programmers to fill some big, floppy shoes and a colorful wig. Necessary areas of knowledge include: - Strong knowledge of UI standards for your platform - Managing serial communications - Any transaction-based networking that is standard on your platform - Animation and miscellaneous graphics work - A background in AI would be welcomed - Attention to detail, and the ability to follow a spec On that last one; we're not inflexible, but if you have a grievance with the spec, we'd much prefer to see it argued rationally, rather than just having divergent implementations released. The strictest points of the spec are issues relating directly to cross-platform availability. Outside of that, it largely just defines how the game works and says, "Do this, following your UI guidelines." Distribution and profit issues are mostly hammered out, and we are willing to discuss those and other questions in e-mail. Gregory Weston Partner, Bastion Products -- *** Bastion Products: Where classic quality meets modern technology. *** Well, in fact, this post DOES represent the opinions of Bastion Products. How's that for a switch?
From: diego@conga.dgsca.unam.mx (Diego Zamboni) Newsgroups: comp.sys.next.programmer Subject: Can't run X11R5 on NS 3.3. Date: 24 Jun 1995 23:42:05 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9506250441.AA14448@conga.dgsca.unam.mx> Hi: I just finished compiling X11R5 on my Sparc 5 running NS 3.3. I used the X11R5 patches by Douglas Scott. It seemed to compile fine, but when I run it I get the following error: Unable to open /dev/vid0 for read/write. Fatal server error: no screens found I already changed permissions for /dev/vid0 to 666, but it doesn't seem to work. Any help will be greatly appreciated! Thanks a lot! (I'm sending this through an e-mail gateway to Usenet, since I don't have access to a working Usenet server right now. Please answer by e-mail if possible) -- Diego Martin Zamboni Depto. de Administracion de Supercomputo diego@conga.dgsca.unam.mx DGSCA, UNAM, Mexico. Tel. (5)622-85-29 (NeXTMail welcome) WWW home page: http://ds5000.dgsca.unam.mx/~diego/
Newsgroups: comp.sys.next.programmer From: Scott Byer <byer@mv.us.adobe.com> Subject: Re: GDB ... chicken or egg ... or shi%@(* In-Reply-To: empath@netcom.com's message of Wed, 21 Jun 1995 20:16:50 GMT Message-ID: <pskaae6wkr.fsf@birch.mv.us.adobe.com> Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Incorporated, Mountain View, CA References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> <empathDAJHo2.90r@netcom.com> Date: Thu, 22 Jun 1995 18:29:40 GMT Tim Triemstra writes: Tim> Welp, even though the original poster may not have been an expert on Tim> GDB, there are plenty of people who use it everyday that think it is Tim> horrible - and even changes the program you're debugging substantially Tim> enough to at times be a negative influence on program development (I'm Tim> one of those people with that belief.) Tim> I find myself doing more damn printf's and asserts that I should need Tim> to just to avoid using GDB. I find that this happens only with sloppy programming, and that paying heed to gcc's warnings and Purify's warnings removes any such problems. If your program behaves differently under GDB, the usual problem is "variable may be used uninitialized" or "variable may be clobbered by longjmp". And, if it runs differently under GDB, it'll run differently under Purify, and it'll run differently on different machines. That's an application bug, not a GDB bug. GDB's not perfect, but when I compare it to some of the vendor-provided tools - especially dbx - GDB comes out _far_ ahead. (GUI debuggers? I have _yet_ to see one that didn't completely suck, especially for debugging a GUI application). We debug SGI/Sun Photoshop under GDB. That's a _huge_ C++/C application. Complexities throughout. But since we're anal about fixing compiler warnings and purify warnings, we have _no_ problems with GDB. I don't even bother with Sun's dbx, it's so weak. And while SGI's dbx is a great improvement, I find all too often that if I had just one more GDB feature, I could get that bug. I've had to use all sorts of tools in porting DPS to different platforms over the years. _Nothing_ compares to the combination of Emacs / GCC / GDB / Purify. Especially when it's so easy to write Lisp code to automagically fix those GCC warnings. -- Scott Byer E-Mail: byer@mv.us.adobe.com Adobe Systems Incorporated These are my opinions, and 1585 Charleston Road, P.O. Box 7900 do not necessarily reflect Mountain View, CA 94039-7900 the opinions of my employer. === === C++ is to C as lung cancer is to lung.
From: ocs@ms.mff.cuni.cz (Ondra Cada) Newsgroups: comp.sys.next.programmer Subject: Filter _all_ key events Date: 25 Jun 1995 10:58:53 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <199506251553.RAA08906@ns.ms.mff.cuni.cz> Hi, I remember somebody had written there was a detailed description of NeXTmail format in some issue of NeXT In Line. Could some good soul with the specified article in library either scan it and send me the result, or photocopy it and send me the copy to Ondrej Cada Pernerova 61 186 00 Praha 8 CZECH REPUBLIC Thanx very much, ane looking 4ward some answer, -- Ondra Cada ocs@earn.cvut.cz NeXTMAIL and MIME OK (please do not reply to hukatronic.cz)
From: mike@dannug.dk (Michael Zedeler) Newsgroups: comp.sys.next.programmer Subject: Standard C [?] Question: How to load .o files at run-time? Date: 25 Jun 1995 09:36:58 GMT Organization: Danish NeXT User Group Distribution: world Message-ID: <3sjanq$f3@nexia.dk> I have a bunch of .o files, that all have a function with the same name, say "main()". How do I load theese .o files at run-time, and use their different main()-functions? I have been looking at the rld-library, but I can't make the function rld_load work. If you happen to be in possession of a piece of code that uses this function properly, I would greatly appreciate if you would send it to me. Thank you for the help, Michael. -- Yoshi was a monk in a bhuddistic temple. One day an apprentice came to him, and asked: "Who am I?" And Yoshi answered: "Who is asking?"
From: stefan@rubc.rz.ruhr-uni-bochum.de (Stefan Bohringer) Newsgroups: comp.sys.next.programmer Subject: NSArray and NSAutoreleasePool Date: 25 Jun 1995 12:29:09 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <9506251731.AA03882@localhost> My problem is to use an array of NSAutoreleasePool objects. This causes problems as to the documentation since an AutoreleasePool object should definitely not receive retain messages which in turn are sent by NSArray to any objects added - whether by addObject: or by insertObject:atIndex:. My workaround now is to implement a Category of NSAutoreleasePool to safeguard NSAutoreleasePool from receiving retain messages. I post here, because I think it's a conceptual problem. I can't see why the retain/release paradigm should not apply to NSAutoreleasePool objects. It makes sense to fit NSAutoreleasePool into the standard retain/release paradigm to allow standard objects to operate on NSAutoreleasePool. These objects on the other hand have to retain them as long as work with them.
From: sanguish@digifix.com Newsgroups: comp.sys.next.announce,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.marketplace,comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.next.bugs,comp.soft-sys.nextstep Subject: NEXTSTEP Resources on the Internet Date: 26 Jun 1995 04:15:11 GMT Organization: Digital Fix Development Distribution: inet Message-ID: <3slc8f$ca1@digifix.digifix.com> Topics include: Stepwise NEXTSTEP/OpenStep Information WWW site eduSTEP WWW site NeXT Computer, Inc. WWW site comp.sys.next newsgroups related newsgroups comp.sys.next newsgroups mailing list ftp sites NeXTanswers Stepwise NEXTSTEP/OpenStep Information WWW site =============================================== This online community resource includes - 200+ ISV company pages - 400+ ISV product descriptions - NEXTSTEP Developer Directory - NEXTSTEP Community WhitePages - NEXTSTEP User Group Directory - comp.sys.next archives - User Group information - Mailing List archives and information You can connect via the world wide web at: http://www.stepwise.com/ Additionally there is a Mail Server available. You can get information on using the mail server at ns-products@stepwise.com Suggestions or comments can be directed to me at sanguish@digifix.com If you would like to get your company and product information on Stepwise, please contact me at sanguish@digifix.com. eduSTEP WWW site ================ http://www.nmr.embl-heidelberg.de/eduStep/ eduStep aims to provide up-to-date information on: - NextStep tools and projects for scientists. - Third-party products interesting for the educational and scientific community (with educational discounts noted, where they exist). - A listing of resellers and shops interested in working with customers in the educational community. - Conferences, meetings, workshops - Major projects, such as SciTools, EMBL's project to develop a NextStep scientific work environment - Status reports on GNUStep, a freely-available implementation of OpenStep now being developed NeXT Computer, Inc. WWW site ============================ http://www.next.com comp.sys.next.* newsgroups ========================== news:comp.sys.next.advocacy This is the "why NEXTSTEP is better (or worse) than anything else in the known universe" forum. It was created specifically to divert lengthy flame wars from .misc. news:comp.sys.next.announce Announcements of general interest to the NeXT community (new products, FTP submissions, user group meetings, commercial announcements etc.) This is a moderated newsgroup, meaning that you can't post to it directly. Submissions should be e-mailed to next-announce@digifix.com where the moderator (Scott Anguish) will screen them for suitability. Archives are available by ftp at ftp://ftp.stepwise.com/pub/Next_Announce_Archives Messages posted to announce should NOT be posted or crossposted to any other comp.sys.next groups. news:comp.sys.next.bugs A place to report verifiable bugs in NeXT-supplied software. Material e-mailed to Bug_NeXT@NeXT.COM is not published, so this is a place for the net community find out about problems when they're discovered. This newsgroup has a very poor signal/noise ratio--all too often bozos post stuff here that really belongs someplace else. It rarely makes sense to crosspost between this and other c.s.n.* newsgroups, but individual reports may be germane to certain non-NeXT- specific groups as well. news:comp.sys.next.hardware Discussions about NeXT-label hardware and compatible peripherals, and non-NeXT-produced hardware (e.g. Intel) that is compatible with NEXTSTEP. In most cases, questions about Intel hardware are better asked in comp.sys.ibm.pc.hardware. Questions about SCSI devices belong in comp.periphs.scsi. This isn't the place to buy or sell used NeXTs--that's what .marketplace is for. news:comp.sys.next.marketplace NeXT stuff for sale/wanted. Material posted here must not be crossposted to any other c.s.n.* newsgroup, but may be crossposted to misc.forsale.computers.workstation or appropriate regional newsgroups. news:comp.sys.next.misc For stuff that doesn't fit anywhere else. Anything you post here by definition doesn't belong anywhere else in c.s.n.*--i.e. no crossposting!!! news:comp.sys.next.programmer Questions and discussions of interest to NEXTSTEP programmers. This is primarily a forum for advanced technical material. Generic UNIX questions belong elsewhere (comp.unix.questions), although specific questions about NeXT's implementation or porting issues are appropriate here. Note that there are several other more "horizontal" newsgroups (comp.lang.objective-c, comp.lang.postscript, comp.os.mach, comp.protocols.tcp-ip, etc.) that may also be of interest. news:comp.sys.next.software This is a place to talk about [third party] software products that run on NEXTSTEP systems. news:comp.sys.next.sysadmin Stuff relating to NeXT system administration issues; in rare cases this will spill over into .programmer or .software. Related Newsgroups ================== news:comp.soft-sys.nextstep Like comp.sys.next.software and comp.sys.next.misc combined. Exists because NeXT is a software-only company now, and comp.soft-sys is for discussion of software systems with scope similar to NEXTSTEP. news:comp.lang.objective-c Technical talk about the Objective-C language. Implemetations discussed include NeXT, Gnu, Stepstone, etc. news:comp.object Technical talk about OOP in general. Lots of C++ discussion, but NeXT and Objective-C get quite a bit of attention. At times gets almost philosophical about objects, but then again OOP allows one to be a programmer/philosopher. (The original comp.sys.next no longer exists--do not attempt to post to it.) Exception to the crossposting restrictions: announcements of usenet RFDs or CFVs, when made by the news.announce.newgroups moderator, may be simultaneously crossposted to all c.s.n.* newsgroups. Getting the Newsgroups without getting News =========================================== Thanks to Michael Ross at antigone.com, the main NEXTSTEP groups are now available as a mailing list digest as well. next-nextstep-d next-advocacy-d next-announce-d next-bugs-d next-hardware-d next-marketplace-d next-misc-d next-programmer-d next-software-d next-sysadmin-d (For a full description, send mail saying LISTS to <digestif@antigone.com>). The subscription syntax is essentially the same as LISTSERV's. To subscribe, send a message to <digestif@antigone.com> saying: SUB Listname YourName Example: SUB next-hardware-d John Doe The ftp sites ============= ftp://ftp.cs.orst.edu: The main site for North American submissions ftp://nova.cc.purdue.edu: Lots of older stuff ftp://ftp.informatik.uni-muenchen.de: (Peanuts) Located in Germany. ftp://ftp.dn.net/pub/next Peanuts mirror in the US ftp://terra.stack.urc.tue.nl (Dutch NEXTSTEP User Group) and ftp://cube.sm.dsi.unimi.it (Italian NEXTSTEP User Group) ftp://ftp.nmr.embl-heidelberg.de/pub/next/ eduStep ftp://ftp.next.com: See below ftp.next.com and NextAnswers@next.com ===================================== [from the document ftp://ftp.next.com/pub/NeXTanswers/1000_Help] Welcome to the NeXTanswers information retrieval system! This system allows you to request online technical documents, drivers, and other software, which are then sent to you automatically. You can request documents by fax or Internet electronic mail, read them on the world-wide web, transfer them by anonymous ftp, or download them from the BBS. NeXTanswers is an automated retrieval system. Requests sent to it are answered electronically, and are not read or handled by a human being. NeXTanswers does not answer your questions or forward your requests. USING NEXTANSWERS BY E-MAIL To use NeXTanswers by Internet e-mail, send requests to nextanswers@next.com. Files are sent as NeXTmail attachments by default; you can request they be sent as ASCII text files instead. To request a file, include that file's ID number in the Subject line or the body of the message. You can request several files in a single message. You can also include commands in the Subject line or the body of the message. These commands affect the way that files you request are sent: ASCII causes the requested files to be sent as ASCII text SPLIT splits large files into 95KB chunks, using the MIME Message/Partial specification REPLY-TO address sets the e-mail address NeXTanswers uses These commands return information about the NeXTanswers system: HELP returns this help file INDEX returns the list of all available files INDEX BY DATE returns the list of files, sorted newest to oldest SEARCH keywords lists all files that contain all the keywords you list (ignoring capitalization) For example, a message with the following Subject line requests three files: Subject: 2101 2234 1109 A message with this body requests the same three files be sent as ASCII text files: 2101 2234 1109 ascii This message requests two lists of files, one for each search: Subject: SEARCH Dell SCSI SEARCH NetInfo domain NeXTanswers will reply to the address in your From: line. To use a different address either set your Reply-To: line, or use the NeXTanswers command REPLY-TO <your-address> If you have any problem with the system or suggestions for improvement, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY FAX To use NeXTanswers by fax, call (415) 780-3990 from a touch-tone phone and follow the instructions. You'll be asked for your fax number, a number to identify your fax (like your phone extension or office number), and the ID numbers of the files you want. You can also request a list of available files. When you finish entering the file numbers, end the call and the files will be faxed to you. If you have problems using this fax system, please call Technical Support at 1-800-848-6398. You cannot use the fax system outside the U.S & Canada. USING NEXTANSWERS VIA THE WORLD-WIDE WEB To use NeXTanswers via the Internet World-Wide Web connect to NeXT's web server at URL http://www.next.com. USING NEXTANSWERS BY ANONYMOUS FTP To use NeXTanswers by Internet anonymous FTP, connect to FTP.NEXT.COM and read the help file pub/NeXTanswers/README. If you have problems using this, please send mail to nextanswers-request@next.com. USING NEXTANSWERS BY MODEM To use NeXTanswers via modem call the NeXTanswers BBS at (415) 780-2965. Log in as the user "guest", and enter the Files section. From there you can download NeXTanswers documents. FOR MORE HELP... If you need technical support for NEXTSTEP beyond the information available from NeXTanswers, call the Support Hotline at 1-800-955-NeXT (outside the U.S. call +1-415-424-8500) to speak to a NEXTSTEP Technical Support Technician. If your site has a NeXT support contract, your site's support contact must make this call to the hotline. Otherwise, hotline support is on a pay-per-call basis. Thanks for using NeXTanswers! Written by: Eric P. Scott (mailto:eps@toaster.SFSU.EDU) and Scott Anguish (mailto:sanguish@digifix.com) Additions from: Greg Anderson (mailto:Greg_Anderson@afs.com) Michael Pizolato (mailto:Michael_Pizolato@afs.com) Dan Grillo (mailto:dan_grillo@next.com)
From: tiggr@es.ele.tue.nl (Pieter Schoenmakers) Newsgroups: comp.sys.next.programmer Subject: Re: NSArray and NSAutoreleasePool Date: 26 Jun 1995 09:06:50 GMT Organization: Eindhoven University of Technology, The Netherlands Message-ID: <TIGGR.95Jun26110650@cobra.es.ele.tue.nl> References: <9506251731.AA03882@localhost> In-reply-to: stefan@rubc.rz.ruhr-uni-bochum.de's message of 25 Jun 1995 12:29:09 -0500 In article <9506251731.AA03882@localhost> stefan@rubc.rz.ruhr-uni-bochum.de (Stefan Bohringer) writes: My problem is to use an array of NSAutoreleasePool objects. Why would you want to do that? --Tiggr
From: alastair@Black_Albatross.otago.ac.nz (Alastair Thomson) Newsgroups: comp.sys.next.programmer Subject: CVSManager.app - What do you want? Date: 25 Jun 1995 22:29:55 GMT Organization: University of Otago, Dunedin, NZ Distribution: World Message-ID: <3sko13$jbg@celebrian.otago.ac.nz> Hi everyone, Following a recent post regarding the existance of The Black Albatross (Otago University Applied Research Centre) and a high level of access to our WWW server there has been high interest in our soon to be released CVSManager tool. I have had several e-mails from people asking what it does, and how it compares with other source code control apps. CVSManager grew out of me being sick and tired of using CVS from the commandline. I wanted a nice GUI for it, along with some extra functionality that better supported OOP - i.e. re-use of modules. The result is the app we use here to manage all our source code (around 300,000 lines of code, plus nibs, tiffs etc). The result are a set of features that come from my staff saying "Hey, wouldn't it be great if...". Despite this, it is a coherent whole, it just does things the way we/I do them. This post is a request for what you, developers at the 'coal face' want in a source code control application. I would also be interested in those things that bugged you about other current applications. Below is a rough feature list for CVSManager as it stands. It's taken a long time to appear from when I first mentioned it on the net about a year ago. Since then we have finally made the decision to make it a real commercial app rather than shareware, so it has required a lot! more polishing. I now also have the time and commitment from my employer to do it properly. So, all the help I can get would be appreciated. Many thanks, Alastair. Current CVSManager Features. NEXTSTEP GUI front-end for GNU CVS-1.3 including: file/revision/tag browse Log of CVS output Logging of problems with single click fix Interface to FileMerge.app for resolving conflicts Checkout/update/commit of whole projects or single files Quick checkout of files or revisions for comparison with current version Single source repository encourages software re-use Flagging of newly added or removed files Multi-branch development User work branches to allow checkin each night Development branches for experimental development Branch merge for updating main branch Branches for version configuration Management of multi-developer projects by project administrator Only administrator can commit to main branch Only administrator can merge work/experimental branches Only administrator can create a new release Support for NEXTSTEP file packages (.nib, .rtfd, .dbmodel, .eomodel etc) Saving of CVS info in packages from deletion Conflict resolution via package, not the file within the package Planned features for release 1.0 (September 1995): Drag and drop checkout/checkin Services checkout/checkin Graphical display of revision tree Shelf on browser Planned features for release 2.0 (March 1996): Solaris/DEC Unix/Windoze support via OpenStep Generic X11 Support via Obj-C/X (GNUSTEP)
Newsgroups: comp.sys.next.programmer From: chris@aptime.fdn.org Subject: EOController s delegate and undo Message-ID: <DAs0KG.60E@aptime.fdn.org> Keywords: EOController undo delegate Sender: usenet@aptime.fdn.org (News Operator) Organization: C3iS - APTIME // Paris, France Date: Mon, 26 Jun 1995 10:45:52 GMT Hi, I need to know all the changes that a EOController can do to EOs: insertion, deletion, updates, etc. Everything is OK when I use delegate s messages such as : controller: didInsertObject: controller: didDeleteObject: controller: didSaveToObject: Yes, everything is OK except for the undos : It seems that the message controller:didUndoObject: is only sent when the undo operation cancels a modification to an existing EO. Is there any message an EOController sends to its delegate when an undo cancels an insert or a delete ? -- Christophe Dore (chris@aptime.fdn.org NEXTMAIL & MIME OK)
From: ngustilo@aol.com (NGUSTILO) Newsgroups: comp.sys.next.programmer Subject: HOW TO SET A DELEGATE USING DISTRIBUTED OBJECTS? Date: 26 Jun 1995 09:40:21 -0400 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3smdc5$rdj@newsbf02.news.aol.com> Hi, I am trying out distributed objects and am wondering if it is possible to set a local object as the delegate for a distributed object? For example, I have a distributed object (myDO) that allows you to set its' delegate using [myDO setDelegate:objectName]. Using distributed objects can I use a local object (myLocalObject) as myDO's delegate (i.e. will [myDO setDelegate:myLocalObject] work?). Any help on this subject would be appreciated. Nick Gustilo
From: ta@trinity.uk.sun.com (Tim Addison - Sun UK - Senior Systems Engineer) Newsgroups: comp.sys.next.programmer Subject: Next to Oracle connection - Help ? Date: 26 Jun 1995 14:43:40 GMT Organization: Sun Microsystems (UK) Distribution: world Message-ID: <3smh2s$11t@uk-usenet.uk.sun.com> Hi, Could someone give me a quick cookbook guide of how I make a connection from NextStep to Oracle. I need to do this for a demo, and am fairly new to NextStep. Scenario is Oracle 7.1.4 running on a Sun server running Solaris. NextStep 3.3 is running on a separate client machine. I want to use the bundled dbkit, I realise that EOF is the preferred route but I don't have this s/w so will have to make do. cheers, TIA, Tim ps Please email direct
From: chuck@its.com (Chuck Swiger) Newsgroups: comp.sys.next.programmer Subject: Re: Standard C [?] Question: How to load .o files at run-time? Date: 26 Jun 1995 15:17:55 GMT Organization: Information Technology Solutions, Inc. Message-ID: <3smj33$arm@www.its.com> References: <3sjanq$f3@nexia.dk> Michael Zedeler wrote: > I have a bunch of .o files, that all have a function with the same name, > say "main()". How do I load these .o files at run-time, and use their > different main()-functions? You have what's known as a "namespace collision" (ie, multiple symbols with the same name). You can use this option to ld to get the executable to link (note this is not at runtime, either): -m Don't treat multiply defined symbols as a hard error; instead, simply print a warning. The first such symbol is used for linking; its value is used for the symbol in the symbol table. The other symbols by the same name may be used in the resulting output file through local references. This can still produce a resulting output file that is in error. This flag's use is strongly discouraged! But you won't be able to access any but the first main(). You probably don't want to do this, by the way..... -Chuck -- Charles Swiger -- chuck@its.com | Information Techology Solutions, Inc. --------------------------------+-------------------------------------- CrashCatcher Development, Systems and Networking Administrator
From: dcell@tudhope.com (Dan Ellison) Newsgroups: comp.sys.next.programmer Subject: SplitView Help Date: Mon, 26 Jun 1995 11:58:41 +0500 Organization: Tudhope Associates Inc. Distribution: world Message-ID: <dcell-2606951158410001@tudhope.tor.hookup.net> I've got a SplitView working in my application. Everything seems fine, except for one aesthetic detail. I want to be able to drag the bar to the top, completely hiding the top view. Of course, I want to be able to drag it back down to reveal the hidden view. This does work, but the top border acts strangely. I want the same gap at the top whether the bar's up there or not. The top view consists of a box which contains a scroll view, above which is an 8 pixel gap (blank area) to the top of the box. When the window opens, everything looks fine. There's a nice uniform border around everything. When I drag the bar to the top, it obscures the top view (as it should). When I drag the bar down to reveal the top view, the scroll view is at the very top, and the blank area is gone! This is not good. I hope I explained this clearly. To see how I _want_ it to work, look at the Build panel of ProjectBuilder. I've read all the documentation I could find, but nothing mentions this "effect". If it's something really simple, please forgive me. It just seems to me that this behaviour is incorrect. It shouldn't be shifting my scroll view up. I've even tried putting buttons (invisible or otherwise) up in the blank area, but it *still* disappears. Thanks for any help you can provide. ------------------------------------------------- Daniel C. Ellison Vox: 416-366-7100 Tudhope Associates Inc. Fax: 416-366-7711 International Graphic Design dcell@tudhope.com -------------------------------------------------
From: Dave Griffiths <dave@prim.demon.co.uk> Newsgroups: comp.sys.next.programmer Subject: Re: sizeTo: doesn't work for columns in TableView... Date: Mon, 26 Jun 1995 15:09:26 GMT Organization: Primitive Software Ltd. Message-ID: <1995Jun26.150926.4505@prim.demon.co.uk> References: <3scvoi$vi7@digdug.pencom.com> <1995Jun23.151554.4081@il.us.swissbank.com> In article <1995Jun23.151554.4081@il.us.swissbank.com> ericb@il.us.swissbank.com (Eric_Brown) writes: > >After you send the DBTableVector -sizeTo: send it a -setMinSize: with the same >value. This should appropriately re-size the vector. I'm not exactly sure why >it behaves this way, but I have used this method successfully. Aaaaagh! Sometimes I still wake up screaming. It's been a while since I did any NS programming, but thought I'd pop in here to see what people are chatting about and now it's all coming back. The horror, the horror... puzzling over values and finally discovering that gdb is reporting them wrong... not being able to figure out why methods don't do what you expect them to do... trying things at random in the hope it'll work... stepping through NeXT classes in gdb trying to figure out what they _really_ do... DBTableView... Omigod... gibber gibber... Nurse! Dave
From: art@cubicsol.com (Art Isbell) Newsgroups: comp.sys.next.programmer Subject: Re: sizeTo: doesn't work for columns in TableView... Date: 26 Jun 1995 17:39:57 GMT Organization: The SenseMedia Network, http://sensemedia.net/, info@sensemedia.net Distribution: world Message-ID: <3smrdd$aq9@emerald.oz.net> References: <1995Jun26.150926.4505@prim.demon.co.uk> In article <1995Jun26.150926.4505@prim.demon.co.uk> Dave Griffiths <dave@prim.demon.co.uk> writes: > Aaaaagh! Sometimes I still wake up screaming. It's been a while since I did > any NS programming, but thought I'd pop in here to see what people are chatting > about and now it's all coming back. The horror, the horror... puzzling over > values and finally discovering that gdb is reporting them wrong... not being > able to figure out why methods don't do what you expect them to do... trying > things at random in the hope it'll work... stepping through NeXT classes in > gdb trying to figure out what they _really_ do... DBTableView... > That's odd! Since leaving System V UNIX to become a NS programmer almost 5 years ago, I've quit waking up screaming at night :-) Although DBKit has made me toss and turn a few times :-) Looks like Dave has returned to a simpler life (his Organization): Organization: Primitive Software Ltd. --- Art Isbell NeXTmail: art@cubicsol.com NeXT Registered Consultant Voice: +1 408 335 1154 Trego Systems Fax: +1 408 335 2515 CaseServ: NEXTSTEP managed care USmail: Felton, CA 95018-9442 contract and case management solutions
Newsgroups: comp.sys.next.programmer From: sab@cbebl1.cb.att.com (Shawn A. Beachy x2313) Subject: need help compiling C++ code Message-ID: <DAsoMy.41B@nntpa.cb.att.com> Sender: news@nntpa.cb.att.com (Netnews Administration) Organization: AT&T Bell Laboratories, Columbus Distribution: usa Date: Mon, 26 Jun 1995 19:25:44 GMT I'm trying to port some C++ code to run under NextStep 3.3 and am having trouble getting the C++ class definitions to compile. I thought that the Objective-C compiler was supposed to be able to compile C++ code in addition to Objective C. Has anyone else had this problem and/or been able to do what I'm attempting? Any help would be greatly appreciated. -- Shawn Beachy AT&T Bell Laboratories shawn.beachy@att.com Columbus, OH
Newsgroups: comp.sys.next.programmer From: sab@cbebl1.cb.att.com (Shawn A. Beachy x2313) Subject: need help compiling C++ code Message-ID: <DAsoqF.42L@nntpa.cb.att.com> Sender: news@nntpa.cb.att.com (Netnews Administration) Organization: AT&T Bell Laboratories, Columbus Distribution: usa Date: Mon, 26 Jun 1995 19:27:51 GMT I'm trying to port some C++ code to run under NextStep 3.3 and am having trouble getting the C++ class definitions to compile. I thought that the Objective-C compiler was supposed to be able to compile C++ code in addition to Objective C. Has anyone else had this problem and/or been able to do what I'm attempting? Any help would be greatly appreciated. -- Shawn Beachy AT&T Bell Laboratories shawn.beachy@att.com Columbus, OH
From: hyongsop@dip.eecs.umich.edu (Hyong Sop Shim) Newsgroups: comp.sys.next.programmer Subject: How to Create a Library? Date: 27 Jun 1995 01:01:31 GMT Organization: University of Michigan EECS Dept. Message-ID: <3snl9b$g3i@zip.eecs.umich.edu> Hi all, As the title of the post indicates, I need an instrucion on how to create a library of object modules. I have a set of custom palettes that I want to make into a library (after getting tired of copying the source code around for each project that uses the palettes). The on-line documentation on ProjectBuilder contains information on creating NXBundles, but I'm not sure if bundles are what I'm looking for. Any instructions on building a library of object modules or on where to get relevant information would be greatly appreciated. Thanks a lot. --Hyong (hyongsop@eecs.umich.edu)
From: prevosto@enstb.enst-bretagne.fr (Laurent PREVOSTO) Newsgroups: comp.sys.next.programmer Subject: Re: GDB ... chicken or egg ... or shi%@(* Date: 27 Jun 1995 05:13:58 GMT Organization: ENSTBR, Brest, France Distribution: world Message-ID: <PREVOSTO.95Jun27071359@galois.enstb.enst-bretagne.fr> References: <3s7r8m$vib@ntuix.ntu.ac.sg> <3s9r3k$jf0@www.its.com> <1995Jun22.080920.1913@prim.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In-reply-to: Dave Griffiths's message of Thu, 22 Jun 1995 08:09:20 GMT In article <1995Jun22.080920.1913@prim.demon.co.uk> Dave Griffiths <dave@prim.demon.co.uk> writes: > > In article <3s9r3k$jf0@www.its.com> chuck@its.com writes: > > > >Again, it really does help if you read the documentation. > > It helps a bit, but it's not very comprehensive. > If you really want to know about all the nice features of gdb, you should have a look at the GNU documentation : "Debugging with GDB". The doc is also available in the texinfo format (the GNU hypertext format you can read, for example, through emacs) I've been using gdb for years (like all GNU tools) and i've never had any problems with it. I don't really know about non-free debuggers (except dbx :-( ) but i really like features such as : - conditional breakpoints - data-breakpoints - running gdb code on breakpoint (for example printing a variable, bybye printfs and recompilations) - using numerical variables - completion in variables and methods/functions name - abbreviating commands > >Execute the "view" command in gdb at a breakpoint. Bring up the Gdb... panel in > >Edit.app. You now have a GUI interface to gdb-- you can select a line in a file and set a > >breakpoint that way, for example. > > But you can't clear it via the GUI! Yuk. I don't think removing bp hrough a UI is that important : if you have thousands of lines of code, you probably won't want to browse during 10 minutes 'til you finally find the right line in the right file. I think just typing "info b", to see the list of bp then, for instance, "disable 4" to disable bp number 4 is defi faster... Well, it's what i think :-) Laurent -- -------------------------------------------------------------------------------- Laurent PREVOSTO Chambre I8 205 Tel (98 00) 18 03 ENSTBr ( Pas loin de Plouz' qu'est pas loin de Brest qu'est loin de tout ) --------------------------------------------------------------------------------
From: michael@thi.nl (Michael Brouwer) Newsgroups: comp.sys.next.programmer Subject: Re: HOW TO SET A DELEGATE USING DISTRIBUTED OBJECTS? Date: 26 Jun 1995 19:04:25 +0200 Organization: Tele Holding International, Amsterdam, the Netherlands Message-ID: <3smpap$3ur@mjh.thi.nl> References: <3smdc5$rdj@newsbf02.news.aol.com> In article <3smdc5$rdj@newsbf02.news.aol.com>, NGUSTILO <ngustilo@aol.com> wrote: >[...] >can I use a local object (myLocalObject) as myDO's delegate (i.e. will >[myDO setDelegate:myLocalObject] work?). Any help on this subject would >be appreciated. Yes, this will work, it's what DO is all about. Michael
From: collison@tss.com (Derek Collison) Newsgroups: comp.sys.next.programmer Subject: Shared Libraries in 3.3?????? Date: 26 Jun 1995 19:41:17 GMT Organization: Teknekron Software Systems, Inc. Distribution: all Message-ID: <3sn2gt$mb8@newsflash.tss.com> Is it possible to do shared or dynamic library compilation in 3.3? Thanks in advance.... -- Derek Collison <---> collison@tss.com (NeXTMail welcome) Tekenekron Software Systems, Inc.
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer,comp.sys.next.misc Subject: Re: Help Subprocess Followup-To: comp.sys.next.programmer,comp.sys.next.misc Date: 27 Jun 1995 12:47:22 GMT Organization: The University of York, UK Message-ID: <3soukq$fur@mailer.york.ac.uk> References: <3se1er$fil@news.cs.brandeis.edu> brendan mcdougall (mcdougal@jensen.cc.brandeis.edu) wrote: > step is repeated. We find that we cannot create anymore child process > after a certain number of times (~ >90). Unless we quit and restart the you've hit the max. limit of child processes for your user id. the reason is that, although you have killed the process, it still hangs around in the process table until the parent process gets its exit status. (it is known as a zombie, and NeXT's ps doesn't seem to show zombies, but they still exist - spooky, huh ?) the solution is to use the wait(2) system call after your child process has terminated. the following code works ok : { union wait inf; int pid; pid = wait(&inf); if (pid == -1) perror("wait"); else if (inf.w_termsig) { printf("process %d wait down on signal %d\n", pid, inf.w_termsig); if (inf.w_coredump) printf("core dumped\n"); } else printf("process %d exited with code %d\n", inf.w_retcode); } it should perhaps be noted that it isn't normal for parent processes to kill their children, but to wait for them to exit(2) themselves. this avoids lots of possible nasty race conditions, and generally makes for a tidier system. if it is possible, you should arrange for the child process to exit when its job is done, after notifying the parent in some way that it is finishing. cheers, rog.
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: Application class doc Date: 27 Jun 1995 12:58:47 GMT Organization: The University of York, UK Distribution: world Message-ID: <3sova7$fur@mailer.york.ac.uk> References: <3rordq$ce@sun0.urz.uni-heidelberg.de> <3rq1b6$pft@news.CNRI.Reston.Va.US> "GT" == Georg Tuparev <tuparev@EMBL-Heidelberg.DE> writes: > Am I getting crazy or still completely drunk from the last > night? I just opened the HeaderViewer to consult the > Application class doc, but what I found was the ActionCell > description. Well, I know the latest version of HeaderViewer i've mentioned this a couple of times before, with no response whatsoever. i don't really care about how up to date the documentation is, but i would like _some_! has anyone got a copy of the Application documentation that they could provide ? i have a feeling that NeXT might have removed their own copy of the Application documentation, but are embarrassed so aren't mentioning it to anyone. but this newsgroup is a bit like that - nobody is prepared to say "this can't be done". look at the questions about enlarging the mouse cursor size under NeXTstep, for example. NeXTstep isn't honest about its faults, that's what bugs me the most. (whatever happened to the 'Bugs' section of the manual pages ?) rog. (still looking for any documentation for Application, please!)
From: maklh@uranus.eecs.umich.edu (Aimee Holdwick) Newsgroups: comp.sys.next.programmer Subject: Beginner Question: NSBundle Date: 27 Jun 1995 14:25:30 GMT Organization: University of Michigan EECS Dept. Message-ID: <3sp4cq$t7b@zip.eecs.umich.edu> I am attempting to use an NSBundle object. I have set up the bundle in Project Builder and I (attempt to) access it in the following manner: uarcbundle = [NSBundle bundleWithPath:[[NSString stringWithCString:UARCBUNDLE_DIRECTORY] autorelease]]; pathName = [uarcbundle pathForResource:@"StringTable" ofType:@"m"]; if (pathName) { file1 = [[[uarcbundle classNamed:@"StringTable"] alloc] init]; } uarcbundle seems to receive the appropriate bundle, and pathName has the correct path to the file "StringTable.m", but when I come to the point where file1 should get set, I get the message: Couldn't find UarcBundle in bundle for /Users/maklh/cbe/UarcBundle I have the feeling that I am not setting up the bundle correctly, or that I am not using the proper extension or directory when trying to access it, but I am not sure what I have done wrong. Any help will be greatly appreciated. A. Holdwick
From: Rodger Zeisler <rbz@eversoft.com> Newsgroups: comp.sys.next.programmer Subject: Creating RTF files with headers/footers Date: 27 Jun 1995 16:41:09 GMT Organization: Everest Software Corporation, Dallas, TX USA Message-ID: <3spcb5$33e@feenix.metronet.com> Currently, Next's Text Class does not support headers and footers. If you create an RTF document that contains headers and footers and open it in Edit.app, the headers and footers are ignored. If you save that file in Edit.app, the headers and footers are hot saved. If I read an RTF document into a real wordprocessor (like OpenWrite), the headers and footers are honored. I want to create reports from my application and use RTF as the output file. I want headers and footers. I don't want to hard-code in headers and footers. Is there anything around (sample code, a free Class, a Class I can buy) that might help me? Thanks for any help you can provide, Rodger (MIME & NeXTMail Welcome!) ----------------------------------------------------------- Rodger B. Zeisler Internet rbz@eversoft.com Everest Software Corporation Work (214) 437-7636 4347 W. Northwest Hwy, #851 Fax (214) 437-7600 Dallas, TX 75220-3864 Home (214) 517-4884 -----------------------------------------------------------
From: charles@manta.cs.vt.edu (Charles M. Esterbrook) Newsgroups: comp.sys.next.programmer Subject: NEXTSTEP User cc and ld Date: 27 Jun 1995 15:42:06 GMT Organization: Virginia Tech, Blacksburg, Virginia Message-ID: <3sp8se$6rm@server.cs.vt.edu> Keywords: NEXTSTEP User cc ld Can anyone tell me if it is true that NeXT's compiler is based on GNU's and that consequently owners of "NEXTSTEP User" may copy 'cc' from someone's "NEXTSTEP Developer"? What about the linker, 'ld'? I'm suprised that as a UNIX operating system, "NEXTSTEP User" does not include a basic C compiler and a linker. If copying is not an option, has anyone had success building GNU 'cc' and 'ld' for NeXT User. Hmmm. The build requires 'cc' in the first place. I think they call this "the chicken and the egg." Thanks in advance for any advice, Chuck
From: hyongsop@dip.eecs.umich.edu (Hyong Sop Shim) Newsgroups: comp.sys.next.programmer Subject: Making Nib Files Available Date: 27 Jun 1995 19:06:02 GMT Organization: University of Michigan EECS Dept. Message-ID: <3spkqq$ahi@zip.eecs.umich.edu> Hi, There exist three nib files that I built for an application and that are often used in other applications. I want these nib files accessble to applications in more a convenient fashion than coping them in the English.lproj directory. Does anyone know how to do this? Thanks very much. --Hyong (hyongsop@eecs.umich.edu)
From: drew@its.com (Drew Davidson) Newsgroups: comp.sys.next.programmer Subject: Re: Distributed Foundation Kit Objects? Date: 27 Jun 1995 18:58:07 GMT Organization: Information Technology Solutions, Inc. Message-ID: <3spkbv$24s@www.its.com> References: <RANDY.95Jun19013127@wort.id.com> In article <RANDY.95Jun19013127@wort.id.com> randy@id.com (Randy Tidd) writes: > In article <3rsl31$8vg@tribune.usask.ca> eric@skatter.usask.ca (Eric Norum) writes: > > I'm sure I'm missing something obvious, but I can't seem to make > Foundation Kit objects (in particular, NSStrings) to work as > distributed objects. > > Check out NeXTanswer #1721, "Encoding Foundation Classes with > Distributed Objects", which deals with this particular issue. > > -- > Randy Tidd (randy@id.com) > "Those that God wants to destroy he first makes mad." And make darn sure you are using the Foundation Kit provided with EOF 1.1! EOF 1.0 doesn't work for DO!!! - Drew -- +----------------------------------+-------------------------------------+ | Drew Davidson | Q: Where did the names C and C++ | | Information Technology Solutions | from? | | drew@its.com (NeXTmail, MIME) | A: They were grades. | +--------< All opinions expressed here are mine and mine alone >---------+
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: Shared Libraries in 3.3?????? In-Reply-To: collison@tss.com's message of 26 Jun 1995 19:41:17 GMT Message-ID: <RANDY.95Jun27112457@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <3sn2gt$mb8@newsflash.tss.com> Distribution: all Date: Tue, 27 Jun 1995 16:24:57 GMT In article <3sn2gt$mb8@newsflash.tss.com> collison@tss.com (Derek Collison) writes: Is it possible to do shared or dynamic library compilation in 3.3? Nope, but it will be supported in 4.0. -- Randy Tidd (randy@id.com) "Fear - otherwise you're not going fast enough."
From: ken@darwin.mbb.sfu.ca (Ken Clark) Newsgroups: comp.sys.next.programmer Subject: Closing Controllers (suggestions?) Date: 27 Jun 95 23:24:33 GMT Organization: Simon Fraser University Message-ID: <ken.804295473@darwin> I have an application with a main menu with items that launch controllers that manage user interface windows. Each controller is responsible for a different task a user has to do in the program. When the user finishes working on a particular task, he/she clicks on the close button of one of the windows associated with the task. Now, the catch is, the user can have only one instance of each of these controllers around at any one time. So, my action for the menu buttion looks like (pretend EnterDataController is a class that manages a few windows that are responsible for the entering raw data into the app). - enterData:sender // called when the user selects "Enter Data" menu item { if (!enterDataController) /* launch a new EnterDataController (with widows blazing) if we don't have one already */ enterDataController = [[EnterDataController alloc] init]; return self; } The problem is, the enterDataController pointer dangles when the user closes the window (closing the window sends a windowWillClose to the controller, which then frees itself). The solutions seem to be: 1) Send the application class a "controllerWillClose" message that can then set the enterDataController variable to nil. (kinda like windows) 2) Always keep the controllers around (don't ever free them), and add methods to the controllers to "activate" and "deactivate" them. 3) Your solution that points out how way out to lunch I am. Please help with #3. Thanks, - Ken
From: erik@naggum.no (Erik Naggum) Newsgroups: comp.sys.mac.hardware,comp.sys.mac.hypercard,comp.sys.mac.misc,comp.sys.mac.system,comp.sys.mac.wanted,comp.sys.next.advocacy,comp.sys.next.hardware,comp.sys.next.misc,comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.sysadmin,comp.sys.palmtops,comp.sys.sun.admin,comp.sys.sun.apps,comp.sys.sun.hardware,comp.sys.sun.misc,comp.sys.sun.wanted,comp.sys.tandy,comp.sys.unisys,comp.text.frame,comp.text.sgml,comp.text.tex,comp.theory,comp.unix.admin,comp.unix.aix,comp.unix.misc,comp.unix.osf.osf1,comp.unix.programmer,comp.unix.questions,comp.unix.shell Subject: cmsg cancel <3sn6cc$g69@Sequoia.picosof.com> Control: cancel <3sn6cc$g69@Sequoia.picosof.com> Date: 26 Jun 1995 21:36:30 GMT Organization: Naggum Software; +47 2295 0313 Distribution: inet Message-ID: <19950626T213630Z@naggum.no> -- NETSCAPISM /net-'sca-,pi-z*m/ n (1995): habitual diversion of the mind to purely imaginative activity or entertainment as an escape from the realization that the Internet was built by and for someone else.
Newsgroups: comp.sys.next.programmer From: tim@aplcenmp.apl.jhu.edu (Tim Pugh) Subject: Re: need help compiling C++ code Message-ID: <DAur1I.B1G@aplcenmp.apl.jhu.edu> Organization: Johns Hopkins Continuing Professional Programs References: <DAsoqF.42L@nntpa.cb.att.com> Distribution: usa Date: Tue, 27 Jun 1995 22:12:54 GMT sab@cbebl1.cb.att.com (Shawn A. Beachy x2313) writes: >I'm trying to port some C++ code to run under NextStep 3.3 and am having >trouble getting the C++ class definitions to compile. I thought that the >Objective-C compiler was supposed to be able to compile C++ code in addition >to Objective C. Has anyone else had this problem and/or been able to do >what I'm attempting? Any help would be greatly appreciated. >-- >Shawn Beachy AT&T Bell Laboratories >shawn.beachy@att.com Columbus, OH ------------------------------------------------------------------------------- If your intent is to bypass PB/IB and use the *old fashioned* way of developing C++ code under NS, I have used the following Makefile successfully: # Sample C++ Makefile OBJ = Welcome.o SRC = Welcome.C Welcome: $(OBJ) cc $(OBJ) -lg++ -o $@ $(OBJ): $(SRC) cc -c $? clean: -rm -f $(OBJ) Welcome ------------------------------------------------------------------------------- I have received the following responses to a similar question I recently submitted to this group. I hope they are as helpful to you as they were to me. Thanks to all who responded! Tim ------------------------------------------------------------------------------- From: Jeff Vega <Jeff_Vega@smobject.com> Date: Tue, 6 Jun 95 11:02:35 -0500 To: tim@aplcenmp.apl.jhu.edu Subject: C++ on NeXT's Newsgroup: comp.sys.next.programmer Subject: C++ Development Date: Sun, 04 Jun 1995 15:29:59 Hi Tim, Here at Smart Object Technologies, we use NeXT's as our exclusive C++ development platform. We're building a portable C++ class library for app and GUI development. We use ProjectBuilder, and have encountered no problems. However, you must be sure to: Remove the .m main file that Project Builder generates, and check the "Generate main on save" under "Attributes" so that it doesn't repeat the process. Place your sources under "Other sources" rather than "Classes". At that point, it should recognize when you update/change .cpp files. (Remeber that changing the header for things like in-line functions doesn't trigger a remake...simply re-save the .cpp of those classes that include the header). Hi again Tim, I forgot to mention that using C++ with NeXT's cc is possible, and without extern "C" blocks (which would cause problems, anyway). The compiler directive -ObjC++ is used by ProjectBuilder to compile the C++ sources. You should also only use #include, rather than #import, because the latter is for objective-c. --- -- Jeff Smart Object Technologies, Inc. ------------------------------------------------------------------------------ From dan@pointbreak.com Wed Jun 7 04:20:07 1995 I'm currently writing a Scheme Interpreter in C++, also for a course, otherwise I would never touch this language... ;-) I'm normaly working on a DEC Alpha but this weekend I took it to the NeXT and used ProjectBuilder as Dev tool. I had to do two minor chances in the Makefile, then it compiled out of the box. They original Makefile is done by hand and I could mail it to you if you like. ---------------------------------------------------------------------------- = Dan S. Decasper email: dan@pointbreak.com 09/24/69 = = ch de chandieu 5 voice: 41-21-6010777 NRD# RD272 = = CH-1006 Lausanne Switzerland fax: 41-21-6010774 [NeXTMail ok] = = SDTF@Pointbreak Software -> fight against racism = ---------------------------------------------------------------------------- From benjy@benjy.cc.vt.edu Wed Jun 7 10:19:38 1995 I just looked at one of my makefiles. I have the following lines so that make knows how to handle compiling .cc files: .SUFFIXES: .o .c .cc .y .l .cc.o: cc++ -g -I. -c $*.cc You might want to check the man page to see if make already has a default rule for .cc to .o. I've worked on a large project on NeXT over the past several years and we've had fairly good luck with cc++. For awhile, NeXT didn't include libg++, but now they do. Good luck, Benjy -- Benjy Cline, AC4XO, Ph.D. Virginia Tech Computing Center benjy@benjy.cc.vt.edu ------------------------------------------------------------------------------ From: Jeff Vega <Jeff_Vega@smobject.com> Date: Mon, 12 Jun 95 09:36:28 -0500 To: tim@aplcenmp.apl.jhu.edu (Tim Pugh) Subject: Re: C++ on NeXT's Hi Tim, Unfortunately, some of the GDB extensions built-in by NeXT are for Objective-C debugging, and sometimes cause C++ debugging sessions to crash (but it depends on how "involved" C++ you're doing...). However, you can still use GDB from a Terminal, as I believe you suggested. Terminal.app is automatically invoked by Project Builder when you click the "Debug" button on the projects panel. Of course, make sure the "debug" target is set in the "Builder" panel. Alternately, you can type the following on a command line after it's built, instead of relying on PB... % cd <put the directory of your PB.project here> % gdb <Name of App>.debug/<Name of App> -x PB.gdbinit Then you're ready to go. Set a break point, for example gdb> break main And then run your program. gdb> run <put any command-line arguments to your program here> It should work without hitches. The -x PB.gdbinit just issues a gdb> view command, which allows you to view your sources in Edit.app at the current frame. You can also use Emacs to run GDB, or some other options. Check your Development Tools and Techniques book for the GDB manual...chapter 13. Note that running GDB in Terminal.app causes a "GDB..." menu item to appear in Edit.app. This can be used to set breakpoints, change frames, even view variables. However, this is still with the caveat that it may crash on some C++ features. Good luck, --- -- Jeff Smart Object Technologies, Inc. (MIME/NeXTMail) e-mail : Jeff_Vega@smobject.com ------------------------------------------------------------------------------- I am submitting this as a followup in the belief that there are others who might be interested in this info. Hope these respondents don't object. Tim -- Tim Pugh |MicroCALL Services tim@aplcenmp.apl.JHU.EDU |8713 Briarcroft Lane |Laurel, MD 20708-1355 ------------------------------------------------------------------------------
From: me@wintermute.nada.kth.se (David Wallin) Newsgroups: comp.sys.next.programmer Subject: libobjects Date: 28 Jun 1995 01:33:05 GMT Message-ID: <3sqbgi$c23@news.kth.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Does anybody know where one can find a compiled version of libobjects to be used on a NSFIP v3.2 system? --david -- -- "most people are fools, most authority is malignant, God does not exist, and everything is wrong." - Ted Nelson's four maxims. Name : david wallin :) e-Mail : d94dwa@student.csd.uu.se (:
Newsgroups: comp.sys.next.programmer From: Fabien_Roy@free.fdn.org (Fabien Roy) Subject: Re: GDB ... chicken or egg ... or shi%@(* Content-Type: text/plain; charset=iso-8859-1 Message-ID: <1995Jun25.232142.5266@free.fdn.org> Sender: news@free.fdn.org Content-Transfer-Encoding: 8bit Organization: Fabien Roy Consultant, Paris, France References: <3s7r8m$vib@ntuix.ntu.ac.sg> <TIGGR.95Jun21155252@cobra.es.ele.tue.nl> <empathDAJHo2.90r@netcom.com> <3sbf51$705@larch.cc.swarthmore.edu> Mime-Version: 1.0 Date: Sun, 25 Jun 1995 23:21:42 GMT Hi all, Symbolic source debuggers don‚t like optimization, specially on risc processors. gcc lets you define -g with -O (or -O2) which is not permitted on other compiler (-g automatically exclude any -O options). If you are complaining about GDB first compile your code with only -g or go to the assembler level: break xyz.c:99 run x/20i $pc stepi info reg ... ... etc Have fun 8^) Fabien -- --------------------------------------------------------------------- Fabien_Roy@free.fdn.org (NextMail/MIME accepted) Fabien Roy Consultant NEXTSTEP/OPENSTEP/EOF Consultant, SYBASE DBA 10 rue de la DEFENSE 93100 MONTREUIL, France Tel: 33 1 45 28 32 23 Fax: 33 1 48 55 09 90
Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer From: magnan@maths1.MATHCN.UMontreal.CA (Magnan Francois) Subject: Device Locking Mecanism??? Message-ID: <MAGNAN.95Jun27183612@maths1.MATHCN.UMontreal.CA> Followup-To: comp.sys.next.sysadmin Sender: news@cc.umontreal.ca (Administration de Cnews) Organization: Universite de Montreal Date: Tue, 27 Jun 1995 22:36:12 GMT Hello everyone, I am currently trying to compile mgetty+sendfax, a program that uses the devices cufa and ttydfa. I don't know how this is happening but when I put an entry in "/etc/ttys" for "mgetty" and then do a "kill -HUP 1" to update init mgetty seems to keep a lock on the cufa and ttydfa ports. Mgetty needs to lock the port for some seconds but it then should release it. The port is still locked even though mgetty didn't leave a file like "/usr/spool/uucp/LCK/ttydfa". What is actually locking the port??? How can I force the lock to be released. I change the file access of /dev/cufa /dev/ttydfa so that everybody can read and write to them but it didn't work. What is the lock actually doing? Thank you, Francois -- ______________________________________________________ Francois Magnan Departement de Mathematique & Statistiques Universite de Montreal email: magnan@mathcn.umontreal.ca (MIME, NeXTMail Ok!)
Newsgroups: comp.sys.next.programmer From: dfevans@bbcr.uwaterloo.ca (David Evans) Subject: Re: NEXTSTEP User cc and ld Message-ID: <DAv595.1rH@watserv3.uwaterloo.ca> Keywords: NEXTSTEP User cc ld Sender: news@watserv3.uwaterloo.ca Organization: University of Waterloo References: <3sp8se$6rm@server.cs.vt.edu> Date: Wed, 28 Jun 1995 03:19:52 GMT In article <3sp8se$6rm@server.cs.vt.edu>, Charles M. Esterbrook <charles@manta.cs.vt.edu> wrote: > > >Can anyone tell me if it is true that NeXT's compiler is based on >GNU's and that consequently owners of "NEXTSTEP User" may copy 'cc' >from someone's "NEXTSTEP Developer"? What about the linker, 'ld'? > Perhaps you can "legally" copy cc; I'm not sure. However, it would be of very little use without linker libraries, header files, and what not. Furthermore, you wouldn't have InterfaceBuilfer, ProjectBuilder, or any of that nifty stuff. >I'm suprised that as a UNIX operating system, "NEXTSTEP User" does >not include a basic C compiler and a linker. > Ummmm....how about Solaris? >If copying is not an option, has anyone had success building GNU 'cc' >and 'ld' for NeXT User. Hmmm. The build requires 'cc' in the first >place. I think they call this "the chicken and the egg." > Again, you could likely get together a system that would allow you to compile ordinaryish Unix programs. So you'd be able to program as if you were on a DECstation. ;-) -- David Evans (NeXTMail OK) dfevans@bbcr.uwaterloo.ca Computer/Synth Junkie "Default is the value selected by the University of Waterloo composer overridden by your command." Waterloo, Ontario, Canada - Roland TR-707 Manual
Newsgroups: comp.sys.next.programmer From: ehutch@hypnos.norden1.com (E. Hutchinson) Subject: NEXTSTEP/Career Position/ILL Message-ID: <1995Jun25.223509.8105@norden1.com> Sender: news@norden1.com (Net News Admin) Organization: Norden 1 Communications Date: Sun, 25 Jun 1995 22:35:09 GMT Programmer/analyst/developer NEXTSTEP Objective C A Plus---Sybase or Oracle A Plus---DB Kit or EOF Career Position Outstanding Opportunity Excellent Benefits Relocation Assistance To be considered--------Fax resume or mail a hard copy. -- ehutch@norden1.com (419) 893-6367 [fax] The Omni Group (419) 893-6334 [voice] 1310 Craig Maumee, Ohio 43537
From: robertn@seahawk (Robert Nicholson) Newsgroups: comp.sys.next.programmer Subject: Re: Filter _all_ key events Date: 26 Jun 1995 19:55:25 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <ROBERTN.95Jun26125525@seahawk> References: <199506251553.RAA08906@ns.ms.mff.cuni.cz> In-reply-to: ocs@ms.mff.cuni.cz's message of 25 Jun 1995 10:58:53 -0500 Subclass Application's sendEvent: and do what you like.
From: m.crawford@dcs.shef.ac.uk (mmalcolm crawford) Newsgroups: comp.sys.next.programmer Subject: Re: Application class doc Date: 28 Jun 1995 05:49:41 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <950628114852.226AACUO.malc@daneel> References: <3sova7$fur@mailer.york.ac.uk> I can send you the docs from 3.2 if you like? Actually, I just had an look at the 3.3 CD and was about to write that I could send you the doc from there, but I just found out what the problem is: Unfortunately somebody's messed up: the file /NEXTSTEP_Dev_3.3/NextLibrary/Documentation/NextDev/GeneralRef/02_Applicatio nKit/Classes/Application.rtf actually contains the text from /NEXTSTEP_Dev_3.3/NextLibrary/Documentation/NextDev/GeneralRef/02_Applicatio nKit/Classes/ActionCell.rtf Ho hum. So I can NeXTmail you the 3.2 doc if you want? Have fun, mmalc. posn. research facilitator where institute for language speech and hearing sheffield university c/o department of computer science regent court 211 portobello street sheffield s1 4dp england vox (+44) 114 282 5569 fax (+44) 114 278 0972 email m.crawford@dcs.shef.ac.uk NeXTMail, SunMail, MIME welcome http://www.dcs.shef.ac.uk/
Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer From: andylee@netcom.com (Andy A. Lee) Subject: Is This Group Archived? Message-ID: <andylee-2806950257190001@idtech.com> Sender: netnews@mork.netcom.com Organization: Idealicus Technologies Date: Wed, 28 Jun 1995 09:57:19 GMT I'd like to know if this group is archived somewhere. I already checked cs.orst.edu and StepWise web sites. I've only found archive of comp.sys.next.announce... what about the other groups? Andy Lee andylee@netcom.com andylee@cs.ucla.edu
From: kheit@gandalf.rutgers.edu (John Kheit) Newsgroups: comp.sys.next.programmer,comp.sys.next.misc Subject: Is this a bug in the SoundKit? Date: 26 Jun 1995 15:00:20 -0400 Organization: Rutgers University Distribution: world Message-ID: <3sn044$7al@gandalf.rutgers.edu> Here are my DSP blues...On NeXT hardware using NS 3.2.... I'm trying to record off of the DSP. Currently I'm using the snd functions SNDAlloc et. al. to get this done, if someone has a better/easier way, please let me know. The problem in part is, always, partly my ignorance. The other confusing part is that what gets recorded is reported back as being not what I asked to get recorded!!! Is this a SoundKit bug? For example, if I want to record at 5 seconds at 22khz at 16bit DSP format, what gets saved as reported by WM.app is 2.5 seconds at 22kyz at 8bit DSP!?!? I know I'm supposed to convert the file from 16bitDSP format to 16linear, but sndconvert doesn't want to recognize the 8bit DSP format. At any rate, what I want to do is record and be able to save and use data from the DSP port. PLEASE HELP! This is a NextDeveloper example soundrecord.c file with my modification commented out. Why does this modification not produce a sound I can use. How can I get this converted into something useful. Thank you very much for any/all help. I'm really in a bind... Here is the file: /* * recordfiletest - use the sound library to record directly to a file. * This example records from the codec microphone, but note that using * SNDStartRecordingFile() is especially useful for high sample rate * recording from the DSP. Also note that when recording from the DSP, the * dataFormat of the resulting soundfile must be changed to a playable format * (like SND_FORMAT_LINEAR_16) before it can be played back. * * The use of SNDAlloc() causes virtual memory to be allocated, but since * samples are written directly to a file, this VM is never touched. */ #import <sound/sound.h> #import <stdio.h> #define SECONDS 5.0 main (int argc, char *argv[]) { int err; SNDSoundStruct *s; if (argc != 2) { printf("usage : recordfiletest file\n"); exit(1); } err = SNDAlloc(&s,SECONDS*SND_RATE_CODEC, SND_FORMAT_MULAW_8, SND_RATE_CODEC,1,0); THIS WORKS /* err = SNDAlloc(&s,SECONDS*SND_RATE_LOW, SND_FORMAT_DSP_DATA_16, SND_RATE_LOW,1,0); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% I think you can see what I want to do here. This seemingly works, but it records for only half of the time it is supposed to, namely, 2.5 seconds instead of 5 at a rate that is half of what it is supposed to be, namely, SND_FORMAT_DSP_DATA_8 instead of SND_FORMAT_DSP_DATA_16. What is going on here? Is it a bug in the SoundKit? */ if (err) fprintf(stderr,"recordfiletest : cannot allocate buffer\n"); printf("recording...\n"); err = SNDStartRecordingFile(argv[1],s,1,1,0,0,0); if (err) fprintf(stderr,"recordfiletest : cannot start recording\n"); SNDWait(0); SNDFree(s); exit(0); } Later, John
From: tbm@tci002.uibk.ac.at (Martin Michlmayr) Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer Subject: Re: Is This Group Archived? Followup-To: comp.sys.next.sysadmin,comp.sys.next.programmer Date: 28 Jun 1995 14:12:55 GMT Organization: Dept. of Computer Science, University of Salzburg Distribution: world Message-ID: <3sro17$fl8@esel.cosy.sbg.ac.at> References: <andylee-2806950257190001@idtech.com> Andy A. Lee (andylee@netcom.com) wrote: / I'd like to know if this group is archived somewhere. Yes. It is: ftp://ftp.informatik.uni-muenchen.de/pub/comp/platforms/next/Usenet/news/1995/Prog* ^^^^^ The year you want. PS. I am looking for the comp.sys.NeXT.advocacy archive... -- Martin Michlmayr | tbm@tci002.uibk.ac.at | tbm@gnu.ai.mit.edu GNUStep Volunteer Coordinator, http://fvkma.tu-graz.ac.at/gnustep/index.html
From: wkwong@bellman.eng.ohio-state.edu (Waihon Andrew Kwong) Newsgroups: comp.sys.next.programmer Subject: C++ and PDO Integration Date: 28 Jun 1995 11:41:21 GMT Organization: The Ohio State University Distribution: usa Message-ID: <3srf51$6pq@charm.magnus.acs.ohio-state.edu> Hi all, Have anyone got any experience with doing PDO and C++? We are trying to test if we can use a large collection of c++ code/libraries (previously developed on SunOS) to run with a PDO server (on a Sun5). We've got into problem in the compilation where the C++ code was compiled with different compilers (Lucid cc and SPARCWorks/CC) and these compilers have different name mangling scheme. So, when we try to link all these libraries and our PDO app (a hybrid C++/ObjC code), we've got a lot of undefined symbols..... Is there a way to control the gcc compiler to generate the right name (with proper name mangling scheme)? What are my other alternatives? I go through the PDO documents, but I did not find anything. Thanks in advance, Andy -- //|| // @ E-mail: wkwong@ee.eng.ohio-state.edu // ||// @ 75662.2020@compuserve.com //==||\\ @ "If you put your mind to it, you can accompish anything!" // || \\ @ "NeXTMAIL and MIME IS WELCOME!"
Newsgroups: comp.sys.next.advocacy,comp.sys.next.programmer From: black@pyro (e-cat) Subject: Re: Taligent CommonPoint - smells like 'Deja vu' Message-ID: <DAtGyt.3L7@iglou.com> Sender: news@iglou.com (News Administrator) Organization: IgLou Internet Services References: <3rmgdd$kcp@hardcopy.ny.jpmorgan.com> <3scscu$g6b@uropax.contrib.de> <3seql0$p1c@netnet2.netnet.net> Date: Tue, 27 Jun 1995 05:37:41 GMT mouring@netnet.net (Ben A Lindstrom) wrote: > Ralf Suckow (suckow@uropax.contrib.de) wrote: > : Alexandre Odoux <odoux_alexandre@jpmorgan.com> schreibt: > : >Just give a look at <http://www.taligent.com/cpconstructor.html> > : >and you will understand. > : >Look the icons. Look the how the menu is layed out. > : >Read the different steps for building applications. > : >So, is cpConstructor only a copy of Interface Builder ? Has someone > : >already seen/used the real thing ? > : Isn't Taligent C++ based? Interface Builder with C++???? > : Never! > : Ralf > Heck, NeXT wants a C++ version of IB. =-) (Cheezy AT&T commerical) > "...And the company that will bring it to you NeXT..." > --- > mouring@netnet.net you need to read further. taligent lets you do neat stuff like load new code into a running application, and actually test an entire app like IB lets you test the interface. and everything gets kept in a persistent object store. cool stuff. if only they had chosen to do it in a good language. oh, well...of to play with java :). ben
From: samschap@merle.acns.nwu.edu (Sam Schapmann) Newsgroups: comp.sys.next.programmer Subject: Re: Distributed Foundation Kit Objects? Date: 28 Jun 1995 19:35:33 GMT Organization: Orrington Investments, Ltd. Message-ID: <3ssau5$81@news.acns.nwu.edu> References: <RANDY.95Jun19013127@wort.id.com> <3spkbv$24s@www.its.com> >>> I'm sure I'm missing something obvious, but I can't seem to make >>> Foundation Kit objects (in particular, NSStrings) to work as >>> distributed objects. >> >> Check out NeXTanswer #1721, "Encoding Foundation Classes with >> Distributed Objects", which deals with this particular issue. > > > And make darn sure you are using the Foundation Kit provided with EOF 1.1! > EOF 1.0 doesn't work for DO!!! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ What!?! Has this been verified?? I've been using EOF 1.0 for 8 months now, and was planning on distributing some objects using the NeXT-suggested work- around in NA #1721. Can you please be more specific about exactly how the workaround fails? Thanks. -Sam (ASCII only, please)
From: sanguish@digifix.com Newsgroups: comp.sys.next.programmer Subject: NXImageRep color quantizing objects? NXImageRep color histograms? Date: 28 Jun 1995 20:28:07 GMT Organization: Digital Fix Development Message-ID: <3sse0n$1ae@digifix.digifix.com> Does anyone have any NXImageRep color quantizing objects or objects that will generate a histogram based on an NXImageRep? Thanks in advance Scott -- - Scott Anguish - sanguish@digifix.com (NextMail) next-announce@digifix.com (comp.sys.next.announce submissions) http://www.stepwise.com/ (Stepwise NEXTSTEP/OpenStep Information Server)
Newsgroups: comp.os.msdos.programmer,comp.os.ms-windows.programmer.graphics,comp.os.os2.programmer.misc,comp.os.ms-windows.programmer.win32,comp.sys.amiga.graphics,comp.sys.amiga.programmer,comp.sys.ibm.pc.programmer,comp.sys.mac.programmer.codewarrior,comp.sys.mac.programmer.misc,comp.windows.open-look,comp.windows.x.motif,comp.windows.x.intrinsics,comp.windows.x,comp.sys.next.programmer From: dmenchac@mv.us.adobe.com (Ronin) Subject: Graphical coordinate system Message-ID: <dmenchac-2806951249250001@manteca.mv.us.adobe.com> Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Inc. Date: Wed, 28 Jun 1995 19:49:53 GMT Hello, I'm working on the conceptual stage on a graphical shell that will run in various enviroments. Hopefully this shell will grow into providing GUI primitives (menus, windows, dialogs, controls, gadgets, widgets, etc.) and event handling. Anyways, I was wondering how I should map my coordinate system out. Should I go from 0,0 to +x,+y like in Postscript or should I use the Macintosh style going from 0,0 to +x,-y? What is the best method for graphical programmers (animation, sprites, 3D)? -jm
From: Greg.Titus@mccaw.com (Greg Titus) Newsgroups: comp.sys.next.programmer Subject: Re: Beginner Question: NSBundle Date: 28 Jun 1995 18:28:29 GMT Organization: McCaw Cellular Communications, Inc. Message-ID: <3ss70d$nms@nwestmail.nwest.mccaw.com> References: <3sp4cq$t7b@zip.eecs.umich.edu> In article <3sp4cq$t7b@zip.eecs.umich.edu> maklh@uranus.eecs.umich.edu (Aimee Holdwick) writes: > > I am attempting to use an NSBundle object. I have set up the bundle in > Project Builder and I (attempt to) access it in the following manner: > uarcbundle = [NSBundle bundleWithPath:[[NSString > stringWithCString:UARCBUNDLE_DIRECTORY] autorelease]]; Firstly, stringWithCString: is going to give you a string which is already autoreleased, so the extra autorelease will cause NSAutoreleasePool to complain at you when it gets around to releasing objects. > pathName = [uarcbundle pathForResource:@"StringTable" ofType:@"m"]; > > if (pathName) { > file1 = [[[uarcbundle classNamed:@"StringTable"] alloc] init]; > } > > uarcbundle seems to receive the appropriate bundle, and pathName has the > correct path to the file "StringTable.m", but when I come to the point > where file1 should get set, I get the message: > > Couldn't find UarcBundle in bundle for /Users/maklh/cbe/UarcBundle Have you actually built the bundle? It looks like you are getting the directory that your PB.project is in and expecting NSBundle to compile and load the class in. This isn't the way bundles work. You compile the classes in the bundle project and end up with a .bundle wrapper that has an object file inside with the same name. The error message is saying that NSBundle can't find the object file which actually contains the compiled code for your classes. So it looks like your UARCBUNDLE_DIRECTORY should be: /Users/maklh/cbe/UarcBundle/UarcBundle.bundle > > Any help will be greatly appreciated. > > A. Holdwick Hope this helps! -Greg --------------------- Greg Titus Omni Development Inc. toon@omnigroup.com
From: ngustilo@aol.com (NGUSTILO) Newsgroups: comp.sys.next.programmer Subject: Re: HOW TO SET A DELEGATE USING DISTRIBUTED OBJECTS? Date: 28 Jun 1995 17:54:31 -0400 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <3ssj2n$j37@newsbf02.news.aol.com> References: <3smpap$3ur@mjh.thi.nl> If setting a delegate via distributed objects "just works" then I'll give it a try. Nick Gustilo.
From: Britestar (Britestar, Inc.) Newsgroups: comp.sys.next.programmer Subject: Save Your Computer! Date: Tue, 27 Jun 1995 14:47:15 GMT Organization: Britestar, Inc. Message-ID: <3son8o$9gj@dub-news-svc-3.compuserve.com> "Save Your Computer" Surge sentry computer grade with fax/modem. four outlet surge/noise cube with two RJ-11 jacks for fax/modem line and power protection. 3 stage/line circuitry. 1 picosecond clamp response time. Emi/rfi noise rejection to 35db. UL 1449 rating at 330v. 347 joules. Max surge 11,505 amps. Lifetime warranty and power protection. Putty. 2"h x 4"w x 6.5"d. MFG# ds41psg1. Shipping weight 1.721 lbs. Price: $69.95, shipping and handling included. --------------------------------------------------------- "Repair your Computer" Computer tool kit. By Curtis. Can be used to repair maintain and upgrade virtually any microcomputer system. All tools are demagnetized. Lifetime warranty. Zipper vinyl case. Black 6"h x 9"w x 1.37"d. MFG# tk3ctf 20 piece set (l lb). Price $29.95. Shipping and handling included. MFG# tk4ctf 55 piece set (3 lbs). Price $52.99. Shipping and handling included. ----------------------------------------------------- "Super discount" Voice activated telephone recorder. By TT Systems. One button record, pause, fast forward/rewind, volume control, tape counter, cue and review, LED record light, built-in condenser mic for non-phone recording. AC or battery powered. Uses standard cassettes. Black. 1.5"h x 7"w x 4"d. MFG# vtr500tts. Shipping weight 2.28 lbs. Special price $199.95. Shipping and handling included. Save $100 dollars! Send your check or money order to: Britestar Enterprises 3701 Inglewood Ave Suite #304 Redondo Beach, CA 90278 Please list MFG# with your order. Please allow 7 - 10 days for delivery. ------------------------------------------------------- Money Manager Software "MoneyManager," from Times Publishing does virtually everything Quicken does, and even surpasses it in some respects due to a more powerful language it uses. (IBM compatible only). "MoneyManager" for Windows is the software that allows a person to take control of their personal finances by organizing, tracking and reporting income, expenses, assets, liabilities and investments on a daily basis on his PC. "MoneyManager" prints checks, pays bills and reconciles even the most complex bank statement in seconds. "MoneyManager" tracks your checking, savings, credit card and money management. You can record and categorize your expenses, compare them to budgets and know exactly where your money goes. Keep your investment of stocks, bonds and mutual funds portfolio up-to-date with "MoneyManager." Calculate and analyze your gains, losses and returns on investments and tax consequences in an instant. Thinking of buying a home? "MoneyManager" will create a home affordability analysis for you. Lease-or-buy decisions were never easier. Want to pay off that mortgage faster? It will produce amortization schedules and show you the whopping savings in interest you can realize by making small prepayments of principal. How about income statement, balance sheet, cash flow forecasts, and net worth projections? All of these are available at your fingertips with "MoneyManager." Sale price: $24.99 - Shipping and handling included. 7 - 10 days for delivery. Comes in 3 1/2 or 5 1/4 diskettes, (choose one). Send your check or money order to: Britestar Enterprises 3701 Inglewood Ave Suite #304 Redondo Beach, CA 90278 -------------------------------------------------------- Geographics GEO4000 Moving Message Color Sign, from "Geographics" Multi-color: 16 vibrant colors/hues. Displays maximum 27 characters, minimum 14 characters. 3 fonts, 4 text styles, 10 preprogrammed graphics, 46 European characters. "Magic" interface. Network up to 254 signs. 90-day memory backup. Display area: 3"H x 37.6"W. Indoor use only. Includes wireless remote, mounting brackets and adapter. 5.5"H x 39.6"W x 1.4"D. Shipping weight 11 lbs. MFG# 08386EZL. Sale price $370.50, shipping and handling included. --------------------------------------------------- "Fresh Air" "Bionaire" 2 speed personal air purifier/ionizer. Cleans air in a room 10' x 10' x 8' in 12 minutes. 2-speed, low noise, turbo system. 4 stage filtration system. Effective on tobacco smoke, pollen, dust, bacteria. Ion on/off switch. Flame retarded, injection-molded plastic casing. One year limited warranty. Black. 12.5" x 7.5" x 8"d. MFG# f7obio. Price $94.95, shipping and handling included. -------------------------------------------------------- 18 Karat Gold "Cross" 18 Karat Gold Fountain Pen. 18 Karat Gold Fountain Pen available in four 18 Karat nib widths. Piston converter included. Gift boxed. Comes with Lifetime Mechanical Guarantee. Shipping weight 1 lb. MFG# 8036bcro Broad nib MFG# 8036mcro Med. nib MFG# 8036fcro Fine nib MFG# 8036xcro X-fine nib Price $990.64, Shipping and handling included. Save $279.36. Send your check or money order to : Britestar Enterprises 3701 Inglewood Ave Suite #304 Redondo Beach, CA 90278 Please list MFG# with your order. Please allow 7 - 10 days for delivery. --------------------------------------------------------- Snail Mail Order Form Send your check or money order to: Britestar Enterprises 3701 Inglewood Ave Suite #304 Redondo Beach, CA 90278 Name: ________________________________________________________ Address: ______________________________________________________ City/State/Zip:_______________________________________________ Phone: _______________________________________________________ I've enclosed my check or money order for: "MoneyManager" software for Windows. Diskette Size: 3 1/2 ____ 5 1/4 ____ Surge sentry computer grade with fax/modem MFG# ds41psg1 Price 69.95, shipping and handling included. [ ] Computer took kit. By Curtis. MFG# tk3ctf 20 piece set (l lb) Price $29.95, shipping and handling included. [ ] MFG# tk4ctff 55 piece set (3 lbs). Price $199.95, shipping and handling included. [ ] Voice activated telephone recorder. By TT Systems. MFG# vtr500tts shipping weight 2.28 lbs. Special price $199.95. Shipping and handling included. [ ] GEO 4000 Moving Message Color Sign, from :Geographics" MFG# 08386EZL Sale price $370.50, shipping and handling included [ ] "Bionaire" 2 speed personal air purifier/ionizer MFG# f7obio. Price $94.95, shipping and handling included. [ ] "Cross" 18 Karat Gold Fountain Pen MFG# 8036bcro Broad nib [ ] MFG# 8036mcro Med. nib [ ] MFG# 8036fcro Fine nib [ ] MFG# 8036xcro X-fine nib [ ] Price $990.64. Shipping and handling included. "Never leave home to shop" A 544 page catalog, with over 12,356 name brand items, filled with office/electronic products. Names like Sony, Sharp, Magnavox, Panasonic, JVC, Packard Bell, Brother, Cobra, Toshiba, Pioneer, Casio, and over 216 others. Price $8.00, shipping and handling included. [ ] ................................ . BriteStar, Inc. . 3701 Inglewood Ave . Suite 304 . Redeondo Beach, CA . 90278 ..................................
Newsgroups: comp.sys.next.programmer From: randy@id.com (Randy Tidd) Subject: Re: Distributed Foundation Kit Objects? In-Reply-To: samschap@merle.acns.nwu.edu's message of 28 Jun 1995 19:35:33 GMT Message-ID: <RANDY.95Jun28203951@wort.id.com> Sender: randy@id.com (Randy Tidd) Organization: Intrinsic Development Corporation References: <RANDY.95Jun19013127@wort.id.com> <3spkbv$24s@www.its.com> <3ssau5$81@news.acns.nwu.edu> Date: Thu, 29 Jun 1995 01:39:51 GMT In article <3ssau5$81@news.acns.nwu.edu> samschap@merle.acns.nwu.edu (Sam Schapmann) writes: >>> I'm sure I'm missing something obvious, but I can't seem to make >>> Foundation Kit objects (in particular, NSStrings) to work as >>> distributed objects. >> >> Check out NeXTanswer #1721, "Encoding Foundation Classes with >> Distributed Objects", which deals with this particular issue. > > > And make darn sure you are using the Foundation Kit provided with EOF 1.1! > EOF 1.0 doesn't work for DO!!! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ What!?! Has this been verified?? I've been using EOF 1.0 for 8 months now, and was planning on distributing some objects using the NeXT-suggested work- around in NA #1721. Can you please be more specific about exactly how the workaround fails? Thanks. This claim isn't true, DO worked with Foundation in EOF 1.0, though there were a couple of problems. Specifically, it's possible to encode NSObject subclasses over the wire by using the "Object placeholder" technique described in NeXTanswer #1721. NSString, NSData, and NSNumber implement this technique so they can be sent bycopy with no problems (in EOF 1.0). Also, sending any object by proxy worked. One thing that didn't work in EOF 1.0 is encoding NSObjects over the wire by implementing the NXTransport protocol (DO sometimes raised an exception during the encoding). This technique isn't recommended (you should use an Object placeholder instead), though you can get it to work... First, NSObject doesn't implement the NXTransport protocol so you can't call "super" in your encodeUsing: and decodeUsing: methods. Second, objects encoded bycopy over the wire will be created with a retain count of 1 and need to be released on the receiving end; one way to do this is to return an autoreleased object from the decodeUsing: method. Again, this only works in EOF 1.1. One last problem in EOF 1.0 was there was no autorelease pool support in NXConnection's run method, so if you weren't careful, autoreleased objects (particularly proxies) were leaked. The NXAutoreleaseConnection class introduced in EOF 1.1 is intended to remedy this. Check the documentation for details. I'm currently working on an article for the OpenStep Journal about DO, there is a section in there about working with NSObjects and DO. The article is still in draft, it should be printed sometime in late August. -- Randy Tidd (randy@id.com) "Those that God wants to destroy he first makes mad."
From: pgriffin@anole (Paul A Griffin) Newsgroups: comp.sys.next.programmer Subject: Author of XText Date: 29 Jun 1995 04:33:46 GMT Organization: Internet Exchange Carrier Message-ID: <3stafa$atd@ixc.ixc.net> Reply to : pgriffin@inx.net Does someone know how to contact the author of XText0.8, Mike Dixon? I tried mdixon@parc.xerox.com but no reply occured. I have written a keyboard (i.e. N vs. I vs. H vs. S) independent version that I wish to release to the net, but want to check with him first. Sincerely Paul Griffin pgriffin@inx.net
From: samschap@merle.acns.nwu.edu (Sam Schapmann) Newsgroups: comp.sys.next.programmer Subject: NEED: Custom IB Inspector for List Object Date: 28 Jun 1995 23:27:33 GMT Organization: Orrington Investments, Ltd. Message-ID: <3ssoh5$5d0@news.acns.nwu.edu> I know one was on the TTools palette, but I can't seem to locate it anywhere. Basically, I want to be able to store an arbitrary number of objects from my nib in a List object (or NSArray, if possible). The palette would need to be compatible with EOF 1.0 Interface Builder. Before I waste time rolling my own I thought I'd ask the Net for a solution. Thanks, Sam S. (ASCII only, please)
From: rog@talisker.ohm.york.ac.uk (Roger Peppe) Newsgroups: comp.sys.next.programmer Subject: Re: Application defined events - what are they? Date: 29 Jun 1995 09:28:31 GMT Organization: The University of York, UK Message-ID: <3strnv$83m@mailer.york.ac.uk> References: <DAFJM6.Lx8@cuug.ab.ca> Wetherill (wetherij@cuug.ab.ca) wrote: > The documentation on application defined events is vague and > unclear (to me anyways). I need to find out what they are, > how they are implemented, and when they might be used. application defined events are for when you want to put a non-standard event in the event queue, one which is not understood by the Application Kit. for instance, i have used it in a place where the application is sitting in an event loop, waiting for either mouse events or a reply down a network connection from a server. the code looks something like : /* * in the object which deals with communications : */ static void incomingfn(int fd, void *data) { id obj = data; [obj incomingMessageOnFD:fd]; } /* * in init method */ DPSAddFD(connfd, incomingfn, (void *)self, 1); - incomingMessageOnFD:(int)connfd { char *msg; int len; NXEvent post; msg = get_message(connfd, &len); /* read the message from the connection */ post.type = NX_APPDEFINED; post.ctxt = DPSGetCurrentContext(); /* it doesn't work without this! */ /* * could set data.compound.subtype here to indicate the type * of the message (if we had more than one type) */ post.data.compound.misc.L[0] = (long)msg; post.data.compound.misc.L[1] = len; DPSPostEvent(&post, YES); /* put it at front of queue */ return self; } /* * in the object which is dealing with the event loop */ /* * the event loop waiting for mouse events * and incoming message events */ for (;;) { NXEvent *ne; char *msg; int len; ne = [NXApp getNextEvent:(NX_APPDEFINEDMASK | NX_MOUSEDRAGGEDMASK | NX_MOUSEUPMASK) waitFor:NX_FOREVER threshold:NX_MODALRESPTHRESHOLD]; switch (ne->type) { case NX_APPDEFINED : msg = (char *)ne->data.compound.misc.L[0]; len = ne->data.compound.misc.L[1]; /* handle message here */ break; case NX_MOUSEDRAGGED : .... handle other event types } } N.B. the ctxt field of the NXEvent record must be set for the event to be retrievable from the event queue. this doesn't seem to be documented; i worked it out be trial & error, so could easily be wrong about this. somebody please correct me if i am. hope this helps, cheers, rog.
From: cadilhac@arles (Nicolas Cadilhac) Newsgroups: comp.sys.next.programmer Subject: drawing in a view : not that easy Date: 29 Jun 1995 11:17:57 GMT Organization: Universite de Rennes 1, France Message-ID: <3su255$fc@news.univ-rennes1.fr> Hi, I have a view with a lot of things drawn in it. I want to move a vertical line in it as a cursor without drawing again all the view. Is there a method (compositing for example) to do this : draw the line and when the mouse moves, redraw what was under the line and draw the line where the mouse was moved. Thank you for any help.
From: "Howard M. Swope III" <hswope@omni.voicenet.com> Newsgroups: comp.os.msdos.programmer,comp.os.ms-windows.programmer.graphics,comp.os.os2.programmer.misc,comp.os.ms-windows.programmer.win32,comp.sys.amiga.graphics,comp.sys.amiga.programmer,comp.sys.ibm.pc.programmer,comp.sys.mac.programmer.codewarrior,comp.sys.mac.programmer.misc,comp.windows.open-look,comp.windows.x.motif,comp.windows.x.intrinsics,comp.windows.x,comp.sys.next.programmer Subject: Re: Graphical coordinate system Date: 29 Jun 1995 13:11:51 GMT Organization: HMS Designs Distribution: inet Message-ID: <3su8qn$gpb@news.voicenet.com> References: <dmenchac-2806951249250001@manteca.mv.us.adobe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I think the way windows implements its coordinate mapping is kind of neat. The coordinate system is determined by the mapping mode. You can then use different coordinate systems for different tasks. It's versatile anyway. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~ Howard M. Swope III ~ ~ HH HH MMMM MMMM SSSSSSSS ~ ~ ~ HH HH MM MM MM MM SS ~ hswope@omni.voicenet.com ~ ~ HHHHHHHH MM MM MM SSSSSSSS ~ ~ ~ HH HH MM MM SS ~ HMS Designs ~ ~ HH HH MM MM SSSSSSSS ~ Software Design & ~ ~ DESIGNS ~ Microcomputer Services ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: korp@dis.anl.gov (Peter Korp) Newsgroups: comp.sys.next.programmer Subject: Equation for alpha computations Date: 29 Jun 1995 17:46:09 GMT Organization: Decision and Information Sciences, Argonne National Lab Distribution: world Message-ID: <3suot1$nlg@atlantis.dis.anl.gov> A while ago someone, I think it was Scott Byer, posted the equation for compositing a source and destination with alpha in the RGB domain. I have since missplaced it and am hoping someone could send me another copy. Thanks, Peter --- Peter A. Korp Assistant Scientist Argonne National Laboratory peter_korp@anl.gov
Date: 29 Jun 1995 16:01:41 GMT From: Britestar (Britestar, Inc.) Message-ID: <cancel.3son8o$9gj@dub-news-svc-3.compuserve.com> Newsgroups: comp.sys.next.programmer Subject: cmsg cancel <3son8o$9gj@dub-news-svc-3.compuserve.com> Control: cancel <3son8o$9gj@dub-news-svc-3.compuserve.com> Spam cancelled by clewis@ferret.ocunix.on.ca
From: pisul_cj@cowley.uwlax.edu (Charles Pisula S92) Newsgroups: comp.sys.next.programmer Subject: Re: drawing in a view : not that easy Date: 29 Jun 1995 21:30:46 GMT Organization: University of Wisconsin - La Crosse Message-ID: <3sv626$7pc@alfred.acs.uwlax.edu> References: <3su255$fc@news.univ-rennes1.fr> In article <3su255$fc@news.univ-rennes1.fr> cadilhac@arles (Nicolas Cadilhac) writes: > Hi, > > I have a view with a lot of things drawn in it. I want to move a vertical line in it as a cursor > without drawing again all the view. Is there a method (compositing for example) to do this : > draw the line and when the mouse moves, redraw what was under the line and draw the > line where the mouse was moved. > > Thank you for any help. This is a simple example for making a cursor for a view. Note that there is a 16 X 16 image named CrossHair.tiff which is used as the new cursor. @implementation TrackingGraphView - setMyTrackingRect:(BOOL)flag { NXRect visible; if(trackingRect) { [window discardTrackingRect:trackingRect]; trackingRect = 0; } if(flag) { if ([self getVisibleRect:&visible]) { [self convertRect:&visible toView:nil]; [window setTrackingRect:&visible inside:NO owner:self tag:1 left:NO right:NO]; trackingRect = 1; } } return self; } - awakeFromNib { NXPoint hotSpot; [super awakeFromNib]; cursor = [ [NXCursor alloc] initFromImage: [NXImage findImageNamed: "CrossHair"] ]; hotSpot.x = 8.0; hotSpot.y = 8.0; [cursor setHotSpot:&hotSpot]; [self setMyTrackingRect: YES]; return self; } - resetCursorRects { NXRect visible; if([self getVisibleRect:&visible]){ [self addCursorRect:&visible cursor:cursor]; } return self; } @end for more help, look up the explanation of these methods in the documentation. Hope this helps. -- Chuck. ------------------------------------------------- Steve Jobs quote From UnixWorld, April 1993 "If we give people an alternative to Microsoft... it will have been a greater good." ------------------------------------------------- ***
From: martin@mamba.cs.unm.edu (Martin Mueller) Newsgroups: comp.sys.next.programmer Subject: Long long, how to print? Date: 21 Jun 1995 06:54:08 GMT Organization: The University of New Mexico, Department of Computer Science Sender: news@mamba.cs.unm.edu Message-ID: <DAIGFK.KBH@mamba.cs.unm.edu> NeXT has built in a long long 64 bit data type, unsigned long long big_unsigned = 0xffffffffffffffffULL; How can I print and scan such a number (printf, scanf, NXPrintf, ...) ? Thanks, -- Martin, -------------------------------------------------------------------- Martin Muller, Computer Science Department, University of New Mexico
Newsgroups: comp.sys.next.programmer From: sab@cbebl1.cb.att.com (Shawn A. Beachy x2313) Subject: file locking problems on Mach Message-ID: <DAyDKp.5pp@nntpa.cb.att.com> Sender: news@nntpa.cb.att.com (Netnews Administration) Organization: AT&T Bell Laboratories, Columbus Distribution: usa Date: Thu, 29 Jun 1995 21:12:25 GMT I've been having problems doing file locks using fcntl() on Mach (NextStep 3.3). Has anyone else had any such problems? Does someone out there have it working and could share some tips on what they've done? Here's the code: { struct flock flk; flk.l_type = F_WRLCK; flk.l_whence = 0; flk.l_len = 0; flk.l_start = 0; fcntl(fd, F_SETLKW, &flk); // returns -1, errno == EINVAL } Thanks in advance for any help. -- Shawn Beachy AT&T Bell Laboratories shawn.beachy@att.com Columbus, OH
Newsgroups: comp.sys.next.programmer From: wgilbert@uwaterloo.ca (Will Gilbert) Subject: NXCustomImageRep? Message-ID: <DAxuDE.uv@undergrad.math.uwaterloo.ca> Sender: news@undergrad.math.uwaterloo.ca (news spool owner) Organization: University of Waterloo Date: Thu, 29 Jun 1995 14:17:37 GMT Does anyone know of any examples of the use of the NXCustomImageRep in sources on the archives? Is it possible to get pointers to the data in NXCustomImageRep as the methods data and getDataPlanes: do for NXBitmapImageRep? -- ******************************************************** Will Gilbert, Pure Math Dept, Univ of Waterloo, Canada http://math.uwaterloo.ca/~wgilbert/ wgilbert@uwaterloo.ca
Newsgroups: comp.sys.next.programmer From: chris@aptime.fdn.org Subject: Re: How to Create a Library? Message-ID: <DAxsxx.4pF@aptime.fdn.org> Sender: usenet@aptime.fdn.org (News Operator) Organization: C3iS - APTIME // Paris, France References: <3snl9b$g3i@zip.eecs.umich.edu> Date: Thu, 29 Jun 1995 13:46:45 GMT In article <3snl9b$g3i@zip.eecs.umich.edu> hyongsop@dip.eecs.umich.edu (Hyong Sop Shim) writes: > Hi all, > > As the title of the post indicates, I need an instrucion on how to > create a library of object modules. I have a set of custom palettes > that I want to make into a library (after getting tired of copying the > source code around for each project that uses the palettes). The on-line > documentation on ProjectBuilder contains information on creating NXBundles, > but I'm not sure if bundles are what I'm looking for. > > Any instructions on building a library of object modules or on where to > get relevant information would be greatly appreciated. > > Thanks a lot. > > --Hyong > (hyongsop@eecs.umich.edu) Bundles are not what you need because it s a bit like dynamic libraries. If you are using NS 3.3, you can create a library project. If you don t, have a look at the libtool program which can put together some .o files into a library. (see next developper documentation or man pages). -- Christophe Dore (chris@aptime.fdn.org NEXTMAIL & MIME OK)
Newsgroups: comp.sys.next.programmer From: chris@aptime.fdn.org Subject: Re: HOW TO SET A DELEGATE USING DISTRIBUTED OBJECTS? Message-ID: <DAxupo.4t1@aptime.fdn.org> Sender: usenet@aptime.fdn.org (News Operator) Organization: C3iS - APTIME // Paris, France References: <3smdc5$rdj@newsbf02.news.aol.com> Date: Thu, 29 Jun 1995 14:25:00 GMT In article <3smdc5$rdj@newsbf02.news.aol.com> ngustilo@aol.com (NGUSTILO) writes: > Hi, I am trying out distributed objects and am wondering if it is possible > to set a local object as the delegate for a distributed object? For > example, I have a distributed object (myDO) that allows you to set its' > delegate using [myDO setDelegate:objectName]. Using distributed objects > can I use a local object (myLocalObject) as myDO's delegate (i.e. will > [myDO setDelegate:myLocalObject] work?). Any help on this subject would > be appreciated. > > Nick Gustilo In your example, if myDO is in fact a proxy, you shouldn t have any problems. The application that owns myLocalObject will send to the real object that myDO points to a proxy on myLocalObject. So myDO will have for delegate a proxy on myLocalObject. Now, consider two things : 1) there are two ways to build the delegate mechanism, I mean to send to the delegate messages for which it has implemented methods : a) test with respondsTo: before sending the message, b) build a category of Object (and/or NSObject in 3.3) that implements the standard behavior of a delegate. In this case a delegate always responds to the message, wether you have written a method it or not. 2) a proxy nearly responds to nothing. So if the myDO real object has built its delegate mechanism in the a) way, myLocalObject will never receive any of the delegate s message. -- Christophe Dore (chris@aptime.fdn.org NEXTMAIL & MIME OK)
From: danno@maui.com (Dan Bigelow) Newsgroups: comp.sys.next.programmer Subject: QUEST: Generating raw g3 fax data from PS files? Date: 28 Jun 1995 21:36:25 GMT Organization: Maui Research and Technology Center Sender: danno@waena.mrtc.maui.com Message-ID: <3ssi0p$uq@kahu.mrtc.maui.com> Hi, after mucking around with some cool fax utils, I'm at the point where in order to generate the raw faxable image data, I've got to build or install the ghostscript package. Not a bad chore, but it seems rather tragic to have to do this when a perfectly good PS rasterizing engine already exists on the machine... Question, is there a command line util that will let me : cat file.ps | some_cool_next_cmd -cool_g3_output > outfile.g3 Having perused/grep-d the FAQ for what seems a common want, I'm at a loss and downloading 'gs'. Save me from this path! I did find the 'faxPScode' and related appkit calls, but none seem to really generate the g3 files or data stream, they generate different PS data with fax related headers that get handled later... any tips here might help too. enscript/transcript? save to tiff and convert? fake a printer ppd file and send it to a file for further processing? call a next program like I feel like "it's RIGHT THERE", but I can't see it... cheers, --danno@maui.com
From: Mike Hostetter <Michael_Hostetter@JHUAPL.Edu> Newsgroups: comp.sys.next.programmer Subject: Help - Modifying a TIFF in a View ... Date: 30 Jun 1995 12:48:20 GMT Organization: JHU/Applied Physics Laboratory Message-ID: <3t0rqk$qft@aplinfo.jhuapl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Michael_Hostetter@JHUAPL.Edu NeXTperts, I have a .tiff image that I am loading into an NXImage inside a View. It displays just fine, but I want to draw some filled circles on it and then save it to file as a .tiff. Currently, I can draw the circles using PS calls, but all I can save to file is the original .tiff NXImage data. I have had no luck with compositing a .eps file either -- it doesn't draw the image 'correctly' after I resize it, and it doesn't save even the 'wrong' image (just the base image). Any help would be greatly appreciated! Mike Hostetter (Michael_Hostetter@JHUAPL.Edu)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.