🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1256

Window's order

#1256
From: Robert D. Nicholson
Date: Fri, 21 Aug 1992 08:21
25 lines
976 bytes
I wish to only make a window order front if it 
is not already at the front.  I tried this.

- makeKeyAndOrderFront:sender
{
		/* only bring to front if not already at front */
		
	unsigned int windowNumber;
	int frontWindowNum;
	int localWindowNum;
			
	localWindowNum = [window windowNum];
	if (localWindowNum > 0) {
		NXConvertWinNumToGlobal(localWindowNum, &windowNumber);
 		PSfrontwindow(&frontWindowNum);
 	  
 		if (frontWindowNum != windowNumber) {
 			[window orderFront:sender];
  		}
	} else {			
	    [window orderFront:sender];
	}
			
	return self;
}
Technical Details
Message-ID: <1992Aug21.082146.10555@monu6.cc.monash.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!ede978e

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!ede978e
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: Window's order
Message-ID: <1992Aug21.082146.10555@monu6.cc.monash.edu.au>
Summary: [window orderfront]
Organization: Monash University, Caulfield Campus
Date: Fri, 21 Aug 1992 08:21:46 GMT
Lines: 28