Your SlideShare is downloading. ×
0
Objective-C 2.0
          GUI
 iPhone


12-B-1
(C)2009 T. Ogihara
✦

✦




✦




    (C)2009 T. Ogihara
NeXTstep

           Objective-C
 




                    (C)2009 T. Ogihara
NeXTstep




           (C)2009 T. Ogihara
NeXTstep




           (C)2009 T. Ogihara
Objective-C
 C
              Smalltalk
                          ANSI C
 
              C++
 C



                     ...
Objective-C
  1983     Brad Cox           Stepstone
  NeXT                (1988   )
  1996     Apple      NeXT
  Mac O...
C++     C
        C   C++         C++

    C




                  C
    C

                      (C)2009 T. Ogihara
Objective-C   C

      C       Objective-C
 


 




                    C
Objective-C


                            (C)...
OO           (1)



             Mixin

 Java                 Objective-
    C


                            (C)2009 ...
OO   (2)

 C++
    ::


 C#


               (C)2009 T. Ogihara
OO        (3)


     (int )





                    (C)2009 T. Ogihara
Objective-C 2.0

  Apple
     
     
     

                   1.0
 


 
                  (C)2009 T. Ogihara
(1)




   id   obj;   /*     */





   [ obj   msg ]
                            (C)2009 T. Ogihara
(2)




   [ obj   msg:100 ]

   [ obj   msg:100 param: N+1 ]





   r = [ obj msg:15 ];
                                ...
@interface        :
{
                      ;
        ...
}
              ;
  ...
@end

                          (C)2009 ...
@implementation
- (id)initWithName:(NSString *)str
{
                 C
        ...
}
  ...
@end
              C
         ...



 virtual, final   C++,
    Java, C#



                    (C)2009 T. Ogihara
 Mac OS X


 Mac OS X 10.5 (Leopard)


 OS X iPhone


                            (C)2009 T. Ogihara




    @selector( )



                   (C)2009 T. Ogihara
[obj show];


[obj performSelector:@selector(show)];


SEL s = @selector(show);
[obj performSelector: s];

               ...
-

 Cocoa







 GUI         Cocoa

                      (C)2009 T. Ogihara
-




    
    



        show:

                (C)2009 T. Ogihara
 Objective-C





                NSObject

                           (C)2009 T. Ogihara
Carbon

         Cocoa

                 JDK




                               BSD
                       Quick
         ...



    GUI






          (C)2009 T. Ogihara
(C)2009 T. Ogihara
(C)2009 T. Ogihara
iPhone

              -
 
  Foundation
  AppKit → UIKit
                    API   Core
 
     Foundation
             ...
Upcoming SlideShare
Loading in...5
×

【12-B-1】 実例で学ぶ Objective-C 2.0 と GUI の関係~ iPhone アプリ開発を視野に入れて

3,068

Published on

0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,068
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
78
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Transcript of "【12-B-1】 実例で学ぶ Objective-C 2.0 と GUI の関係~ iPhone アプリ開発を視野に入れて"

  1. 1. Objective-C 2.0 GUI iPhone 12-B-1
  2. 2. (C)2009 T. Ogihara
  3. 3. ✦ ✦ ✦ (C)2009 T. Ogihara
  4. 4. NeXTstep Objective-C  (C)2009 T. Ogihara
  5. 5. NeXTstep (C)2009 T. Ogihara
  6. 6. NeXTstep (C)2009 T. Ogihara
  7. 7. Objective-C C Smalltalk ANSI C  C++ C (C)2009 T. Ogihara
  8. 8. Objective-C  1983 Brad Cox Stepstone  NeXT (1988 )  1996 Apple NeXT  Mac OS X 2000  Objective-C 2.0 2007  iPhone 2007 (C)2009 T. Ogihara
  9. 9. C++ C C C++ C++  C C C (C)2009 T. Ogihara
  10. 10. Objective-C C C Objective-C   C Objective-C (C)2009 T. Ogihara
  11. 11. OO (1)   Mixin   Java Objective- C  (C)2009 T. Ogihara
  12. 12. OO (2)  C++ ::    C#  (C)2009 T. Ogihara
  13. 13. OO (3)  (int )  (C)2009 T. Ogihara
  14. 14. Objective-C 2.0  Apple    1.0   (C)2009 T. Ogihara
  15. 15. (1) id obj; /* */ [ obj msg ] (C)2009 T. Ogihara
  16. 16. (2) [ obj msg:100 ] [ obj msg:100 param: N+1 ] r = [ obj msg:15 ]; (C)2009 T. Ogihara
  17. 17. @interface : { ; ... } ; ... @end (C)2009 T. Ogihara
  18. 18. @implementation - (id)initWithName:(NSString *)str { C ... } ... @end C (C)2009 T. Ogihara
  19. 19.   virtual, final C++, Java, C#  (C)2009 T. Ogihara
  20. 20.  Mac OS X  Mac OS X 10.5 (Leopard)  OS X iPhone (C)2009 T. Ogihara
  21. 21.   @selector( )  (C)2009 T. Ogihara
  22. 22. [obj show]; [obj performSelector:@selector(show)]; SEL s = @selector(show); [obj performSelector: s]; (C)2009 T. Ogihara
  23. 23. -  Cocoa   GUI Cocoa (C)2009 T. Ogihara
  24. 24. -    show: (C)2009 T. Ogihara
  25. 25.  Objective-C  NSObject (C)2009 T. Ogihara
  26. 26. Carbon Cocoa JDK BSD Quick Time Mac OS X OS X iPhone (C)2009 T. Ogihara
  27. 27.  GUI   (C)2009 T. Ogihara
  28. 28. (C)2009 T. Ogihara
  29. 29. (C)2009 T. Ogihara
  30. 30. iPhone -   Foundation  AppKit → UIKit API Core  Foundation C  (C)2009 T. Ogihara
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×