HDTenEightyP/NetNews huggingface dataset:
From: mjh@kronecker.mit.edu (Michael J. Hopkins)
Subject: Re: IB question
Organization: MIT Department of Mathematics, Cambridge, MA
Date: Tue, 26 Jan 93 15:27:09 GMT

In article <C1DrH3.FC6@ms.uky.edu> kevins@slow.inslab.uky.edu  writes:
>Michael J. Hopkins writes

< stuff deleted about the problem:
	Place an image in an app.
	Remove the image, and replace it with a new one with the same name
		(say you wanted to make some modifications)
	IB still shows the old image, and will not let you
		replace it with the new one.
>

>-> I guess my question is:  How can I delete an image from a .nib file?
>-> -----------------------------------


>
>Yes, this appears to be a big pain in the ass. The only thing I've found  to do  
>is remove the image from ProjectBuilder and it should be removed from IB. Then  
>simply add it again. This seems to suck.
>
>Anyone else have any ideas?
>
> 
>--
>_______________________________________________________________________________
>                        I'll cross my heart and hope to die
>                        but the needle's already in my eye.
>_______________________________________________________________________________
>	
>	Kevin Solie

This doesn't seem to work.  Even if you remove the image with PB,
Interface Builder will not let you add another image with the same name.
Adding the image in Project Builder only places the .tiff file in the
project directory.  The copy in the .nib file remains unchanged.

I suppose one could edit the .nib file by hand...

