Re: NSRunLoop sample code
Re: NSRunLoop sample code
- Subject: Re: NSRunLoop sample code
- From: Paul Nelson <email@hidden>
- Date: Fri, 20 Sep 2002 10:22:21 -0400
I don't know if I understand your need, but you can look at my FAQ:
http://gigue.peabody.jhu.edu/~pnelson/NewbieFAQ.html
It has an example of how to display and process a sheet without
runModalForWindow:. It does not require many code changes, but in order for
it to work you will need to allow Cocoa to process events with the main
NSRunLoop (which typically requires that you split the single method which
used runModalForWindow: into two).
I suspect that any NSRunLoop that you code yourself will have all of the
same problems as runModalForWindow:.
Paul
on 9/20/02 7:52 AM, Takahiro Shirakawa at email@hidden wrote:
>
Hi,
>
>
Is there any NSRunLoop sample code which handle the events
>
of the modal panel such as NSOpenPanel?
>
>
What I want to do is to show the window-related open panel
>
and process events within one method.
>
-runModalForDirectory:file:types:relativeToWindow: method seems
>
to be the best solution, but this method is not encouraged to use.
>
So I think I should use run loop to handle events for open panel.
>
>
Best Regards,
>
>
takahiro
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
--
Paul Nelson
Peabody Student Composer
http://www.peabody.jhu.edu/~pnelson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.