Re: Simple Core Animation Problem
Re: Simple Core Animation Problem
- Subject: Re: Simple Core Animation Problem
- From: Matt Long <email@hidden>
- Date: Sat, 29 Nov 2008 00:08:44 -0700
- Layers can have rounded rects by setting the layer's cornerRadius
property. BTW, you can't create layers in a NIB. The *must* be created
in code.
- Layers do not inherit from NSResponder so clicks (and double-clicks)
must be registered through a backing layer
- You can easily hide a view such as an NSTextField. When your height
animation completes, you will get an -animationDidStop notification at
which point you can show your NSTextField (look at setHidden in NSView).
You said simple. I'm not so sure that's true. I suggest you write some
code and post specific questions.
Best Regards,
-Matt
On Nov 28, 2008, at 7:26 PM, Ulai Beekam wrote:
I want to create this user interface element:
A rounded rectangle somewhere on the window (it should be able to be
created through code, not inside the NIB).
If I double click it, it should increase its height using animation.
But here is the catch: When the heigh is increased, a text field is
revealed! In other words, there is a text field that is a part of
that box, and is only revealed when the box height is increased.
How can I "attach" a textfield to a layer like that?
Thank you.
U.
_______________________________________________
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