Revision: 24031
http://sourceforge.net/p/bibdesk/svn/24031
Author: hofman
Date: 2019-07-15 21:06:06 +0000 (Mon, 15 Jul 2019)
Log Message:
-----------
use properties for document class
Modified Paths:
--------------
trunk/bibdesk/BibDocument_DataSource.h
trunk/bibdesk/BibDocument_Groups.h
trunk/bibdesk/BibDocument_Search.h
trunk/bibdesk/BibDocument_UI.h
Modified: trunk/bibdesk/BibDocument_DataSource.h
===================================================================
--- trunk/bibdesk/BibDocument_DataSource.h 2019-07-15 21:00:10 UTC (rev
24030)
+++ trunk/bibdesk/BibDocument_DataSource.h 2019-07-15 21:06:06 UTC (rev
24031)
@@ -49,9 +49,10 @@
- (BOOL)writePublications:(NSArray*)pubs
forDragCopyType:(BDSKDragCopyType)dragCopyType citeString:(NSString
*)citeString toPasteboard:(NSPasteboard*)pboard;
- (NSImage *)dragImageForPromisedItemsUsingCiteString:(NSString *)citeString;
- (void)clearPromisedDraggedItems;
-- (NSDictionary *)currentTableColumnWidthsAndIdentifiers;
-- (BOOL)isDragFromExternalGroups;
-- (void)setDragFromExternalGroups:(BOOL)flag;
+
+@property (nonatomic, readonly) NSDictionary
*currentTableColumnWidthsAndIdentifiers;
+@property (nonatomic, getter=isDragFromExternalGroups) BOOL
dragFromExternalGroups;
+
- (BOOL)selectItemsInAuxFileURL:(NSURL *)auxURL;
@end
Modified: trunk/bibdesk/BibDocument_Groups.h
===================================================================
--- trunk/bibdesk/BibDocument_Groups.h 2019-07-15 21:00:10 UTC (rev 24030)
+++ trunk/bibdesk/BibDocument_Groups.h 2019-07-15 21:06:06 UTC (rev 24031)
@@ -46,10 +46,10 @@
- (BOOL)hasGroupTypeSelected:(BDSKGroupType)groupType;
- (BOOL)hasGroupTypeClickedOrSelected:(BDSKGroupType)groupType;
-- (NSArray *)currentGroupFields;
+@property (nonatomic, readonly) NSArray *currentGroupFields;
-- (NSArray *)selectedGroups;
-- (NSArray *)clickedOrSelectedGroups;
+@property (nonatomic, readonly) NSArray *selectedGroups;
+@property (nonatomic, readonly) NSArray *clickedOrSelectedGroups;
- (BOOL)selectGroup:(BDSKGroup *)aGroup;
- (BOOL)selectGroups:(NSArray *)theGroups;
@@ -118,7 +118,8 @@
- (void)handleFilterChangedNotification:(NSNotification *)notification;
-- (NSArray *)groupSortDescriptors;
+@property (nonatomic, readonly) NSArray *groupSortDescriptors;
+
- (void)sortGroupsByKey:(NSString *)key;
- (void)resortParentGroup:(BDSKParentGroup *)parentGroup;
Modified: trunk/bibdesk/BibDocument_Search.h
===================================================================
--- trunk/bibdesk/BibDocument_Search.h 2019-07-15 21:00:10 UTC (rev 24030)
+++ trunk/bibdesk/BibDocument_Search.h 2019-07-15 21:06:06 UTC (rev 24031)
@@ -43,8 +43,7 @@
@interface BibDocument (Search) <BDSKFileContentSearchControllerDelegate>
-- (NSString *)searchString;
-- (void)setSearchString:(NSString *)filterterm;
+@property (nonatomic, retain) NSString *searchString;
- (IBAction)changeSearchType:(id)sender;
- (IBAction)search:(id)sender;
@@ -62,7 +61,7 @@
#pragma mark Find panel
-- (NSString *)selectedStringForFind;
+@property (nonatomic, readonly) NSString *selectedStringForFind;
#pragma mark Completion
Modified: trunk/bibdesk/BibDocument_UI.h
===================================================================
--- trunk/bibdesk/BibDocument_UI.h 2019-07-15 21:00:10 UTC (rev 24030)
+++ trunk/bibdesk/BibDocument_UI.h 2019-07-15 21:06:06 UTC (rev 24031)
@@ -49,7 +49,7 @@
- (void)updateBottomPreviewPane;
- (void)updateSidePreviewPane;
-- (NSArray *)shownFiles;
+@property (nonatomic, readonly) NSArray *shownFiles;
- (void)updateFileViews;
- (void)setStatus:(NSString *)status;
@@ -57,15 +57,15 @@
- (void)updateStatus;
-- (BOOL)isDisplayingSearchButtons;
-- (BOOL)isDisplayingFileContentSearch;
-- (BOOL)isDisplayingSearchGroupView;
-- (BOOL)isDisplayingWebGroupView;
+@property (nonatomic, readonly) BOOL isDisplayingSearchButtons;
+@property (nonatomic, readonly) BOOL isDisplayingFileContentSearch;
+@property (nonatomic, readonly) BOOL isDisplayingSearchGroupView;
+@property (nonatomic, readonly) BOOL isDisplayingWebGroupView;
- (void)addControlView:(NSView *)controlView;
- (void)removeControlView:(NSView *)controlView;
-- (NSMenu *)columnsMenu;
+@property (nonatomic, readonly) NSMenu *columnsMenu;
- (void)registerForNotifications;
- (void)startObserving;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit