A small hint about centering the view...
1. get rid of the window in the NIB file and replace it by an 800x480 NSView (or a subclass if you like a different appearance)
2. create an outlet for this view (named mainView for example) in the controller and connect the view to it
Then something like this - the code will create a fullscreen window (for any screen size), take the content view, add it to the window and center it.
Code:
IBOutlet NSView *mainView;
---
NSRect *screen = [[NSScreen mainScreen] frame];
NSWindow *mainWindow;
mainWindow=[[NSWindow alloc] initWithContentRect:screen
styleMask:NSBorderlessWindowMask|NSTexturedBackgroundWindowMask
backing:NSBackingStoreBuffered defer:NO];
[[mainWindow contentView] addSubview: mainView];
int xPosition = (screen.size.width - [mainView bounds].size.width)/2
int yPosition = (screen.size.height - [mainView bounds].size.width)/2
[mainView setBoundsOrigin:NSMakePoint(xPosition, yPosition)];
Bookmarks