在Mac应用程序中显示表情符号图标 [英] Display Emoji icons in Mac app

查看:200
本文介绍了在Mac应用程序中显示表情符号图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望用户能够在我正在为公司工作的小型聊天中轻松访问表情符号图标。
因此,我想创建一个面板,显示可用的表情符号图标。为此,我使用 NSCollectionView 。现在,我需要传递一个字符串,显示在 NSTextField 。这个字符串必须包含一个表情符号图标。

I want the user to have easy access to Emoji icons in a small chat I am making for the company I'm working at. Therefore, I want to make a panel which shows the available Emoji icons. To do this, I am using an NSCollectionView. Now, I need to pass a string which is shown in an NSTextField. This string must contain one Emoji icon.

我无法弄清楚如何在字符串中以unicode编写这个表情符号图标。

I can't figure out how to write this Emoji icon in unicode in a string. Everything I have tried just shows a strange symbol instead of the icon.

任何人都可以告诉我,如何将表情符号图标放入 NSString

Can anyone tell me, how I can put an Emoji icon into an NSString?

推荐答案

这篇关于在Mac应用程序中显示表情符号图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