小编And*_*rew的帖子

WebView(webkit)"在字典中查找"UI Bug - Mac App

我发现WebView的一个错误很容易重新创建但很难解决,我正在寻找建议,最好是答案.

该错误是当您使用Apple的内置字典"查找"命令时,通过任何方式,上下文菜单,多点触摸手势(3指双击)或标准全局热键"cmd ctrl d".在调用字典查找命令后,将出现一个弹出框,其中包含您突出显示的单词的定义.但是,页面上的文本有时会变得模糊,表单/字段不再对mouseDown等输入事件做出正确响应.

就像我之前说的那样,复制很容易.我已经将一个示例项目上传到GitHub.

https://github.com/ChimpStudios/WebView-DictionaryBug

Safari没有这个bug,所以Apple以某种方式修复了它,但它仍然存在于WebView对象中.

macos cocoa webkit objective-c

6
推荐指数
1
解决办法
413
查看次数

UIRequiredDeviceCapabilities相当于Mac App Store?

我正在开发一款仅适用于笔记本电脑用户(MacBooks)的Mac应用程序,并计划在Mac App Store上发布此应用程序.对于iOS App Store,您可以在plist UIRequiredDeviceCapabilities中指定,以便只有拥有正确设备的用户才能在商店中看到该应用.有没有办法对Mac App Store做同样的事情?

macos cocoa objective-c app-store

5
推荐指数
1
解决办法
317
查看次数

HIDPI/Retina情节绘图?

在过去的一年里,我看过bitbucket的3张关于这件事的门票,但从未见过明确的答案.

其中一张门票提供了一些代码,但我不知道该代码属于哪里.

var devicePixelRatio = window.devicePixelRatio || 1,
backingStoreRatio = ctx.webkitBackingStorePixelRatio ||
        ctx.mozBackingStorePixelRatio ||
        ctx.msBackingStorePixelRatio ||
        ctx.oBackingStorePixelRatio ||
        ctx.backingStorePixelRatio || 1;

ratio = devicePixelRatio / backingStoreRatio;
if (devicePixelRatio !== backingStoreRatio) {
    var oldWidth = canvas.width;
    var oldHeight = canvas.height;
this.canvasOrigWidth = oldWidth;
this.canvasOrigHeight = oldHeight;
canvas.width = oldWidth * ratio;
canvas.height = oldHeight * ratio;

canvas.style.width = oldWidth + 'px';
canvas.style.height = oldHeight + 'px';

// now scale the context to counter
// the fact …
Run Code Online (Sandbox Code Playgroud)

jqplot

4
推荐指数
1
解决办法
1030
查看次数

程序Xcode 7和Receigen中的意外"@"

我昨晚刚刚更新到Xcode 7.0,它似乎打破了Receigen生成的代码.

CFStringRef ReceiptValidation_str1 = @obfuscateCF@("");
Run Code Online (Sandbox Code Playgroud)

程序中意外的'@'

Receigen自2014年以来一直没有更新,所以这几乎肯定是一个Xcode 7问题.

我联系了Receigen的开发人员并且还没有收到回复(它只有几个小时).任何帮助,将不胜感激.

xcode xcode7 receigen

3
推荐指数
1
解决办法
449
查看次数

标签 统计

cocoa ×2

macos ×2

objective-c ×2

app-store ×1

jqplot ×1

receigen ×1

webkit ×1

xcode ×1

xcode7 ×1