One last thing.  Ed (support@gateway.vvi.com) (sorry Ed, you didn't
send me your last name, and I can't seem to 'finger' you right now)
pointed out that if you replace the file, and go ahead and build the app
then the correct image will be placed in the application.  Only IB will
display the old one.
-- 
-----------------------------------
Mike Hopkins
mjh@math.mit.edu
-----------------------------------
From: xepo@csd4.csd.uwm.edu (Scott R Violet)
Newsgroups: comp.sys.next.programmer
Subject: Checking if someone is at the console
Date: 26 Jan 1993 23:11:49 GMT
Organization: Computing Services Division, University of Wisconsin - Milwaukee
Distribution: usa
NNTP-Posting-Host: 129.89.7.4
Originator: xepo@csd4.csd.uwm.edu


Hi,
	I noticed that a few people have asked for this code over the
years.  So, below is a short snippet that will check to see if a given
user is at the console.  Just compile it, and then run it, and then
type in the users name.  It probably isn't the most elegant way to do
it, but it works.


#include <stdio.h>
#include <utmp.h>
 
#define		ATCONSOLE	1
#define		FAILED		2
#define		NOTATCONSOLE	3
 
#define		MAXNAME		12
 
find_user(char *name)
{
  struct utmp ubuf;
  FILE *fd;
 
  if ((fd = fopen("/etc/utmp", "r")) == NULL) {
    perror("Can't open /etc/utmp");
    return (FAILED);
  }
  while (fread((char *) &ubuf, sizeof ubuf, 1, fd) == 1) {
    if(strncmp(ubuf.ut_name, name, sizeof(ubuf.ut_name)) == 0 &&
       strcmp(ubuf.ut_line, "console") == 0)
      return ATCONSOLE;
  }
  return NOTATCONSOLE;
}
 
main() {
  char *loginName;
  loginName = (char *)malloc(sizeof(char) * MAXNAME);
  scanf("%s", loginName);
  if(find_user(loginName) == ATCONSOLE)
    printf("%s is at the console.\n", loginName);
  else
    printf("%s is not at the console.\n");
}
-- 

		-Scott Violet (xepo@csd4.csd.uwm.edu)
Newsgroups: comp.sys.next.programmer
From: wick@stone.com
Subject: Re: RGB Values of "NeXT Help Blue"
Reply-To: wick@stone.com
Organization: Stone Design Corp
Date: Tue, 26 Jan 1993 20:19:21 GMT

In article <1993Jan26.180924.278@stone.com> bbum@stone.com writes:
> In article <1993Jan26.010722.7575@strangeways.unh.edu>  
> tjb@strangeways.unh.edu (Thomas J. Baker) writes:
> > 
> > Hello,
> > 
> > Does anyone know the exact rgb values of the blue that NeXT uses in their  
> help  
> > panels (like for Mail)?  It has the quality of being blue on color  
machines  
> and  
> > pure light grey on monochome ones.  
> > 
> > Thanks,
> > tjb
> 
> Nope-- but it is easy to figure out;  launch Mail, open Help, click  
> Format->Font->Colors...., grab the magnifying glass, grab a chunk of blue,  
> switch to the RGB color picker and read the numbers:
> 
> (R 51, G 68, B 136)

To be anal, it is (R 68, G 51, B 136), assuming that you want the color of  
blue for their text.

> 
> 
> > --
> > =====================================================================
> > | Thomas Baker        Director of the New Hampshire NeXT User Group | 
> > | P.O. Box 213           Internet/NeXTmail: tjb@strangeways.unh.edu |
> > | Durham, NH 03824                   Voice: (603) 743-4987          |
> > =====================================================================
> -- 
> <bbum@stone.com>   | "I ride tandem with the random...
> Stone Design Corp  |   ...things don't run the way I planned them."  
p.gabriel

wick@stone.com
-- 
Peter Wickersham  |    "whatever you do                     
Stone Design      |                  take care of                      
wick@stone.com    |                            your shoes"   phish                       
Newsgroups: comp.sys.next.programmer
From: drew@fnbc.com (Drew Davidson)
Subject: Re: Printing headers and footers with the Text object
Reply-To: drew@fnbc.com
Organization: First National Bank Of Chicago, Chicago IL, USA
Distribution: na
Date: Thu, 21 Jan 93 15:54:48 GMT

In article <C16LKo.KG7@oceania.com> chris (Chris Larson) writes:
> As described, I need to be able to take a Text object and print it with  
headers and  
> footers.  The Text (View) object gives you some access to the PS stream that  
is being  
> created (via the beginSetup, endSetup, etc. methods), and I need to to  
determine if  
> headers and footers can be inserted into the PS stream using this approach.
> 
> I have to believe someone has tried this or thought about it. Any takers?

The way that I would solve this is to make a View subclass that has the Text as  
a subview.  The view that you create should be the size of the current paper  
type selected, etc. (see Draw example code for how to get the PrintInfo object  
to obtain this info), make room for your headers and footers, then install the  
Text as a subview.  Voila!


> Chris
> -- 
> Chris Larson  <==>  chris@oceania.com  <==>  NeXT Mail is cool
> Oceania Health Care Systems                      Palo Alto, CA
> The Software Ranch                               Park City, UT

--
+--------------------------------+-------------------------------------------+
|        Drew  Davidson          | "Never ask a programmer if he'll have     |
|         Software Guy           |  another cup of coffee because it's       |
| First National Bank of Chicago |  nobody's damn business how much he's     |
|     drew@fnbc.com  (NeXTmail)  |  already had!"       - me                 |
+--------------------------------+-------------------------------------------+
From: izumi@pinoko.berkeley.edu (Izumi Ohzawa)
Newsgroups: comp.sys.next.programmer
Subject: Re: RGB Values of "NeXT Help Blue" -- NOT 12-bit pure !
Date: 28 Jan 1993 12:04:39 GMT
Organization: University of California, Berkeley
Distribution: world
Reply-To: izumi@pinoko.berkeley.edu
NNTP-Posting-Host: moica.berkeley.edu

In article <1993Jan27.211500.1479@pages.com> bwebster@pages.com (Bruce F. Webster) writes:
>In article <1k3072$j8n@agate.berkeley.edu> izumi@pinoko.berkeley.edu (Izumi  
>Ohzawa) writes:
>> R=0.2000, G=0.26667, B=0.60000

>dividing it by 255).  So, for example, on my system, the shade of blue used in  
>the text in Mail's Help panel is: R = 51, G = 68, B = 136 (which, by the way,  
>gives me B = 0.5333 instead of 0.6000; is there something I'm doing wrong,  
>Izumi?).  ..bruce..


Actually, on a closer examination,  Mail's Help Panel text color gets
dithered on Color Station.  There are actually two kinds of pixels
(RGB) = (51, 68, 136) and (RGB) = (51, 68, 153).  The former gives
B=0.5333 and the latter gives 0.6.  So, it's not a 12-bit pure color.
You've got to pick the color on a NeXTdimension to get the correct
information.

But there are more pixels of the latter in a unit area, though :->


--
Izumi Ohzawa             [ $@Bg_78^=;(J ]
USMail: University of California, 360 Minor Hall, Berkeley, CA 94720
Telephone: (510) 642-6440     Fax:  (510) 642-3323
Internet: izumi@pinoko.berkeley.edu (NeXTMail OK)
Newsgroups: comp.sys.next.programmer
From: woo@ornl.gov (John W. Wooten)
Subject: Looking at matrix of buttons?
Reply-To: woo@ornl.gov
Organization: Oak Ridge National Laboratory
Date: Thu, 21 Jan 1993 14:02:49 GMT

I've created a matrix of radio Buttons that is
5 by # of processes.  For each process, one of the five
buttons will be selected.

I want to tabulate the number of button 1's, button 2's, etc.
and to also check a given process to see which button is selected.

All I see are selectedCol and selectedRow which give me the last Col or  
row in the entire matrix.  I'm looking for a way to check for each row,  
which column is selected.

Any ideas?  (simple is better)

- - - - - - - - -
J. W. Wooten
Newsgroups: comp.sys.next.programmer
From: pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz)
Subject: NXBundles and external libraries
Organization: Stanford Linear Accelerator Center
Date: Thu, 21 Jan 1993 05:49:11 GMT

   I would appreciate advice on how to best handle the following 
