Bundle question..
Bundle question..
- Subject: Bundle question..
- From: Scott Andrew <email@hidden>
- Date: Thu, 24 Nov 2005 01:53:18 -0800
I have a question about using classes returned by a bundle.
If I a load a bundle and export a function that creates a C++ class
Foo can i do the following?
Foo* CreateFoo.
can i do in the application:
#include Foo.h
Foo* myFoo = CreateFoo();
myFoo->DoSomeFooThing();
Can my main application call a Foo* directly if the mebmers are not
exported?
The reason for this is I am writing a photoshop plugin and I am
having trouble when i run my plugin more than once. It crashes when i
try to show a modal window..
I do the following:
void HDMVExportMac::Start()
{
HDMVExport::Start();
// create our auto release pool
NSAutoreleasePool* localPool = [[NSAutoreleasePool alloc] init];
// this inits our NSApplication. must do that.
NSApplicationLoad();
// create our two window controlllers. One is the progresbar one is
the export window.
HDMVProgressController* progressController =
[[HDMVProgressController alloc]init];
HDMVExportWindowController* controller= [[HDMVExportWindowController
alloc] init];
// run the progress controller first.
[NSApp runModalForWindow:[progressController window]];
// run the window modal window.
[NSApp runModalForWindow:[controller window]];
// release it when done..
[progressController release];
[controller release];
// release our autorelease pool.
[localPool release];
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden