Re: Viewer Window and Display preprocessing
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=kJZBedxSrFGS/ybPcv9fGIpVTGTeEHLNNMZq0eeafhtGHqSHosldGWcSpTHRWoWT; h=Received:From:To:In-Reply-To:Subject:References:Message-Id:Content-Type:Content-Transfer-Encoding:Mime-Version:Date:Cc:X-Mailer:X-ELNK-Trace:X-Originating-IP; Thanks. That's what I was hoping. Should I just set that via my FxPlug's parameter UI? Or is there a proper, sanctioned place for this type global parameter to be set? (e.g.: a Preferences panel or something similar) Thank you very much for your help. -- Brian On Mar 19, 2009, at 4:47 PM, Darrin Cardani wrote: On Mar 19, 2009, at 3:55 PM, Brian Gardner wrote: Hmmm.... 1. Is there any way an FxPlugin could read a Global variable? I'm thinking, perhaps, a user settable toggle whose state all instances of a FxPlug could access? static SomeClass* mySingleton = nil; SomeClass* getMySingleton () { if (mySingleton == nil) { mySingleton = [[SomeClass alloc] init]; } return mySingleton; } Darrin -- Darrin Cardani dcardani@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... You can create a singleton object that the others will communicate with. For example, you could have something like this: (Note that I didn't actually compile that! But that should give you an idea of how to do it.) This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian Gardner