• 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
Re: Simple Core Animation Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Simple Core Animation Problem
      • From: Ulai Beekam <email@hidden>
    • RE: Simple Core Animation Problem
      • From: Ulai Beekam <email@hidden>
References: 
 >Simple Core Animation Problem (From: Ulai Beekam <email@hidden>)

  • Prev by Date: Re: Checking One Array Against Another
  • Next by Date: MVC question
  • Previous by thread: Simple Core Animation Problem
  • Next by thread: RE: Simple Core Animation Problem
  • Index(es):
    • Date
    • Thread