Revision: 6791
http://skim-app.svn.sourceforge.net/skim-app/?rev=6791&view=rev
Author: hofman
Date: 2010-09-09 22:52:24 +0000 (Thu, 09 Sep 2010)
Log Message:
-----------
Scripting KVC method insertIn<Key>: is not needed anymore, so remove
implementations
Modified Paths:
--------------
trunk/PDFPage_SKExtensions.h
trunk/PDFPage_SKExtensions.m
trunk/SKApplicationController.h
trunk/SKApplicationController.m
trunk/SKBookmark.h
trunk/SKBookmark.m
trunk/SKMainDocument.h
trunk/SKMainDocument.m
Modified: trunk/PDFPage_SKExtensions.h
===================================================================
--- trunk/PDFPage_SKExtensions.h 2010-09-09 21:48:56 UTC (rev 6790)
+++ trunk/PDFPage_SKExtensions.h 2010-09-09 22:52:24 UTC (rev 6791)
@@ -93,7 +93,6 @@
- (NSArray *)lineBoundsAsQDRects;
- (NSTextStorage *)richText;
- (NSArray *)notes;
-- (void)insertInNotes:(id)newNote;
- (void)insertObject:(id)newNote inNotesAtIndex:(NSUInteger)index;
- (void)removeObjectFromNotesAtIndex:(NSUInteger)index;
Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m 2010-09-09 21:48:56 UTC (rev 6790)
+++ trunk/PDFPage_SKExtensions.m 2010-09-09 22:52:24 UTC (rev 6791)
@@ -453,7 +453,7 @@
return notes;
}
-- (void)insertInNotes:(id)newNote {
+- (void)insertObject:(id)newNote inNotesAtIndex:(NSUInteger)anIndex {
if ([self isNotesPage] == NO) {
SKPDFView *pdfView = [(SKMainDocument *)[self containingDocument]
pdfView];
@@ -462,10 +462,6 @@
}
}
-- (void)insertObject:(id)newNote inNotesAtIndex:(NSUInteger)anIndex {
- [self insertInNotes:newNote];
-}
-
- (void)removeObjectFromNotesAtIndex:(NSUInteger)anIndex {
if ([self isNotesPage] == NO) {
PDFAnnotation *note = [[self notes] objectAtIndex:anIndex];
Modified: trunk/SKApplicationController.h
===================================================================
--- trunk/SKApplicationController.h 2010-09-09 21:48:56 UTC (rev 6790)
+++ trunk/SKApplicationController.h 2010-09-09 22:52:24 UTC (rev 6791)
@@ -64,7 +64,6 @@
@property (nonatomic) FourCharCode defaultStartLineStyle, defaultEndLineStyle,
defaultIconType;
- (NSArray *)bookmarks;
-- (void)insertInBookmarks:(SKBookmark *)bookmark;
- (void)insertObject:(SKBookmark *)bookmark
inBookmarksAtIndex:(NSUInteger)anIndex;
- (void)removeObjectFromBookmarksAtIndex:(NSUInteger)anIndex;
Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m 2010-09-09 21:48:56 UTC (rev 6790)
+++ trunk/SKApplicationController.m 2010-09-09 22:52:24 UTC (rev 6791)
@@ -469,10 +469,6 @@
return [[[SKBookmarkController sharedBookmarkController] bookmarkRoot]
bookmarks];
}
-- (void)insertInBookmarks:(SKBookmark *)bookmark {
- [[[SKBookmarkController sharedBookmarkController] bookmarkRoot]
insertInBookmarks:bookmark];
-}
-
- (void)insertObject:(SKBookmark *)bookmark
inBookmarksAtIndex:(NSUInteger)anIndex {
[[[SKBookmarkController sharedBookmarkController] bookmarkRoot]
insertObject:bookmark inBookmarksAtIndex:anIndex];
}
Modified: trunk/SKBookmark.h
===================================================================
--- trunk/SKBookmark.h 2010-09-09 21:48:56 UTC (rev 6790)
+++ trunk/SKBookmark.h 2010-09-09 22:52:24 UTC (rev 6791)
@@ -95,7 +95,6 @@
@property (nonatomic, readonly) NSArray *entireContents;
- (NSArray *)bookmarks;
-- (void)insertInBookmarks:(SKBookmark *)bookmark;
- (void)insertObject:(SKBookmark *)bookmark
inBookmarksAtIndex:(NSUInteger)anIndex;
- (void)removeObjectFromBookmarksAtIndex:(NSUInteger)anIndex;
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2010-09-09 21:48:56 UTC (rev 6790)
+++ trunk/SKBookmark.m 2010-09-09 22:52:24 UTC (rev 6791)
@@ -196,7 +196,6 @@
- (NSArray *)children { return nil; }
- (NSUInteger)countOfChildren { return 0; }
- (SKBookmark *)objectInChildrenAtIndex:(NSUInteger)anIndex { return nil; }
-- (void)insertInChildren:(SKBookmark *)child {}
- (void)insertObject:(SKBookmark *)child inChildrenAtIndex:(NSUInteger)anIndex
{}
- (void)removeObjectFromChildrenAtIndex:(NSUInteger)anIndex {}
@@ -234,10 +233,6 @@
return [self children];
}
-- (void)insertInBookmarks:(SKBookmark *)bookmark {
- return [self insertObject:bookmark inChildrenAtIndex:[self
countOfChildren]];
-}
-
- (void)insertObject:(SKBookmark *)bookmark
inBookmarksAtIndex:(NSUInteger)anIndex {
[self insertObject:bookmark inChildrenAtIndex:anIndex];
}
@@ -579,10 +574,6 @@
return [children objectAtIndex:anIndex];
}
-- (void)insertInChildren:(SKBookmark *)child {
- [self insertObject:child inChildrenAtIndex:[children count]];
-}
-
- (void)insertObject:(SKBookmark *)child inChildrenAtIndex:(NSUInteger)anIndex
{
[children insertObject:child atIndex:anIndex];
[child setParent:self];
Modified: trunk/SKMainDocument.h
===================================================================
--- trunk/SKMainDocument.h 2010-09-09 21:48:56 UTC (rev 6790)
+++ trunk/SKMainDocument.h 2010-09-09 22:52:24 UTC (rev 6791)
@@ -122,7 +122,6 @@
@property (nonatomic, readonly) double rating;
- (NSArray *)notes;
-- (void)insertInNotes:(PDFAnnotation *)newNote;
- (void)insertObject:(PDFAnnotation *)newNote
inNotesAtIndex:(NSUInteger)anIndex;
- (void)removeObjectFromNotesAtIndex:(NSUInteger)anIndex;
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2010-09-09 21:48:56 UTC (rev 6790)
+++ trunk/SKMainDocument.m 2010-09-09 22:52:24 UTC (rev 6791)
@@ -1860,7 +1860,7 @@
return [[self mainWindowController] notes];
}
-- (void)insertInNotes:(PDFAnnotation *)newNote {
+- (void)insertObject:(PDFAnnotation *)newNote
inNotesAtIndex:(NSUInteger)anIndex {
PDFPage *page = [newNote page];
if (page && [[page annotations] containsObject:newNote] == NO) {
SKPDFView *pdfView = [self pdfView];
@@ -1872,10 +1872,6 @@
}
}
-- (void)insertObject:(PDFAnnotation *)newNote
inNotesAtIndex:(NSUInteger)anIndex {
- [self insertInNotes:newNote];
-}
-
- (void)removeObjectFromNotesAtIndex:(NSUInteger)anIndex {
PDFAnnotation *note = [[self notes] objectAtIndex:anIndex];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful,
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance.
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit