Revision: 6731
http://skim-app.svn.sourceforge.net/skim-app/?rev=6731&view=rev
Author: hofman
Date: 2010-08-24 18:23:22 +0000 (Tue, 24 Aug 2010)
Log Message:
-----------
set pageIndex to NSNotFound when setup does not contain it, e.g. for .skim files
Modified Paths:
--------------
trunk/SKBookmark.m
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2010-08-24 17:10:40 UTC (rev 6730)
+++ trunk/SKBookmark.m 2010-08-24 18:23:22 UTC (rev 6731)
@@ -322,7 +322,8 @@
}
- (id)initWithSetup:(NSDictionary *)aSetupDict label:(NSString *)aLabel {
- if (self = [self initWithAlias:[BDAlias aliasWithData:[aSetupDict
objectForKey:ALIASDATA_KEY]] pageIndex:[[aSetupDict objectForKey:PAGEINDEX_KEY]
unsignedIntegerValue] label:aLabel]) {
+ NSNumber *pageIndexNumber = [aSetupDict objectForKey:PAGEINDEX_KEY];
+ if (self = [self initWithAlias:[BDAlias aliasWithData:[aSetupDict
objectForKey:ALIASDATA_KEY]] pageIndex:(pageIndexNumber ? [pageIndexNumber
unsignedIntegerValue] : NSNotFound) label:aLabel]) {
setup = [aSetupDict copy];
}
return self;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit