You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Copyright (c) 2015 Tom Houpt. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
@interface NSString (CiteKeyExtensions)
/** return an attributed string of length 1 consisting of an NSAttachmentChararacter with a NSTextAttachment. The NSTextAttachment has name <self> and with a token image
*/
-(NSAttributedString *)stringAsTokenAttachment;
/** return an NSImage of the string drawn in a rounded token rectangle.
current implementation is font size 12 in 16 tall token, with light blue color d2e7fb
*/
-(NSImage *)tokenImage;
/** scan the string for every universal citekey @"{<author>:YYYYaa}" and replace with token attachements