Re: Trigger "Back to..." from code?

2015-11-17 Thread Conrad Shultz
As always, if helpful API is missing, please file a bug at https://bugreport.apple.com and explain your use case. Thanks, Conrad > On Nov 16, 2015, at 6:41 PM, Eric Shepherd wrote: > > Bummer. I was writing a Workflow script to do stuff and just wanted it > to be able to return me back to wher

Re: Voiceover support

2015-11-17 Thread Conrad Shultz
One other thing you may find helpful is to test your app using Screen Curtain (https://developer.apple.com/library/ios/technotes/TestingAccessibilityOfiOSApps/TestAccessibilityonYourDevicewithVoiceOver/TestAccessibilityonYourDevicewithVoiceOver.html

Radar down?

2015-11-17 Thread Rick Mann
It loads partially, then says "Unable to communicate with enclosure service" or something like that. -- Rick Mann rm...@latencyzero.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Assigning an element of a swift array to a userdata parameter triggers didSet

2015-11-17 Thread Eric Gorr
I created the default Cocoa/Swift app. My AppDelegate class is below. I have hooked the view in the window to the view IBOutlet in the AppDelegate. What I am trying to do is assign a element from an array to the userdata for a tooltip. The code executes and prints 'did set' three times. I would

a question concerning how to fire a message at the beginning of my application

2015-11-17 Thread Scott Berry
Hello there, I was wondering would it be wiser for me to put a notification or an art. This must be presented because otherwise this program could be dangerous without the message. It has to do with flying. ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: a question concerning how to fire a message at the beginning of my application

2015-11-17 Thread Quincey Morris
On Nov 17, 2015, at 15:59 , Scott Berry wrote: > > I was wondering would it be wiser for me to put a notification or an art. You mean “alert"? > This must be presented because otherwise this program could be dangerous > without the message. If it’s dangerous, you presumably would want the u

Re: Customising NSFontManager

2015-11-17 Thread Graham Cox
Anyone know what NSFontManager’s designated initializer is? I have set the Font Manager’s factory class to my subclass of NSFontManager is previously discussed, but its -init method is never called. The Font Manager object is part of MainMenu.xib, which has ‘prefer coder’ unchecked. In any cas

Re: a question concerning how to fire a message at the beginning of my application

2015-11-17 Thread Alex Hall
> On Nov 17, 2015, at 19:11, Quincey Morris > wrote: > > On Nov 17, 2015, at 15:59 , Scott Berry wrote: >> >> I was wondering would it be wiser for me to put a notification or an art. > > You mean “alert"? > >> This must be presented because otherwise this program could be dangerous >> w

Re: Customising NSFontManager

2015-11-17 Thread Roland King
> On 18 Nov 2015, at 08:26, Graham Cox wrote: > > > Anyone know what NSFontManager’s designated initializer is? > > I have set the Font Manager’s factory class to my subclass of NSFontManager > is previously discussed, but its -init method is never called. The Font > Manager object is part o

Installing older OS X

2015-11-17 Thread Quincey Morris
I want to install 10.8.5 somewhere, to debug an app compatibility issue on that OS, but I can’t seem to figure out how. I have an empty hard disk I can use, but there’s nothing installed on it. I’ve got the Mountain Lion installer app from the App Store, but it won’t run under El Capitan. (It’s

Re: Customising NSFontManager

2015-11-17 Thread Graham Cox
> On 18 Nov 2015, at 11:46 AM, Roland King wrote: > > >> On 18 Nov 2015, at 08:26, Graham Cox wrote: >> >> >> Anyone know what NSFontManager’s designated initializer is? >> >> I have set the Font Manager’s factory class to my subclass of NSFontManager >> is previously discussed, but its -i

Re: Installing older OS X

2015-11-17 Thread Graham Cox
Yeah, Apple really make it hard to set up older OS installs for dev testing. If you copy the old installer to the hard disk partition and set it as the boot drive and reboot, does that work? The installers are (I believe) designed to run with no OS at all. —Graham > On 18 Nov 2015, at 11:

Re: Customising NSFontManager

2015-11-17 Thread Roland King
> On 18 Nov 2015, at 09:00, Graham Cox wrote: > >> >> On 18 Nov 2015, at 11:46 AM, Roland King wrote: >> >> >>> On 18 Nov 2015, at 08:26, Graham Cox wrote: >>> >>> >>> Anyone know what NSFontManager’s designated initializer is? >>> >>> I have set the Font Manager’s factory class to my su

KVO question

2015-11-17 Thread Graham Cox
I’m using KVO to observe a bunch of properties. Most of these properties are split out into simple things that set a single value, but internal to my object, some end up setting a common dictionary of attributes, which is also a property. I KVO observe both the simple properties and the common

Re: Installing older OS X

2015-11-17 Thread Quincey Morris
On Nov 17, 2015, at 17:02 , Graham Cox wrote: > > If you copy the old installer to the hard disk partition and set it as the > boot drive and reboot, does that work? No. It’s no listed as a disk I can start up from. There might be something I can do by restarting with the Option key, and using

Re: Installing older OS X

2015-11-17 Thread Roland King
> > Yes, I was thinking that Parallels or VMWare was my next option, but nothing > in their product information says anything definitive about getting a VM with > an older OS version on it. If I have to *install* the OS, then I’m stuck with > the same problem. I assume it’s doable. > __

Re: Installing older OS X

2015-11-17 Thread Graham Cox
> On 18 Nov 2015, at 12:21 PM, Quincey Morris > wrote: > > No. It’s no listed as a disk I can start up from. > > OK, that’s kind of weird, because I just made a boot disk on a USB stick by simply copying the installer onto it, and it shows as a bootable drive. Admittedly that’s with a new

Re: Installing older OS X

2015-11-17 Thread Graham Cox
> On 18 Nov 2015, at 12:30 PM, Graham Cox wrote: > > N.B. The USB boot drive even works on a Windows PC to make a “hackintosh”, so > should work on a real Mac. > AHHH!!! I just remembered something. I needed a utility called ‘UniBeast’ to make the USB stick originally. It probably does som

Re: Installing older OS X

2015-11-17 Thread Sandor Szatmari
Can you make a bootable USB drive from the installer? Boot of the USB and install from there. Sandor On Nov 17, 2015, at 7:50 PM, Quincey Morris wrote: > I want to install 10.8.5 somewhere, to debug an app compatibility issue on > that OS, but I can’t seem to figure out how. > > I have an

Re: KVO question

2015-11-17 Thread Daniel Stenmark
It seems like it *should* work. Are you sure you don’t have a typo in your addObserver: method? Considering that you’re using the dictionary’s property setter, keyPathsForValuesAffecting shouldn’t even be necessary. When I apply KVO, I try to mitigate the potential unsafely of key paths strin

Re: Installing older OS X

2015-11-17 Thread Shane Stanley
On 18 Nov 2015, at 11:50 AM, Quincey Morris wrote: > > I want to install 10.8.5 somewhere, to debug an app compatibility issue on > that OS, but I can’t seem to figure out how. Does this help? -- Shane Stanley _

Re: Installing older OS X

2015-11-17 Thread Quincey Morris
On Nov 17, 2015, at 17:42 , Shane Stanley wrote: > > Does this help? > > > I’ll try it a bit later, but it seems to be an answer. I’d assume, though, that I need *two* empty disks for this — one to hold the

Re: Installing older OS X

2015-11-17 Thread Quincey Morris
On Nov 17, 2015, at 17:52 , Quincey Morris wrote: > > On Nov 17, 2015, at 17:42 , Shane Stanley > wrote: >> >> Does this help? >> >> > > > > I’ll try it a bit later, but i

Re: Assigning an element of a swift array to a userdata parameter triggers didSet

2015-11-17 Thread Jens Alfke
I think the cause is “&(myArray[0])”. In Swift it isn't possible to get a pointer to an array item — these aren’t C arrays, their internal representation is opaque! So what I think happens is that it copies myArray[0] into a temporary and creates an UnsafeMutablePointer to that. Then, after the

Re: Installing older OS X

2015-11-17 Thread Alex Zavatone
VM Ware? I'm running 10.6.8 on this Mac, 10.5.whatever on another and keep a few external HDs around and spare Macs and install images for this purpose. On Nov 17, 2015, at 8:02 PM, Graham Cox wrote: > Yeah, Apple really make it hard to set up older OS installs for dev testing. > > If you co

Re: Installing older OS X

2015-11-17 Thread Maxthon Chan
For me the installation media is always an SD card in the built-in card reader (which is usually faster than USB if the card itself is fast enough) Sent from my iPhone > On Nov 18, 2015, at 09:52, Quincey Morris > wrote: > >> On Nov 17, 2015, at 17:42 , Shane Stanley wrote: >> >> Does this

Re: Installing older OS X

2015-11-17 Thread Maxthon Chan
Quincey: Two points: 1) Your machine should be no newer than OS X 10.8.5 or driver issue will happen. 2) You need to create an install media (wiping it in the process) and perform an fresh install (wiping the partition in the process). Sent from my iPhone > On Nov 18, 2015, at 08:50, Quincey M

