After messing around with iOS apps, I thought I'd give a Cocoa app a whirl assuming things would be very similar. So I have a single window app with a split view and some
NSTableViews (think iTunes) and I'm looking for a place to put my code that will fetch data from the web to fill the tables.
In iOS I would put this in the
viewDidLoad method of the appropriate
UIViewController subclass. The
UITableViewDataSource would then access this data to populate its cells.
Now I have an
NSWindow for which I could do a similar thing but how do I make a
NSWindowController for it? Is this even what I want? I could put it in the
AppDelegate but doesn't seem right.