Re: Network and DarkWake

2012-09-02 Thread Matt Patenaude
nn" wrote: > > On 2 Sep 2012, at 12:34, Matt Patenaude wrote: > >> You might consider using SCNetworkReachability to monitor when the >> availability of time.apple.com changes. >> >> https://developer.apple.com/library/mac/#documentation/SystemConfigurat

Re: Network and DarkWake

2012-09-01 Thread Matt Patenaude
You might consider using SCNetworkReachability to monitor when the availability of time.apple.com changes. https://developer.apple.com/library/mac/#documentation/SystemConfiguration/Reference/SCNetworkReachabilityRef/Reference/reference.html -Matt On Sep 2, 2012, at 1:23 AM, "Gerriet M. Denkma

Re: stripped down webview

2012-08-18 Thread Matt Patenaude
Ah! Your problem is URLWithString:. You want fileURLWithPath:. :) -Matt Sent from my iPhone On Aug 18, 2012, at 12:12 PM, Koen van der Drift wrote: > > On Aug 18, 2012, at 2:46 PM, Matt Patenaude wrote: > >> User stylesheets should work just fine, so you should tr

Re: stripped down webview

2012-08-18 Thread Matt Patenaude
User stylesheets should work just fine, so you should try to figure out what's going wrong with that. Perhaps don't use standardPreferences; use [self.webView setPreferencesIdentifier:@"mySpecialPreferences"] to generate a new preferences object for your WebView, then [self.webView preferences]

Re: Quit helper app when main app terminates

2012-07-12 Thread Matt Patenaude
One thing I've done in the past is get the PID of the main app before launching the helper, and pass it as a command line argument to the helper (or something similar) when it's launched. The helper app then periodically polls for the existence of that PID, and when it discovers it's no longer t

Re: Autoreleased Data In Cocoa

2011-05-31 Thread Matt Patenaude
The Cocoa-created autorelease pool is automatically drained at an unspecified time, typically every few iterations of the run loops. You can trust it to do the right thing. -Matt Sent from my iPhone On May 31, 2011, at 8:32 AM, Bing Li wrote: > Dear Nick and all, > > Thanks so much for your

Re: Redisplaying a NSTableColumn NSTableHeaderCell

2011-01-26 Thread Matt Patenaude
Never prematurely optimize. To my knowledge, -reloadData is a pretty intelligent method and performs incremental updates only as necessary. Have you tested it to see if your application takes a noticeable performance hit? If it doesn't, then don't second-guess the Cocoa frameworks. Regardless,

Code Signing and a Background Tool

2011-01-13 Thread Matt Patenaude
Hi there, I'm having a bit of an issue with one of my applications. The way the application works is by spawning a background process at app startup, the executable for which is contained within its Resources directory. While running, however, running `codesign -v x` on the PID of the backg