Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 294fd09a82 | |||
| 2bf9e6a6f1 | |||
| ab0408c8fe | |||
| 929b1651af | |||
| 2eb6414e6b | |||
| 2550dce3b7 | |||
| c62b8b2c92 | |||
| 67772622cf | |||
| a555035042 | |||
| 0129de341e |
@@ -17,13 +17,13 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.0.3</string>
|
||||
<string>2.0.6</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>2.0.3</string>
|
||||
<string>2.0.6</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright © 2009-14 Alex Rozanski and other contributors. All rights reserved.</string>
|
||||
<string>Copyright © 2009-15 Alex Rozanski and other contributors. All rights reserved.</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'PXSourceList'
|
||||
s.version = '2.0.3'
|
||||
s.version = '2.0.6'
|
||||
s.author = { 'Alex Rozanski' => 'alex@rozanski.me' }
|
||||
s.license = 'BSD'
|
||||
s.homepage = 'https://github.com/Perspx/PXSourceList'
|
||||
@@ -23,6 +23,6 @@ Pod::Spec.new do |s|
|
||||
s.osx.deployment_target = '10.7'
|
||||
|
||||
s.public_header_files = 'PXSourceList/*.h'
|
||||
s.source = { :git => 'https://github.com/Perspx/PXSourceList.git', :tag => '2.0.3' }
|
||||
s.source = { :git => 'https://github.com/Perspx/PXSourceList.git', :tag => '2.0.6' }
|
||||
s.source_files = 'PXSourceList/**/*.{h,m}'
|
||||
end
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
@interface PXSourceListDelegateDataSourceProxy : NSProxy <NSOutlineViewDelegate, NSOutlineViewDataSource, PXSourceListDelegate, PXSourceListDataSource>
|
||||
|
||||
@property (weak, nonatomic) PXSourceList *sourceList;
|
||||
@property (weak, nonatomic) id <PXSourceListDelegate> delegate;
|
||||
@property (weak, nonatomic) id <PXSourceListDataSource> dataSource;
|
||||
@property (unsafe_unretained, nonatomic) id <PXSourceListDelegate> delegate;
|
||||
@property (unsafe_unretained, nonatomic) id <PXSourceListDataSource> dataSource;
|
||||
|
||||
- (id)initWithSourceList:(PXSourceList *)sourceList;
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ static NSArray * __fastPathForwardingDataSourceMethods = nil;
|
||||
- (void)setDelegate:(id<PXSourceListDelegate>)delegate
|
||||
{
|
||||
if (self.delegate)
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self.delegate name:nil object:self];
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self.delegate name:nil object:self.sourceList];
|
||||
|
||||
_delegate = delegate;
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
//Layout constants
|
||||
static const CGFloat minBadgeWidth = 22.0; // The minimum badge width for each item (default 22.0).
|
||||
static const CGFloat badgeHeight = 14.0; // The badge height for each item (default 14.0).
|
||||
static const CGFloat badgeMargin = 5.0; // The spacing between the badge and the cell for that row.
|
||||
static const CGFloat rowRightMargin = 5.0; // The spacing between the right edge of the badge and the edge of the table column.
|
||||
static const CGFloat iconSpacing = 2.0; // The spacing between the icon and it's adjacent cell.
|
||||
static const CGFloat disclosureTriangleSpace = 18.0; // The indentation reserved for disclosure triangles for non-group items.
|
||||
|
||||
@@ -111,4 +111,12 @@ static const CGFloat badgeLeftAndRightPadding = 5.0;
|
||||
attributes:@{NSFontAttributeName: badgeFont()}];
|
||||
}
|
||||
|
||||
- (id)accessibilityAttributeValue:(NSString *)attribute
|
||||
{
|
||||
if ([attribute isEqualToString:NSAccessibilityValueAttribute])
|
||||
return @(_badgeValue).description;
|
||||
else
|
||||
return [super accessibilityAttributeValue:attribute];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#PXSourceList
|
||||
|
||||
|
||||
[](http://cocoadocs.org/docsets/PXSourceList/2.0.5/)
|
||||
[](http://cocoadocs.org/docsets/PXSourceList/2.0.5/)
|
||||
[](https://github.com/Perspx/PXSourceList/blob/master/LICENSE)
|
||||
|
||||
`PXSourceList` is an `NSOutlineView` subclass used for easily implementing source lists in your applications.
|
||||
|
||||
PXSourceList requires the OS X 10.7 SDK and above and is licensed under the New BSD License.
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# PXSourceList Release Notes
|
||||
|
||||
## 2.0.6
|
||||
- Merge PR #49: Fix PXSourceListBadgeCell accessibility. Adds accessibility for PXSourceListBadgeCell when using PXSourceList in view-based mode.
|
||||
|
||||
## 2.0.5
|
||||
- Fix #43: sourceListDeleteKeyPressedOnRows: called twice. This was caused by an issue where PXSourceList was incorrectly removing the old delegate as an observer of PXSourceList notifications in -setDelegate:.
|
||||
|
||||
## 2.0.4
|
||||
- PR #41: fix a Zeroing Weak References problem. This fixes an issue where using an `NSWindow`, `NSWindowController` or `NSViewController` as a PXSourceList delegate or dataSource would cause problems on 10.7 because prior to 10.8, these classes could not be referenced by zeroing weak references.
|
||||
- Remove unused `badgeMargin` constant from PXSourceList.m.
|
||||
|
||||
## 2.0.3
|
||||
- Fix #40: Editing titles on cell based source list causes exception.
|
||||
- Fix issue in view-based source list example where items created with the add button couldn't be dragged.
|
||||
|
||||
Reference in New Issue
Block a user