On Apr 4, 2011, at 3:53 PM, JAMES ROGERS wrote:

I am feeling really stupid. I have a simple textField set up in IB, nothing else, just a window with a textField. I have connected the textField to the outlet.

I am new to this but, (just in case...) have you, by any chance, named a function in your delegate as a setter for your outlet (setTextField:)? I fell into that trap a little while ago: - awakeFromNib is called before the outlet is connected and it never gets wired to the nib.

In appdelegate,h
        IBOutlet NSTextField *textField;

in appdelegate.m

        [textField setIntegerValue:10]

Nothing is displayed in the textField. In another project, I have a textField and a stepper together, when I increment/decrement using the stepper connected to the textField, the steppers value is displayed (using "setIntegerValue").


_______________________________________________

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