Projects

Ticket #382 (closed defect: fixed)

Opened 2 years ago

Last modified 15 months ago

undefined constants in Snow Leopard

Reported by: rich@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.8
Component: MacRuby Keywords:
Cc:

Description

In trying to get samples-macruby/Scripts/jumpy.rb to work, I noticed certain constants were not in the Bridge Support files in Snow Leopard. I added this to the top of jumpy.rb to fix the problem but we need these in a more central location:

# these are not properly mapped in BridgeSupport in Snow Leopard (from GCGeometry.h) CGRectInfinite = CGRect.new([-8.98847e+307, -8.98847e+307], [1.79769e+308, 1.79769e+308]) unless defined?(CGRectInfinite) CGSizeZero = CGSizeMake(0, 0) unless defined?(CGSizeZero) CGRectZero = CGRectMake(0, 0, 0, 0) unless defined?(CGRectZero) CGPointZero = CGPointMake(0, 0) unless defined?(CGPointZero) # we need CGRectNull!

# these are not properly mapped in BridgeSupport in Snow Leopard (from CATransaction.h) KCATransactionAnimationDuration = 'animationDuration' unless defined?(KCATransactionAnimationDuration) KCATransactionDisableActions = 'disableActions' unless defined?(KCATransactionDisableActions) KCATransactionAnimationTimingFunction = 'animationTimingFunction' unless defined?(KCATransactionAnimationTimingFunction) KCATransactionCompletionBlock = 'completionBlock' unless defined?(KCATransactionCompletionBlock)

# these are not properly mapped in BridgeSupport in Snow Leopard (from CAMediaTimingFunction.h) KCAMediaTimingFunctionEaseIn = 'easeIn' unless defined?(KCAMediaTimingFunctionEaseIn) KCAMediaTimingFunctionEaseOut = 'easeOut' unless defined?(KCAMediaTimingFunctionEaseOut) KCAMediaTimingFunctionLinear = 'linear' unless defined?(KCAMediaTimingFunctionLinear) KCAMediaTimingFunctionEaseInOut = 'easeInOut' unless defined?(KCAMediaTimingFunctionEaseInOut)

Change History

Changed 20 months ago by martinlagardette@…

This was "fixed" some time ago in r2784, but I guess the missing constants are more of a BridgeSupport missing problem.

Changed 15 months ago by mattaimonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.8

Closing this ticket since everything seems to be working fine, especially with the new BridgeSupport

Note: See TracTickets for help on using tickets.