• 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 NSApp runModalForWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with NSApp runModalForWindow


  • Subject: Problems with NSApp runModalForWindow
  • From: Vojtěch Meluzín <email@hidden>
  • Date: Sun, 25 Sep 2011 20:10:36 +0200

Hi,

I'm creating a GUI system for AU/VST plugins. The host creates the view and
the rest is based of modal windows, so I'm using NSApp runModalForWindow for
that. But there are a few problems:

1) NSApp runModalForWindow does not activate the window. Right now I'm
testing it as an application not plugin, but otherwise it is same. When
runModalForWindow is called, it works, but the window is initially hidden
and XCode's debugger is over it. Then I can use F3 and click the window to
show it.

2) Similarly when I use runModalForWindow for the second time, hence one
modal window above another one, it is initially hidden.

3) When I use runModalForWindow inside another modal loop, it often crashes
with some weird exception from the release pool. Btw. it seems more often
when I use abortModal then stopModal, but since I'd rather use abortModal as
I'm not sure the window will be closed from the main thread.

Thanks you,
Vojtech
<http://www.meldaproduction.com>
_______________________________________________

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

  • Follow-Ups:
    • Re: Problems with NSApp runModalForWindow
      • From: Vijay Malhan <email@hidden>
    • Re: Problems with NSApp runModalForWindow
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: How to quickly paint to a Cocoa view from a bitmap in memory
  • Next by Date: How to create an expression?
  • Previous by thread: Re: How to quickly paint to a Cocoa view from a bitmap in memory
  • Next by thread: Re: Problems with NSApp runModalForWindow
  • Index(es):
    • Date
    • Thread