3

I want unified title toolbar like in calendar app without title. I have tried following- in viewDidLoad I added-

self.view.window?.titleVisibility = .Hidden

I have selected unified title and toolbar in attribute inspector.

I also tried adding titleVisibility to 1 in user defined runtime attributes in identity inspector.

I am not able to achieve unified title with toolbar without title. What am I missing. Thanks for help.

Abhishek
  • 852
  • 9
  • 24

1 Answers1

6

Select your Window in storyboard and check Unified Title And Toolbar-box. That should do it with your .Hidden in subclass of NSWindowController.

Prontto
  • 1,671
  • 11
  • 21
  • Select your Window in storyboard and check Unified Title And Toolbar-box>>it is done. but how to do ""That should do it with your .Hidden in subclass of NSWindowController"" – Abhishek Jun 09 '15 at 06:40
  • 1
    You need put that `self.window?.titleVisibility = .Hidden` to subclass of `NSWindowController's` windowDidLoad -method – Prontto Jun 09 '15 at 06:42
  • Make new file -> Source, Cocoa Class -> Select subclass of `NSWindowController` and then in your storyboard click your window and that blue icon on top which say Window Controller and set it's class to class that you just made. – Prontto Jun 09 '15 at 06:46
  • Thanks for help. Sorry if I was annoying. I am new to this mac OS X development. – Abhishek Jun 09 '15 at 06:51