site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Hi, Ben, [button setImage: [NSImage imageNamed: @"MyCancelButton"]; - Paul On Oct 16, 2007, at 12:16 PM, Benjamin Kent wrote: Hi Paul, Any way round this? Thanks Ben Hi, Ben, - Paul On Sep 18, 2007, at 8:14 AM, Benjamin Kent wrote: Hi, Thanks _______________________________________________ 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... the progress bar should redraw itself the next time we process events. If that doesn't come around soon enough, you can send it a - displayIfNeeded (or just -display) message to force it to draw right away. As Darrin says, you might also need to call -setNeedsDisplay to invalidate the control. I think that changing the value will do that, but it might not. The "cancel" button you asked about isn't a standard button type, although it's used in various Apple applications. It's just an NSButton whose icon has been set to that image. I don't think we currently export that image from any system framework; poking around in the app bundles of some of the programs who use it (Safari), it seems that each app currently includes its own copy. You can include a copy in your plugin's bundle and load it yourself, like this: Or if you are building your custom UI in Interface Builder, you can set up the icon right there. It's possible that we expose this icon in a system framework; if we do, hopefully someone will correct me. I've made a custom UI widget which is an NSProgressIndicator, and periodically during my analysis I'm calling setDoubleValue on this progress bar (every second or so). Unfortunately, the UI doesn't seem to update until the end of my processing (which is disappointing for a progress bar :)). I've even tried making sure it's on the main thread using performSelectorOnMainThread, however this doesn't seem to make any difference. Paul Schneider wrote: there isn't a public way to do that. You might have some luck with starting a thread or process from within your plugin, and displaying your own progress UI (perhaps in a custom UI widget in the parameters list - see kFxParameterFlag_CUSTOM_UI). But we don't have a way for you to add items to Final Cut's Background Processes window today. Does anyone know how to spawn a background process in an FxPlug plug-in on FCP, in the same way that the SmoothCam node does it when it is applied to an effect? Ben _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com <mailto:Pro-apps-dev@lists.apple.com>) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/pschneider% 40apple.com This email sent to pschneider@apple.com <mailto:pschneider@apple.com> This email sent to site_archiver@lists.apple.com
participants (1)
-
Paul Schneider