situation...

   I have a large body of code with nibs which I've encapsulated in to
a NXBundle.  The code makes calls to an external library package.  The
purpose of the bundle is so that a number of other applications can
load this bundle rather than compiling and linking their own copies of
the source code.  These other applications also link against the same
external library, but far fewer members of the library.

   The problem is how do I get all the external references from the 
library resolved at run time and yet get the application to build.
That is, if the application links against the external library, it
only pulls out a few members and when the bundle loads, there will
be many missing external symbols.   When I build the bundle I could
include the library, but then I'll get duplicate segment problems.

   The two ideas I have to solve this problem; which might also help
clarify what I'm talking about, are the following...

- Method 1:
	o force the loading of the entire library into the bundle.
	o don't link the Application against the library.
	o tell the linker with the -U option to ignore the few undefined
	  symbols when building the application.
	o Make sure that the application loads the bundle before attempting
	  to use any functions in the library.

The bundle needs the entire library anyway, so the first item is not 
a problem.   Asking each application builder to list their references
to the library via the -U mechanism is rather unpleasant.

- Method 2:
	o don't load the library with the bundle.
	o force the loading of the entire library in the application
	  with the -all_load option of ld

'-all_load' option seems to work on all libraries, so I'll have to take
extra steps so it applies only to this one library.

   I think method 2 makes more sense, but haven't tried it yet.   But
I'm wondering if I'm missing an even better mechanism to accomplish
this.   Any suggestions?
--
Paul F. Kunz	pfkeb@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: esky@marathon.cs.ucla.edu (Eskandar Ensafi)
Subject: Shared Libraries
Keywords: shared library libraries object
Reply-To: esky@marathon.cs.ucla.edu
Organization: UCLA, Computer Science Department
Date: Mon, 25 Jan 93 17:02:00 GMT

Hi,

How do you add your own objects to or create shared libraries?  I intend to  
modify some NeXT objects sych as NXSplitView and wanted to know if there is a  
way to load my own objects into memory or to replace the ones in the NeXT  
AppKit shared library.  So far, it seems as if only the AppKit is shared among  
applications while all other custom objects are compiled into the application's  
binary.  So if you can PLEASE REPLY BY E-MAIL, I want to know:

1) How to create or add to/modify the shared libraries
2) How to load an object into memory


Eskandar
From: John-Z@cup.portal.com (John Michael Zollinger)
Newsgroups: comp.sys.next.programmer
Subject: Indexing Kit Examples?
Date: Sat, 23 Jan 93 09:13:06 PST
Organization: The Portal System (TM)

Being a newbie to NeXT programming the Indexing kit examples aren't much help.
Are there any more examples on using the Indexing Kit out there?  I am looking
for somthing that does somthing along the lines of:
1. add data to an indexed list (elements are simple structures)
2. save data to disk
3. recall data from disk
4. find an element that matches a key and update that record.
  
Thats it.  This would help me greatly in getting started with this potentially
very powerful object(s).  Thanks a lot.                          

John Zollinger
john-z@cup.portal.com
Newsgroups: comp.sys.next.programmer
From: fud@leland.Stanford.EDU (Fred Lide Cheng)
Subject: NXBrowser - How to use?
Organization: DSG, Stanford University, CA 94305, USA
Date: Thu, 28 Jan 93 19:31:52 GMT

another question from a NeXT beginner.  I'm trying to use an NXBrowser
to display the titles of a list of objects.  I want the program to 
start with nothing in the list and as the user adds objects, the NXBrowser
should display their titles.   According to the documentation, I'm 
supposed to create a matrix of NXBrowserCells and a delegate is supposed
to fill in the cells whenever browser:fillmatrix:inColumn or something
like that is called.  The delegate should do this by sending the message addRow
to the matrix.  I
From: austin@cs.usask.ca (Alvin Austin)
Newsgroups: comp.sys.next.programmer
Subject: Re: Sam Leffler TIFF library - Where is it?
Date: 27 Jan 1993 19:37:14 GMT
Organization: University of Saskatchewan
Distribution: world
NNTP-Posting-Host: after.usask.ca

