Re: Question about plugins and shouldExitPane
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213) typedef enum{ InstallerDirectionForward = 0, InstallerDirectionBackward, InstallerDirectionUndefined } InstallerSectionDirection; -willEnterPane:(InstallerSectionDirection)dir Mike Dan Spirlock wrote: Hi All, - (void) willExitPane:(InstasllerSectionDirection)dir { if(dir == InstallerDirectionBackward) { // Do some stuff } } 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/lists%40michael-amorose... _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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. */ Many of the methods in the framework pass a direction parameter that you can check to determine the direction: 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: 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. This email sent to lists@michael-amorose.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Mike