I'm about to start implementing storing preferences for an applications, including window sizes and positions. I read the following quoted text on a Cocoal development web site about saving preferences, but cannot make out what they're talking about.
Are they trying to say that there's a Cocoa way of saving window positions other than storing them as integers in [NSUserDefaults standardUserDefaults] ?
If so, what is the easier way?
What are these guys trying to say???
A nice Mac custom is to save the position of windows.
Your gut reaction might be to say "Let's save them to our preferences!" You could do this... or you could let Cocoa do it for you. This is a very common task, so Apple has courteously provided a very simple method.
How does the program identify the window? By its title? Nope, that can't be because a window's title can be localized to different languages. Wait a sec... what's this nifty "Name" field for? Maybe you should just try it out. It works. Pretty simple, huh? (Man, I sound like Steve...)