UISearchBar over UINavigationBar with custom background color

2015-11-02 Thread Rick Mann
I'm using a UISearchController with the presenting VC as the results controller. I want to display the search bar (field and cancel button) over my UINavigationBar. I want the background color of the search bar to be the same as my navigation bar (0, 47, 64, 1.0). But when I try to set its barTi

Re: NSControl Multiple Values

2015-11-02 Thread Quincey Morris
On Nov 2, 2015, at 12:51 , Richard Charles wrote: > > So that is interesting that NSControl will work with a double. My custom > binding works with double values. But after doing a little searching on the > web it appears that value transformers do not work with double values unless > you chan

Re: Crash running C code built on OS X El Capitan in Xcode 7

2015-11-02 Thread Jonathan Mitchell
> On 2 Nov 2015, at 17:24, Jens Alfke wrote: > > >> On Nov 2, 2015, at 6:27 AM, Jonathan Mitchell >> wrote: >> >> It fails if I build and run it on OS X 10.11 using Xcode 7.1 - >> EXC_BAD_ACCESS in mono_jit_runtime_invoke() when calling >> AssemblyName:GetName() >> However the built binary

Re: NSControl Multiple Values

2015-11-02 Thread Richard Charles
> On Nov 2, 2015, at 12:03 PM, Quincey Morris > wrote: > > The simplest way is probably to create a derived property in your data model > that is the correctly-rounded value to display. Well I ended up using a derived property rounding the double to the desired value after all. (I found out

Re: Crash running C code built on OS X El Capitan in Xcode 7

2015-11-02 Thread Jonathan Mitchell
> On 2 Nov 2015, at 16:40, Fritz Anderson wrote: > > [Cross-ref the query “EXC_BAD_ACCESS puzzle when not running as test bundle” > on cocoa-dev. The OP determined this was likely a tools issue, and has > brought it here.] > > > On 2 Nov 2015, at 8:27 AM, Jonathan Mitchell wrote: >> >> T

Re: NSControl Multiple Values

2015-11-02 Thread Richard Charles
> On Nov 2, 2015, at 12:03 PM, Quincey Morris > wrote: > > The simplest way is probably to create a derived property in your data model > that is the correctly-rounded value to display. My data model actually has lots of properties. Creating a derived property for each one does not sound app

Re: NSControl Multiple Values

2015-11-02 Thread Quincey Morris
On Nov 2, 2015, at 10:55 , Richard Charles wrote: > > Does anyone know how to fix this? The simplest way is probably to create a derived property in your data model that is the correctly-rounded value to display. Alternatively, I think you could write a value transformer: https://dev

NSControl Multiple Values

2015-11-02 Thread Richard Charles
I have a single control with a double value. The control is bound to an array controller selection. When multiple objects are selected, if the double values are not the same, the control (NSTextField) will display “Multiple Values”. One of the array controller’s selected objects has a double val

Re: EXC_BAD_ACCESS puzzle when not running as test bundle

2015-11-02 Thread Jonathan Mitchell
Hmm. Some more testing has enabled me to remove my Cocoa wrapper altogether and the issue persists. So I will move the query over to the Xcode list. > On 2 Nov 2015, at 09:45, Jonathan Mitchell wrote: > > This has me puzzled. > > I have some code that is giving trouble only when built on 10.11

EXC_BAD_ACCESS puzzle when not running as test bundle

2015-11-02 Thread Jonathan Mitchell
This has me puzzled. I have some code that is giving trouble only when built on 10.11. I have set up a simple test scenario and it boils down to the following. If I execute the same 4 line test code as part of a unit test bundle it works fine. If I try and execute the exact same code as part of a