objective c - Best way and how to display multiple views in a mac osx cocoa application? -


i learning create simple cocoa mac osx application. however, need research few things before jumping in. coming background in ios development. trying see best way replicate interface below.

http://macmagazine.com.br/wp-content/uploads/2011/08/08-sparrow.png?cda6c1

i want show multiple views 1 below. have idea on how accomplish this, not sure if best way. in app delegate, thinking making references 3 different views . then, display each 1 subview main view. idea , if possible can show me example code on how achieve this?

the code below had in mind. self.window represents window in mainview.

[self.window.contentview addsubview:self.viewcontroller1.view]; [self.window.contentview addsubview:self.viewcontroller2.view]; 

that looks nssplitview. can set size of subviews splitview in xib/storyboard width like.

there more documentation here:

https://developer.apple.com/library/prerelease/mac/documentation/cocoa/reference/applicationkit/classes/nssplitview_class/index.html


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -