290 Commits
Author SHA1 Message Date
Alex Rozanski 66d26c7c4a Merge pull request #54 from orta/elcap
Update demo for el cap
2016-06-29 20:43:41 +01:00
Alex Rozanski c939b2597f Merge pull request #58 from dinhviethoa/fix-crash-in-dealloc
Fixed crash in -PXSourceList dealloc
2016-06-29 20:42:47 +01:00
Alex Rozanski 037854c178 Merge pull request #59 from dinhviethoa/sierra-compatibility
Fixed compatibility with 10.12 Sierra
2016-06-29 20:41:38 +01:00
Hoa V. DINH b8e90dec19 Fixed for 10.12 2016-06-26 09:42:33 -07:00
Hoa V. DINH 83a09b299d Fixed potential crash 2016-06-26 08:37:46 -07:00
Orta Therox 978053929f Show transparency in example 2015-11-03 10:28:32 -05:00
Orta Therox f0e7809109 Update demo for el cap 2015-11-03 10:22:20 -05:00
Alex Rozanski bb53253cba Merge pull request #50 from orta/patch-1
Update README.markdown
2015-05-08 14:06:47 +01:00
Orta 54abae7a5a Update README.markdown 2015-05-08 11:30:57 +01:00
Alex Rozanski e0071d0aed Bump project to 2.0.7 2.0.7 2015-05-08 11:19:40 +01:00
Alex Rozanski bc5727fba6 PXSourceList.m: fix whitespace woes.
- Convert all tabs to spaces.
- Remove trailing whitespace.
2015-05-08 11:16:28 +01:00
Alex Rozanski b902e04b9c Fix -setFlipped: deprecation warning.
This removes old, pre-10.6 drawing code (including call to -setFlipped:) as we
no longer support 10.6.
2015-05-08 11:13:08 +01:00
Alex Rozanski 8f7081f4d5 Bump project to 2.0.6 2015-05-08 11:01:58 +01:00
Alex Rozanski 2bf9e6a6f1 Merge pull request #49 from dusek/accessibility-badge-viewbased
Fix PXSourceListBadgeCell accessibility
2015-05-08 10:56:40 +01:00
Boris Dušek ab0408c8fe Fix PXSourceListBadgeCell accessibility
Now in the view-based source list, instead of just "Photos", VoiceOver
reads "Photos, 264"
2015-03-28 12:45:02 +01:00
Alex Rozanski 929b1651af Add badges to README. 2014-09-25 09:42:48 -04:00
Alex Rozanski 2eb6414e6b Bump project to 2.0.5 2.0.5 2014-06-07 14:45:37 -04:00
Alex Rozanski 2550dce3b7 Fix #43: sourceListDeleteKeyPressedOnRows: called twice.
This issue was being caused by the fact that the overridden
-setDelegate: method on PXSourceListDelegateDataSourceProxy doesn't
correctly remove the old delegate as observing the PXSourceList
notifications.

Setting the same delegate twice will cause this issue to
occur.
2014-06-07 14:39:44 -04:00
Alex Rozanski c62b8b2c92 Bump project to 2.0.4. 2.0.4 2014-05-11 13:17:39 -04:00
Alex Rozanski 67772622cf Remove unused badgeMargin constant. 2014-05-11 13:12:42 -04:00
Alex Rozanski a555035042 Merge pull request #41 from CrazyCatcher/master
fix a Zeroing Weak References problem
2014-05-11 12:59:55 -04:00
crazycatcher 0129de341e fix a Zeroing Weak References problem 2014-05-06 20:12:51 +08:00
Alex Rozanski 7a82f63e9b Add Release Notes for 2.0.3. 2.0.3 2014-03-25 21:41:47 +00:00
Alex Rozanski b215e263ef Bump project to 2.0.3. 2014-03-25 21:41:41 +00:00
Alex Rozanski 5ce29c98c9 Fix issue in view-based source list example.
This fixes an issue where items created with the add button couldn't be
dragged.
2014-03-25 21:37:06 +00:00
Alex Rozanski 7df260c6f7 Fix #40: Editing titles on cell based source list causes exception.
The cause of this bug was returning YES in
-[PXSourceListDelegateDataSourceProxy respondsToSelector:] for the
NSControl delegate methods -controlTextDidEndEditing:,
-controlTextDidBeginEditing: and -controlTextDidChange: when they were
called on the proxy because NSOutlineView implements them internally.
However we weren't returning a method signature for them in -methodSignatureForSelector:
which was throwing an exception.

This fix has two components:
- We only allow forwarding of NSOutlineView(Delegate|DataSource) methods
  to the source list PXSourceListDelegateDataSourceProxy (which
  was the original intention). If PXSourceList returns YES for
  -respondsToSelector: we ignore it if the method is not from one of
  these two protocols.
