• 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: How to clear macOS app bundle cache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to clear macOS app bundle cache


  • Subject: Re: How to clear macOS app bundle cache
  • From: Jeff Szuhay <email@hidden>
  • Date: Wed, 05 Sep 2018 21:23:36 -0700

Did you try clearing the defaults persistent domain in your code?
Something like the following (the juicy bits are in red) :

        NSUserDefaults * myAppDefaults;

        myAppDefaults = [[NSUserDefaults alloc] initWithSuiteName: (NSString*)
myAppBundleID ];

then, to clear:

        #if defined RESET_MY_APP_DEFAULTS

                [myAppDefaults removePersistentDomainForName: (NSString*)
myAppBundleID ];

        #endif

        // defaults intialization code here.

This seemed to work for me.

This comes from http://www.borkware.com/quickies



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to clear macOS app bundle cache
      • From: Alastair Houghton <email@hidden>
References: 
 >How to clear macOS app bundle cache (From: Andreas Falkenhahn <email@hidden>)
 >Re: How to clear macOS app bundle cache (From: Shane Stanley <email@hidden>)
 >Re: How to clear macOS app bundle cache (From: Andreas Falkenhahn <email@hidden>)
 >Re: How to clear macOS app bundle cache (From: Marco S Hyman <email@hidden>)
 >Re: How to clear macOS app bundle cache (From: Andreas Falkenhahn <email@hidden>)
 >Re: How to clear macOS app bundle cache (From: Alastair Houghton <email@hidden>)

  • Prev by Date: NSManagedObjectContext's undoManager is nil on macOS
  • Next by Date: Re: How to clear macOS app bundle cache
  • Previous by thread: Re: How to clear macOS app bundle cache
  • Next by thread: Re: How to clear macOS app bundle cache
  • Index(es):
    • Date
    • Thread