Full screen-like Mail.app compose pane - macos

If you compose a message in Mail.app in full screen you get something that looks like a modal view controller on iPad. But what is it in the Mail application on OSX Lion? How do you accomplish something like that?
Is it something custom made for mail? Or is it something that's available to all developers?

No, unfortunately there isn't. But I guess it isn't too hard to code.
Just create a new window and add it as a sub-window of your main window using the addChildWindow:ordered: method.
You can do the animation with setFrame:display:animate:

Related

Implementing a Preferences NSWindow

As we all know, there is some sort of "trend" it seems between Mac apps. They all have the same panel on the top of their preferences window:
I say "trend", because I searched the Mac OS X HIG Without any luck ...
So, how can I achieve this look?
(It's easy to use the textured Window .. but, the buttons and how they look when clicked. That's what I want to know)
Edit:
Thanks #valexa.
It seems I can only use NSToolbar under a window's titleBar.
I would like to add it inside a custom NSView ?
At least something that looks similar?
That would be the NSToolbar https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSToolbar_Class/Reference/Reference.html

Cocoa - XCode style notification window

Is the semi-transparant notification window which XCode 4 shows on Snow Leopard and on Lion a standard Cocoa control or is it something custom? I've seen more and more apps with similarly styled popups, and don't want to go about reinventing something if a much cleaner implementation exists in Cocoa. If this is a standard control, could someone tell me the name or point me to the documentation for it?
This is the popup window I am referring to:
This is custom but Matt Gemmell has sample code at http://mattgemmell.com/source. It's called RoundedFloatingPanel.

How to create this kind of panels in Cocoa?

Github released their own native client on the Mac. Upon launching the client, you will get this welcome panel:
In Cocoa framework, how to create something like it?
On a side note, they don't use Cocoa. They use Chameleon Project
An NSImageView would display a background image just fine ...

Get Application badge of running applications

I'm not sure if this is possible, but I want to get the application badges of other running applications. So I'd like to get the text from Mail's badge or other apps like Adium. I've looked in NSWorkspace and NSRunningApplication and was not able to find this. Any help would be great.
This could happen someday for applications that use NSDockTile's setBadgeLabel:, but, AFAIK, it's not currently possible. You might want to file a request.
There is no way to do this to applications like Adium that composite the badged Dock icon together themselves and set it, badge and all, as a single image.

Drop down menu like the default iPad application menus

I'm currently working on my first iOS application to run on the iPad, and I've come across a problem. I have been asked to implement menu's similar to the ones in the default applications such as when you click on the "Calendars" button in the top left of the calendars app.
Only issue is, I cant seem to find a standard UI object that looks like these, with the arrow connecting the menu to the button etc. Is this a standard UI component that I should be able to use, or will I have to imitate them by creating a custom object?
Thanks for any help.
That is a UIPopoverController. There isn't an Interface Builder control for this. You need to create one programmatically:
UIPopoverController *popover = [[UIPopoverController alloc]initWithContentViewController:someTableViewController];
See the documentation for more information and sample projects, specifically ToolbarSearch:

Resources