What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Bill Cheeseman
The Yosemite AppKit Release Notes claim that most animations on the system can be run in slow motion by setting NSAnimationSlowMotionOnShift to YES. I've always implemented slow motion by explictly testing for the shift key and, if it's down, changing the animation duration. If there is in fact

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Kyle Sluder
On Sep 25, 2014, at 5:15 AM, Bill Cheeseman wrote: > > But I can't find NSAnimationSlowMotionOnShift anywhere. Is this remark in the > release notes an inside joke? Google turns up no references to > NSAnimationSlowMotionOnShift other than these Release Notes, and searching > the Yosemite head

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Bill Cheeseman
On Sep 25, 2014, at 10:33 AM, Kyle Sluder wrote: > Notice it says “the default”. This is a noun, used in the same sense as the > defaults(1) command. Therefore you set it either with `defaults write` or by > passing it as an argument on the command line. Duh. I'm feeling particularly stupid t

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Kyle Sluder
On Sep 25, 2014, at 8:31 AM, Bill Cheeseman wrote: > > >> On Sep 25, 2014, at 10:33 AM, Kyle Sluder wrote: >> >> Notice it says “the default”. This is a noun, used in the same sense as the >> defaults(1) command. Therefore you set it either with `defaults write` or by >> passing it as an arg

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Bill Cheeseman
On Sep 25, 2014, at 11:53 AM, Kyle Sluder wrote: > But in general, I think Shift-to-slowly-animate is a misfeature. I think of it as an Easter Egg. It is not meant to serve a useful purpose and therefore is not a feature at all. It is nothing more than a trivial and fun effect. Notice that A

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Alex Zavatone
It can present an annoying and time wasting problem when it appears where it is not wanted. Take, for example, Xcode. The shortcut keys to zoom in and out of the storyboard require the shift key. Apple chose to animate the zoom in and zoom out, rather than display the new resolution instantly

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Kyle Sluder
On Thu, Sep 25, 2014, at 11:52 AM, Bill Cheeseman wrote: > Apple's Minimize button slow-motion effect works even if you hold down > other modifier keys along with the Shift key. I just tried it with > Shift-Cmd-Y (it requires some contortion if you only have two hands). > Sure enough, you're right,

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Bill Cheeseman
On Sep 25, 2014, at 1:37 PM, Kyle Sluder wrote: > To a rough approximation, everyone uses every feature all the time. I have to say that I missed your point on that one. In the years since Steve Jobs showed off the slow motion feature, I've never heard of anybody complaining that the keyboard

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Bill Cheeseman
(I apparently sent this to Alex alone the first time. Here it is for the list.) On Sep 25, 2014, at 1:07 PM, Alex Zavatone wrote: > It can present an annoying and time wasting problem when it appears where it > is not wanted. Take, for example, Xcode. The shortcut keys to zoom in and > out o

Re: WebView and User Interface Restore

2014-09-25 Thread Daryle Walker
On Sep 21, 2014, at 7:48 PM, Daryle Walker wrote: > Do WebView instances participate in the Resume feature (with > +restoreWindowWithIdentifier: state: completionHandler:, etc.), or do I have > to manually handle their state (the web-view’s back-forward list and which > item is current) myself

What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Bill Cheeseman
Here's my code to animate in slow motion only when the Shift key alone is down, and not to animate when other modifier keys are down along with the Shift key. This should reduce the likelihood of conflicts with keyboard shortcuts that include the Shift key along with other modifier keys. Don't f

NSUserDirectory returns nil

2014-09-25 Thread tridiak
Why does [[NSFileManager defaultManager] URLForDirectory:NSUserDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:NO error:nil] return nil? [[NSFileManager defaultManager] URLsForDirectory:NSUserDirectory inDomains:NSUserDomainMask] returns an empty array. I am aware of NSHo

Re: NSUserDirectory returns nil

2014-09-25 Thread Roland King
> On 26 Sep 2014, at 7:53 am, trid...@ihug.co.nz wrote: > > > > Why does [[NSFileManager defaultManager] > URLForDirectory:NSUserDirectory inDomain:NSUserDomainMask > appropriateForURL:nil create:NO error:nil] > > return nil? > > > [[NSFileManager defaultManager] URLsForDirectory:NSUserDire

Re: NSUserDirectory returns nil

2014-09-25 Thread Kevin Perry
NSUserDirectory refers to the “Users” directory, which exists only in the “System” domain (“/Users"). The “User” domain is the home directory (“~”). The combination of NSUserDirectory and NSUserDomainMask results in a nonsensical and nonexistent path (“~/Users”) so it returns nil/empty instead.

Re: NSUserDirectory returns nil

2014-09-25 Thread SevenBits
On Sep 25, 2014, at 8:02 PM, Roland King wrote: > >> On 26 Sep 2014, at 7:53 am, trid...@ihug.co.nz wrote: >> >> >> >> Why does [[NSFileManager defaultManager] >> URLForDirectory:NSUserDirectory inDomain:NSUserDomainMask >> appropriateForURL:nil create:NO error:nil] >> >> return nil? >> >>

view content not tracking window size

2014-09-25 Thread N!K
In Xcode 5 OSX, not ios, I have created a custom view and set auto layout constraints so that the custom view's sides stay a fixed distance from the content view's frame. The custom view resizes correctly while dragging the window's corner while running, but the content of the custom view remain

Re: view content not tracking window size

2014-09-25 Thread Graham Cox
When the view resizes, the content area changes to become larger or smaller, but the scaling of content within that view does not change. You have to arrange this if that's what you want. There are a number of ways to do this, but nothing automatic - no amount of fiddling with constraints will

Re: view content not tracking window size

2014-09-25 Thread Graham Cox
On 26 Sep 2014, at 2:22 pm, Graham Cox wrote: >scaleX = NSWidth([path bounds]) / NSWidth( br ); >scaleY = NSHeight([path bounds]) / NSHeight( br ); Oops, this is the wrong way round - the scale should be /. --Graham ___ Cocoa-dev mailing

Re: view content not tracking window size

2014-09-25 Thread dangerwillrobinsondanger
> On 2014/09/26, at 11:38, N!K wrote: > > In Xcode 5 OSX, not ios, I have created a custom view and set auto layout > constraints so that the custom view's sides stay a fixed distance from the > content view's frame. The custom view resizes correctly while dragging the > window's corner whil

Re: view content not tracking window size

2014-09-25 Thread Ken Thomases
On Sep 25, 2014, at 9:38 PM, N!K wrote: > In Xcode 5 OSX, not ios, I have created a custom view and set auto layout > constraints so that the custom view's sides stay a fixed distance from the > content view's frame. The custom view resizes correctly while dragging the > window's corner while