Revision: 5733
http://skim-app.svn.sourceforge.net/skim-app/?rev=5733&view=rev
Author: hofman
Date: 2009-09-09 19:13:39 +0000 (Wed, 09 Sep 2009)
Log Message:
-----------
just use formal delegate protocols with @optional methods also using 10.5 SDK
Modified Paths:
--------------
trunk/BDSKDragImageView.h
trunk/SKApplication.h
trunk/SKBookmarkOutlineView.h
trunk/SKCompatibility.h
trunk/SKDownload.h
trunk/SKNoteOutlineView.h
trunk/SKOutlineView.h
trunk/SKPDFSynchronizer.h
trunk/SKSnapshotWindowController.h
trunk/SKSplitView.h
trunk/SKTableView.h
trunk/SKThumbnail.h
trunk/SKThumbnailTableView.h
trunk/SKTocOutlineView.h
trunk/SKTransitionController.m
trunk/SKTypeSelectHelper.h
Modified: trunk/BDSKDragImageView.h
===================================================================
--- trunk/BDSKDragImageView.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/BDSKDragImageView.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -41,7 +41,7 @@
@class BDSKDragImageView;
@protocol BDSKDragImageViewDelegate <NSObject>
-SKOPTIONAL(BDSKDragImageViewDelegate)
+...@optional
- (BOOL)dragImageView:(BDSKDragImageView *)view
writeDataToPasteboard:(NSPasteboard *)pasteboard;
- (NSArray *)dragImageView:(BDSKDragImageView *)view
namesOfPromisedFilesDroppedAtDestination:(NSURL *)dropDestination;
Modified: trunk/SKApplication.h
===================================================================
--- trunk/SKApplication.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKApplication.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -41,7 +41,7 @@
extern NSString *SKApplicationStartsTerminatingNotification;
@protocol SKApplicationDelegate <NSApplicationDelegate>
-SKOPTIONAL(SKApplicationDelegate)
+...@optional
- (void)applicationStartsTerminating:(NSNotification *)aNotification;
@end
Modified: trunk/SKBookmarkOutlineView.h
===================================================================
--- trunk/SKBookmarkOutlineView.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKBookmarkOutlineView.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -41,7 +41,7 @@
@protocol SKBookmarkOutlineViewDelegate <SKOutlineViewDelegate>
-SKOPTIONAL(SKBookmarkOutlineViewDelegate)
+...@optional
- (BOOL)outlineView:(NSOutlineView *)anOutlineView
drawSeparatorRowForItem:(id)item;
Modified: trunk/SKCompatibility.h
===================================================================
--- trunk/SKCompatibility.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKCompatibility.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -58,12 +58,10 @@
@protocol NSTabViewDelegate <NSObject> @end
@protocol NSSplitViewDelegate <NSObject> @end
-#define SKOPTIONAL(name) @end @interface NSObject (name)
#define SKCONFORM(protocol)
#else
-#define SKOPTIONAL(name) @optional
#define SKCONFORM(protocol) <protocol>
#endif
Modified: trunk/SKDownload.h
===================================================================
--- trunk/SKDownload.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKDownload.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -57,7 +57,7 @@
@class SKDownload;
@protocol SKDownloadDelegate <NSObject>
-SKOPTIONAL(SKDownloadDelegate)
+...@optional
- (void)downloadDidStart:(SKDownload *)download;
- (void)downloadDidBeginDownloading:(SKDownload *)download;
Modified: trunk/SKNoteOutlineView.h
===================================================================
--- trunk/SKNoteOutlineView.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKNoteOutlineView.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -41,7 +41,7 @@
@protocol SKNoteOutlineViewDelegate <SKOutlineViewDelegate>
-SKOPTIONAL(SKNoteOutlineViewDelegate)
+...@optional
- (BOOL)outlineView:(NSOutlineView *)anOutlineView canResizeRowByItem:(id)item;
- (void)outlineView:(NSOutlineView *)anOutlineView
setHeightOfRow:(CGFloat)newHeight byItem:(id)item;
Modified: trunk/SKOutlineView.h
===================================================================
--- trunk/SKOutlineView.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKOutlineView.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -41,7 +41,7 @@
@protocol SKOutlineViewDelegate <NSOutlineViewDelegate>
-SKOPTIONAL(SKOutlineViewDelegate)
+...@optional
- (void)outlineView:(NSOutlineView *)anOutlineView deleteItems:(NSArray
*)items;
- (BOOL)outlineView:(NSOutlineView *)anOutlineView canDeleteItems:(NSArray
*)items;
@@ -58,7 +58,7 @@
@end
@protocol SKOutlineViewDataSource <NSOutlineViewDataSource>
-SKOPTIONAL(SKOutlineViewDataSource)
+...@optional
- (void)outlineView:(NSOutlineView *)anOutlineView
dragEndedWithOperation:(NSDragOperation)operation;
Modified: trunk/SKPDFSynchronizer.h
===================================================================
--- trunk/SKPDFSynchronizer.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKPDFSynchronizer.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -47,7 +47,7 @@
@class SKPDFSynchronizer;
@protocol SKPDFSynchronizerDelegate <NSObject>
-SKOPTIONAL(SKPDFSynchronizerDelegate)
+...@optional
- (void)synchronizer:(SKPDFSynchronizer *)synchronizer
foundLine:(NSInteger)line inFile:(NSString *)file;
- (void)synchronizer:(SKPDFSynchronizer *)synchronizer
foundLocation:(NSPoint)point atPageIndex:(NSUInteger)pageIndex
options:(NSInteger)options;
Modified: trunk/SKSnapshotWindowController.h
===================================================================
--- trunk/SKSnapshotWindowController.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKSnapshotWindowController.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -43,7 +43,7 @@
@class SKSnapshotWindowController;
@protocol SKSnapshotWindowControllerDelegate <NSObject>
-SKOPTIONAL(SKSnapshotWindowControllerDelegate)
+...@optional
- (void)snapshotControllerDidFinishSetup:(SKSnapshotWindowController
*)controller;
- (void)snapshotControllerWindowWillClose:(SKSnapshotWindowController
*)controller;
Modified: trunk/SKSplitView.h
===================================================================
--- trunk/SKSplitView.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKSplitView.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -42,7 +42,7 @@
@protocol SKSplitViewDelegate <NSSplitViewDelegate>
-SKOPTIONAL(SKSplitViewDelegate)
+...@optional
- (void)splitView:(SKSplitView *)sender
doubleClickedDividerAt:(NSInteger)offset;
@end
Modified: trunk/SKTableView.h
===================================================================
--- trunk/SKTableView.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKTableView.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -41,7 +41,7 @@
@protocol SKTableViewDelegate <NSTableViewDelegate>
-SKOPTIONAL(SKTableViewDelegate)
+...@optional
- (void)tableView:(NSTableView *)aTableView deleteRowsWithIndexes:(NSIndexSet
*)rowIndexes;
- (BOOL)tableView:(NSTableView *)aTableView
canDeleteRowsWithIndexes:(NSIndexSet *)rowIndexes;
Modified: trunk/SKThumbnail.h
===================================================================
--- trunk/SKThumbnail.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKThumbnail.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -42,7 +42,7 @@
@class SKThumbnail;
@protocol SKThumbnailDelegate <NSObject>
-SKOPTIONAL(SKThumbnailDelegate)
+...@optional
- (BOOL)generateImageForThumbnail:(SKThumbnail *)thumbnail;
@end
Modified: trunk/SKThumbnailTableView.h
===================================================================
--- trunk/SKThumbnailTableView.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKThumbnailTableView.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -41,7 +41,7 @@
@protocol SKThumbnailTableViewDelegate <SKTableViewDelegate>
-SKOPTIONAL(SKThumbnailTableViewDelegate)
+...@optional
- (NSArray *)tableViewHighlightedRows:(NSTableView *)tableView;
- (BOOL)tableView:(NSTableView *)tableView
commandSelectRow:(NSInteger)rowIndex;
Modified: trunk/SKTocOutlineView.h
===================================================================
--- trunk/SKTocOutlineView.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKTocOutlineView.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -43,7 +43,7 @@
@protocol SKTocOutlineViewDelegate <SKOutlineViewDelegate>
-SKOPTIONAL(SKTocOutlineViewDelegate)
+...@optional
- (NSArray *)outlineViewHighlightedRows:(NSOutlineView *)anOutlineView;
- (BOOL)outlineView:(NSOutlineView *)anOutlineView
shouldTrackTableColumn:(NSTableColumn *)aTableColumn item:(id)item;
Modified: trunk/SKTransitionController.m
===================================================================
--- trunk/SKTransitionController.m 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKTransitionController.m 2009-09-09 19:13:39 UTC (rev 5733)
@@ -112,7 +112,7 @@
#pragma mark -
@protocol SKTransitionAnimationDelegate <NSAnimationDelegate>
-SKOPTIONAL(SKTransitionAnimationDelegate)
+...@optional
- (void)display;
@end
Modified: trunk/SKTypeSelectHelper.h
===================================================================
--- trunk/SKTypeSelectHelper.h 2009-09-09 17:11:27 UTC (rev 5732)
+++ trunk/SKTypeSelectHelper.h 2009-09-09 19:13:39 UTC (rev 5733)
@@ -101,7 +101,7 @@
- (NSUInteger)typeSelectHelperCurrentlySelectedIndex:(SKTypeSelectHelper
*)typeSelectHelper; // required
- (void)typeSelectHelper:(SKTypeSelectHelper *)typeSelectHelper
selectItemAtIndex:(NSUInteger)itemIndex; // required
-SKOPTIONAL(SKTypeSelectDataSource)
+...@optional
- (void)typeSelectHelper:(SKTypeSelectHelper *)typeSelectHelper
didFailToFindMatchForSearchString:(NSString *)searchString; // optional
- (void)typeSelectHelper:(SKTypeSelectHelper *)typeSelectHelper
updateSearchString:(NSString *)searchString; // optional
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit