• 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: Carlos Eduardo Mello <email@hidden>
  • Date: Mon, 04 Apr 2011 18:26:52 -0300

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 (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


  • Follow-Ups:
    • Re: textField - setIntegerValue
      • From: Graham Cox <email@hidden>
    • Re: textField - setIntegerValue
      • From: Kyle Sluder <email@hidden>
References: 
 >textField - setIntegerValue (From: JAMES ROGERS <email@hidden>)

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