Re: NSSplitView similar to Xcode's editor/debug area split view

2013-06-28 Thread Andy Lee
Hi Chuck, On Jun 26, 2013, at 8:30 PM, Chuck Soper chu...@veladg.com wrote: 2. How should I animate the showing or hiding of the 'debug area' view? I do by sending setFrame: to the two subviews' animator proxies instead of to the view itself. // Assumes the split view has two subviews, one

Re: Cocoa-dev Digest, Vol 10, Issue 397

2013-06-28 Thread Pamela Grandt
I will be out of the office Fri. June 28. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Moving a textField from under keyboard

2013-06-28 Thread YT
I'm looking for something OR some method that knows how to change (I think) the position (I think) of the view containing a UITextField so the TextField is visible after a keyboard comes up and covers it. Then the view goes back to normal position once the keyboard is dismissed. Is there an

RE: Moving a textField from under keyboard

2013-06-28 Thread Julius Oklamcak
I'm looking for something OR some method that knows how to change (I think) the position (I think) of the view containing a UITextField so the TextField is visible after a keyboard comes up and covers it. Then the view goes back to normal position once the keyboard is dismissed. Is there an

static acting like __block in GCD singleton pattern

2013-06-28 Thread Matt Neuburg
In this sort of well-known code pattern for making a singleton with GCD: + (MyClass *) sharedInstance { static MyClass *sharedInstance = nil; static dispatch_once_t onceToken = 0; dispatch_once (onceToken, ^{ sharedInstance = [MyClass new]; }); return sharedInstance; }

Re: static acting like __block in GCD singleton pattern

2013-06-28 Thread Kyle Sluder
On Fri, Jun 28, 2013, at 05:17 PM, Matt Neuburg wrote: Why is the block permitted to assign to the variable sharedInstance outside the block? Evidently it is because static has an effect like __block, in that it makes the variable outside the block assignable. But how, exactly? Is it some kind