BadmintonCat
BadmintonCat

Reputation: 9586

How to get reference to parent view controller in Cocoa?

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

Answers (1)

BadmintonCat
BadmintonCat

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

Related Questions