git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61285
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (data)
m_colourData = *data;
if (data)
m_colourData = *data;
- //
- // This is the key call - this initializes
- // events and window stuff for cocoa for carbon
- // applications.
- //
- // This is also the only call here that is
- // 10.2+ specific (the rest is OSX only),
- // which, ironically, the carbon font
- // panel requires.
- //
- bool bOK = NSApplicationLoad();
-
//autorelease pool - req'd for carbon
NSAutoreleasePool *thePool;
thePool = [[NSAutoreleasePool alloc] init];
//autorelease pool - req'd for carbon
NSAutoreleasePool *thePool;
thePool = [[NSAutoreleasePool alloc] init];
//We're done - free up the pool
[thePool release];
//We're done - free up the pool
[thePool release];
}
int wxColourDialog::ShowModal()
{
}
int wxColourDialog::ShowModal()
{
[NSApp endModalSession:session];
//free up the memory for the delegates - we don't need them anymore
[NSApp endModalSession:session];
//free up the memory for the delegates - we don't need them anymore
+ [theColorPanel setDelegate:nil];
[theCPDelegate release];
//Get the shared color panel along with the chosen color and set the chosen color
[theCPDelegate release];
//Get the shared color panel along with the chosen color and set the chosen color