• 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: NSTextField as a CALayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField as a CALayer


  • Subject: Re: NSTextField as a CALayer
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 1 Dec 2008 01:45:59 -0500

No, you can't do this.

Core Animation is designed for easy animation, but not so you can freely mix views and layers like this.

you could probably do what you want by doing your current CALayer drawing into an NSView, and then add the textfield as a subview of that view.. then turn on layer backing for the parent NSView.






On 30-Nov-08, at 5:12 PM, Ulai Beekam wrote:


How can I incorporate an (editable) NSTextField into a CALayer, so that I can put the text field into another layer by doing [parentLayer addSublayer:textFieldLayer] ?


I really need to do this or some similar thing. Core Animation boasts being easily be able to create animated user interfaces right? And a very important part of user interfaces are indeed text fields right?
_______________________________________________

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


References: 
 >NSTextField as a CALayer (From: Ulai Beekam <email@hidden>)

  • Prev by Date: Programatically creating iDisk URL
  • Next by Date: Re: Retrieving Boolean from database
  • Previous by thread: NSTextField as a CALayer
  • Next by thread: Re: Command-clicking table column -- radar://6407526
  • Index(es):
    • Date
    • Thread