Thread View: comp.sys.next.programmer
2 messages
2 total messages
Started by Robert D. Nicholson
Wed, 19 Aug 1992 03:53
Playing with PopUp's
Author: Robert D. Nicholson
Date: Wed, 19 Aug 1992 03:53
Date: Wed, 19 Aug 1992 03:53
13 lines
940 bytes
940 bytes
I wish to set the title of my popUp and this is working properly but for one thing. I basically just want to select an item programatically but also have its action sent to its target. Currently the action is not sent.
I have this code.
popUp = [[NXApp employeePanel] popUp];
if (popUp) {
Matrix *popUpMatrix = [[popUp target] itemList];
[popUp setTitle: [[popUpMatrix findCellWithTag:1] title]];
}
This code just has a cosmetic affect it doesn't actually message the target.
Is this how setTitle is suppose to work?
Re: Playing with PopUp's
Author: Robert D. Nicholson
Date: Wed, 19 Aug 1992 05:30
Date: Wed, 19 Aug 1992 05:30
27 lines
1418 bytes
1418 bytes
ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes:
>I wish to set the title of my popUp and this is working properly but for one thing. I basically just want to select an item programatically but also have its action sent to its target. Currently the action is not sent.
>I have this code.
>popUp = [[NXApp employeePanel] popUp];
>if (popUp) {
> Matrix *popUpMatrix = [[popUp target] itemList];
> [popUp setTitle: [[popUpMatrix findCellWithTag:1] title]];
>}
>This code just has a cosmetic affect it doesn't actually message the target.
>Is this how setTitle is suppose to work?
Ok the following works for me.
Correct me if you know a more efficient way.
popUp = [[NXApp employeePanel] popUp];
if (popUp) {
Matrix *popUpMatrix = [[popUp target] itemList];
MenuCell *selectCell = [popUpMatrix findCellWithTag:1];
[popUpMatrix selectCell:selectCell];
[popUpMatrix sendAction];
}
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