I am trying to remember window state in my app, and reload on launch. I save the tabViewItemAtIndex to defaults, and this works well. I cant seem however to read that integer back, and restore my tab?
Here is the function:
does anyone have any ideas?
I also would like to remember window size, somehow.
Here is the function:
Code:
- (void) awakeFromNib
{
int tabState;
tabState = [[SCPreferences userDefaults] integerForKey:SCPreferencesTabStateKey];
if (tabState == 0)
{
[tabView selectTabViewItemAtIndex:0];
}
if (tabState == 1)
{
[tabView selectTabViewItemAtIndex:1];
}
if (tabState == 2)
{
[tabView selectTabViewItemAtIndex:2];
}
}
does anyone have any ideas?
I also would like to remember window size, somehow.