🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to add Controls to an app's icon

#1168
From: Roberto Arrocha
Date: Sat, 15 Aug 1992 16:11
27 lines
1100 bytes
The subject field pretty much sums it up. I would like to add Control  
objects to the app icons (ala Engage!).

I've been able to display the Control objects, but cannot get them to  
respond to mouse events on them (i.e. clicks). Can anyone help?

- setInterface
{
	id contentView;
	
	iconWindow = [NXApp appIcon];
	contentView = [iconWindow contentView];
	/* controlsMatrix is Matrix of Buttons */
	[contentView addSubview:controlsMatrix];
	[contentView addSubview:counterField];
	[iconWindow setDelegate:self];
	[iconWindow display];
	[accesoryWindow free];
	return self;
}


Thanks.

-- 
Roberto
NeXTmail: roberto@arrocha.charlotte.nc.us
Technical Details
Message-ID: <1992Aug15.161151.2686@arrocha.charlotte.nc.us>
Path: arc1-ca.pugleaf.net!sparky!uunet!arrocha!roberto

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!arrocha!roberto
From: roberto@arrocha.charlotte.nc.us (Roberto Arrocha)
Subject: How to add Controls to an app's icon
Message-ID: <1992Aug15.161151.2686@arrocha.charlotte.nc.us>
Keywords: NeXT Appkit
Sender: roberto@arrocha.charlotte.nc.us
Reply-To: roberto@arrocha.charlotte.nc.us
Organization: Roberto E. Arrocha
Date: Sat, 15 Aug 1992 16:11:51 GMT
Lines: 27