• 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
Problems with runModalForWindow in Cocoa AU GUI, looking for alternatives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with runModalForWindow in Cocoa AU GUI, looking for alternatives


  • Subject: Problems with runModalForWindow in Cocoa AU GUI, looking for alternatives
  • From: Vojtěch Meluzín <email@hidden>
  • Date: Tue, 01 Nov 2011 02:29:12 +0100

Hi,

I'm implementing audio-units plugin(s) using Cocoa views. The plugin occasionally shows a popup window and it is also possible that additional popups will be shown from the first one. In all cases it's needed to avoid all GUI processing of the plugin host and the main window, except for timers and drawing, hence no mouse or keyboard input.

I tried using runModalForWindow, but found following problems:
1) The method seems to release the window or something. If I don't call [NSWindow retain] before calling it, further calls lead to a crash. Therefore I cannot show subwindows.
2) It doesn't show and activate the window - in most cases the window appears in the background.
3) It cannot change cursor - [NSCursor set] does nothing.
4) The documentation says nothing about the problems above, but it states the processing stops any other processing in other windows, including timers, that's not a good idea.

So maybe there's even a different alternative? I need to show the windows, but the rest of application is realtime and should work, just not respond to any user input events.
Any ideas?

Thanks in advance.
Vojtech
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Problems with runModalForWindow in Cocoa AU GUI, looking for alternatives
      • From: Paul Davis <email@hidden>
  • Prev by Date: Re: Apple Lossless Audio Codec (ALAC) is now open source
  • Next by Date: Re: Problems with runModalForWindow in Cocoa AU GUI, looking for alternatives
  • Previous by thread: Re: Missing Cocoa GUI
  • Next by thread: Re: Problems with runModalForWindow in Cocoa AU GUI, looking for alternatives
  • Index(es):
    • Date
    • Thread