This:
local($panel)=$self->{'importPanel'};
$erg=NXApp->runModalFor_($panel);
works fine, while this:
$erg=NXApp->runModalFor_($self->{'importPanel'});
does not.
$self is a blessed reference, and I used magic to tie it to a hash.
I also overloaded '==' and '!=' for the class $self is an object of.
In the later case, FETCH doesn't even get called, and runModalFor_
simply gets an undefined.
My attempts to put together a simpler testcase failed; these lines
local($panel)=$self->{'importPanel'};
$self->printVar($panel);
$self->printVar($self->{'importPanel'});
do the right thing...
Am I missing something?
---
Gerd Knops ------------------------------------------ gerti@BITart.com
local($panel)=$self->{'importPanel'};
$erg=NXApp->runModalFor_($panel);
works fine, while this:
$erg=NXApp->runModalFor_($self->{'importPanel'});
does not.
$self is a blessed reference, and I used magic to tie it to a hash.
I also overloaded '==' and '!=' for the class $self is an object of.
In the later case, FETCH doesn't even get called, and runModalFor_
simply gets an undefined.
My attempts to put together a simpler testcase failed; these lines
local($panel)=$self->{'importPanel'};
$self->printVar($panel);
$self->printVar($self->{'importPanel'});
do the right thing...
Am I missing something?
---
Gerd Knops ------------------------------------------ gerti@BITart.com