Re: Installing older OS X

2015-11-17 Thread Charles Srstka
> On Nov 17, 2015, at 7:21 PM, Quincey Morris > wrote: > > Yes, I was thinking that Parallels or VMWare was my next option, but nothing > in their product information says anything definitive about getting a VM with > an older OS version on it. If I have to *install* the OS, then I’m stuck wit

Re: Installing older OS X

2015-11-17 Thread Quincey Morris
On Nov 17, 2015, at 21:03 , Charles Srstka wrote: > > I can personally vouch for Mountain Lion running well in VMWare. Where it > gets hard is when you are running Snow Leopard or earlier, and not for any > technological reason—those versions are artificially blocked from running in > a virtua

Re: Installing older OS X

2015-11-17 Thread Charles Srstka
On Nov 17, 2015, at 11:21 PM, Quincey Morris wrote: > > I ended up going with VMWare (because Lee Ann, not because I have anything > against Parallels). Ah, I didn’t realize one of our contributors here worked at VMWare. Well, all the more reason to use it. I’ve been for years, and have never

Re: Installing older OS X

2015-11-17 Thread Quincey Morris
On Nov 17, 2015, at 21:47 , Charles Srstka wrote: > > I think what I did was go to File -> New, choose “Install from disc or > image”, and choose the InstallESD.dmg file that’s inside the Mountain Lion > installer (I think it was still bootable back then At one point I got there, or somewhere

Re: Installing older OS X

2015-11-17 Thread Charles Srstka
> On Nov 18, 2015, at 12:01 AM, Quincey Morris > wrote: > > On Nov 17, 2015, at 21:47 , Charles Srstka > wrote: >> >> I think what I did was go to File -> New, choose “Install from disc or >> image”, and choose the InstallESD.dmg file that’s inside the Mountai

Re: Installing older OS X

2015-11-17 Thread Quincey Morris
On Nov 17, 2015, at 22:11 , Charles Srstka wrote: > > Type ⌘-Shift-G, then “NameOfApp.app/Contents”, without the quotes, into the > resulting sheet. I see. It’s nice to know that developers can do standup too. ;) ___ Cocoa-dev mailing list (Cocoa-de

Re: Installing older OS X

2015-11-17 Thread Charles Srstka
> On Nov 18, 2015, at 12:19 AM, Quincey Morris > wrote: > > On Nov 17, 2015, at 22:11 , Charles Srstka > wrote: >> >> Type ⌘-Shift-G, then “NameOfApp.app/Contents”, without the quotes, into the >> resulting sheet. > > I see. It’s nice to know that developers

Re: Installing older OS X

2015-11-17 Thread Quincey Morris
On Nov 17, 2015, at 23:13 , Charles Srstka wrote: > > Oh, sorry, I didn’t mean to insult with the “without the quotes” bit. No, that wasn’t it. When I read your post, I fell over laughing at ‘Type ⌘-Shift-G, then “NameOfApp.app/Contents”’, because the chances of my remembering that are about z

Re: Installing older OS X

2015-11-17 Thread Charles Srstka
> On Nov 18, 2015, at 1:22 AM, Quincey Morris > wrote: > > On Nov 17, 2015, at 23:13 , Charles Srstka > wrote: >> >> Oh, sorry, I didn’t mean to insult with the “without the quotes” bit. > > No, that wasn’t it. When I read your post, I fell over laughing at ‘T

Re: KVO question

2015-11-17 Thread Quincey Morris
On Nov 17, 2015, at 17:18 , Graham Cox wrote: > > Mostly this is working, but when code directly sets the dictionary property, > the other properties don’t trigger their observers, even though I’m > implementing the +keyPathsForValuesAffecting, which I believe > should cause the additional tri