I have a really hard time to make it happen.
I have a program that when a menu item will be pressed (it will be defined by me) a new window will appear with some options in it. And I don't know how to do it.
I have my application created in a Cocoa Application Xcode project. Apple's examples and documentation don't seem to work.
My program consists of a single window so far, which only contains some buttons and a tableView (not of importance).
To add a new window, I make a new window in the .nib file. I then make a subclass of NSWindowController, and I instantiate it. But after that, what do I do? I have made some experiments, but I can't seem to make it happen. Can anyone guide me to the solution of this? I know it's in front of my eyes, but I can't do it...
EDIT: Can anyone also tell me how can I pass a string value that the user gives on an NSTextField into the second window to a function that is a part of a class of the first window?
I have a program that when a menu item will be pressed (it will be defined by me) a new window will appear with some options in it. And I don't know how to do it.
I have my application created in a Cocoa Application Xcode project. Apple's examples and documentation don't seem to work.
My program consists of a single window so far, which only contains some buttons and a tableView (not of importance).
To add a new window, I make a new window in the .nib file. I then make a subclass of NSWindowController, and I instantiate it. But after that, what do I do? I have made some experiments, but I can't seem to make it happen. Can anyone guide me to the solution of this? I know it's in front of my eyes, but I can't do it...
EDIT: Can anyone also tell me how can I pass a string value that the user gives on an NSTextField into the second window to a function that is a part of a class of the first window?