Re: textField - setIntegerValue
Re: textField - setIntegerValue
- Subject: Re: textField - setIntegerValue
- From: Fritz Anderson <email@hidden>
- Date: Mon, 04 Apr 2011 15:09:52 -0500
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 (email@hidden)
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:
This email sent to email@hidden