• 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
Re: Searching for multiple instances of an application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching for multiple instances of an application?


  • Subject: Re: Searching for multiple instances of an application?
  • From: Stéphane Sudre <email@hidden>
  • Date: Wed, 9 Jul 2008 00:28:44 +0200


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.

Mark -

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.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Searching for multiple instances of an application?
      • From: Paul Miller <email@hidden>
References: 
 >Searching for multiple instances of an application? (From: Paul Miller <email@hidden>)
 >Re: Searching for multiple instances of an application? (From: Karl Kuehn <email@hidden>)
 >Re: Searching for multiple instances of an application? (From: Paul Miller <email@hidden>)
 >Re: Searching for multiple instances of an application? (From: Mark Krenek <email@hidden>)
 >Re: Searching for multiple instances of an application? (From: Paul Miller <email@hidden>)

  • Prev by Date: RE: how to add the model dialog during installation
  • Next by Date: Re: how to create the uninstaller on Mac Os
  • Previous by thread: Re: Searching for multiple instances of an application?
  • Next by thread: Re: Searching for multiple instances of an application?
  • Index(es):
    • Date
    • Thread