FROM : Sven-S. Porst
DATE : Thu Jan 17 21:09:45 2002
>You want to take a look at the documentation for modal run loops and the
>different modes they support. Check out the following topic on run loops:
Thanks, I had a look at these topics after Christophe's hint yesterday.
My impression was that run loops are nothing I want/should manipulate
myself (given that I know nothing about ports and stuff) but only be
aware of their existence and the trouble they may cause.
>Specifically, look at the information on runloop modes, and check out
>the different ways in NSApplication to run a modal window -- at least
>one allows you to specify the runloop mode.
Perhaps I'm blind but I don't see one. All I find are runModalForWindow:
and the [begin|run|stop]ModalSession ones, none of which allow me to
specify a run loop mode. There's still the strange NSModalSession type,
which isn't documented as far as I can tell - so it might be hidden in
there - or there are the NSEventTrackingRunLoopMode and
NSModalPanelRunLoopMode constants in the NSApplication documentation
which are 'description forthcoming'. Could you please point me to the
method you have in mind as I am not very successful at finding it?
[As you may have read by now, I figured out a way to make things work but
I suspect that it is to be considered a 'workaround' rather than a
'solution' of the problem given that it causes my app to use lots of
processing time for doing nothing - so I am still interesting in finding
a proper way to do this.]
Thanks for any help.
Sven
--
Sven-S. Porst . PGP: 0x0085ABA3 . http://homepage.mac.com/ssp
What the public wants is a little intellectual kick,
and nothing else has quite the kick of mathematics.
-- G.H. Hardy, A Mathematician's Apology
DATE : Thu Jan 17 21:09:45 2002
>You want to take a look at the documentation for modal run loops and the
>different modes they support. Check out the following topic on run loops:
Thanks, I had a look at these topics after Christophe's hint yesterday.
My impression was that run loops are nothing I want/should manipulate
myself (given that I know nothing about ports and stuff) but only be
aware of their existence and the trouble they may cause.
>Specifically, look at the information on runloop modes, and check out
>the different ways in NSApplication to run a modal window -- at least
>one allows you to specify the runloop mode.
Perhaps I'm blind but I don't see one. All I find are runModalForWindow:
and the [begin|run|stop]ModalSession ones, none of which allow me to
specify a run loop mode. There's still the strange NSModalSession type,
which isn't documented as far as I can tell - so it might be hidden in
there - or there are the NSEventTrackingRunLoopMode and
NSModalPanelRunLoopMode constants in the NSApplication documentation
which are 'description forthcoming'. Could you please point me to the
method you have in mind as I am not very successful at finding it?
[As you may have read by now, I figured out a way to make things work but
I suspect that it is to be considered a 'workaround' rather than a
'solution' of the problem given that it causes my app to use lots of
processing time for doing nothing - so I am still interesting in finding
a proper way to do this.]
Thanks for any help.
Sven
--
Sven-S. Porst . PGP: 0x0085ABA3 . http://homepage.mac.com/ssp
What the public wants is a little intellectual kick,
and nothing else has quite the kick of mathematics.
-- G.H. Hardy, A Mathematician's Apology
| Related mails | Author | Date |
|---|---|---|
| Sven-S. Porst | Jan 15, 01:40 | |
| John W. Whitworth | Jan 15, 16:02 | |
| Matt Rollefson | Jan 17, 01:19 | |
| Sven-S. Porst | Jan 17, 21:09 | |
| Christophe Dore | Jan 18, 10:43 | |
| Sven-S. Porst | Jan 18, 22:31 | |
| Christophe Dore | Jan 21, 15:26 |






Cocoa mail archive

