Correct way to implement a "Share" toolbar item

2013-04-08 Thread Graham Cox
I'm adding sharing to my OSX app, and I want to use a toolbar item to invoke it. This ends up calling [NSSharingServicePicker showRelativeToRect: ofView:preferredEdge:]; which shows a menu of available sharing services for the data, allows me to select one and handles the rest. Unfortunately, t

Why would insertSublayer:atIndex: botch animation of CAShapeLayer?

2013-04-08 Thread Jason Barker
I have a number of CAShapeLayers that are already sublayers to the layer of a view (UIView). I'm able to animate their paths without any trouble. However, I need to add some additional shape layers later on and then animate all of the paths for all of the shape layers. When I attempt to insert new

Build Succeeded, but Xcode shows errors.

2013-04-08 Thread Koen van der Drift
I'm using Xcode 4.6.1, and I am getting some build errors, even though the build succeeds, and I can run my app (iOS). They are all similar to: ARC Semantic Issue: No known class method for selector 'MR_findAll' MR_findAll is part of MagicalRecord (a Core Data wrapper framework), and I have be

Re: Understanding NSTask

2013-04-08 Thread Torsten Curdt
Not sure how your code looks like but a common problem is that the stdout and stderr buffer can run full if not done correctly. Old code but something along the lines of this here should work https://github.com/tcurdt/uif2iso4mac/blob/master/Sources/TaskCommand.m cheers, Torsten On Mon, Apr 8,

Understanding NSTask

2013-04-08 Thread Rui Henriques Pacheco
Hi, I'm currently going through all available literature on Google on using NSTask to open SSH tunnels. While I have running code I'm not sure I understand everything that's happening. First, NSTask executes SSH as a subprocess. Then why is this blocking the main thread? -- Rui Henriques P