home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: 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
-
- 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
-