Le 18 sept. 08 à 15:12, brodhage a écrit :

Hi,

I am developing application software for Mac and Windows.
Most of the code is developed using ObjectC - this way most of the code can be used for both OS. Only the OS depending stuff - like showing dialogs, menus... - is separated.

The problem: how can I show and handle a modal dialog for MacOS X without NSApplication?

Using NSApplication (and all the other classes) would mean to have a lot more code OS depending.

Any ideas?

Cheers
Martin Brodhage

If you just want to show simple dialog, you can use CFUserNotification.

If you want a complexe dialog that require some custom control or event handling, you will have to use NSApplication.

I don't understand why using NSApp for this kind of works will have an impact on the remaining of you application though.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to