On May 16, 2011, at 8:11 AM, Bill Cheeseman wrote:
When I quit and relaunch the application, the animations sometimes don't run
for the full specified duration when I hit the hot key. During any given run
of the application, the animations either work correctly every time I hit the
hot
On May 17, 2011, at 1:26 AM, Bill Cheeseman wrote:
Answering my own question: Although it's hard to be sure that a random
problem is really fixed, it appears that the solution was to stop creating
Core Animation layers in the view's -initWithFrame: method and instead create
them in the
On May 17, 2011, at 11:33 AM, David Duncan wrote:
There should be no actual restriction like that however. That said, as you
point out, if you have view that supports layers and come from a nib, you
often have to duplicate work to allow it to work in both situations.
I'm not sure I follow
On May 17, 2011, at 9:49 AM, Bill Cheeseman wrote:
On May 17, 2011, at 11:33 AM, David Duncan wrote:
There should be no actual restriction like that however. That said, as you
point out, if you have view that supports layers and come from a nib, you
often have to duplicate work to allow
The basic problem comes about when a view in the nib has wantsLayer=NO, but
the view itself always wants to be layer backed. If you setWantsLayer:YES
inside of -initWithFrame:, then by the time you get to -awakeFromNib
wantsLayer=NO again
Would there be any issue with overriding
On Tue, May 17, 2011 at 10:21 AM, Keith Duncan ke...@33software.com wrote:
The basic problem comes about when a view in the nib has wantsLayer=NO, but
the view itself always wants to be layer backed. If you setWantsLayer:YES
inside of -initWithFrame:, then by the time you get to
On May 17, 2011, at 12:58 PM, David Duncan wrote:
The basic problem comes about when a view in the nib has wantsLayer=NO, but
the view itself always wants to be layer backed. If you setWantsLayer:YES
inside of -initWithFrame:, then by the time you get to -awakeFromNib
wantsLayer=NO again.
On Tue, May 17, 2011 at 11:35 AM, Bill Cheeseman wjcheese...@gmail.com wrote:
I agree that the explanation doesn't logically lead to a prohibition on
creating layers in -initWithFrame:. That's why I initially created them
there, deferring only the construction of the layer tree to
On May 17, 2011, at 2:58 PM, Kyle Sluder wrote:
You could also try using -makeBackingLayer. That's useful if your view
can be used both programmatically and in a nib.
I wonder if that method works for a layer-hosting view, which is what my view
is -- not a layer-backed view. But even if it
On Mon, 16 May 2011 08:11:36 -0400, Bill Cheeseman wjcheese...@gmail.com said:
My Mac OS X application has an borderless transparent overlay window with a
layer-hosting view. The view's layers add a bunch of animations in response to
a hot key. It all works correctly -- sometimes.
What could
10 matches
Mail list logo