Discussion:
Window panes stay unactivated after AskDesignateFile() IsReplacing()
(too old to reply)
Michael Fielitz
2006-08-09 09:28:33 UTC
Permalink
Hello,

If a document is saved with AskDesignateFile() and the user chose to
replace the file with one of the same name, the contained panes inside
the documents view won't get activated afterwards. Is this a bug in
Navigation Services or does a workaround in PowerPlant exists?
To illustrate the problem, The generic PowerPlant Document App can be
used: Just select some portion of the text and save the document twice
as "untitled". The selected text is still outlined but not inverted as
it should be!
I know this is prehistoric non-cocoa code, but maybe somebody knows the
answer to this?

Michael
g***@barnholt.net
2006-08-11 11:30:42 UTC
Permalink
Post by Michael Fielitz
Hello,
If a document is saved with AskDesignateFile() and the user chose to
replace the file with one of the same name, the contained panes inside
the documents view won't get activated afterwards. Is this a bug in
Navigation Services or does a workaround in PowerPlant exists?
To illustrate the problem, The generic PowerPlant Document App can be
used: Just select some portion of the text and save the document twice
as "untitled". The selected text is still outlined but not inverted as
it should be!
Have you checked the duty chain with the PP Debugging facilities (PP
Debug menu)?
I guess it's screwed up after the dialog..
Post by Michael Fielitz
I know this is prehistoric non-cocoa code, but maybe somebody knows the
answer to this?
You do not believe that MS, Adobe, Quark, ... or even Apple recode
their flagship, cross-platform, C based applications in Obj-C, do you ?
;-)


jan
Michael Fielitz
2006-08-15 13:37:26 UTC
Permalink
Post by g***@barnholt.net
Post by Michael Fielitz
Hello,
If a document is saved with AskDesignateFile() and the user chose to
replace the file with one of the same name, the contained panes inside
the documents view won't get activated afterwards. Is this a bug in
Navigation Services or does a workaround in PowerPlant exists?
To illustrate the problem, The generic PowerPlant Document App can be
used: Just select some portion of the text and save the document twice
as "untitled". The selected text is still outlined but not inverted as
it should be!
Have you checked the duty chain with the PP Debugging facilities (PP
Debug menu)?
I guess it's screwed up after the dialog..
Thank you for advising this. Though the _Debugging Classes were _In
Progress at least in my CW Pro 8 install, I'll try to put them into my
project. I should have done so earlier, but there's not much
documentation beside the mactech article back in 1999.

Michael
Neel
2006-08-16 09:03:12 UTC
Permalink
Hi Michael,

I have come across the same situation earlier, AskDesignateFile() nav
API holds up the dlg if we try to replace, In this case i found the
following solution:

Set the dialogOptionFlag = kNavDontConfirmReplacement
and check for designator.IsReplacing() return value, according to the
return value you can put your own alert instead of Nav defualt error
message. So you can have the full control on your own alert . See if
this can help you.
Post by Michael Fielitz
Post by g***@barnholt.net
Post by Michael Fielitz
Hello,
If a document is saved with AskDesignateFile() and the user chose to
replace the file with one of the same name, the contained panes inside
the documents view won't get activated afterwards. Is this a bug in
Navigation Services or does a workaround in PowerPlant exists?
To illustrate the problem, The generic PowerPlant Document App can be
used: Just select some portion of the text and save the document twice
as "untitled". The selected text is still outlined but not inverted as
it should be!
Have you checked the duty chain with the PP Debugging facilities (PP
Debug menu)?
I guess it's screwed up after the dialog..
Thank you for advising this. Though the _Debugging Classes were _In
Progress at least in my CW Pro 8 install, I'll try to put them into my
project. I should have done so earlier, but there's not much
documentation beside the mactech article back in 1999.
Michael
Michael Fielitz
2006-08-20 18:46:13 UTC
Permalink
Hello Neel,
Post by Neel
Hi Michael,
I have come across the same situation earlier, AskDesignateFile() nav
API holds up the dlg if we try to replace, In this case i found the
Set the dialogOptionFlag = kNavDontConfirmReplacement
and check for designator.IsReplacing() return value, according to the
return value you can put your own alert instead of Nav defualt error
message. So you can have the full control on your own alert . See if
this can help you.
thank you very much - this simple workaround does the job!

Michael
Neel
2006-08-21 10:51:38 UTC
Permalink
Your Welcome. Anytime Michael. I am glad.

Neel.
Post by Michael Fielitz
Hello Neel,
Post by Neel
Hi Michael,
I have come across the same situation earlier, AskDesignateFile() nav
API holds up the dlg if we try to replace, In this case i found the
Set the dialogOptionFlag = kNavDontConfirmReplacement
and check for designator.IsReplacing() return value, according to the
return value you can put your own alert instead of Nav defualt error
message. So you can have the full control on your own alert . See if
this can help you.
thank you very much - this simple workaround does the job!
Michael
Loading...