Aldee
Aldee

Reputation: 4518

Change window title

How do you change the title of an NSWindow instance? I have one window in a NIB; how can this be accomplished?

Upvotes: 0

Views: 646

Answers (1)

Itai Ferber
Itai Ferber

Reputation: 29764

This code belongs in a controller class. In Interface Builder (or Xcode, depending on the version you're running), hook up the button you want to an IBAction that calls -setTitle: on your NSWindow instance.

Upvotes: 1

Related Questions