Skip to content

Commit

Permalink
[fix #40] fix where CIFilter raises an exception on OSX 10.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jan 31, 2014
1 parent d1e898c commit a46a74f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions osx/ImageTransition/app/MyWindowController.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ def init
@slideView.transitionToImage(@donPedro1)
@curSlide1 = true

dict = NSDictionary.dictionaryWithContentsOfFile("/System/Library/CoreServices/SystemVersion.plist")
if dict.objectForKey("ProductVersion") >= "10.9"
# http://stackoverflow.com/questions/19540070/adding-cifilter-to-calayer-under-mavericks
@slideView.layerUsesCoreImageFilters = true
end

self
end

Expand Down

0 comments on commit a46a74f

Please sign in to comment.