• 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
Drawing to window from within MIDI MyReadProc using Carbon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing to window from within MIDI MyReadProc using Carbon


  • Subject: Drawing to window from within MIDI MyReadProc using Carbon
  • From: "Paul Swearingen" <email@hidden>
  • Date: Thu, 7 Apr 2005 15:13:45 -0700

Hi,
 
Everything's working great with my MyReadProc MIDI
input routine.  However, I can't for the life of me, seem
to be able to draw to the screen from within this thread.
 
It looks like I don't want to post an event, and draw to the screen
from within a main thread since PostEvent(  )
documentation says pretty much not to use PostEvent().
Want to avoid CFRunLoop if possible.
 
I only need to draw a few tiny, fast things, but none of
my draw routines work -- and MyReadProc appears to be working
beautifully.
 
I've written things like:
 
SetPort(GetWindowPort(FrontWindow()));
 
...and:  set port bounds,   get window port bounds   routines
 
into a rectangle, etc.   at the end of MyReadProc
before I draw, but nothing draws to the screen (until I move
my mouse)
 
perhaps I'm barking up the wrong tree.
 
Has anyone encountered this?
 
Much appreciated,
 
Paul Swearingen   San Jose    408-258-0233
 _______________________________________________
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

  • Prev by Date: Re: Re[2]: Thread count strangeness using PlayAudioFile
  • Next by Date: Re: Disabling EQ
  • Previous by thread: Re: Disabling EQ
  • Next by thread: Re: Application with multiple IO callback on multi-processor
  • Index(es):
    • Date
    • Thread