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

ZZmiy

macrumors newbie
Original poster
Nov 25, 2008
1
0
Hi,
I'm new to cocoa programming so may be this problem can be solved easily...

In my application(actually plug-in) I have several windows stored in Nib files
Main window with TabView to which I programmatically add TabViewItems the following way:

Code:
NSTabViewItem* newItem = [[NSTabViewItem alloc] initWithIdentifier:@"test"];

NSWindow* tWindow = [tWidget window];
[newItem setView:[tWindow contentView]] ;
	
[tabView addTabViewItem:newItem];
where tWidget is owner(controller) class for a window.

The problem is that when I make some changes in TextFields on TabViewItems (i.e. in child view), click a button on parent dialog and then try to get the values of the textfields I recieve old values. :(

It looks like TextField still has focus on it in child view and thus its value is not updated... What am I doing wrong here and why? :confused:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.