• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bundle question..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bundle question..
      • From: Scott Andrew <email@hidden>
  • Prev by Date: Re: Optimizing NSView's drawRect
  • Next by Date: Re: Bundle question..
  • Previous by thread: [SOLVED] Mixing cocoa and carbon crashing in photoshop plugin
  • Next by thread: Re: Bundle question..
  • Index(es):
    • Date
    • Thread