On 4 Apr 2011, at 1:53 PM, JAMES ROGERS wrote: > 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. > > 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").
Set a breakpoint in appdelegate.m, at the setIntegerValue: message, and see whether textField is set. * Is outlet connected in the XIB? * Are you making the setting before -awakeFromNib, which is the first moment at which you can be sure the NIB is loaded, and outlet is connected? 73 de WT9T, — F _______________________________________________ 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