Revision: 5729
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5729&view=rev
Author:   hofman
Date:     2009-09-09 16:55:17 +0000 (Wed, 09 Sep 2009)

Log Message:
-----------
make typeselect helper delegate a formal protocol on 10.6

Modified Paths:
--------------
    trunk/SKOutlineView.h
    trunk/SKTableView.h
    trunk/SKTypeSelectHelper.h

Modified: trunk/SKOutlineView.h
===================================================================
--- trunk/SKOutlineView.h       2009-09-09 16:40:39 UTC (rev 5728)
+++ trunk/SKOutlineView.h       2009-09-09 16:55:17 UTC (rev 5729)
@@ -37,8 +37,8 @@
  */
 
 #import <Cocoa/Cocoa.h>
+#import "SKTypeSelectHelper.h"
 
-...@class SKTypeSelectHelper;
 
 @protocol SKOutlineViewDelegate <NSOutlineViewDelegate>
 SKOPTIONAL(SKOutlineViewDelegate)
@@ -65,7 +65,7 @@
 @end
 
 
-...@interface SKOutlineView : NSOutlineView {
+...@interface SKOutlineView : NSOutlineView <SKTypeSelectDataSource> {
     SKTypeSelectHelper *typeSelectHelper;
 }
 

Modified: trunk/SKTableView.h
===================================================================
--- trunk/SKTableView.h 2009-09-09 16:40:39 UTC (rev 5728)
+++ trunk/SKTableView.h 2009-09-09 16:55:17 UTC (rev 5729)
@@ -37,8 +37,8 @@
  */
 
 #import <Cocoa/Cocoa.h>
+#import "SKTypeSelectHelper.h"
 
-...@class SKTypeSelectHelper;
 
 @protocol SKTableViewDelegate <NSTableViewDelegate>
 SKOPTIONAL(SKTableViewDelegate)
@@ -65,7 +65,7 @@
 @end
 
 
-...@interface SKTableView : NSTableView {
+...@interface SKTableView : NSTableView <SKTypeSelectDataSource> {
     CFMutableArrayRef trackingRects;
     SKTypeSelectHelper *typeSelectHelper;
 }

Modified: trunk/SKTypeSelectHelper.h
===================================================================
--- trunk/SKTypeSelectHelper.h  2009-09-09 16:40:39 UTC (rev 5728)
+++ trunk/SKTypeSelectHelper.h  2009-09-09 16:55:17 UTC (rev 5729)
@@ -95,12 +95,14 @@
 @end
 
 
-...@interface NSObject (SKTypeSelectDataSource)
+...@protocol SKTypeSelectDataSource <NSObject>
 
 - (NSArray *)typeSelectHelperSelectionItems:(SKTypeSelectHelper 
*)typeSelectHelper; // required
 - (NSUInteger)typeSelectHelperCurrentlySelectedIndex:(SKTypeSelectHelper 
*)typeSelectHelper; // required
 - (void)typeSelectHelper:(SKTypeSelectHelper *)typeSelectHelper 
selectItemAtIndex:(NSUInteger)itemIndex; // required
 
+SKOPTIONAL(SKTypeSelectDataSource)
+
 - (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

Reply via email to