• 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
MIDINotifyProc and modal NSApplication sessions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MIDINotifyProc and modal NSApplication sessions


  • Subject: MIDINotifyProc and modal NSApplication sessions
  • From: Franz Detro <email@hidden>
  • Date: Thu, 17 Sep 2009 13:44:33 +0200

Hi,

when porting an application from Carbon to Cocoa, I've experienced some strange behaviour of the MIDINotifyProc callback:

When a window is running in a modal NSApplication session ([NSApp runModalForWindow: nsWindow]), no CoreMIDI notifications are received until the modal session has ended.

In the documentation of MIDIClientCreate one can find:

Discussion

Note that notifyProc will always be called on the run loop which was current when MIDIClientCreate was first called.


As I understand, when running a modal session the run loop is only in another mode, it's not another run loop, right? So one should receive the notifications also with a modal dialog open. 

Can somebody give me some hints here?


Thanks,
Franz

 _______________________________________________
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: MIDINotifyProc and modal NSApplication sessions
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: starting point for an audio application?
  • Next by Date: Create and play midi sequence
  • Previous by thread: Re: starting point for an audio application?
  • Next by thread: Re: MIDINotifyProc and modal NSApplication sessions
  • Index(es):
    • Date
    • Thread