• 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: Lost IBOutlet.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lost IBOutlet.


  • Subject: Re: Lost IBOutlet.
  • From: Fritz Anderson <email@hidden>
  • Date: Tue, 6 Apr 2004 12:07:52 -0500

One possibility -- Do you by chance have a method named "setTextField:"? The protocol for nib loading, when such setX: methods are present, is to use them instead of setting the member variables directly. If the setter method does not in fact set the variable, the variable remains set to nil.

-- F

On 5 Apr 2004, at 6:32 PM, Hiro Fujimoto wrote:

I got a mysterious problem in my project. I made a controller object on
interface-
builder and generate its source skeleton. It has some NSTextField
outlets on dialog.
But Icouldn't set a string value on it, so I write following code.

- (void) awakeFromNib {
NSLog(@"the textfield is x", textField);
}

This code output 'the textfield is 00000000' !!
Did I lose the outlet before awakeFromNib ? How ? Why ?

--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
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.


References: 
 >Lost IBOutlet. (From: Hiro Fujimoto <email@hidden>)

  • Prev by Date: Re: static sqlite
  • Next by Date: Re: Icon and Text in NSTableView
  • Previous by thread: Lost IBOutlet.
  • Next by thread: Re: Lost IBOutlet.
  • Index(es):
    • Date
    • Thread