Re: number formatter
Re: number formatter
- Subject: Re: number formatter
- From: Richard Charles <email@hidden>
- Date: Wed, 24 May 2017 11:53:08 -0600
> On May 24, 2017, at 11:08 AM, J.E. Schotsman <email@hidden> wrote:
>
>> On 24 May 2017, at 18:51, Richard Charles <email@hidden> 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.
> First I set the class to NSNumberFormatter, then connected it, and finally changed to class to my custom class.
Actually the order does not matter. You should be able to make the connection before or after you change the formatter class to your custom class.
> Not very discoverable!
At first glance Interface Builder looks simple but it is huge, there is a lot going on. Simple things can be simple, complex things are possible.
--Richard Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden