Most recent edit on 2007-11-24 15:26:15 by LaurentSansonetti
Additions:
When sending messages from Ruby to Objective-C, the symbol / value� syntax has been deprecated. A warning will now be printed each time you are using this syntax, and in the final release an exception will be thrown.
Deletions:
When sending messages from Ruby to Objective-C, the symbol / value… syntax has been deprecated. A warning will now be printed each time you are using this syntax, and in the final release an exception will be thrown.
Edited on 2007-05-22 04:46:08 by LaurentSansonetti
Additions:
This method was there for historical reasons, and normally you should not need to use it. If you do, you will have to find a replacement.
Edited on 2007-05-22 04:43:10 by LaurentSansonetti
Additions:
OSX::NSURL.alloc.initWithScheme('http', :host, 'www.apple.com', :path, '/macosx') # BAD
OSX::NSURL.alloc.initWithScheme_host_path('http', 'www.apple.com', '/macosx') # GOOD
As an alternative, we introduced a new method, objc_send:
OSX.NSApp # BAD
OSX.NSApp() # BAD
OSX::NSApp # GOOD
Deletions:
OSX::NSURL.alloc.initWithScheme('http', :host, 'www.apple.com', :path, '/macosx')
This syntax has been deprecated, because it could be ambiguous, and will be removed in the 1.0 release.
You need to use the standard messaging syntax instead:
OSX::NSURL.alloc.initWithScheme_host_path('http', 'www.apple.com', '/macosx')
Alternatively, you can use objc_send, a safer replacement with the same look and feel:
Oldest known version of this page was edited on 2007-05-22 04:40:09 by LaurentSansonetti []
RubyCocoa used to support the following Ruby to Objective-C messaging syntax:
This syntax has been deprecated, because it could be ambiguous, and will be removed in the 1.0 release.
You need to use the standard messaging syntax instead:
Alternatively, you can use objc_send, a safer replacement with the same look and feel:
Additions:
When sending messages from Ruby to Objective-C, the symbol / value� syntax has been deprecated. A warning will now be printed each time you are using this syntax, and in the final release an exception will be thrown.
String#nsenconding, String#to_nsstring and String#to_nsmutablestring
These methods have been deprecated, users should call #to_ns instead.Deletions:
When sending messages from Ruby to Objective-C, the symbol / value… syntax has been deprecated. A warning will now be printed each time you are using this syntax, and in the final release an exception will be thrown.
Edited on 2007-05-22 04:46:08 by LaurentSansonetti
Additions:
OSX.objc_symbol_to_obj
The OSX.objc_symbol_to_obj function has been obsoleted, because it was based on deprecated APIs and not used anymore in the project source code.This method was there for historical reasons, and normally you should not need to use it. If you do, you will have to find a replacement.
Edited on 2007-05-22 04:43:10 by LaurentSansonetti
Additions:
The Symbol / Value / ... Messaging Syntax
When sending messages from Ruby to Objective-C, the symbol / value… syntax has been deprecated. A warning will now be printed each time you are using this syntax, and in the final release an exception will be thrown.OSX::NSURL.alloc.initWithScheme('http', :host, 'www.apple.com', :path, '/macosx') # BAD
OSX::NSURL.alloc.initWithScheme_host_path('http', 'www.apple.com', '/macosx') # GOOD
As an alternative, we introduced a new method, objc_send:
Accessing Constants as Ruby Methods of the OSX Module
RubyCocoa now maps C constants as real Ruby constants of the OSX module, while before it was mapping them as Ruby methods. Trying to retrieve a constant by calling a method of the OSX module has been deprecated. A warning will now be printed each time you are using this syntax, and in the final release an exception will be thrown.OSX.NSApp # BAD
OSX.NSApp() # BAD
OSX::NSApp # GOOD
Deletions:
The Symbol/Value/... Messaging Syntax
RubyCocoa used to support the following Ruby to Objective-C messaging syntax:OSX::NSURL.alloc.initWithScheme('http', :host, 'www.apple.com', :path, '/macosx')
This syntax has been deprecated, because it could be ambiguous, and will be removed in the 1.0 release.
You need to use the standard messaging syntax instead:
OSX::NSURL.alloc.initWithScheme_host_path('http', 'www.apple.com', '/macosx')
Alternatively, you can use objc_send, a safer replacement with the same look and feel:
Oldest known version of this page was edited on 2007-05-22 04:40:09 by LaurentSansonetti []
Page view:
Here is the list of APIs that have been deprecated in RubyCocoa.The Symbol/Value/... Messaging Syntax
RubyCocoa used to support the following Ruby to Objective-C messaging syntax:
OSX::NSURL.alloc.initWithScheme('http', :host, 'www.apple.com', :path, '/macosx')
This syntax has been deprecated, because it could be ambiguous, and will be removed in the 1.0 release.
You need to use the standard messaging syntax instead:
OSX::NSURL.alloc.initWithScheme_host_path('http', 'www.apple.com', '/macosx')
Alternatively, you can use objc_send, a safer replacement with the same look and feel:
OSX::NSURL.alloc.objc_send(:initWithScheme, 'http', :host, 'www.apple.com', :path, '/macosx')