Revision: 6426
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6426&view=rev
Author:   hofman
Date:     2010-04-06 21:25:57 +0000 (Tue, 06 Apr 2010)

Log Message:
-----------
use properties for bookmarks

Modified Paths:
--------------
    trunk/SKBookmark.h
    trunk/SKBookmark.m

Modified: trunk/SKBookmark.h
===================================================================
--- trunk/SKBookmark.h  2010-04-06 17:34:58 UTC (rev 6425)
+++ trunk/SKBookmark.h  2010-04-06 21:25:57 UTC (rev 6426)
@@ -67,28 +67,21 @@
 - (id)initSeparator;
 - (id)initWithProperties:(NSDictionary *)dictionary;
 
-- (NSDictionary *)properties;
+...@property (nonatomic, readonly) NSDictionary *properties;
+...@property (nonatomic, readonly) SKBookmarkType bookmarkType;
+...@property (nonatomic, retain) NSString *label;
+...@property (nonatomic, readonly) NSImage *icon;
+...@property (nonatomic, readonly) NSString *path;
+...@property (nonatomic, readonly) NSUInteger pageIndex;
+...@property (nonatomic, readonly) NSNumber *pageNumber;
+...@property (nonatomic, assign) SKBookmark *parent;
 
-- (SKBookmarkType)bookmarkType;
-
-- (NSString *)label;
-- (void)setLabel:(NSString *)newLabel;
-
-- (NSImage *)icon;
-
-- (NSString *)path;
-- (NSUInteger)pageIndex;
-- (NSNumber *)pageNumber;
-
 - (NSArray *)children;
 - (NSUInteger)countOfChildren;
 - (SKBookmark *)objectInChildrenAtIndex:(NSUInteger)anIndex;
 - (void)insertObject:(SKBookmark *)child inChildrenAtIndex:(NSUInteger)anIndex;
 - (void)removeObjectFromChildrenAtIndex:(NSUInteger)anIndex;
 
-- (SKBookmark *)parent;
-- (void)setParent:(SKBookmark *)newParent;
-
 - (BOOL)isDescendantOf:(SKBookmark *)bookmark;
 - (BOOL)isDescendantOfArray:(NSArray *)bookmarks;
 

Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m  2010-04-06 17:34:58 UTC (rev 6425)
+++ trunk/SKBookmark.m  2010-04-06 21:25:57 UTC (rev 6426)
@@ -86,6 +86,9 @@
 
 @implementation SKBookmark
 
+...@synthesize parent;
+...@dynamic properties, bookmarkType, label, icon, path, pageIndex, pageNumber;
+
 static SKPlaceholderBookmark *defaultPlaceholderBookmark = nil;
 static Class SKBookmarkClass = Nil;
 
@@ -193,14 +196,6 @@
 - (void)insertObject:(SKBookmark *)child inChildrenAtIndex:(NSUInteger)anIndex 
{}
 - (void)removeObjectFromChildrenAtIndex:(NSUInteger)anIndex {}
 
-- (SKBookmark *)parent {
-    return parent;
-}
-
-- (void)setParent:(SKBookmark *)newParent {
-    parent = newParent;
-}
-
 - (BOOL)isDescendantOf:(SKBookmark *)bookmark {
     if (self == bookmark)
         return YES;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to