Re: Modal dialog without NSApplication
Re: Modal dialog without NSApplication
- Subject: Re: Modal dialog without NSApplication
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 18 Sep 2008 15:41:43 +0200
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 (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:
This email sent to email@hidden