struct objc_class *Class

Base 클래스인 NSObject의 헤더에는 다음과 같이 선언되어 있습니다.

@interface NSObject <NSObject>
{
  Class isa;
}

isa는 클래스 타입의 변수로 모든 인스턴스 객체는 이 isa에 의해 자신이 속한 클래스 객체를 참조합니다. 이것은 objc/objc.h 에 다음과 같이 정의되어 있습니다.

struct objc_class *Class;

그리고 이 구조체는 다음과 같은 내용을 담고 있습니다.

struct objc_class {
    struct objc_class *isa;
    struct objc_class *super_class;
    const char *name;
    long version;
    long info;
    long instance_size;
    struct objc_ivar_list *ivars;
    struct objc_method_list **methodLists;
    struct objc_cache *cache;
    struct objc_protocol_list *protocols;
};
http://macdevcenter.com/pub/a/mac/2002/05/31/runtime_parttwo.html?page=2

Posted by Enowy

2009/10/27 14:13 2009/10/27 14:13
, , , , , ,
Response
No Trackback , 20 Comments
RSS :
http://enowy.com/blog/rss/response/161

Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다

Comments List

  1. belstaff 2011/11/11 11:52 # M/D Reply Permalink

    This article benefited me, thank you!!

  2. coach factory outlet 2011/11/11 11:52 # M/D Reply Permalink

    Thanks for your good information.

  3. michael kors outlet 2011/11/11 11:53 # M/D Reply Permalink

    Thanks for the great article. So fun article is! I agree the idea!

  4. Polo Outlet 2011/11/24 16:42 # M/D Reply Permalink

    Of,course! As well know, your article is very attractive, many of my friends have such thoughts, like so many people comment on your articles, look forward to your new works

  5. Prada Online Outlet 2011/11/30 10:12 # M/D Reply Permalink

    First came to this site, rarely use the site, do not know how to write a comment. So this comment is just a small suggestion, I like this forum, it is always something new.

  6. Prada Outlet 2011/11/30 10:12 # M/D Reply Permalink

    This site has many interesting things, thank you for your efforts. I like your article, look forward to your next article.

  7. Prada Outlet Online 2011/11/30 10:14 # M/D Reply Permalink

    Well, I reap a lot, your article is very special, I will always focus on your article, sharing is a blessing, I am waiting for your next good article

  8. Prada Outlet Store 2011/11/30 10:16 # M/D Reply Permalink

    I like your blog because you write a blog is very interesting, lively, wonderful, support your blog

  9. Nike Air Max 90 2011/12/01 10:58 # M/D Reply Permalink

    First came to this site, it is a great blog. So I just post a little comment. Wish to update, I will come back.

  10. Nike Shoes Australia 2011/12/01 10:59 # M/D Reply Permalink

    I like your article, brilliant, lively, attractive. Look forward to your next article.

  11. Ralph Lauren Outlet 2011/12/01 11:00 # M/D Reply Permalink

    Your article is very special, I learned a lot, I will always look at your article, I covered up your site.

  12. Ralph Lauren Outlet 2011/12/01 11:01 # M/D Reply Permalink

    Your article is very special, I learned a lot, I will always look at your article, I covered up your site.

  13. Ralph Lauren Outlet 2011/12/01 11:01 # M/D Reply Permalink

    I like your blog, support your particular, the text color of the article. Look forward to your updates faster.

  14. rolex watches 2011/12/14 17:03 # M/D Reply Permalink

    There's something hanky-panky going on in the restroom.

  15. Linux Hosting 2011/12/19 16:41 # M/D Reply Permalink

    What a great web log.. I like such blogs to read and the information provided here by the means of article, photos and video are efficient and appreciable. And it is great to comment here.

  16. recados para orkut 2011/12/19 21:00 # M/D Reply Permalink

    Nice information is provided through this blog and it is nice to visit this blog and the information provided here. It is an educational blog which increase our information and news.<a href="http://recadosme.com/”title=" recados para orkut"> recados para orkut</a>

  17. casque dr dre 2012/01/03 11:40 # M/D Reply Permalink

    I hope, like a barbie doll wearing high-heeled shoes, the prince waltz romantic...

  18. christian louboutin 2012/01/03 11:41 # M/D Reply Permalink

    It’s very rare that you find the relevant information on the net but your article did provide me the relevant information. I am going to save your URL and will definitely visit the site again.

  19. Cheap Christian Loub 2012/01/03 11:41 # M/D Reply Permalink

    What are those functions can you explain it pls?

  20. louis vuitton 7 star 2012/01/13 16:37 # M/D Reply Permalink

    I love your content & the way that you write. It looks like you’ve been doing this for a while now, how long have you been blogging for?

Leave a comment
« Previous : 1 : 2 : 3 : 4 : 5 : 6 : 7 : 8 : 9 : ... 157 : Next »