• 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
newbie: nil textfield
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newbie: nil textfield


  • Subject: newbie: nil textfield
  • From: Jorge Ramirez <email@hidden>
  • Date: Fri, 14 Nov 2003 19:45:49 -0500

I have a few NSTexfields in my interface. I have connected them to my
controller class in interface builder, but i have run into a problem.
For some reason, one of the textfields is nil at execution time. I
have some code like the following...

if(textField == nil)
NSLog(@"text field is nil");
else
NSString *name = [wireTypeNameField stringValue];

When the method gets called, it prints text field is nil. I cannot
figure out how the textfield can be null if i have connected it in IB.
I have double, and triple checked the connection. If anyone has any
insight that could help me, i would really appreciate it.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: newbie: nil textfield
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Foundation with autoconf, automake, and libtool
  • Next by Date: Re: NSSearchField
  • Previous by thread: Re: Foundation with autoconf, automake, and libtool (RESOLVED)
  • Next by thread: Re: newbie: nil textfield
  • Index(es):
    • Date
    • Thread