layout of text options view consistent with other option views
bind owner controller in nib
no need to set nil representedObject
not really necessary to cache simple arrays
cache options menu items rather than context menus
iboutlets for width and height constraints of options view
height constraint should be equal
set options view height constraint in code so we are sure it fits the option views
don't update option views when there are no option views
compare tokens by pointer equality
observe rich text token after loading window
remove only rich text token temporarily
observe and update rich text token
add some comments
update textviews before content is set by bindings
don't bind directly to file's owner, there still is a retain cycle remaining, probbably related to views not in the window. Also need to explicitly set the owner controller's content to nil after breaking its binding.
save number of regular types rather than added types
Keep track of type templates that were added, remove all unused added type templates on revert
send correct KVO notifications
remove placeholder type template when revert does not add it
simplify when no fields used
remove only rich text token to update its title
restore selection when updating rich text token
reimplemenrt isEqual for BDSKToken classes, needed to compare type templates for default type
get type template that was added
should be no need to set objectValue of tokenField
don't return type template
don't implement isEqual: and hash for BDSKToken classes, we observe specific instances and never compare unidentical objects
use isEqualToAttributedString
use standard low priority
make text when empty larger than field textfield, prescribe width of field with low priority
reduce spacing
do not reset selected token when it remains visible on type selection change
no need for variable
wew know the type
no need to pass new value in kvo observation
assume tokenfield binding does work, it works for me
check for token identically
start observing type templates and tokens in windowControllerDidLoadNib as we don't need undo before this and we remove oserver in windowWillClose
pragma marks for delegates
cache options menus in a maptable
ignore selection change in unfocused tokenfield even earlier
get attachment attribute directly
ignore token hovering early
token is always a property of the attchment cell
Ignore selection change in a non-focused NSTokenField, which happens when hovering a token
range variable instead of location
rename macro
select added token
Thanks, I'll update the code in bibdesk according to your description. Extracting the bibtex from the json should also be easy, as Foundation has a built-in JSON parser.
update MathSciNet web parser for changed API
Dear Christiaan, What's returned by mathscinet has changed again so BDSKMathSciNetParser.m has to be modified again. In this version https://sourceforge.net/p/bibdesk/svn/HEAD/tree/trunk/bibdesk/BDSKMathSciNetParser.m of the source code, line 117 and 118 should be modified, because the correct query string is now of the following form https://mathscinet.ams.org/mathscinet/api/publications/format ?formats=bib&ids=4085669,4123456,... and what's returned by the query is now a json list of the following...
Dear Christiaan, What's returned by mathscinet has changed again so BDSKMathSciNetParser.m has to be modified again. In this version https://sourceforge.net/p/bibdesk/svn/HEAD/tree/trunk/bibdesk/BDSKMathSciNetParser.m of the source code, line 117 and 118 should be modified, because the correct query string is now of the following form https://mathscinet.ams.org/mathscinet/api/publications/format ?formats=bib&ids=4085669,4123456,... and what's returned by the query is now a json list of the following...
don't check for string before ignoring zero range
make sure selected token is set to nil when it was removed
reset option views when .e.g. undo clears the item template
invert condition
check for existing join style keys afterwards
alignment
do not search options for which we already found a key, we also do not support multiple option keys for the same option (e.g. appending and prepending)
don't get object twice
option keys are only key paths when they start with path or URL
define variables later
use option instead of property
fix nullability of token keys
fix nullability of token keys
check for numbber tag tokens before setting prefix/suffix, just to be sure
reassign count variable earlier so we can use it
don't open template when condition tag has multiple suffix tags
allow opening templates with condition tags based on field rather than full keyPath
set key variable as e use it later
fix type
rename other match type to non empty match type
alternate text must be text
attributed string is nonnull
no need to implement valueForUndefinedKey as we don't raise
don't raise for non applicable keys of selected token
no need to further check
move token from key to BDSKToken class
read templates with date or linked file tags
variabble is already typed
don't use nullability in implementation
return editingString from tokenField:representedObjectForEditingString: to prevent NSTokenField from trimming whitespace
start looking for empty line prefix one character earlier, as it can be a newline that was removed
return NSNotFound for empty range to find empty line
parse item template not as sutemplate, as spaces and newlines were already removed from the range
change placeholder menu item title
higher compression resistance for label
control text color for repository token fields so they selet properly
set selection of array controller rather than tale view
pubtype of type template is read only
KVO for adding type template only for reading, irrelevant in init
use constant string
bind hidden directly to file's owner
bbind contents of popup buttons and enabled and hidden directly to file's owner rather than through object controller
don't set objectValue of tokenfields that use bindings
textColor is non-null
itemTemplate is null_resettable
revert previous commit, not boolean properties
is before getter