• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
@protocol vs NSClassFromString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

@protocol vs NSClassFromString


  • Subject: @protocol vs NSClassFromString
  • From: The Amazing Llama <email@hidden>
  • Date: Tue, 21 Jan 2003 18:29:01 -0800

I understand that these two things are fundamentally different in results, but they are quite similar in what they do; query the runtime.

So why isn't it @protocol and @class()? This makes more sense to my intuition, and is a hell of a lot shorter...

I guess I could implement it myself with something like the following, but why wasn't it done the way it seems it 'should be' the first time?
#define @class(aClass) NSClassFromString(@"aClass")

Seth A. Roby The Amazing Llama < mail or AIM me at tallama at mac dot com>
"Life is like an exploded clown. It's really funny until you figure out what just happened."
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: @protocol vs NSClassFromString
      • From: "John C. Randolph" <email@hidden>
    • Re: @protocol vs NSClassFromString
      • From: Jim Correia <email@hidden>
  • Prev by Date: White edges on utility window when shown
  • Next by Date: Re: @protocol vs NSClassFromString
  • Previous by thread: White edges on utility window when shown
  • Next by thread: Re: @protocol vs NSClassFromString
  • Index(es):
    • Date
    • Thread