- 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to