Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: beginSheetModalForWindow: and Distributed Objects



NSConnection has a addRequestMode: method you can add multiple modes it will work in.


On Apr 29, 2008, at 7:05 PM, Andrew Kimpton wrote:

I'm displaying a modal sheet for a Window using beginSheetModalForWindow: but I'm seeing that whilst the sheet is displayed new messages sent to the application using a previously registered NSConnection are not being handled.

I think this is because the run loops is not in NSDefaultRunLoopMode whilst the modal sheet is being displayed ?

Is there a way for me to register my NSConnection on whatever mode the run loop is in whilst the modal sheet is displayed ?

Or a way to run a modal sheet in a NSDefaultRunLoopMode so that my NSConnection messages are handled ? I looked at runModalSession: but I'm not sure that I can really use that to my advantage (and it seems like a rather complicated solution).

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >beginSheetModalForWindow: and Distributed Objects (From: Andrew Kimpton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.