Commit Graph
5091 Commits
Author SHA1 Message Date
Ryan Nystrom 01e7d09a26 Merge pull request #412 from mikee179/master
Adds property for long press touch cancellation
2015-04-03 14:12:32 -07:00
Ben Alpert a8c484119b Add new kittens after last row
New kittens were being added before the last kitten instead of after it
because we weren't taking into account the first (header) row.
2015-04-03 12:40:53 -07:00
Michael Kuntscher a92dd3189b Adds property for long press touch cancellation 2015-04-01 16:38:29 -07:00
Ian Cloutier 8699ab8ed7 Fix handling of pending nodes and placeholder layer 2015-03-30 18:59:40 -04:00
Ethan Nagel abd725d8c1 update documentation for reloadData:completion 2015-03-27 18:14:05 -07:00
Ryan Nystrom 6ae17e55bc Merge pull request #403 from facebook/touch-forwarding
Forward touches to super instead of the superview
2015-03-26 21:11:53 -07:00
Ryan Nystrom b6715b5cf9 Forward touches to super instead of the superview
fixes #402
2015-03-26 21:11:13 -07:00
Nadine Salter d3a8f44068 Merge pull request #404 from facebook/textnode-tapping
Allow double-tap gestures on text nodes
2015-03-26 18:01:36 -07:00
Ryan Nystrom 29a360d562 Allow double-tap gestures on text nodes 2015-03-26 17:22:22 -07:00
Ethan Nagel 3f509dbd2f add completion block to reloadData methods 2015-03-26 16:32:44 -07:00
Nadine Salter dd10fda42c Fix ASSnapshotTestCase #import. 2015-03-23 16:39:21 -07:00
Nadine Salter eeb96e662c Merge pull request #396 from facebook/ASSnapshotTestCase
[tests] ASSnapshotTestCase.
2015-03-23 16:08:32 -07:00
Nadine Salter ad3f3b5fdc Disable flakey test. 2015-03-23 15:59:29 -07:00
Ryan Nystrom 50eccabac8 Merge pull request #389 from facebook/issue-380
Fix ASImageNode -measure: / -setImage: deadlock.
2015-03-23 14:48:12 -07:00
Nadine Salter ecd6872814 [tests] AsyncDisplayKitTestHost. 2015-03-23 14:06:38 -07:00
Nadine Salter b869d025ff [tests] ASSnapshotTestCase. 2015-03-23 14:06:38 -07:00
Nadine Salter 13e1c65d03 Fix ASImageNode -measure: / -setImage: deadlock.
Speculative fix for #380.  Calling `-[ASImageNode setImage:]` on a
background queue will take the image lock, then trampoline to the main
queue to invalidate calculatedSize and set needsDisplay without
releasing the lock.  Any other method call that takes the image lock on
the main queue can block on the trampoline completing -- deadlock.

