Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 474949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:20:22+00:00 2026-05-13T00:20:22+00:00

I want to swap out one view with another by pushing the old view

  • 0

I want to swap out one view with another by pushing the old view aside to slide in a new view (the kCATransitionPush type). To use CoreAnimation I need to work with CALayers with my views. The problem is that attaching a backing layer to my window content view through setWantsLayer distorts everything in the view.

I’m not sure if this has something to do with the fact that I’m using a subclass of NSWindow called MAAttachedWindow (http://mattgemmell.com/source), which is a HUD style transparent popup window of sorts that attaches to another element on the screen.

I can provide screenshots of this distortion if needed. I got the animation working through NSViewAnimation, but as many others have experienced, NSViewAnimation is terribly slow. I’d rather use CoreAnimation but this issue prevents me from using it.

Any insight is greatly appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T00:20:22+00:00Added an answer on May 13, 2026 at 12:20 am

    In addition to possibility of non-integral coordinates, to me the text appears to have been drawn into a non-opaque buffer. The LCD-aware Quartz text antialiasing doesn’t work if it is drawn atop a non-opaque background color and then composited. Rather, your layer/view must fill the background with an opaque background color and then draw text above it.

    One workaround for this that we’ve played with is to:

    • Draw your translucent background.
    • Draw your text with the background color, alpha=1, and add a stroke to the text of the same color, picking the stroke width to encompass the antialiasing area (beware resolution independence here).
    • Draw the text as normal, above this “landing pad”.

    The issue with the scroller is possibly that the scroller is claiming -isOpaque but it isn’t. Appropriate twiddling of the opaqueness and background color rendering should help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add swap functionality to two existing C++ classes. One class inherits
I have a div id (auctions), and I want to swap out the HTML
I want to have an IDataService that I can then swap out with a
I have a text below where I want to swap out the login link,
I want to swap out: <%= button_tag Create , :class => round %> for
Suppose we have the following code. I want to swap out the inner parse_place
I want to swap both references, is there a nice way make such a
I want to swap two fragment in an activity via animation.Suppose PageA is for
We want to swap in changes and would like to avoid having to restart
In most languages, if you want to swap two variables, it's something like: var

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.