In article <1k6iqtINNgnn@access.usask.ca> austin@cs.usask.ca (Alvin  
Austin) writes:
> Can anyone point me to the location of the Sam Leffler
> TIFF library. ...

Found! Thanks to Barry Lustig <barry@ictv.com> for the quick
tip:

> ftp to sgi.com.  It is in /graphics/tiff.

---------
Alvin Austin
austin@cs.USask.Ca
University of Saskatchewan, Saskatoon, SK Canada
Newsgroups: comp.sys.next.programmer
From: cs4gp6aa@maccs.mcmaster.ca (Appavoo      J)
Subject: GNU - gcc2.3.3
Organization: Department of Computer Science, McMaster University
Date: Tue, 26 Jan 1993 02:17:15 GMT

Can anyone tell me where I can get the lates version of gcc (2.3.3???)
and the libs to compile c and c++.  Thanks very much.

                             Jonathan
                                Appavoo.
(I assume it comes with a new make facility I am have had problems with
the version of make that comes with the NeXT)

Organization: Sponsored account, Mathematics, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.sys.next.programmer
Date: Fri, 22 Jan 1993 20:29:38 -0500 
From: David Apfelbaum <da0g+@andrew.cmu.edu>
Subject: DBTableView bugs??



Working with the DBTableView delegate messages:

- (BOOL)tableViewWillChangeSelection:aTableView
and
- tableViewDidChangeSelection:aTableView


    As I mentioned before, returning a value of NO from
tableViewWillChangeSelection will result in the Window being left in a
disableFlushWindow mode.  (Window's "Display" is not affected, however
the Appkit documentation concerning the isDisplayEnabled message is
incorrect -- like a large number of other mistakes in the docs -- looks
like someone did a careless cut&paste job creating them...)

    An additional problem has shown up in that not every YES-returning 
"Will" message is followed by a corresponding "Did" message.  And
"Will"s that return NO ARE (sometimes) followed by a "Did" message...

    More critically for me, if you use a NXRunAlertPanel() inside the
"Will" message, the DBTableView object seems to 'halt' and wait for the
next mouse-down event.  (I get the disk-busy-please-wait icon
indefinitly.)  Upon receiving this, the DBTableView instance finishes
what it was doing...  (ie, the "Did" message, or secondary fetches for
other (connected) dbModules.)  Occasionally, this second mouse-down will
cause the DBTableView to change rows again, or (much more rarely) to
core dump, even though the mousedown event location is well outside of
the DBTableView.  Also, the mouse-down event continues to get processed
by whatever object was under it.. ie textfield, button, etc...
    My attempts to alleviate this where hopeless.  The DBTableView is
not lockFocus'ed in any way.  (Nor in any subView.)  PSgsave/PSgrestore
and PSsave/PSrestore did not help.  My instinctive guess from this is
that pressing a button on the Alert Panel modifies the event-queue in a
manner that upsets DBTableView.  But that's just a guess...  (Anyone
have the source so we could find out?)

Lastly, and rather irritatingly, if you return NO from the "Will"
message, you would think that that would prohibit the DBTableView from
changing rows...  BUT, if you drag the mouse instead of just a pressing
& releasing the mousebutton, you can select which row you want BEFORE
the "Will" message is sent (thereby changing the row).



Anyway, words to the wise -- & has anyone else been able to generate any
of these bugs???


(For what it's worth, I still love the object & it's UI -- It's just
that my head is getting too bloody to see the screen...  ;-)


        -David.




P.S>  For those of you who are wondering how I'm coping with it all:  I
maintain an instance variable to communicate to "Did" whether "Will"
said YES or NO.  If they're going to lose data, "Will" now always
NXBeeps() and returns NO.  If they want to overide it, they can drag the
mouse.   (And I'm billing it all as a "feature" to the commissioners. 
;-)))
From: bwebster@pages.com (Bruce F. Webster)
Newsgroups: comp.sys.next.programmer
Subject: Re: RGB Values of "NeXT Help Blue"
Date: 27 Jan 93 21:15:00 GMT
Reply-To: bwebster@pages.com
Organization: Pages Software Inc.

In article <1k3072$j8n@agate.berkeley.edu> izumi@pinoko.berkeley.edu (Izumi  
Ohzawa) writes:
> In article <1993Jan26.010722.7575@strangeways.unh.edu>  
tjb@strangeways.unh.edu (Thomas J. Baker)  
> writes:
> >
> >Does anyone know the exact rgb values of the blue that NeXT uses in their  
help  
> >panels (like for Mail)?  It has the quality of being blue on color machines  
and  
> >pure light grey on monochome ones.  
> 
> R=0.2000, G=0.26667, B=0.60000
> or
> H=0.6388, S=0.66667, B=0.60000
> or
> C=0.8000, M=0.73333, Y=0.40000, K=0
> 

