|
Re: Temperatur etc. from Locale
I haven't played with it myself, but maybe NSMeasurementFormatter?
--Andy
I haven't played with it myself, but maybe NSMeasurementFormatter?
--Andy
|
By
Andy Lee
·
#767
·
|
|
Temperatur etc. from Locale
I want to know, given a certain NSLocale (e.g. NSLocale.currentLocale), how to represent:
Temperature (K, °C or whatever)
Distance (km, miles, furlongs, lightyears, … )
Speed (m/sec, km/h,
I want to know, given a certain NSLocale (e.g. NSLocale.currentLocale), how to represent:
Temperature (K, °C or whatever)
Distance (km, miles, furlongs, lightyears, … )
Speed (m/sec, km/h,
|
By
Gerriet M. Denkmann
·
#766
·
|
|
Re: More Layout Questions
Hi,
It’s not so much it can’t handle it, its that it takes way to long to do the design in Xcode/Interface Builder and what I am doing is not that difficult but there is a lot of it. Also their
Hi,
It’s not so much it can’t handle it, its that it takes way to long to do the design in Xcode/Interface Builder and what I am doing is not that difficult but there is a lot of it. Also their
|
By
Dave
·
#765
·
|
|
Re: More Layout Questions
HI,
Thanks for this, I did something like this a long while back and must have confused the “Display” path with the “Layout” path, thanks for putting me on the right track again. The its
HI,
Thanks for this, I did something like this a long while back and must have confused the “Display” path with the “Layout” path, thanks for putting me on the right track again. The its
|
By
Dave
·
#764
·
|
|
Re: Refactoring existing Core Data entity classes?
That should be reasonable, I don’t recall whether you’ll need to create a mapping model or not to actually migrate the existing store.
It does mean that all of the instances will wind up shoved
That should be reasonable, I don’t recall whether you’ll need to create a mapping model or not to actually migrate the existing store.
It does mean that all of the instances will wind up shoved
|
By
Chris Hanson
·
#763
·
|
|
Re: Refactoring existing Core Data entity classes?
So, a little background. The model on the server has a number of types that inherit from a common class that contains a number of common properties. The original authors of the iOS app created a bunch
So, a little background. The model on the server has a number of types that inherit from a common class that contains a number of common properties. The original authors of the iOS app created a bunch
|
By
Steve Christensen <punster@...>
·
#762
·
|
|
Re: Refactoring existing Core Data entity classes?
If you put the entities themselves in an inheritance relationship, Xcode will generate code reflecting that.
I would only do this for “strongly” related entities though since entity inheritance
If you put the entities themselves in an inheritance relationship, Xcode will generate code reflecting that.
I would only do this for “strongly” related entities though since entity inheritance
|
By
Chris Hanson
·
#761
·
|
|
Re: Refactoring existing Core Data entity classes?
Hi Chris,
Thanks, that’s good to know for the easy path. What about the case where I want to update the model to reflect the class hierarchy? Based on what the Common superclass will handle, I can
Hi Chris,
Thanks, that’s good to know for the easy path. What about the case where I want to update the model to reflect the class hierarchy? Based on what the Common superclass will handle, I can
|
By
Steve Christensen <punster@...>
·
#760
·
|
|
Re: Refactoring existing Core Data entity classes?
In fact you don’t even need a new model version, you can just refactor the code.
We made sure that Core Data’s concept of entity inheritance is independent of class hierarchy, so you don’t
In fact you don’t even need a new model version, you can just refactor the code.
We made sure that Core Data’s concept of entity inheritance is independent of class hierarchy, so you don’t
|
By
Chris Hanson
·
#759
·
|
|
Re: More Layout Questions
When you find a use case it doesn’t handle, consider the various container views available, and if those don’t help, definitely write a radar. Apple is always improving things, and if you report
When you find a use case it doesn’t handle, consider the various container views available, and if those don’t help, definitely write a radar. Apple is always improving things, and if you report
|
By
Gary L. Wade
·
#758
·
|
|
Re: More Layout Questions
This is incorrect: “layout” methods were added when autolayout was introduced in Lion (10.7). Before that, you used “frame” and “display” methods, and it was generally the responsibility
This is incorrect: “layout” methods were added when autolayout was introduced in Lion (10.7). Before that, you used “frame” and “display” methods, and it was generally the responsibility
|
By
Keary Suska
·
#757
·
|
|
Re: More Layout Questions
Hi,
I’m confused then! The “layout” method has been around a lot longer than Auto Layout and it worked in conjunction with the Auto-Resizing options (defined in the Size Pane in IB). I assumed
Hi,
I’m confused then! The “layout” method has been around a lot longer than Auto Layout and it worked in conjunction with the Auto-Resizing options (defined in the Size Pane in IB). I assumed
|
By
Dave
·
#756
·
|
|
Refactoring existing Core Data entity classes?
I have inherited some code where Core Data entity classes look something like this:
@interface Entity1 : NSManagedObject
Something* common1;
Something* common2;
Something* common3;
SomethingElse*
I have inherited some code where Core Data entity classes look something like this:
@interface Entity1 : NSManagedObject
Something* common1;
Something* common2;
Something* common3;
SomethingElse*
|
By
Steve Christensen <punster@...>
·
#755
·
|
|
Re: Updating to Xcode 10
Because it needs the GNU standard library. It's not just STL, but other things there that are different to the current standard library.
Alex Zavatone via Groups.Io wrote on 22/9/18 00:30:
--
John
Because it needs the GNU standard library. It's not just STL, but other things there that are different to the current standard library.
Alex Zavatone via Groups.Io wrote on 22/9/18 00:30:
--
John
|
By
John Brownie
·
#754
·
|
|
Re: Updating to Xcode 10
How is this not solved by adding libc++.tbd to the project’s Link Binary With Libraries phase?
How is this not solved by adding libc++.tbd to the project’s Link Binary With Libraries phase?
|
By
Alex Zavatone
·
#753
·
|
|
Re: Updating to Xcode 10
Xcode stopped supporting the GNU C++ lib a few releases ago. You’ll need to use Clang’s libc++ instead. Hopefully there should be few compatibility problems.
—Jens
Xcode stopped supporting the GNU C++ lib a few releases ago. You’ll need to use Clang’s libc++ instead. Hopefully there should be few compatibility problems.
—Jens
|
By
Jens Alfke
·
#752
·
|
|
Re: More Layout Questions
I mean that if you have disabled auto-layout, then you shouldn’t be trying to use auto-layout. Implementing the “layout” method comes under the heading of “trying to use auto-layout”, as the
I mean that if you have disabled auto-layout, then you shouldn’t be trying to use auto-layout. Implementing the “layout” method comes under the heading of “trying to use auto-layout”, as the
|
By
Quincey Morris
·
#751
·
|
|
Re: Updating to Xcode 10
On Fri, 21 Sep 2018 16:52:32 +0300, John Brownie said:
How could rewriting in a different language be easier/faster than tweaking your C++ to work with a different STL library? Most C++ code should
On Fri, 21 Sep 2018 16:52:32 +0300, John Brownie said:
How could rewriting in a different language be easier/faster than tweaking your C++ to work with a different STL library? Most C++ code should
|
By
Sean McBride
·
#750
·
|
|
Re: More Layout Questions
I meant to say:
I’m not sure what you mean, my storyboard file has Auto Layout DISABLED and there are no constraints anywhere in the project. Also, all the old-type layout options are off in the
I meant to say:
I’m not sure what you mean, my storyboard file has Auto Layout DISABLED and there are no constraints anywhere in the project. Also, all the old-type layout options are off in the
|
By
Dave
·
#749
·
|
|
Re: More Layout Questions
I’m not sure what you mean, my storyboard file has Auto Layout and there are no constraints anywhere in the project. Also, all the old-type layout options are off in the Size Panel in IB.
Typical!
I’m not sure what you mean, my storyboard file has Auto Layout and there are no constraints anywhere in the project. Also, all the old-type layout options are off in the Size Panel in IB.
Typical!
|
By
Dave
·
#748
·
|