You might want to look at SpriteKit.
Sent from my iPhone
> On Feb 5, 2016, at 11:06 AM, Jeff Evans wrote:
>
> Everyone, if it will be helpful I offer my solution: I just created a delayed
> task that would begin the play of the music a fraction of a second after
> requesting the draw of the
Everyone, if it will be helpful I offer my solution: I just created a delayed
task that would begin the play of the music a fraction of a second after
requesting the draw of the newly loaded composition. This is pretty clean; the
view does all it wants to do in much less time than I'm giving it,
Jeff,
AV sync issues are definitely tricky. I would be interested in hearing opinions
from others on how they deal with these sync issues.
I think you’re on the right track, in that you’re trying to use messages to
determine when your visual state will match the audio state. As you’re seeing,
> On 5 Feb 2016, at 11:38 AM, dangerwillrobinsondan...@gmail.com wrote:
>
> That's a bad idea.
Agreed :)
> Use viewWillDraw for this approach
Yes, that would be better. I think even better though would be to design the
app so that the ‘need to know when the view is done’ is not a requirem
That's a bad idea.
Use viewWillDraw for this approach
Sent from my iPhone
> On Feb 5, 2016, at 9:26 AM, Graham Cox wrote:
>
>
>> On 5 Feb 2016, at 10:52 AM, Jeff Evans wrote:
>>
>> Clark, it's a music app; a piece is composed and placed on the screen;
>> there's a lot of massaging going on
Jeff,
I was wondering, are you attempting to sync the drawing with the music, or is
this a performance issue you’re seeing?
Doug Hill
> On Feb 4, 2016, at 3:52 PM, Jeff Evans wrote:
>
> Clark, it's a music app; a piece is composed and placed on the screen;
> there's a lot of massaging going
Noah, yes, thanks, I think that is it. I spoke too soon in my
that-works-perfectly announcement, but this must be the right track to follow.
It's not clear to me when needsDisplay is being cleared in the view; I need to
look into this a little more. So far, needsDisplay is sticking on, or appears
> On 5 Feb 2016, at 10:52 AM, Jeff Evans wrote:
>
> Clark, it's a music app; a piece is composed and placed on the screen;
> there's a lot of massaging going on as the music adjusts visually. I want the
> play of the example to begin once there are no more updates remaining. That
> is no noti
And bingo, that works perfectly. Looks like needsDisplay is exactly what I
wanted. It's easy to check for the one view involved, but I hadn't noticed that
property. So maybe it really was a dumb question.
Thanks, Jeff
On Feb 4, 2016, at 4:06 PM, Clark S. Cox III wrote:
> On Feb 4, 2016, at
Clark, you've got a great idea there. The notification method is perhaps not
the one, because there are circumstances in which a draw method will conclude
that further adjustment is going to be needed and will ask for other sections
to adjust, etc. But the view that matters here is just a single
> On Feb 4, 2016, at 15:52, Jeff Evans wrote:
>
> Clark, it's a music app; a piece is composed and placed on the screen;
> there's a lot of massaging going on as the music adjusts visually.
Instead of looking to the view system to know when your code is done laying
things out, why not ask you
Clark, it's a music app; a piece is composed and placed on the screen; there's
a lot of massaging going on as the music adjusts visually. I want the play of
the example to begin once there are no more updates remaining. That is no
noticeable delay in terms of human time, but makes a difference i
> On Feb 4, 2016, at 15:07, Jeff Evans wrote:
>
> Suppose one wants to do a task in an NSView only once it has no drawRect
> calls pending. Is there any way to tell, for a particular NSView, if there
> are any drawing events coming up? Whether, that is, the view is up to date?
>
> I've trie
Suppose one wants to do a task in an NSView only once it has no drawRect calls
pending. Is there any way to tell, for a particular NSView, if there are any
drawing events coming up? Whether, that is, the view is up to date?
I've tried counting my explicit uses of setNeedsDisplay and decrementing
14 matches
Mail list logo