Re: Navigation services popup menu
- From: Phil Taylor <nothere@xxxxxxxxxxx>
- Date: Fri, 23 Sep 2005 09:48:44 GMT
In article <210920052109077228%nothere@xxxxxxxxxxx>, Phil Taylor
<nothere@xxxxxxxxxxx> wrote:
>
> Now I can see how to populate the popup menu in NavPutFile, but what I
> can't see is how to retrieve the user's choice of filetype after the OK
> button has been pressed.
To answer my own question (in case anybody's interested), it's done in
the eventproc. Look for a callBackSelector of type
kNavCBPopupMenuSelect. Then look at the what and when fields of the
eventrecord obtained from
callBackParms^.eventData.eventDataParms.event^. These contain the type
and creator OSTypes from the list which you supplied in the
popupExtension of NavDialogOptions.
Doncha just love Navigation Services?
Phil Taylor
.
- References:
- Navigation services popup menu
- From: Phil Taylor
- Navigation services popup menu
- Prev by Date: Re: Darwin malloc()-ing a few large blocks vs. many many small blocks
- Next by Date: Re: Darwin malloc()-ing a few large blocks vs. many many small blocks
- Previous by thread: Navigation services popup menu
- Next by thread: Darwin malloc()-ing a few large blocks vs. many many small blocks
- Index(es):