[textviewmirror setstring:[textview string]]; //changes the mirror text
}
@end
因为你有可能会键入比textview能过显示的更多的字符,我在这个例子里面使用了一个scrollview。现在,plist(译者:这里指的是cocoa捆束的plist,不是指widget的plist)就必须修改了。找到‘info.plist’—— 它应该是在resources那个组里面。“cfbundleidentifier” 键应该修改为“com.apple.embeddedcocoa.plugin”,而 “nsprincipalclass” 就修改为 “embeddedcocoa”。
<key>cfbundleidentifier</key> <string>com.apple.embeddedcocoa.plugin</string> 首页
上页
下页
尾页
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[12]
[13]
[14]
[15]
[16]
[17]
[18]
[19]
[20]
[21]
[22]
[23]
[24]
[25]
[26]
[27]
[28]
[29]
[30]
[31]
[32]
[33]
本文关键:在Dashboard Widget中嵌入Cocoa(图片贴不上去T_T)
|