Launchd never stops my HelperTool

2015-12-04 Thread Gerriet M. Denkmann
I have a HelperTool (installed via SMJobBless). The HelperTool does: NSXPCListener *listener = [[NSXPCListener alloc] initWithMachServiceName: bundleId ]; listener.delegate = myNSXPCListenerDelegate; [listener resume]; NSRunLoop *currentRunLoop = [NSRunLoop currentRunLoop]; [ currentRunLoop ru

SceneKit Normals

2015-12-04 Thread Rick Mann
Based on examples I've found around the web, when creating geometry in SceneKit programmatically, it seems to want normals per-vertex, rather than per-face. The code I'm working with that's actually generating the mesh has a single per-face normal. I can certainly duplicate that three times for

UIView underlying rects for drawRect

2015-12-04 Thread Roland King
NSView has a method getRectsBeingDrawn:count: which gives you the actual rects being drawn in a drawRect: call. Is there something equivalent for a UIView? Does UIView even do as I believe NSView does and only invalidate just the areas passed to setNeedsDisplayInRect:, meaning those are the only

NSDocument and NSViewControllers

2015-12-04 Thread Rick Mann
I have a very complex "document" that I'm writing an editor for. It's a collection files, lending itself to the bundle document style. I use NSFileWrappers, and when I open one of these in my app, I get called to read the contents. I don't have to read every file all the time, it depends on what

Re: Swift screensavers in Ubuntu?

2015-12-04 Thread SevenBits
On Friday, December 4, 2015, Juanjo Conti wrote: > Now that Swift is open source and runs on Ubuntu, do you think a Swift Mac > OS X screensaver could run as a screensaver in Ubuntu? What about a GUI > used to config the screensaver? What Apple open sourced was Swift the language, not Swift "th

Re: Swift screensavers in Ubuntu?

2015-12-04 Thread Greg Parker
> On Dec 4, 2015, at 3:17 PM, Juanjo Conti wrote: > > Now that Swift is open source and runs on Ubuntu, do you think a Swift Mac > OS X screensaver could run as a screensaver in Ubuntu? What about a GUI > used to config the screensaver? Not without a lot of work. Open-source Swift is available

Swift screensavers in Ubuntu?

2015-12-04 Thread Juanjo Conti
Now that Swift is open source and runs on Ubuntu, do you think a Swift Mac OS X screensaver could run as a screensaver in Ubuntu? What about a GUI used to config the screensaver? Yes, I'm asking if our screensaver https://screensaver.ninja/ could run in Ubuntu :) -- Juanjo Conti http://goog_202

Re: ARC and IBOutlet - strong vs weak......

2015-12-04 Thread Mike Throckmorton
Quincey Morris Friday, December 4, 2015 10:04 AM That sounds like a definitive answer. So you’re asking us because … why? Definitive for the leading question, but not the secondary: If strong, do I need to set the outlets to nil in the corresponding dealloc method? I had tested this and i

Re: ARC and IBOutlet - strong vs weak......

2015-12-04 Thread Quincey Morris
On Dec 4, 2015, at 06:16 , Dave wrote: > > I asked about this on Twitter to an engineer on the IB team and he confirmed > that strong should be the default and that the developer docs are being > updated. That sounds like a definitive answer. So you’re asking us because … why? Here’s how I un

ARC and IBOutlet - strong vs weak......

2015-12-04 Thread Dave
Hi All, This is for Mac, not iOS. Under ARC, should an IBOutlet be strong or weak? If strong, do I need to set the outlets to nil in the corresponding dealloc method? I did a google for this and are many conflicting answers to this question but one with a lot of votes on Stack Overflow is thi

Re: Best Control for a Matrix these days?

2015-12-04 Thread Jonathan Mitchell
> On 4 Dec 2015, at 11:21, Dave wrote: > > Hi All, > > Well, I’ve got plenty of options to be going on with! > > I’ve got a better “Spec” now, the Maximum is up to 3 Columns, but with a > variable number of rows in each Column. So, I don’t think I can base it on > NSTableView as (off to the

Re: Best Control for a Matrix these days?

2015-12-04 Thread Dave
Hi All, Well, I’ve got plenty of options to be going on with! I’ve got a better “Spec” now, the Maximum is up to 3 Columns, but with a variable number of rows in each Column. So, I don’t think I can base it on NSTableView as (off to the top, not used NSTableVIew on Mac for a long time), I seem

Re: Need Help with Swift

2015-12-04 Thread Roland King
> On 4 Dec 2015, at 16:07, Stevo Brock wrote: > > This seems to do the trick. > > I wasn’t able to just do ABC.class, as the “.class” wasn’t registered as > valid. > > What I ended up with was a static method on the class, and calling the static > method, and voilà! Everything is working. >

Re: Need Help with Swift

2015-12-04 Thread Stevo Brock
This seems to do the trick. I wasn’t able to just do ABC.class, as the “.class” wasn’t registered as valid. What I ended up with was a static method on the class, and calling the static method, and voilà! Everything is working. So now to clean things up… Thanks guys so much for your help. -

Re: Need Help with Swift

2015-12-04 Thread Stevo Brock
I think the trick with all these ideas is that IB will just remove the <…> when it good and well pleases and then you’re back to square one. -Stevo Brock Owner Sunset Magicwerks, LLC www.sunsetmagicwerks.com @SunsetMagicwrks 818-478-9758 > On Dec 3, 2015, at 11:44 PM, Quincey Morris > wr