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:
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?
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];
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?