从 Xcode 远程调试时拖动粘贴板为零
我正在编写一个需要在 10.5 和 10.6 中运行的应用程序(我们仍然有 PPC 机器)。我的开发机器是 10.6.4,带有 Xcode 3.2.3,我有一台 10.5.8 机器,带有 Xcode 3.1.2。
我使用远程调试在 10.5.8 机器上测试应用程序,并且我遇到了仅在远程调试时才会出现的拖放方法的问题。
NSTableViewDelegate
方法- (BOOL)tableView:(NSTableView *)tableView writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard
通过一个零的 NSPasteboard。在 10.6.4 或 10.5.8 中本机运行时不会发生这种情况。
我对 Xcode 和 Objective-C 比较陌生,对 GDB 和 SSH 的基础也完全陌生,所以我不知道该怎么做才能找出导致这个问题的原因。
在应用程序启动之前,控制台中还有一些不寻常的消息,不确定是否相关:
Loading program into debugger…
unable to read unknown load command 0x22
Program loaded.
unable to read unknown load command 0x22
unable to read unknown load command 0x22
unable to read unknown load command 0x22
run
[Switching to process 1548 local thread 0x1003]
Running…
I'm writing an app that needs to work in both 10.5 and 10.6 (We still have PPC machines). My development machine is 10.6.4 with Xcode 3.2.3, and I have a 10.5.8 machine with Xcode 3.1.2 on it.
I use remote debugging to test out the app on the 10.5.8 machine, and I've run into a problem with a Drag and Drop method that only occurs when remote debugging.
The NSTableViewDelegate
method - (BOOL)tableView:(NSTableView *)tableView writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard
passes a nil NSPasteboard. This doesn't happen when running natively in 10.6.4 or 10.5.8.
I'm relatively new to Xcode and Objective-C, and completely new to the underpinnings of GDB and SSH, so I don't know what to do to find out what's causing this problem.
There's also some unusual messages in the console just before the app starts, not sure if it's related:
Loading program into debugger…
unable to read unknown load command 0x22
Program loaded.
unable to read unknown load command 0x22
unable to read unknown load command 0x22
unable to read unknown load command 0x22
run
[Switching to process 1548 local thread 0x1003]
Running…
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论