• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Modal dialog without NSApplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Modal dialog without NSApplication (From: brodhage <email@hidden>)

  • Prev by Date: Modal dialog without NSApplication
  • Next by Date: Re: Core data fetch returns no objects
  • Previous by thread: Modal dialog without NSApplication
  • Next by thread: Re: Modal dialog without NSApplication
  • Index(es):
    • Date
    • Thread