On Jun 8, 2009, at 5:48 PM, Martin Batholdy wrote:

You are right ... there is something wrong with the connection.

What I have done is the following;

IBOutlet NSButton *launchOption;

I have connected this Outlet with the NSButton by ctrl+dragging from the NSObject to the CheckBox in the window.

Then I control+dragged from the NSButton to the NSObject and connected a method to the NSButton / check box (which works fine)...


Is there something fundamentally wrong ...?

One thing which new Cocoa developers often get wrong is they have two objects which they think are the same. Often, they instantiate a controller in code and also instantiate a controller in their nib. They hook up the one in the nib, but that's not the one they are using at runtime.

For example, if you have a controller which is File's Owner for the nib, you should not have an instance of that controller _in_ the nib.

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to