user2924482
user2924482

Reputation: 9120

Cocoa launch application window

I need to implement in Cocoa a initial windows with information and logo of the company such like this:

enter image description here

My question for you guys is how can avoid showing the window bar:

enter image description here

I'll really appreciate your help.

Upvotes: 1

Views: 195

Answers (2)

Brian Gradin
Brian Gradin

Reputation: 2275

What you're referring to is known as a splash screen. Here's a beginner-friendly tutorial on creating one in objective-c.

Upvotes: 3

user3821934
user3821934

Reputation:

Turn off "Title Bar" of the window in Interface Builder (in the window's attribute inspector).

If you are creating this programmatically, the property you are looking for is "styleMask". These are the available masks:

enum {
   NSBorderlessWindowMask = 0,
   NSTitledWindowMask = 1 << 0,
   NSClosableWindowMask = 1 << 1,
   NSMiniaturizableWindowMask = 1 << 2,
   NSResizableWindowMask = 1 << 3,
   NSTexturedBackgroundWindowMask = 1 << 8
};

Upvotes: 2

Related Questions