• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: textField - setIntegerValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >textField - setIntegerValue (From: JAMES ROGERS <email@hidden>)

  • Prev by Date: Re: Trying to subclass UISwitch
  • Next by Date: Re: textField - setIntegerValue
  • Previous by thread: textField - setIntegerValue
  • Next by thread: Re: textField - setIntegerValue
  • Index(es):
    • Date
    • Thread