• 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: NSTableView animation parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView animation parameters


  • Subject: Re: NSTableView animation parameters
  • From: Graham Cox <email@hidden>
  • Date: Thu, 22 Nov 2012 20:51:31 +1100

OK, well I accidentally solved this part satisfactorily.

In my -animationForKey: method, I set the animationDuration to several seconds to check it was really having an effect, and to my surprise I found that this also affected the animation in the table view. I think this happens because the beginUpdates / endUpdates methods of NSTableView put in place a CATransaction, and my additional animations take place within that transaction. That might not be right - my understanding of Core Animation is rather patchy. Anyway, setting the animation duration to about 0.3 seconds an using the easein-easeout timing function, the table row and my view animations synchronise perfectly, or at least perfectly enough to fool the eye.

My other question about opening up a gap during dragging still stands though - I haven't stumbled across a solution for that so far.



Now I have a third question. My table view is view-based, and following the latest documentation it is working quite nicely. But I'd like to customise the drag image for the table. My NSTableCellView subclass overrides -draggingImageComponents but it is never called, though the documentation appears to suggest it should be. Is there some additional magic I need to do to ensure this is called? The drag/drop itself is functioning just fine, so that would suggest I've done things right. The drag image I get are the elements (subviews) of the cell view, but with this method not being called - ever - I don't know where they are coming from.



--Graham





On 21/11/2012, at 7:21 PM, Graham Cox <email@hidden> wrote:


> The animations are similar but not identical which is not quite as visually slick as it could be. I'm trying to modify the view animation by implementing -animationForKey: in the moved view and changing the animation parameters. It helps, but I'm still not quite there yet. Does anyone know what the table view row animation parameters are (or can think of a way I can find them out) so that I can make the two act together? I probably only need to know the overall time and the timeFunction.

_______________________________________________

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: 
 >NSTableView animation parameters (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSArrayController KVO question...
  • Next by Date: Re: filterPredicate not effecting NSArrayController
  • Previous by thread: Re: NSTableView animation parameters
  • Next by thread: Does UIStoryboard know how to find the ~ipad version automatically?
  • Index(es):
    • Date
    • Thread