Reputation: 878
I have read and understand the answer given in this question:
How do I create delegates in Objective-C?
However, I wish to set a delegate to my main application window and was wondering where in my application I can do that - in my AppDelegate class, or somewhere else?
Upvotes: 1
Views: 497
Reputation: 81300
Its been a long while since I did this but IIRC you simply set it up in Interface Builder. See the following screenshots:
Making the connection http://grab.by/JXM
Available outlets http://grab.by/JXE
Note here I'm using the application's AppController, but this could be any controller you want (you would have to add an custom object in IB and set it's class to use something else).
HTH
Upvotes: 5