As a more general solution, if you're wondering about the color of something,  
bring up a color panel (in Mail, it's in Format/Font/Colors...) grab the  
magnifying tool, move it over the color you want, then click. That color is now  
in the main well of the panel. Now use the settings subpanel to read the RGB  
(or CMYK or HSB) values of that color (remembering to normalize the value by  
dividing it by 255).  So, for example, on my system, the shade of blue used in  
the text in Mail's Help panel is: R = 51, G = 68, B = 136 (which, by the way,  
gives me B = 0.5333 instead of 0.6000; is there something I'm doing wrong,  
Izumi?).  ..bruce..

-------------------------------------------------------------------------------
Bruce F. Webster             | No! I am not Bill Gates, nor would I want to be;
Chief Technical Officer      | I'd rather parse the fish than own the knife;
Pages Software Inc           | (Imagine! Having moby bux but chained
bwebster@pages.com           | to forty million lusers, what a life...)
#import <pages/disclaimer.h> |     -- Jeff Duntemann
-------------------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer
From: cmumford@iat.holonet.net (Chris Mumford)
Subject: Re: How do I tell a text Form to select the next text cell?
Organization: HoloNet National Internet Access BBS: 510-704-1058/modem
Distribution: usa
Date: Sat, 23 Jan 1993 16:16:28 GMT

Can you link the fields so that when the user hits the tab key they
automatically get selected?
Newsgroups: comp.sys.next.programmer
From: mshaler@tdocad.sps.mot.com (Michael Shaler)
Subject: Re: array of id's ? Palette'ized objects
Date: Fri, 29 Jan 1993 03:27:59 GMT
Distribution: usa
Reply-To: mshaler@tdocad.sps.mot.com
Organization: Nippon Motorola Ltd., Tokyo, Japan

Ron Pomeroy x(Coop) writes
     
     Sounds like a job for a List (as in the List class in the Appkit).
     
     	As far as palette'izing objects goes...me thinks someone reciently 	uploaded an example of doing just that to sonata (something like 
	ObjectPalette.tar.Z ??)

This is exactly the stuff and it works, or rather, It Just Works...     
     --
     Ronald Pomeroy		"The Internet is just a giant petri dish"
     Advanced Micro Devices
     CAM Applications Group
     rpomeroy@aunext1.amd.com (NeXTmail preferred)

Well, maybe a virtual giant petri dish... Gaia digitized?

---
Michael Shaler
Tokyo Design Center
Nippon Motorola Ltd.
+813 3280 8245 voice
+813 3440 0033 fax
From: mezzino@poincare.cl.uh.edu (Mike Mezzino)
Newsgroups: comp.sys.next.programmer
Subject: DBFormatter Example
Date: 27 Jan 1993 20:47:28 GMT
Organization: University of Houston
NNTP-Posting-Host: poincare.cl.uh.edu

Does anyone have a good example of using DBFormatter to format the output to a  
column in a DBTableView? Something traditional like formatting a phone number  
or a date will would be fine.

Mike Mezzino
University of Houston - Clear Lake
mezzino@poincare.cl.uh.edu
Newsgroups: comp.sys.next.programmer
From: becker@informatik.uni-hamburg.de (Ulrich Becker)
Subject: Re: Passing Stream Data between Client and Server?
Reply-To: becker@informatik.uni-hamburg.de
Organization: University of Hamburg, FRG
Date: Fri, 22 Jan 93 11:16:01 GMT

In article <1993Jan18.203809.6077@ornl.gov> woo@ornl.gov (John W. Wooten) writes:
> [Problem description]
>
> The problem is that NXStreams can't be used between proxy objects since  
> the size of the NXStream can't be determined.  The information can't be  
> passed as char * since there are imbedded nulls.
> 

Why not use bit/byte stuffing?

--

Ulrich Becker

Becker@informatik.uni-hamburg.de
Newsgroups: comp.sys.next.programmer
From: jmw@jmwnext.c3.lanl.gov (Jim White)
Subject: How do I miniaturize another Apps window
Organization: Los Alamos National Lab
Date: Wed, 27 Jan 1993 21:05:47 GMT

I want to be able to miniaturize a window that belongs to another  
application.  I know the application's name and (I think) the name of the  
window that I want to miniaturize.  Any help would be greatly appreciated.
			Jim White
			Los Alamos National Lab