Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Window panes stay unactivated after AskDesignateFile() IsReplacing()

1 view
Skip to first unread message

Michael Fielitz

unread,
Aug 9, 2006, 5:28:33 AM8/9/06
to
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

gro...@barnholt.net

unread,
Aug 11, 2006, 7:30:42 AM8/11/06
to
Michael Fielitz schrieb:

> 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..


> 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

unread,
Aug 15, 2006, 9:37:26 AM8/15/06
to
<gro...@barnholt.net> wrote:

> Michael Fielitz schrieb:
>
> > 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

unread,
Aug 16, 2006, 5:03:12 AM8/16/06
to
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.

Michael Fielitz

unread,
Aug 20, 2006, 2:46:13 PM8/20/06
to
Hello Neel,

Neel <niles...@yahoo.com> wrote:

> 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.

thank you very much - this simple workaround does the job!

Michael

Neel

unread,
Aug 21, 2006, 6:51:38 AM8/21/06
to
Your Welcome. Anytime Michael. I am glad.

Neel.

0 new messages