Revision: 18190
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18190&view=rev
Author: hofman
Date: 2011-10-27 11:32:47 +0000 (Thu, 27 Oct 2011)
Log Message:
-----------
Use correct init method for linked remote URLs
Modified Paths:
--------------
trunk/bibdesk/BDSKFindController.m
Modified: trunk/bibdesk/BDSKFindController.m
===================================================================
--- trunk/bibdesk/BDSKFindController.m 2011-10-27 06:33:58 UTC (rev 18189)
+++ trunk/bibdesk/BDSKFindController.m 2011-10-27 11:32:47 UTC (rev 18190)
@@ -1035,7 +1035,7 @@
if(numRepl == 0)
newStr = nil;
}
- if (newStr && (replFile = [[BDSKLinkedFile alloc]
initWithURL:[NSURL URLWithString:newStr]])) {
+ if (newStr && (replFile = [[BDSKLinkedFile alloc]
initWithURLString:newStr])) {
[[bibItem mutableArrayValueForKey:@"files"]
replaceObjectAtIndex:idx withObject:replFile];
number++;
[replFile release];
@@ -1100,7 +1100,7 @@
origStr = [[file URL] absoluteString];
if([theRegex findInString:origStr]){
origStr = [theRegex replaceWithString:replStr
inString:origStr];
- if ((replFile = [[BDSKLinkedFile alloc] initWithURL:[NSURL
URLWithString:origStr]])) {
+ if ((replFile = [[BDSKLinkedFile alloc]
initWithURLString:origStr])) {
[[bibItem mutableArrayValueForKey:@"files"]
replaceObjectAtIndex:idx withObject:replFile];
number++;
[replFile release];
@@ -1161,7 +1161,7 @@
NSMutableArray *files = [bibItem mutableArrayValueForKey:@"files"];
BDSKLinkedFile *replFile;
- if ((replFile = [[BDSKLinkedFile alloc] initWithURL:[NSURL
URLWithString:replStr]])) {
+ if ((replFile = [[BDSKLinkedFile alloc]
initWithURLString:replStr])) {
if([remoteURLs count] == 0){
if(shouldSetWhenEmpty == NO) {
[replFile release];
@@ -1225,7 +1225,7 @@
idx = [[bibItem files] indexOfObjectIdenticalTo:file];
if (idx == NSNotFound) continue;
origStr = [[file URL] absoluteString];
- if ((replFile = [[BDSKLinkedFile alloc] initWithURL:[NSURL
URLWithString:[replStr stringByAppendingString:origStr]]])) {
+ if ((replFile = [[BDSKLinkedFile alloc]
initWithURLString:[replStr stringByAppendingString:origStr]])) {
[[bibItem mutableArrayValueForKey:@"files"]
replaceObjectAtIndex:idx withObject:replFile];
number++;
[replFile release];
@@ -1280,7 +1280,7 @@
idx = [[bibItem files] indexOfObjectIdenticalTo:file];
if (idx == NSNotFound) continue;
origStr = [[file URL] absoluteString];
- if ((replFile = [[BDSKLinkedFile alloc] initWithURL:[NSURL
URLWithString:[origStr stringByAppendingString:replStr]]])) {
+ if ((replFile = [[BDSKLinkedFile alloc]
initWithURLString:[origStr stringByAppendingString:replStr]])) {
[[bibItem mutableArrayValueForKey:@"files"]
replaceObjectAtIndex:idx withObject:replFile];
number++;
[replFile release];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit