Re: DNS resolution for apps vs Terminal?

2016-06-14 Thread Michael Nickerson
> On Jun 14, 2016, at 5:11 AM, Rick Mann wrote: > > Just now Safari stopped being able to load facbook.com. So did Chrome. Both > reported DNS failures. > > But dig on the command line, and curl, both succeed. > > How are these two domains different? > Safari and other apps are using the fr

Re: Networking framework crash

2015-02-05 Thread Michael Nickerson
Those limits shown by launchctl are what's used by anything launchd launches, unless the plist file overrides them. I wonder if that's on purpose or just an oversight? And yes, I tested that this time! I get: Feb 5 11:16:46.875 test[4252]: cur: 2560 Feb 5 11:18:00.078 test[4274]: cur:

Re: Networking framework crash

2015-02-05 Thread Michael Nickerson
descriptors by (temporarily) raising the number you can have open with setrlimit(). If you raise it and your app stops crashing, then that's likely the culprit. I would guess so - the default max number you can have open is 256, and 0xfe lines up with that... If your app runs long

Re: Preferences caching?

2013-11-28 Thread Michael Nickerson
e key combo held down on launch, like iPhoto or iTunes does to allow one to pick a different library to load from. See the key combo at launch time, and you can go down a different code path that doesn't access the preferences at all and resets/deletes them, th

Re: Sandboxing. WTF?

2012-05-30 Thread Michael Nickerson
e CF calls for some reason) to parse it. (Sorry if a blank email also got sent; I fat-fingered something while selecting text on my iPad and am not sure if it sent or was canceled.) -- Michael Nickerson http://www.nightproductions.net __

Re: Sandboxing. WTF?

2012-05-30 Thread Michael Nickerson
On May 28, 2012, at 5:51 AM, Graham Cox wrote: > > On 28/05/2012, at 7:31 PM, Roland King wrote: > >> The way I read it is you register the entitlement exactly as you have been >> doing, as a user entitlement to Library/. Then at runtime you use >> getpwuid() to find an absolute path to the

Re: NSLayoutManager's setDefaultAttachmentScaling: not working in custom PDF NSContexts.

2012-01-30 Thread Michael Nickerson
t, and it'll draw the rect the layout manager is telling the attachment cell to draw in. Maybe there's some sort of context related setting that's different between the text view and the PDF context? -- Darkshadow (aka Michael Nickerson) http://www.n

Re: music.read-only sandbox entitlement doesn't seem to work

2012-01-09 Thread Michael Nickerson
change iTune's music library to some other path within iTunes. -- Darkshadow (aka Michael Nickerson) http://www.nightproductions.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: Debugging a sleepless Mac

2011-03-16 Thread Michael Nickerson
m is set to sleep in 10 minutes or less, it will fire the condition as soon as the timer is hit and there has been no user activity for at least a minute. This is something I've been meaning to look into but haven't as yet. -- Darkshadow (aka Micha

Re: Determining when dragging begins and ends

2010-05-08 Thread Michael Nickerson
ation)draggingEntered: - (NSDragOperation)draggingUpdated: - (void)draggingExited: - (void)draggedImage:endedAt:operation: You (probably) don't need the draggingUpdated: method, but I thought I'd throw it in just in case. ------ Darkshad

Re: Alternative startup for application

2010-04-02 Thread Michael Nickerson
. >> > You can use CGEventSourceKeyState( kCGEventSourceStateCombinedSessionState, 0x3A ). That function will get the key down state at the time of the call, and 0x3A is the key code for the option key. -- Darkshadow (aka Michael Nickerson) http:/

Re: Sending launch and quit Apple Events: Crazy Connection Errors

2009-07-07 Thread Michael Nickerson
NULL, kAENoReply, kAEDefaultTimeout) ; NSLog(@"Quit err = %d", err) ; } NSLog(@"Sleep after quit") ; usleep(seconds * 1e6) ; } ------ Darks

Re: How do I include a URL in a preprocessed Info.plist?

2008-12-28 Thread Michael Nickerson
Key to look up the keys. ------ Darkshadow (aka Michael Nickerson) http://www.nightproductions.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Security - Write to protected directory

2008-10-27 Thread Michael Nickerson
On Oct 27, 2008, at 12:52 AM, Michael Ash wrote: On Mon, Oct 27, 2008 at 12:07 AM, Michael Nickerson <[EMAIL PROTECTED]> wrote: You can always set things up to ignore child processes: signal( SIGCHLD, SIG_IGN ); It's bad to rely on this sort of global state, though. What if som

Re: Security - Write to protected directory

2008-10-26 Thread Michael Nickerson
elsewhere that is reaping a child. ---------- Darkshadow (aka Michael Nickerson) http://www.nightproductions.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: showing window causes EXC_BAD_ACCESS

2008-09-27 Thread Michael Nickerson
window really get deallocated when using this option? I haven't really looked, but wouldn't the nib's owner still have a reference to it as part of its top level objects? ------ Darkshadow (aka Michael Nickerson) http://www.nightproductions.net

Re: CFBundleIconFile: heiß or hot?

2008-08-28 Thread Michael Nickerson
c/uid/20001431-BCIJIJBH > ------ Darkshadow (aka Michael Nickerson) http://www.nightproductions.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

10.5 and root proxies

2008-08-25 Thread Michael Nickerson
alloc] init]; [current runUntilDate:[NSDate dateWithTimeIntervalSinceNow:2.]]; [runPool release]; } [myCon invalidate]; [myCon release]; [threadPool release]; } ------ Darkshadow (aka Michael Nickerson) http://www.nightproductions.net

Re: Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode]

2008-05-23 Thread Michael Nickerson
eRef ); return retval; } __ I *think* this code should work fine under GC (for anyone using it), but you should probably test it first as I haven't. ------ Darkshadow (aka Michael

Re: Saving only required files in a file wrapper?

2008-05-08 Thread Michael Nickerson
gh my helper tool had actually already done that). Made for an interesting case where the file was actually saved but the app didn't think so. Hope that helps out some. -- Darkshadow (aka Michael Nickerson) http://www.nightproductions.net __

Re: Rotating an NSTableView.

2008-05-02 Thread Michael Nickerson
e's also a bug where the table headers aren't drawn correctly when it's rotated. I didn't submit a bug on that one - let me know if you'd like me to. It'd take just a quick edit of the sample code I did above to have the table headers showing. ----

Re: strange "lockFocus sent to a view whose window is deferred" error with an NSOutlineView on Tiger

2008-03-17 Thread Michael Nickerson
7;s not actually part of a window I suppose this might pop up. That's all just a guess, though. ------ Darkshadow (aka Michael Nickerson) http://www.nightproductions.net ___ Cocoa-dev mailing list (Cocoa-dev