• 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: -[UIView actionForLayer:forKey:] returns NSNull
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[UIView actionForLayer:forKey:] returns NSNull


  • Subject: Re: -[UIView actionForLayer:forKey:] returns NSNull
  • From: David Duncan <email@hidden>
  • Date: Tue, 3 Mar 2009 12:06:23 -0800

On Mar 3, 2009, at 9:15 AM, BJ Homer wrote:

The problem is that, as near as I can tell, UIView's implementation of actionForLayer:forKey: returns an NSNull.
Am I missing something here, or is a UIView's layer's actions dictionary only usable if you're subclassing UIView?


By default UIKit disables layer animations so that property changes to UIViews occur instantly. If you wrap your property changes in a +beginAnimations:context:/+commitAnimations block however, then UIKit will stop blocking animations and actionForLayer:forKey: should start returning something else (I'm pretty certain nil, but I haven't looked at this specifically).
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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: 
 >-[UIView actionForLayer:forKey:] returns NSNull (From: BJ Homer <email@hidden>)

  • Prev by Date: Re: Can't get setDelegate to work on NSMenu attached to NSStatusItem
  • Next by Date: Re: Listening key board event while application in status bar
  • Previous by thread: -[UIView actionForLayer:forKey:] returns NSNull
  • Next by thread: integrate google map in cocoa app?
  • Index(es):
    • Date
    • Thread