2
NSAttributedStringを介してNSTextFieldに画像添付ファイルを配置すると、そのファイルをクリックまたは変更すると画像が消えます。どうしましたか?添付ファイル付きNSAttributedStringを使用したNSTextFieldの奇妙な動作
NSTextAttachment* attachment = [[NSTextAttachment alloc] init];
NSImage *symbolImage = [NSImage imageNamed:@"enabled.png"];
NSLog(@"%@", symbolImage);
NSTextAttachmentCell *anAttachmentCell = [[NSTextAttachmentCell
alloc] initImageCell:symbolImage];
[attachment setAttachmentCell:anAttachmentCell];
return [NSAttributedString attributedStringWithAttachment:attachment];
NSAttributedStringを介して画像添付ファイルをどのようにしているかをコードで表示できますか? –
これを解決しましたか?私はリンクで同じ問題を抱えています:http://stackoverflow.com/questions/8684972/nstextfields-attributed-string-is-delayed-in-rendering – d2kagw
私はしませんでした: – darvin