Re: NSMenuDelegate - menuNeedsUpdate:(NSMenu *): can I get key(s) pressed?

2014-10-28 Thread Jerry Krinock
> On 2014 Oct 27, at 20:14, Jim Prouty wrote: > > Is there code I can write to get the key(s) pressed during NSMenuDelegate's > menuNeedsUpdate:nsmenu method? Maybe override both -keyDown: and -keyUp: somewhere in your responder chain, and keep track of which key is currently down with your o

Re: Interrupted by SIRI before registering interruption callback.

2014-10-28 Thread Beinan Li
Ok, I got it. If SIRI kicks in during audio session initialization, some AVAudioSession methods will return an error code 'siri' or AVAudioSessionErrorCodeSiriIsRecording. If the session is initialized with success, then I can rely on the interruption notification. Sorry for the fuss. Thanks, Bei

Interrupted by SIRI before registering interruption callback.

2014-10-28 Thread Beinan Li
Hello CocoaDev: My app can be interrupted by SIRI before registering an interruption notification using AVAudioSession. The route-change notification is not registered at the time either. The app needs to tell the difference between waking up from SIRI's interruption and something else. So I need

Re: Expected identifier or '(' and other errors occur after copying working code to a second machine

2014-10-28 Thread Fritz Anderson
A shot in the dark… What are the line endings of the files (LF [UNIX/Mac], CR [legacy Mac], CRLF [Windows/Internet protocols]), and how are they set in the Text Editing panels of the Preferences window in the respective machines? Inconsistent line endings have confused Xcode in the past, partic

Re: Expected identifier or '(' and other errors occur after copying working code to a second machine

2014-10-28 Thread Alex Zavatone
For giggles, to make sure it is not an absolute path issue, what if you made the paths the same from the root of the HD and user folder on your second Mac? Create a user that has the same short user name as on the Mac where it works and rename the boot drive to be the same thing. Move the proje

Re: Expected identifier or '(' and other errors occur after copying working code to a second machine

2014-10-28 Thread Jerry Krinock
> On 2014 Oct 28, at 09:44, Saunderson, Rik > wrote: > > Does anyone have any ideas about what's going on? I’ve seen Xcode do weird stuff like this too - just yesterday as a matter of fact, with an Xcode 6.1 beta. Particularly with the “Expected identifier or whatever” nonsense, I think tha

Re: Expected identifier or '(' and other errors occur after copying working code to a second machine

2014-10-28 Thread Jens Alfke
> On Oct 28, 2014, at 6:44 AM, Saunderson, Rik > wrote: > > Does anyone have any ideas about what's going on? I can only assume that > there's something wrong with the build settings or include paths or > something, but I've checked through all of them and they all appear to be > identical

Re: Mac containment segues, and prepareForSegue

2014-10-28 Thread Fritz Anderson
You’ve gone to trouble; thank you. However, I need some help understanding your answer. I can’t find a “Container View Controller” in the Xcode 6.1 object library. Typing “contain” in the search field gets you a “container view,” which is an NSView. The only special thing about it seems to be

Expected identifier or '(' and other errors occur after copying working code to a second machine

2014-10-28 Thread Saunderson, Rik
Hi all, We created an iOS app quite a while ago which works perfectly on the Mac on which it was developed, but throws up errors when we try to compile it on a different Mac. Both Macs are running version 5.0.2 of XCode and are building for iOS 6.1 for legacy compatibility reasons. In order to

Re: Extended Save Dialog Crashing

2014-10-28 Thread Luther Baker
The stack trace looks like Thread 4 Queue: quicklook.pluginload (serial) 0 __cxa_throw 19 start_wqthread Enqueued from com.apple.root.default-overcommit-priority (Thread 12) 0 _dispatch_barrier_async_f_slow 10 thread_start but nothing is logged to the console ... which makes me wonder. I hit 'con

Re: Mac containment segues, and prepareForSegue

2014-10-28 Thread Roland King
> On 28 Oct 2014, at 11:40 am, Fritz Anderson wrote: > > I'm glad of the correction. > > Yes, I am speaking exactly about the "relationship" link between the window > in a window controller scene and the view in the view controller as provided > in the template's Main.storyboard. > > I think