Subversion Repositories TruePreview

[/] [trunk/] [Source/] [TruePreviewPreferences.m] - Diff between revs 2 and 17

Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | View Log

Rev 2 Rev 17
Line 29... Line 29...
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 */
 
 
#import "TruePreviewPreferences.h"
#import "TruePreviewPreferences.h"
 
 
@implementation NSPreferences (TruePreviewPreferences)
@implementation TruePreviewPreferences
 
 
#pragma mark Class methods
#pragma mark Swizzled class methods
 
 
+ (id)truePreviewSharedPreferences {
+ (id)truePreviewSharedPreferences {
  static BOOL sAdded = NO;
  static BOOL sAdded = NO;
  NSPreferences* thePreferences = [NSPreferences truePreviewSharedPreferences];
  id thePreferences = [NSClassFromString(@"NSPreferences") truePreviewSharedPreferences];
 
 
  if ((thePreferences != nil) && !sAdded) {
  if ((thePreferences != nil) && !sAdded) {
    sAdded = YES;
    sAdded = YES;
   
   
    [[NSPreferences truePreviewSharedPreferences]
    [[NSClassFromString(@"NSPreferences") truePreviewSharedPreferences]
      addPreferenceNamed:[TruePreview preferencesPanelName]
      addPreferenceNamed:[TruePreview preferencesPanelName]
      owner:[TruePreviewPreferencesModule sharedInstance]
      owner:[TruePreviewPreferencesModule sharedInstance]
    ];
    ];
  }
  }
 
 
  return [NSPreferences truePreviewSharedPreferences];
  return [NSClassFromString(@"NSPreferences") truePreviewSharedPreferences];
}
}
 
 
@end
@end