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 8728311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:36:36+00:00 2026-06-13T08:36:36+00:00

I want to implement an animation which is like the sync animation of evernote

  • 0

I want to implement an animation which is like the sync animation of evernote app on Max OS X.

The button looks like:
enter image description here

When the animation runs, only is the white arrow rotating.

I tried to use Core Animation, and the steps are following:

1 I dragged a NSButton to the tool bar and set it to an outlet aBtn. I set the blue blackground image to the aBtn.

2 I created a CALayer instance variable aLayer and add it to the aBtn. So it can look like the button above.

3 when aBtn was clicked, I add the rotation animation the aLayer. It run perfectly well.

The problem is when I want to customize the tool bar, the aBtn shown in the tool bar palette didn’t have the aLayer and only had the blue background image.

Then I tried to find the event or notification for the showing or closing of the tool bar palette. As a result I can reset the image of the aBtn before the tool bar palette was shown or hidden.However, I couldn’t be notified when the tool bar palette was closed.

Could any one give any suggestion?

If you have good idea about how to implement this animation, please let me know.

Thanks!

  • 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-06-13T08:36:37+00:00Added an answer on June 13, 2026 at 8:36 am

    I create a gif to store the animation, and create an NSImageView for the gif. Then I use -[NSToolBarItem setView:].

    Using gif is an easier way than implementing it with Core Animation.

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

Sidebar

Related Questions

I want to implement some animation in CSS3 which has an effect like its
I want to implement an animation for a fragment on my activity. But regular
I am new to iPhone developer, I want to implement different Animations on button
I want to implement all my own rotation animations but if I only return
I want to implement an application which will work as a parser. User will
I would like to create an animation which enables the user to go backward
I can implement an animation using animator in mac os cocoa, like [[view animator]
I want to implement a walking animation into my game that I am making,
Possible Duplicate: Android Left to Right slide animation I want to implement sliding (multiple
I am creating an ePub reader, which reads ePub files. I want to implement

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.