I have studying how to use IKImageView
in my app. I downloaded the following demo from Apple site.
One thing I do not understand is: This project has only implemented a Controller class.
@interface Controller : NSObject
{
...
I do not understand how does it work at all. If I create a new project in XCode, it will usually generate an AppDelegate
class which implements NSApplicationDelegate
interface.
I do not know if I understand the mechanism correctly.
Does the following steps describe how it works?
1) In info.plist it specifies the main bundle is MainMenu.xib
.
2) the Window
is binded to the Controller
like so
3) When the application starts, it loads the Windows
from the MainMenu.xib
and the Controller
class takes over the windows interaction from there.