Re: How to make Xcode launch a different app when "Running" my code?

2016-09-18 Thread Alex Zavatone
Add a post build script to launch something? Look in build phases. Sent from my iPhone > On Sep 18, 2016, at 5:02 AM, Gabriel Zachmann wrote: > > When I "Run" my code in Xcode (i.e., hit CMD-R), I would like Xcode to build > the code, copy the product to its destination, > and then run a *dif

Re: loadNibNamed deprecated, but newer version crashes

2016-09-18 Thread Charles Srstka
What’s the crash? Is it an exception? If so, what’s the description that gets posted to the console? Charles > On Sep 18, 2016, at 6:35 PM, Gabriel Zachmann wrote: > > I would like to replace this line of code: > [NSBundle loadNibNamed: @"ConfigureSheet" owner: self]; > > by the newer v

Re: Package installation on MacOS Sierra

2016-09-18 Thread Shane Stanley
On 19 Sep 2016, at 8:36 AM, Graham Cox wrote: > > I have the classic .dmg approach to installation, where a disk image includes > an alias for /Applications and the user drags the app icon to it. On 10.12, > the alias appears to point to nothing, and has a generic file icon. Has this > kind of

loadNibNamed deprecated, but newer version crashes

2016-09-18 Thread Gabriel Zachmann
I would like to replace this line of code: [NSBundle loadNibNamed: @"ConfigureSheet" owner: self]; by the newer version loadNibNamed: owner:topLevelObjects:. This runs in a screensaver. The deprecated version (loadNibNamed:owner:) works. The new version causes a crash. Here are the varian

Re: Package installation on MacOS Sierra

2016-09-18 Thread Graham Cox
> On 19 Sep 2016, at 7:22 AM, Jonathan Mitchell wrote: > > Hi > > I have a MacOS package that installs into /Applications on 10.11. > On 10.12 it appears to install into the user’s Downloads folder. > > Is this change related to the new feature in MacOS 12 to encapsulate > downloaded apps int

Package installation on MacOS Sierra

2016-09-18 Thread Jonathan Mitchell
Hi I have a MacOS package that installs into /Applications on 10.11. On 10.12 it appears to install into the user’s Downloads folder. Is this change related to the new feature in MacOS 12 to encapsulate downloaded apps into a read only container? Thanks J __

Re: Triggering a segue from code

2016-09-18 Thread Quincey Morris
On Sep 18, 2016, at 12:22 , mail...@ericgorr.net wrote: > > While I do see the log message 'How do I..', my utility panel is not shown. > > How can I get this work? Most of the problem is that storyboards and segues for the Mac are inadequately documented. This is exacerbated by the fact that u

Triggering a segue from code

2016-09-18 Thread mail...@ericgorr.net
For reference, I have a sample project location at https://github.com/ericgorr/nspanel_show It is a Document Based and Storyboard application. On my main window, I have a toolbar with an Toolbar Item called 'Inspector'. I have defined a segue between this item and my Inspector Utility Panel ca

Re: Strange toolbar item error

2016-09-18 Thread Kyle Sluder
On Sat, Sep 17, 2016, at 09:24 PM, Shane Stanley wrote: > On 18 Sep 2016, at 3:12 AM, Kyle Sluder wrote: > > > >> For anyone seeing the same thing, the solution seems to be to change the > >> max size of the toolbar items to the unexpected "expected" size. > > > > Yes, the intent of the warning

Re: How to make Xcode launch a different app when "Running" my code?

2016-09-18 Thread Uli Kusterer
On 18 Sep 2016, at 12:02, Gabriel Zachmann wrote: > When I "Run" my code in Xcode (i.e., hit CMD-R), I would like Xcode to build > the code, copy the product to its destination, > and then run a *different* application, not the product it has built. > (all on macOS, not iOS) Sure! Pick "Edit Sc

Re: How to make Xcode launch a different app when "Running" my code?

2016-09-18 Thread Pascal J. Bourguignon
You could try adding a run shell script phase at the end of the compilation to substitute the executable. -- __Pascal Bourguignon__ > On 18 Sep 2016, at 12:02, Gabriel Zachmann wrote: > > When I "Run" my code in Xcode (i.e., hit CMD-R), I would like Xcode to build > the code, copy the prod

Re: Replacement for CGContextSelectFont ?

2016-09-18 Thread Graham Cox
> On 18 Sep 2016, at 7:24 PM, Gabriel Zachmann wrote: > > But if anyone could suggest modifications to make it better (e.g., remove a > bug, make it simpler, or more future proof), > I will greatly appreciate it. Have you looked at or tried CATextLayer? It already does all of this internally

How to make Xcode launch a different app when "Running" my code?

2016-09-18 Thread Gabriel Zachmann
When I "Run" my code in Xcode (i.e., hit CMD-R), I would like Xcode to build the code, copy the product to its destination, and then run a *different* application, not the product it has built. (all on macOS, not iOS) Does anyone know how that is possible? I haven't found it in Xcode's documenta

Re: Replacement for CGContextSelectFont ?

2016-09-18 Thread Gabriel Zachmann
Dear Graham, dear Alex, dear Will, thanks a lot for your helpful suggestions. So far, I have written this code as a replacement for CGContextSelectFont(). I am putting it here for the record (i.e., Google's archives). But if anyone could suggest modifications to make it better (e.g., remove a b