Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Sergio10

macrumors regular
Original poster
Oct 3, 2007
137
0
Hi all,

I need to init position value. This value uses by edit box control via NSObject controller. So I wrote:
- (id) init
{
[position setStringValue: @"My value"];
return self;
}

But it don't works :) Why "position" don't initializes? How to solve this problem?

Thanks,
Sergio
 

Sergio10

macrumors regular
Original poster
Oct 3, 2007
137
0
Thanks for answering. It's work now.
If -(void)awakeFromNib responsible for outlets, value initializing, so why we should to use -(id)init function?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.