Revision: 11386
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11386&view=rev
Author:   hofman
Date:     2007-10-25 09:27:58 -0700 (Thu, 25 Oct 2007)

Log Message:
-----------
Fix typos in last commit.

Modified Paths:
--------------
    branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKFile.m

Modified: branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKFile.m
===================================================================
--- branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKFile.m  2007-10-25 16:19:18 UTC 
(rev 11385)
+++ branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKFile.m  2007-10-25 16:27:58 UTC 
(rev 11386)
@@ -393,7 +393,7 @@
 // guaranteed to be called with a non-nil alias
 - (id)initWithAlias:(BDAlias *)anAlias relativePath:(NSString *)relPath 
delegate:(id)aDelegate;
 {
-    NSParameterAssert(nil == aDelegate || [aDelegate 
repondsToSelector:@selector(baseURLForAliasFile:));
+    NSParameterAssert(nil == aDelegate || [aDelegate 
respondsToSelector:@selector(baseURLForAliasFile:)]);
     if (self = [super init]) {
         fileRef = NULL; // this is updated lazily, as we don't know the base 
path at this point
         alias = [anAlias retain];
@@ -424,7 +424,7 @@
 - (id)initWithPath:(NSString *)aPath delegate:(id)aDelegate;
 {
     NSParameterAssert(nil != aPath);
-    NSParameterAssert(nil == aDelegate || [aDelegate 
repondsToSelector:@selector(baseURLForAliasFile:));
+    NSParameterAssert(nil == aDelegate || [aDelegate 
respondsToSelector:@selector(baseURLForAliasFile:)]);
     BDAlias *anAlias = nil;
     NSURL *baseURL = [aDelegate baseURLForAliasFile:self];
     NSString *basePath = [baseURL path];
@@ -440,7 +440,7 @@
         if ((self = [self initWithAlias:anAlias relativePath:relPath 
delegate:aDelegate])) {
             if (baseURL)
                 // this initalizes the FSRef and update the alias
-                [self fsRefRelativeToURL:baseURL];
+                [self fsRef];
         }
         [anAlias release];
     } else {
@@ -463,7 +463,7 @@
 - (void)encodeWithCoder:(NSCoder *)coder
 {
     OBASSERT_NOT_REACHED("BDSKAliasFile needs a base path for encoding");
-    [coder encodeObject:[alias aliasData]];
+    [coder encodeObject:[self aliasDataRelativeToPath:[[delegate 
baseURLForAliasFile:self] path]]];
     [coder encodeObject:relativePath];
 }
 
@@ -527,7 +527,7 @@
         if (hasRef == false && alias) {
             if (hasBaseRef) {
                 hasRef = noErr == FSMatchAliasNoUI(&baseRef, kARMNoUI | 
kARMSearch | kARMSearchRelFirst, [alias alias], &aliasCount, &aRef, 
&shouldUpdate, NULL, NULL);
-                shouldUpdate = shouldUpdate && succes;
+                shouldUpdate = shouldUpdate && hasRef;
             } else {
                 hasRef = noErr == FSMatchAliasNoUI(NULL, kARMNoUI | kARMSearch 
| kARMSearchRelFirst, [alias alias], &aliasCount, &aRef, &shouldUpdate, NULL, 
NULL);
                 shouldUpdate = false;
@@ -629,7 +629,7 @@
 }
 
 - (void)setDelegate:(id)newDelegate {
-    NSParameterAssert(nil == aDelegate || [aDelegate 
repondsToSelector:@selector(baseURLForAliasFile:));
+    NSParameterAssert(nil == newDelegate || [newDelegate 
respondsToSelector:@selector(baseURLForAliasFile:)]);
     delegate = newDelegate;
 }
 


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to