Note that the trampoline is itself a clowny workaround for thread
affinity (#134) and should be removed.  With this patch applied,
ASImageNode's `-setImage:` and `-calculateSizeThatFits:` can still race:

1.  -setImage changes _image, then trampolines to main
2.  -calculateSizeThatFits measures _image
3.  trampoline completes, invalidates calculated size
4.  ???
5.  ~~profit!~~ 💥
2015-03-23 14:05:15 -07:00
Ryan Nystrom 814aff5a6d Merge pull request #388 from facebook/issue-383
Remove ASImageNode's tint property.
2015-03-23 13:59:20 -07:00
Ryan Nystrom 66624fa4e6 Merge pull request #387 from facebook/issue-89
Fix ASTextNode positioning for non-left alignment, part deux.
2015-03-23 13:58:30 -07:00
Nadine Salter 4ca527c24f Merge pull request #393 from facebook/life-without-cocoapods
[travis] Add "Life Without CocoaPods" smoke test.
2015-03-20 16:50:44 -07:00
Nadine Salter ad73c86c64 [travis] Life Without CocoaPods. 2015-03-20 16:44:01 -07:00
Nadine Salter dd0ad80889 Add smoke-tests/ and Life Without CocoaPods.
See the README.md files for details.
2015-03-20 16:44:01 -07:00
Nadine Salter 4ae20aa11b Merge pull request #391 from facebook/new-build-script
[travis] New build script.
2015-03-20 16:07:32 -07:00
Nadine Salter 65fe805ecb [travis] Disable Travis CI automatic pod install. 2015-03-20 15:55:29 -07:00
Nadine Salter a9d555d225 [travis] New build script.
In addition to building & testing AsyncDisplayKit, this new build script
can ensure that all example projects still compile.  This will prevent
breaking API changes from landing without updating sample projects that
use them.  It's also extensible, so we can add additional integration
tests in future (e.g., non-CocoaPods framework integration).
2015-03-20 15:45:33 -07:00
Nadine Salter 9eff356a61 [travis] Shared schemes for all example projects. 2015-03-20 15:36:31 -07:00
Nadine Salter 8164d63d29 Fix ASTextNode positioning for non-left alignment, part deux.
Apply the fix from #329 to `-setFrame:`.  Fixes #89.
2015-03-20 12:45:06 -07:00
Nadine Salter 7344cb98bb Remove ASImageNode's tint property.
ASImageNodeTint is inflexible (your options are "no tint" and "use
`[UIColor grayColor]`") and needlessly complicates the ASImageNode
implementation.  Use ASImageNodeTintColorModificationBlock() instead.
Closes #383.
2015-03-20 12:37:27 -07:00
Nadine Salter 1dc4b42dce Merge pull request #382 from facebook/longer-async-wait
Longer timeout for async tests
2015-03-17 12:01:39 -07:00
Ryan Nystrom 7117548bc1 Longer timeout for async tests 2015-03-17 11:44:10 -07:00
Nadine Salter 1a39f412d5 Merge pull request #381 from facebook/suspended-range
Enable nodes entering the visible range to display
2015-03-17 11:20:18 -07:00
Ryan Nystrom cd3ad1c86f Enable nodes entering the visible range to display 2015-03-17 10:52:32 -07:00
Ryan Nystrom fa2f36004b Merge pull request #375 from facebook/issue-374
Stretchy or mod block images
2015-03-15 15:59:38 -07:00
Ryan Nystrom 59c9fc8819 Stretchy or mod block images
fixes #374
2015-03-12 14:41:11 -07:00
Ryan Nystrom 1278fe2cf0 Merge pull request #373 from facebook/issue-349
Remove the nil-asyncDelegate proxy.
2015-03-12 14:29:28 -07:00
Nadine Salter 7fa5aa5e01 Merge pull request #371 from facebook/working-window
Working range window
2015-03-11 18:02:20 -07:00
Ryan Nystrom 0b19be0f85 Working range window
This brings back the concept of a window store for nodes that are in the working range (reverting #127). It turns out that due to the system architecture if there are nodes who fetch remote content (e.g. `ASNetworkImageNode`), calls to `-display` will occur before fetching has been completed. The next chance the nodes have to decode and display content is then when they are actually on the screen, thus defeating the purpose of a working range.

With the reintroduction of the working range window, nodes are "stored" in the window and when content is finished being fetched, CA triggers `-display` since they are part of a view hierarchy.

This can be tested in the Kittens project by insuring that before `ASRangeController` adds a node to [a visible view](https://github.com/facebook/AsyncDisplayKit/blob/master/AsyncDisplayKit/Details/ASRangeController.mm#L57) that the image node (with remote content) has set its layer's contents.
2015-03-11 17:59:03 -07:00
Nadine Salter de14f220c3 Merge pull request #367 from facebook/issue-364
Thread safe creation and canceling of download tasks
2015-03-11 17:57:52 -07:00
Nadine Salter a79b771a85 Remove the nil-asyncDelegate proxy.
Fixes #349.
2015-03-11 17:43:45 -07:00
Ryan Nystrom db8bbcfd0e Thread safe creation and canceling of download tasks
fixes #364
2015-03-11 16:52:14 -07:00
Nadine Salter ac9337a629 Merge pull request #372 from bdaz/master
Support Forwarding Responder-Chain Actions to Node from its View
2015-03-11 14:39:44 -07:00
Brian Amerige 9019233c68 Support Forwarding Responder-Chain Actions to Node from its View
Summary:
What it says on the tin. This allows Nodes to effectively participate in the responder chain.

Caveat: see note in implementation below. Would have been nice to use `-targetForAction:withSender:` the way the docs imply you can, but alas.

Test Plan: Observe a node in the responder chain get invoked to handle an action it implements.

Reviewers: bcunning, zsh, sma, jpasqualini, suv, nyn531, b3ll, aaronpang, kimon, grp, jonathan, rnystrom, nadi

Reviewed By: nadi

Subscribers: trunkagent, rnystrom

Differential Revision: https://phabricator.fb.com/D1894023

Signature: t1:1894023:1426026643:203945b6a7c318f6d2c9b94d876da61da31327bd
2015-03-11 14:37:17 -07:00
Nadine Salter 862c8f2991 Merge pull request #355 from facebook/text-placeholders
Text placeholders snap to pixels
2015-03-11 14:15:20 -07:00
Ryan Nystrom b6dea69070 Text placeholders snap to pixels 2015-03-11 13:56:12 -07:00
Nadine Salter c7e04c84f1 [travis] Disable iOS 7.1 testing.
Travis CI's buildbots no longer have the iOS 7.x runtimes installed:

    == Runtimes ==
    iOS 7.0 (7.0 - Unknown) (com.apple.CoreSimulator.SimRuntime.iOS-7-0) (unavailable, runtime path not found)
    iOS 7.1 (7.1 - Unknown) (com.apple.CoreSimulator.SimRuntime.iOS-7-1) (unavailable, runtime path not found)
    iOS 8.1 (8.1 - 12B411) (com.apple.CoreSimulator.SimRuntime.iOS-8-1)

Disable iOS 7.1 testing.
2015-03-11 13:51:58 -07:00
Nadine Salter a40c8172ac Merge pull request #365 from facebook/issue-363
Range handlers use recursive actions
2015-03-09 12:37:17 -07:00
Ryan Nystrom 5e7755fac0 Range handlers use recursive actions
fixes #363
2015-03-09 12:33:02 -07:00
Nadine Salter afb0aa41b7 Merge pull request #360 from lxcid/bug/block-copy
Block should always be declared using the copy attribute.
2015-03-07 14:47:57 -08:00
Nadine Salter 860a8783b4 Merge pull request #356 from nguyenhuy/master
Fix method documentation in ASCollectionView.
2015-03-07 14:46:55 -08:00
Nadine Salter 42e9e049a9 Merge pull request #354 from 343max/retuned-processed-image
return the processed image instead of the original image when it's being stretched
2015-03-07 14:40:00 -08:00