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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:36:34+00:00 2026-06-10T13:36:34+00:00

I add to the scrollview my view with content as a documenView and use

  • 0

I add to the scrollview my view with content as a documenView and use this code to fadeout my documentView:

- (IBAction)deleteAllRules:(id)sender {

    NSViewAnimation * deleteListOfRulesViewAnimation;
    NSRect viewRect;
    NSMutableDictionary* animDict;

    // Create the attributes dictionary
    animDict = [NSMutableDictionary dictionaryWithCapacity:3];
    viewRect = listOfRulesView.frame;

    // Specify which view to modify.
    [animDict setObject:listOfRulesView forKey:NSViewAnimationTargetKey];

    // Specify the starting position of the view.
    [animDict setObject:[NSValue valueWithRect:viewRect] forKey:NSViewAnimationStartFrameKey];

    // Shrink the view from its current size to nothing.
    NSRect viewZeroSize = listOfRulesView.frame;
    viewZeroSize.size.width = 0;
    viewZeroSize.size.height = 0;
    [animDict setObject:[NSValue valueWithRect:viewZeroSize] forKey:NSViewAnimationEndFrameKey];

    // Set this view to fade out
    [animDict setObject:NSViewAnimationFadeOutEffect forKey:NSViewAnimationEffectKey];

    // Create the view animation object.
    deleteListOfRulesViewAnimation = [[NSViewAnimation alloc] initWithViewAnimations:[NSArray
                                                               arrayWithObjects:animDict, nil]];
    // Set some additional attributes for the animation.
    [deleteListOfRulesViewAnimation setDuration:1.5];    // One and a half seconds.
    [deleteListOfRulesViewAnimation setAnimationCurve:NSAnimationEaseIn];
    [deleteListOfRulesViewAnimation setDelegate:self];

    // Run the animation.
    [deleteListOfRulesViewAnimation startAnimation];

    // The animation has finished, so go ahead and release it.
    [deleteListOfRulesViewAnimation release];

}

but view hide with out fadeout effect. Why?

  • 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-10T13:36:36+00:00Added an answer on June 10, 2026 at 1:36 pm

    It’s recommended to use Core Animation for 10.5+ code.

    The simplest way to use Core Animation is to use the animator proxy. For example you can do the fade out effect by animating the alpha value of the view :

    [[myView animator] setAlpaValue:0.0f]
    

    You can change the animation duration using:

    [[NSAnimationContext currentContext] setDuration:0.4f]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created an NSScrollView which itself contains a NSClippedView as content view (this is
I have this code for a scrollview to showe 3 images: const CGFloat kScrollObjHeight
Hi i´m trying to set the margins on a ScrollView with this code but
As per subject, my code as below - (void)viewDidLoad { // Add Scroll View
I just add a scrollview like this and after the screen loads a black
I am add UIWebView in View and That view in ScrollView. I want to
I am trying to add/remove UILabels to a ScrollView. The adding takes place just
I'm trying to add a bunch of TextViews at runtime to a scrollview but
I add webview and navigationbar inside my view controller . Web view is display
I have a scroll view which has one UIView inside which contains the content.

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.