Closed GoogleCodeExporter closed 8 years ago
Issue 427 has been merged into this issue.
Original comment by eskr...@mac.com
on 17 Apr 2012 at 10:05
Original comment by eskr...@mac.com
on 18 Apr 2012 at 1:24
What should Core Plot do if you use one of the options that's not available on
the system running the code (e.g., NSWeekOfMonthCalendarUnit pre-10.7)? Log an
error and ignore it? Throw an exception? Implement equivalent functionality so
it works the same on all systems?
Original comment by eskr...@mac.com
on 18 Apr 2012 at 1:39
When you wrap this code with the current OS check (like my runningOnLionOrLater
above) then it will never be executed on 10.6. In this case the app would
behave as if it was compiled with XC3. If it did not have trouble without this
new feature then there is no need to log or throw an error. The new feature is
simply not available in this scenario.
Original comment by mike.lischke
on 18 Apr 2012 at 7:54
The problem code is part of a switch statement. Some of the options are only
available on later systems. Something that builds and runs fine on Lion won't
work on Snow Leopard if it uses one of those options. If we throw an exception,
that should show up when testing the app on the earlier system and it will be
up to the developer to find another option if they want to support that system
version.
My gut feeling is to just throw an exception in this situation. A developer
targeting the earlier systems should be aware of the NSDateComponents options
that aren't supported on the targeted system.
Original comment by eskr...@mac.com
on 19 Apr 2012 at 12:19
This issue was closed by revision 4d200c6985a9.
Original comment by eskr...@mac.com
on 19 Apr 2012 at 1:14
Original issue reported on code.google.com by
mike.lischke
on 7 Apr 2012 at 9:20