site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Mark - _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... On Jul 8, 2008, at 9:29 PM, Paul Miller wrote: Mark Krenek wrote: I've written an installer plugin to do this same thing - find all target apps and let the user pick which one to update. This is done in code in the plugin. NSMetadataQuery is Spotlight. I use it to find ALL applications. Then I search through that list looking for the specific apps I want (by bundle identifier or name). It may be possible to configure a query that does that automatically. Here's basically what I do: query = [[NSMetadataQuery alloc] init]; [query setSearchScopes:[NSArray arrayWithObject:targetVolume]]; [query setPredicate:[NSPredicate predicateWithFormat:@"kMDItemContentTypeTree = 'com.apple.application-bundle'"]]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_queryNotification:) name:nil object:query]; [query startQuery]; My _queryNotification routine is where I scan the results. Got this all working and building a datasource for a NSTableView which shows the supported applications. The first column uses a Checkbox formatter so it can be toggled on/off. I've implemented a tableView:setObjectValue:forTableColumn:row method but when I click on one of the check-boxes, it is never called, and the app crashes down in objc_msgSend in [NSCell setObjectValue:]. Any idea what I'm missing here? Source code used in your tableView:setObjectValue:forTableColumn:row implementation. It could be an issue with the retain counts of some data. Seeing the source could help. Regarding the willEnterPane and didEnterPane issues, the names of the method can mean that willEnterPane is called before the pane is displayed. And didEnterPane, that the pane is now displayed. This email sent to site_archiver@lists.apple.com