• 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: Michel Schinz <email@hidden>
  • Date: Mon, 1 Dec 2008 20:05:52 +0100

Le 1 déc. 08 à 07:45, Scott Anguish a écrit :

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.


Indeed, that's what I personally do in my application, and it works well with some minor gotchas, one of which was explained to me by the always-helpful David Duncan in the following thread (which the OP might find worth reading):

http://www.cocoabuilder.com/archive/message/cocoa/2008/11/14/222642

Michel._______________________________________________

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


  • Prev by Date: Re: Command-clicking table column -- radar://6407526
  • Next by Date: Textured Window Responder Issue
  • Previous by thread: Re: Command-clicking table column -- radar://6407526
  • Next by thread: Textured Window Responder Issue
  • Index(es):
    • Date
    • Thread