From: Christiaan H. <ho...@us...> - 2005-06-28 11:28:15
|
Update of /cvsroot/bibdesk/bibdesk/Scripting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15507/Scripting Modified Files: Tag: TRY_CMH_CROSSREF_BR_1x BibDesk.sdef BibItem+Scripting.h BibItem+Scripting.m Log Message: The -title accessor now adds Chapter field for inbook. This is used for window titles and display in the main table. The title property in AppleScript now accesses the value of the Title field. Index: BibItem+Scripting.h =================================================================== RCS file: /cvsroot/bibdesk/bibdesk/Scripting/BibItem+Scripting.h,v retrieving revision 1.11.2.3.2.2 retrieving revision 1.11.2.3.2.3 diff -C2 -d -r1.11.2.3.2.2 -r1.11.2.3.2.3 *** BibItem+Scripting.h 9 Jun 2005 12:01:58 -0000 1.11.2.3.2.2 --- BibItem+Scripting.h 28 Jun 2005 11:28:01 -0000 1.11.2.3.2.3 *************** *** 25,29 **** - (void)setASCiteKey:(NSString *)newKey; ! - (void)setTitle:(NSString *)newTitle; // wrapping original methods --- 25,30 ---- - (void)setASCiteKey:(NSString *)newKey; ! - (NSString*)ASTitle; ! - (void)setASTitle:(NSString *)newTitle; // wrapping original methods Index: BibDesk.sdef =================================================================== RCS file: /cvsroot/bibdesk/bibdesk/Scripting/BibDesk.sdef,v retrieving revision 1.21.2.1.2.3 retrieving revision 1.21.2.1.2.4 diff -C2 -d -r1.21.2.1.2.3 -r1.21.2.1.2.4 *** BibDesk.sdef 9 Jun 2005 12:01:43 -0000 1.21.2.1.2.3 --- BibDesk.sdef 28 Jun 2005 11:28:01 -0000 1.21.2.1.2.4 *************** *** 121,125 **** </property> <property name="title" code="titl" type="string" description="The publication's title."> ! <cocoa method="title"/> </property> <property name="abstract" code="abst" type="string" description="The publication's abstract."> --- 121,125 ---- </property> <property name="title" code="titl" type="string" description="The publication's title."> ! <cocoa method="ASTitle"/> </property> <property name="abstract" code="abst" type="string" description="The publication's abstract."> Index: BibItem+Scripting.m =================================================================== RCS file: /cvsroot/bibdesk/bibdesk/Scripting/BibItem+Scripting.m,v retrieving revision 1.21.2.4.2.4 retrieving revision 1.21.2.4.2.5 diff -C2 -d -r1.21.2.4.2.4 -r1.21.2.4.2.5 *** BibItem+Scripting.m 9 Jun 2005 12:01:58 -0000 1.21.2.4.2.4 --- BibItem+Scripting.m 28 Jun 2005 11:28:01 -0000 1.21.2.4.2.5 *************** *** 87,92 **** } ! // the getter is in BibItem, the setter is only supposed to be used in AppleScript ! - (void)setTitle:(NSString*)newTitle { [self setField:BDSKTitleString toValue:newTitle]; [[self undoManager] setActionName:NSLocalizedString(@"AppleScript",@"Undo action name for AppleScript")]; --- 87,95 ---- } ! - (NSString*)ASTitle { ! return [self valueOfField:BDSKTitleString]; ! } ! ! - (void)setASTitle:(NSString*)newTitle { [self setField:BDSKTitleString toValue:newTitle]; [[self undoManager] setActionName:NSLocalizedString(@"AppleScript",@"Undo action name for AppleScript")]; |