quicksilver / Quicksilver

Quicksilver Project Source
http://qsapp.com
Apache License 2.0
2.73k stars 285 forks source link

Multiple instances of preference panes may exist #2754

Closed pjrobertson closed 2 years ago

pjrobertson commented 2 years ago

Just making a note here for future reference:

Preference panes (e.g. QSCatalogPrefPane) are instantiated in one of two ways:

  1. [QSCatalogPrefPane sharedInstance]
  2. By [nib instantiateNibWithOwner:self topLevelObjects:&objects]; in QSPreferencePane.m:L99

This means that two instances of QSCatalogPrefPane will be lying around, potentially causing issues with opening them up. There should only be one that exists.