- The NSControl delegate methods have been added to the fast-path
  forwarding delegate methods array in
  PXSourceListDelegateDataSourceProxy (the array which contains method
  names which can be forwarded to the source list's delegate as-is, without
  modifying the selector or arguments).

These fix the underlying cause of the exception and implement
the missing behaviour of allowing invocation of these NSControl methods
on the source list's delegate.
2014-03-25 21:29:31 +00:00
Alex Rozanski 8407bc98bb Remove unnecessary computation in -[PXSourceListDelegateDataSourceProxy methodSignatureForSelector:].
Fast-path delegate and data source methods (those whose method
signature doesn't need modification) don't need to be checked in
-methodSignatureForSelector: because they are handled in
-forwardingTargetForSelector: which bypasses the
-methodSignatureForSelector:/forwardInvocation: path.
2014-03-25 21:08:20 +00:00
Alex Rozanski 29d61656fe Add Release Notes for 2.0.2. 2.0.2 2014-03-06 00:01:22 +00:00
Alex Rozanski 52e21a8ced Bump project to 2.0.2. 2014-03-06 00:00:06 +00:00
Alex Rozanski 60974e14fd Fix #39: Badges not drawn correctly when Source List row is selected.
This fix consists of two parts:
1) We first need to check the backgroundStyle property in
PXSourceListBadgeCell to determine whether to draw the light badge
background or not.

2) Next we need to determine whether the enclosing Source List (or child
view) is focused to decide whether to draw the badge text using the bright
blue or grey-blue. To do this, we walk up the view hierarchy
from the common ancestor view of the controlView and firstResponder
until we hit a PXSourceList instance. If we find one, then the source
list is selected, otherwise not.

Walking up the tree from the common ancestor view catches the highly-
unlikely but possible scenario where there are two PXSourceList
instances on screen and one is focused.
2014-03-05 23:50:11 +00:00
Alex Rozanski 3eadddb784 Bump project to 2.0.1. 2.0.1 2014-01-29 13:25:34 +00:00
Alex Rozanski 20a6e83f86 Add Release Notes for 2.0.1. 2014-01-29 12:55:20 +00:00
Alex Rozanski 7548ffdd1b Update ReleaseNotes for 2.0.0.
The note about -[PXSourceList delegate] and -[PXSourceList dataSource]
being marked as unavailable was missing from the 2.0.0 release notes.
2014-01-29 12:50:24 +00:00
Alex Rozanski 8a647790ab Small fixes to various parts of the documentation. 2.0.0 2014-01-27 17:58:56 +00:00
Alex Rozanski 92b64abde5 Improve class documentation for PXSourceList. 2014-01-27 17:38:26 +00:00
Alex Rozanski 1d82dc7cc6 Fix grammar in README. 2014-01-27 17:32:52 +00:00
Alex Rozanski e54db103c8 Add a list of key features to the 'Overview' section. 2014-01-27 17:31:46 +00:00
Alex Rozanski 9e480433fc Improve 'PXSourceList 2' section. 2014-01-27 17:17:41 +00:00
Alex Rozanski 92e25dfad8 Clarify source list style in README. 2014-01-27 17:07:50 +00:00
Alex Rozanski daac004cd6 Clarify bold sentence in motivation section in README. 2014-01-27 17:06:57 +00:00
Alex Rozanski 0457b85abf Tidy up podspec. 2014-01-27 15:34:15 +00:00
Alex Rozanski 89003e83f6 Fix license attribute in the podspec. 2014-01-27 15:21:04 +00:00
Alex Rozanski 1a42ce1151 Add @param declarations in PXSourceList.h.
These were missing for the parameters for -setDelegate: and
-setDataSource:.
2014-01-27 15:14:01 +00:00
Alex Rozanski 217f046290 Use the new libraryItem and albumsItem methods in the view-based example. 2014-01-27 15:10:16 +00:00
Alex Rozanski 4c9e975bcb Data model changes in the view-based example. 2014-01-27 15:08:39 +00:00
Alex Rozanski ba8878cafa Tidy up model creation code in view-based example. 2014-01-27 15:00:59 +00:00
Alex Rozanski 7449fd8b12 Add a 'type' property to the PhotoCollection class in the view-based example. 2014-01-27 14:58:40 +00:00
Alex Rozanski d1dbe60b4e Make use of a Photo object in the view-based example app. 2014-01-27 14:51:49 +00:00
Alex Rozanski 1187aa3c70 Clarify PXSourceListItem badge value property description in the README. 2014-01-27 14:39:04 +00:00
Alex Rozanski 7342601ea7 Provide a more informative header for PXSourceListItem. 2014-01-27 14:38:12 +00:00