0

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 NSBrowserDelegate?

by the way, my english is bad...

thx

NSGod
  • 22,699
  • 3
  • 58
  • 66
Tr4work
  • 11

1 Answers1

1

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.

Monolo
  • 18,205
  • 17
  • 69
  • 103