in my mainWindow.m file, i'm trying to center the mainWindow if it's the first time the app is launched. if it's not the first time, than setFrameAutosaveName... shouldn't this code work??:
Code:
- (void)awakeFromNib
{
if (![[NSUserDefaults standardUserDefaults] objectForKey: @"MAINWINDOWPositionHeightWidth"])
{
[self center];
NSLog (@"First App Launch, Window Is Centered");
}
else
{
[self setFrameAutosaveName:@"MAINWINDOWPositionHeightWidth"];
NSLog (@"Window Is In The Same State The User Left It");
}
}