get cocoa widgets running in Firefox. this means the app launches, but you probably don't want to use it as you have windows with no menu bar :) Also some macro cleanup. only a few lines of codein a component that isn't used, so no reviews necessary.
git-svn-id: svn://10.0.0.236/trunk@175584 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7dabcca2bb
commit
4d3db7ecea
@ -60,7 +60,7 @@ class nsAppShellCocoa : public nsIAppShell
|
||||
NS_DECL_NSIAPPSHELL
|
||||
|
||||
private:
|
||||
|
||||
NSAutoreleasePool *mainPool;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -60,6 +60,7 @@ NS_IMPL_THREADSAFE_ISUPPORTS1(nsAppShellCocoa, nsIAppShell)
|
||||
//-------------------------------------------------------------------------
|
||||
nsAppShellCocoa::nsAppShellCocoa()
|
||||
{
|
||||
mainPool = [[NSAutoreleasePool alloc] init];
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
@ -69,6 +70,7 @@ nsAppShellCocoa::nsAppShellCocoa()
|
||||
//-------------------------------------------------------------------------
|
||||
nsAppShellCocoa::~nsAppShellCocoa()
|
||||
{
|
||||
[mainPool release];
|
||||
}
|
||||
|
||||
|
||||
@ -76,15 +78,17 @@ nsAppShellCocoa::~nsAppShellCocoa()
|
||||
//
|
||||
// Create the application shell
|
||||
//
|
||||
// There's reallly not a whole lot that needs to be done here. The
|
||||
// window will register its own interest in the necessary events
|
||||
// so there's no need for us to create a pump or a sink.
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsAppShellCocoa::Create(int* argc, char ** argv)
|
||||
{
|
||||
// There's reallly not a whole lot that needs to be done here. The
|
||||
// window will register its own interest in the necessary events
|
||||
// so there's no need for us to create a pump or a sink.
|
||||
|
||||
// this call initializes NSApplication
|
||||
[NSApplication sharedApplication];
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
@ -59,16 +59,8 @@
|
||||
|
||||
#include <Quickdraw.h>
|
||||
|
||||
#if UNIVERSAL_INTERFACES_VERSION < 0x0340
|
||||
enum {
|
||||
kEventWindowConstrain = 83
|
||||
};
|
||||
const UInt32 kWindowLiveResizeAttribute = (1L << 28);
|
||||
#endif
|
||||
|
||||
// Define Class IDs -- i hate having to do this
|
||||
static NS_DEFINE_CID(kCDragServiceCID, NS_DRAGSERVICE_CID);
|
||||
//static const char *sScreenManagerContractID = "@mozilla.org/gfx/screenmanager;1";
|
||||
|
||||
// from MacHeaders.c
|
||||
#ifndef topLeft
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user