0

enter image description here

As the picture says, there are delegate, _delegate, dataSource, _dataSource, what are the differences?

Basicly, I can use the functions I want with either delegate + dataSource or _delegate + _dataSource, but I don't know what the differences are?

droughtrain
  • 257
  • 1
  • 4
  • 18

1 Answers1

0

I believe the _delegate outlet is referencing the internal property directly whereas the delegate uses getters/setters.

Justin Levi Winter
  • 2,327
  • 2
  • 17
  • 30
  • Thanks. I guess you are right. So _delegate is the property while delegate means self.delegate? Why IKImageBrowserView need the two here? – droughtrain Jan 23 '13 at 16:36
  • You don't need to set both. Just use delegate and datasource (using it in my own project like this). The documentation does not say anything about the _delegate und _datasource versions: http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/IKImageBrowserView/IKImageBrowserView_Reference.html#//apple_ref/occ/cl/IKImageBrowserView – jd291 Jan 27 '13 at 19:00