Rubyist
Objective-C
•
•
• @flexfrank
LT2
rubyist mac/iphone/
ipad
macruby0.6
Objective-C/Cocoa
Ruby
Rubyist
Object#send
• - (id)performSelector:(SEL)aSelector
• - (id)performSelector:(SEL)aSelector
  withObject:(id)anObject

• - (id)performSe...
• - (IMP)methodForSelector:(SEL)aSelector
Object#renpond_to?
• - (BOOL)respondsToSelector:(SEL)aSelector
Object#method_missing
• 1. - (NSMethodSignature
  *)methodSignatureForSelector:(SEL)aSelector

• 2. - (void)forwardInvocation:(NSInvocation
  *)...
open class
ClassName(CategoryName)
Class#define_method
IMP class_replaceMethod(Class cls, SEL
  name, IMP imp, const char *types)
• instance_variable_get
 • Ivar object_setInstanceVariable(id obj,
    const char *name, void *value)

• instance_variable...
• Class#instance_methods
 • Method * class_copyMethodList(Class
    cls, unsigned int *outCount)

• instance_variables:
 •...
Objective-C
Rubyist
Rubyist


Objective-C
RubyistのためのObjective-C入門
RubyistのためのObjective-C入門
RubyistのためのObjective-C入門
Upcoming SlideShare
Loading in …5
×

RubyistのためのObjective-C入門

2,859 views

Published on

Tokyuruby会議02

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,859
On SlideShare
0
From Embeds
0
Number of Embeds
12
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide



























  • RubyistのためのObjective-C入門

    1. 1. Rubyist Objective-C
    2. 2. • • • @flexfrank
    3. 3. LT2
    4. 4. rubyist mac/iphone/ ipad
    5. 5. macruby0.6
    6. 6. Objective-C/Cocoa
    7. 7. Ruby
    8. 8. Rubyist
    9. 9. Object#send
    10. 10. • - (id)performSelector:(SEL)aSelector • - (id)performSelector:(SEL)aSelector withObject:(id)anObject • - (id)performSelector:(SEL)aSelector withObject:(id)anObject withObject: (id)anotherObject
    11. 11. • - (IMP)methodForSelector:(SEL)aSelector
    12. 12. Object#renpond_to?
    13. 13. • - (BOOL)respondsToSelector:(SEL)aSelector
    14. 14. Object#method_missing
    15. 15. • 1. - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector • 2. - (void)forwardInvocation:(NSInvocation *)anInvocation
    16. 16. open class
    17. 17. ClassName(CategoryName)
    18. 18. Class#define_method
    19. 19. IMP class_replaceMethod(Class cls, SEL name, IMP imp, const char *types)
    20. 20. • instance_variable_get • Ivar object_setInstanceVariable(id obj, const char *name, void *value) • instance_variable_set • Ivar object_setInstanceVariable(id obj, const char *name, void *value)
    21. 21. • Class#instance_methods • Method * class_copyMethodList(Class cls, unsigned int *outCount) • instance_variables: • Ivar * class_copyIvarList(Class cls, unsigned int *outCount)
    22. 22. Objective-C
    23. 23. Rubyist
    24. 24. Rubyist Objective-C

    ×