Reputation: 9586
I know in CocoaTouch there is the parentViewController property for this but there seems to no such property in Cocoa for OSX development. How can I ref the parent view controller in a sub view controller?
Upvotes: 0
Views: 1234
Reputation: 9586
Nevermind! I'm an idiot! I've checked for this in a View class, not in a View Controller class. The NSViewController does indeed have a parentViewController property.
Upvotes: 3