On 05/04/2011, at 6:29 AM, Torsten Geise wrote:
> - DialogController is of type NSObject and acts a the File's Owner of
> Dialog.xib.
This will work, but it's more conventional (and has certain advantages) to
subclass NSWindowController instead of NSObject here. After all, you are
controlling
Hi Torsten
> When I want to use an Object in the "onOkButtonPressed" function, how can I
> set this object in instance #2? [NSBundle loadNibNamed:@"Dialog" owner:self]
> does not return a pointer to the instance. In opposite, when "didEndSheet" is
> called, I'm back in instance#1 without any kn
On Apr 4, 2011, at 13:29, Torsten Geise wrote:
> So far, so good. My problem starts with passing objects to the dialog or
> passing the content of the NSTextfield back to the caller. In the showDialog
> function, I already have an instance to DialogController (instance 1). When
> the NIB file g
I successfully created a dialog by following the custom sheet examples. But I
still have trouble passing arguments to the dialog. I'll explain my problem
based on a simple test app:
- Main.xib contains a window and a button "show dialog".
- AppDelegate has an IBAction for the "show dialog butto