Stopping the initial storyboard viewcontroller being created

2015-11-26 Thread Roland King
I would like to create the main viewcontroller in my applicationDidFinishLaunching:withOptions: method (iOS) instead of having the storyboard one created automatically. I’m doing this in order to change behaviour between simulator and device as the simulator doesn’t support BlueTooth, so I nee

Re: Stopping the initial storyboard viewcontroller being created

2015-11-26 Thread Cosmo Birch
If I understand correctly, simply unchecking the “Is Initial Controller” checkbox for the viewController in the Storyboard should fix your problem. > On Nov 26, 2015, at 5:27 AM, Roland King wrote: > > I would like to create the main viewcontroller in my > applicationDidFinishLaunching:withOpt

Re: Stopping the initial storyboard viewcontroller being created

2015-11-26 Thread Michael Babin
> On Nov 26, 2015, at 7:27 AM, Roland King wrote: > > I would like to create the main viewcontroller in my > applicationDidFinishLaunching:withOptions: method (iOS) instead of having the > storyboard one created automatically. > > I’m doing this in order to change behaviour between simulator

xcodebuild and PMD

2015-11-26 Thread John Michael Zorko
Hello, all … I’m exploring how to plug our iOS builds into our existing PMD-based code sniffing tool. We’re using Xcode 7.1.1. Is there a way that I can process xcodebuild’s output (or hook into the Xcode analyzer output) into a PMD XML file? I’m aware of OCLint, but we also have some Swift co

Re: xcodebuild and PMD

2015-11-26 Thread Alex Zavatone
What’s PMD? On Nov 26, 2015, at 3:16 PM, John Michael Zorko wrote: > > Hello, all … > > I’m exploring how to plug our iOS builds into our existing PMD-based code > sniffing tool. We’re using Xcode 7.1.1. Is there a way that I can process > xcodebuild’s output (or hook into the Xcode analyzer

Re: xcodebuild and PMD

2015-11-26 Thread John Michael Zorko
> On Nov 26, 2015, at 12:21 PM, Alex Zavatone wrote: > > What’s PMD? https://pmd.github.io ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: -[NSWindow parentWindow] for sheet never works?

2015-11-26 Thread Jerry Krinock
> On 2015 Nov 25, at 02:49, Graham Cox wrote: > > I looked at the docs, saw [NSWindow -endSheet:sheetWindow] and totally > misinterpreted it. I might be losing my mind, this sort of thing seems to be > happening a lot lately. Your mind is fine – you’ve just been using Cocoa for so long that y

Re: xcodebuild and PMD

2015-11-26 Thread Glenn L. Austin
> On Nov 26, 2015, at 12:27 PM, John Michael Zorko wrote: > >> On Nov 26, 2015, at 12:21 PM, Alex Zavatone wrote: >> >> What’s PMD? > > https://pmd.github.io The more you try to shoehorn Objective-C and Swift into a tool that wasn't designed for either, you will pro

Non-deprecated way to determine Process Type (LSUIElement etc.) ?

2015-11-26 Thread Jerry Krinock
Several years ago I succumbed to a few users who wanted the ability to switch my OS X apps between foreground (regular app) and background (LSUIElement) on the fly. Switching has been possible in both directions since OS X 10.7, using TransformProcessType(). The user interface is, for example,

Re: Bunch of CoreData based NSDocument questions.

2015-11-26 Thread Motti Shneor
Thanks Ernesto. Of course I cleanup. That's not my problem. I want to DENY the quit. I want the user to be asked, and be able to cancel the quit - because the USER is in the middle of an important action, despite the fact the document is autosaved, and can be safely closed. I am not worried abo

Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ?

2015-11-26 Thread Ken Heglund
NSRunningApplication.activationPolicy might do the trick for you. -Ken > On Nov 26, 2015, at 11:58 PM, Jerry Krinock wrote: > > Several years ago I succumbed to a few users who wanted the ability to switch > my OS X apps between foreground (regular app) and background (LSUIElement) on > the

Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ?

2015-11-26 Thread Jerry Krinock
> On 2015 Nov 26, at 23:08, Ken Heglund wrote: > > NSRunningApplication.activationPolicy might do the trick for you. Yes, just tested and it works. Bonus: Looks like setActivationPolicy should replace TransformProcessType(), and it even comes with KVO support :) Thank you, Ken. ___

Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ?

2015-11-26 Thread Ken Thomases
On Nov 27, 2015, at 1:08 AM, Ken Heglund wrote: > > On Nov 26, 2015, at 11:58 PM, Jerry Krinock wrote: >> >> Several years ago I succumbed to a few users who wanted the ability to >> switch my OS X apps between foreground (regular app) and background >> (LSUIElement) on the fly. Switching ha