Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by mpweiher

2 days ago

And Objective-C is C. A strict superset, in fact.

If

   [aView display];

really, really, really isn't to your liking, you can write

   objc_msgSend( aView, @selector(display)); 

or even:

   objc_msgSend( aView, sel_registerName("display"));

That's pretty much all there is to it. But I have to admit I like the syntax better:

   [aView display];

2 comments

mpweiher

Reply

addaon  2 days ago

(Hi mpw)

  • mpweiher  1 day ago

    (Hi Adam, how's the flying?)

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities