Post

Replies

Boosts

Views

Activity

Reply to How can I set my window title in Cocoa?
Hey, thanks for the response! But what if I wanted to change the title as the user resizes the window? In that case viewDidAppear won't cut it. Also I did try to implement the NSWindowDelegate in the ViewController: @interface ViewController : NSViewController<NSWindowDelegate> but the windowDidResize never gets called, what gives? Edit Ok turns out I managed to do it. I just had to set the delegate in the viewDidAppear method: - (void)viewDidAppear { [super viewDidAppear]; //self.view.window.title = @"My title"; self.view.window.delegate = self; }
Sep ’24