• 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
Drawing in CALayers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing in CALayers


  • Subject: Drawing in CALayers
  • From: Gordon Apple <email@hidden>
  • Date: Tue, 17 Jun 2008 14:21:27 -0500

    I'm trying to migrate to using CALayers and having nothing but problems.
I'm currently trying to use two simple CALayers, one for accumulated prior
layers (my own list of draw lists) and one for the current layer.  I'm using
Cocoa to draw.  No filters or transitions yet, just simple drawing.  I'll
keep my first questions simple:

1.  How do you deal with flipped NSView coordinates?  The drawLayer call
gets the NSGraphicsContext using     nsGraphicsContext = [NSGraphicsContext
graphicsContextWithGraphicsPort:ctx flipped:YES ]   but seems to ignore the
flipped parameter for either YES/NO.  Am I going to have to implement a
transform to make this work right?

2.  Can you mix standard view drawing with CALeyers?  If so, what is the
draw order of the view drawing relative to the CALayers?  (In spite of the
reference to such, the view drawing guide still doesn't cover CALayers.)  I
prefer to do interactive drawing into the top layer in the same manner as I
currently do in the view.

_______________________________________________

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: Drawing in CALayers
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Rethinking my approach; rather overwhelmed.
  • Next by Date: Re: Cocoa-dev Digest, Vol 5, Issue 1067
  • Previous by thread: [MEET] LA CocoaHeads this Thursday, 6/19 at 7:30pm
  • Next by thread: Re: Drawing in CALayers
  • Index(es):
    • Date
    • Thread