Re: Question about plugins and shouldExitPane
Re: Question about plugins and shouldExitPane
- Subject: Re: Question about plugins and shouldExitPane
- From: Mike <email@hidden>
- Date: Thu, 27 Mar 2008 16:47:21 -0700
Try -willEnterPane but check the direction. See InstallerPane.h in the
framework for a description of how it works:
/*!
@enum InstallerSectionDirection
@discussion Describes the direction in which a pane is entered or
exited.
@constant InstallerDirectionForward Specifies that the pane was
entered/exited while moving in the forward direction.
@constant InstallerDirectionBackward Specifies that the pane was
entered/exited while moving backwards.
@constant InstallerDirectionUndefined Specifies that the pane was
entered/exited using the gotoPane: method. Since the pane
is "jumped" to rather than moved to going forward or back,
InstallerDirectionUndefined is used.
*/
typedef enum{
InstallerDirectionForward = 0,
InstallerDirectionBackward,
InstallerDirectionUndefined
} InstallerSectionDirection;
Many of the methods in the framework pass a direction parameter that you
can check to determine the direction:
-willEnterPane:(InstallerSectionDirection)dir
Mike
Dan Spirlock wrote:
Hi All,
I have been playing with the installer plugin sample project and have
gotten things mostly working. One thing I did notice is that if I
override shouldExitPane, it only gets called if the user clicks the
"Continue" button. It doesn't get called if the user clicks the "Go
back" button. What method needs to be overridden to catch this? I
tried willExitPane and checking like this:
- (void) willExitPane:(InstasllerSectionDirection)dir
{
if(dir == InstallerDirectionBackward)
{
// Do some stuff
}
}
but it doesn't enter this function. The header file documentation for
shouldExitPane says the "dir" parameter is the direction in which the
pane was entered, which seems strange because for all of the other
ExitPane methods the "dir" parameter is the direction you are exiting
the pane.
If anyone has any info on this, it would be appreciated.
Thanks,
Dan
------------------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden