Revision: 27544
http://sourceforge.net/p/bibdesk/svn/27544
Author: hofman
Date: 2022-06-03 17:59:02 +0000 (Fri, 03 Jun 2022)
Log Message:
-----------
make hasbeenedited read only
Modified Paths:
--------------
trunk/bibdesk/BibItem.h
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.h
===================================================================
--- trunk/bibdesk/BibItem.h 2022-06-03 17:41:13 UTC (rev 27543)
+++ trunk/bibdesk/BibItem.h 2022-06-03 17:59:02 UTC (rev 27544)
@@ -564,7 +564,7 @@
@discussion (comprehensive description)
@result (description)
*/
-@property (nonatomic) BOOL hasBeenEdited;
+@property (nonatomic, readonly) BOOL hasBeenEdited;
/*!
@method suggestedCiteKey
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2022-06-03 17:41:13 UTC (rev 27543)
+++ trunk/bibdesk/BibItem.m 2022-06-03 17:59:02 UTC (rev 27544)
@@ -239,7 +239,7 @@
isNew:YES];
if (self) {
// reset this here, since designated init's updateMetadataForKey set
it to YES
- [self setHasBeenEdited:NO];
+ hasBeenEdited = NO;
}
return self;
}
@@ -4032,7 +4032,7 @@
// The date setters should only be used at initialization or from
updateMetadata:forKey:. If you want to change the date, change the value in
pubFields, and let updateMetadata handle the ivar.
- (void)updateMetadataForKey:(NSString *)key{
- [self setHasBeenEdited:YES];
+ hasBeenEdited = YES;
spotlightMetadataChanged = YES;
BOOL allFieldsChanged = [BDSKAllFieldsString isEqualToString:key];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit