From: Patrick G. <pge...@wa...> - 2008-08-03 22:02:00
|
> Just a quick one, but what would be the equivalent of: > > kvc_accessor :authorized > > in obj-c? Just trying to fully understand what that code actually > does! It defines a getter for the instance variable. If authorized is an object, it's equivalent to -(id)authorized { return authorizedInstanceVariable; } BTW, kvc_accessor is defined in RubyCocoa and you can check the source in /System/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ ruby/osx/objc/oc_import.rb -Patrick |