inactive menu item

2017-05-24 Thread J.E. Schotsman
Hello, I have a popup button with a menu item that I have set disabled in the xib. Every time the popup is enabled the item is enabled too! Why isn’t the latent state of the item preserved? I can solve the problem by binding the enabled state of the item to a value that is always false but this s

Re: inactive menu item

2017-05-24 Thread Jonathan Mitchell
> On 24 May 2017, at 10:07, J.E. Schotsman wrote: > > Hello, > > I have a popup button with a menu item that I have set disabled in the xib. > Every time the popup is enabled the item is enabled too! > Why isn’t the latent state of the item preserved? > I can solve the problem by binding the en

Re: inactive menu item

2017-05-24 Thread J.E. Schotsman
> On 24 May 2017, at 11:11, Jonathan Mitchell wrote: > > >> On 24 May 2017, at 10:07, J.E. Schotsman wrote: >> >> Hello, >> >> I have a popup button with a menu item that I have set disabled in the xib. >> Every time the popup is enabled the item is enabled too! >> Why isn’t the latent state

Customizing UIPageViewController during init

2017-05-24 Thread Steve Mills
I have a UIPageViewController subclass that's loaded from a storyboard. Depending on user settings, it will display either 1 or 2 pages at a time. There doesn't seem to be a way to manually set the spine location programmatically (except for the delegate method pageViewController:spineLocationF

number formatter

2017-05-24 Thread J.E. Schotsman
Hello I have written the simplest of formatters: class MyIntNumberFormatter:NumberFormatter { override init() { super.init() hasThousandSeparators = false } required init?( coder aDecoder:NSCoder )

Auto Layout Question

2017-05-24 Thread Dave
iOS Project. Hi, I’m trying to do something with auto layout and I can’t seem to get it right. I want to create a View that holds a Text Field and a View. Call these LabelA and ViewA. I want the Text to appear above the view and i want the View to have the same aspect ratio (which is 1:1). I t

Re: Auto Layout Question

2017-05-24 Thread Saagar Jha
Could you attach a screenshot? You got cut off in the middle, so it’s hard to fully understand how the sizes relate. Saagar Jha > On May 24, 2017, at 08:52, Dave wrote: > > iOS Project. > > Hi, > > I’m trying to do something with auto layout and I can’t seem to get it right. > > I want to c

Re: number formatter

2017-05-24 Thread Richard Charles
> On May 24, 2017, at 9:30 AM, J.E. Schotsman wrote: > > Hello > > I have written the simplest of formatters: > > class MyIntNumberFormatter:NumberFormatter > { > override init() > { > super.init() > hasThousandSeparators = false >

Re: number formatter

2017-05-24 Thread J.E. Schotsman
> On 24 May 2017, at 18:51, Richard Charles wrote: > > In other words the nib or xib should already contain the formatter, if not > then create one. Connect the formatter to your control as you normally would. > Then set the class of the formatter to your custom class. Indeed, this works. Fi

Re: Auto Layout Question

2017-05-24 Thread Quincey Morris
On May 24, 2017, at 08:52 , Dave wrote: > > Maybe I am going about this in the wrong way? Using stack views seems like the hard way. Why can’t you apply constraints directly to the 4 views? I’d suggest adding constraints to the labels to center them over their graphic views, with a fixed vert

Re: Customizing UIPageViewController during init

2017-05-24 Thread Quincey Morris
On May 24, 2017, at 08:17 , Steve Mills wrote: > > Is it wrong to call two different init methods? Yes, I think you have to regard it as wrong. Apart from hidden weird behavior, it risks memory management problems, because init methods generally (should) refer to instance variables, not proper

Re: number formatter

2017-05-24 Thread Richard Charles
> On May 24, 2017, at 11:08 AM, J.E. Schotsman wrote: > >> On 24 May 2017, at 18:51, Richard Charles wrote: >> >> In other words the nib or xib should already contain the formatter, if not >> then create one. Connect the formatter to your control as you normally >> would. Then set the class