🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
2 messages
2 total messages Started by Patrick McGowan Wed, 27 Jan 1993 02:38
array of id's ? Palette'ized objects
#2387
Author: Patrick McGowan
Date: Wed, 27 Jan 1993 02:38
14 lines
1347 bytes
Maybe this is a dumb question, but I'd like to be able to access an array  
of id's (outlets) so that I can access the one of my choice depending on a  
selection made at run time....in this case I am presented a range of  
operations to perform on some data. These operations are listed in a  
PopUp. It would be easiest to use the index of the selected item to access  
an array element rather than a hard name like calc1, calc2, calc3...etc.
Am I missing something, or is this not a common type of problem?

Also, can a non-view object be palette'ized for use in IB? I'd like to be  
able to hook up one of the above calc objects using IB. ie. drag one off a  
palette into the .nib Objects well (instantiate) for graphical connection  
to other objects.

Thanks in advance.
Re: array of id's ? Palette'ized objects
#2390
Author: Ron Pomeroy x(Coop)
Date: Wed, 27 Jan 1993 14:54
27 lines
1967 bytes
In article <C1HrCt.M33@helios.physics.utoronto.ca>  
mcgowan@emerald.physics.utoronto.ca (Patrick McGowan) writes:
>>Maybe this is a dumb question, but I'd like to be able to access an array  
>>of id's (outlets) so that I can access the one of my choice depending on a  
>>selection made at run time....in this case I am presented a range of  
>>operations to perform on some data. These operations are listed in a  
>>PopUp. It would be easiest to use the index of the selected item to access  
>>an array element rather than a hard name like calc1, calc2, calc3...etc.
>>Am I missing something, or is this not a common type of problem?
>>
>>Also, can a non-view object be palette'ized for use in IB? I'd like to be  
>>able to hook up one of the above calc objects using IB. ie. drag one off a  
>>palette into the .nib Objects well (instantiate) for graphical connection  
>>to other objects.
>>
>>Thanks in advance.

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 ??)

--
Ronald Pomeroy		"The Internet is just a giant petri dish"
Advanced Micro Devices
CAM Applications Group
rpomeroy@aunext1.amd.com (NeXTmail preferred)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads