开发者

How to use NSBrowserDelegate on 10.5

I have a question: When I was running the sample code SimpleCocoaBrowser, I received a crash report about the NSBrowserDelegate, which I discovered can only be used after 10.6. So how can I use an NSBrowser in 10.5? Just use the NSBrowser without NSBrow开发者_开发技巧serDelegate?

by the way, my english is bad...

thx


Not entirely sure what kind of crash you have experienced, but NSBrowser has always (since 10.0) had a delegate. It is just that the NSBrowserDelegate became a formal protocol in OS X 10.6.

If you don't want to use the NSBrowserDelegate explicitly, you can just not declare your delegate to conform to it, and it should still work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