• 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: Core Animation for Dummies?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Animation for Dummies?


  • Subject: Re: Core Animation for Dummies?
  • From: Izak van Langevelde <email@hidden>
  • Date: Fri, 12 Aug 2011 19:34:48 -0400

On 2011-08-12, at 6:40 PM, Jens Alfke wrote:

>
> On Aug 12, 2011, at 3:19 PM, Izak van Langevelde wrote:
>
>> - (BOOL)windowShouldClose:(id)window{
>>
>>    [self.window.animator setAlphaValue:0.0];
>>
>>    return NO;
>> }
>>
>> The relevant view has its Core Animation Layer, as checked in X-Code, the above code is executed when I try to close a window, but I don't see the alpha value changing, with or without animation. What goes wrong here? (X-Code 4.1 on OS X 10.7)
>
> Is self.window nil? Set a breakpoint and find out.
>

Thanks, that was the problem here; I'm still used to getting errors when following nil pointers  ;o(

> BTW, this isn’t using CoreAnimation, just AppKit’s built-in animation support.

That explains the 'Dummies' thing...

---
Grinnikend door het leven...

_______________________________________________

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

References: 
 >Core Animation for Dummies? (From: Izak van Langevelde <email@hidden>)
 >Re: Core Animation for Dummies? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: migration to 10.6 SDK, loadNib problems
  • Next by Date: Re: Follow-up on localizing Keychain names
  • Previous by thread: Re: Core Animation for Dummies?
  • Next by thread: Re: Core Animation for Dummies?
  • Index(es):
    • Date
    • Thread