Primary Menu

  • Journal
  • Contact

Recent Posts

  • Fixing Elastic Beanstalk Pip error on El Capitan
  • Update to iOS 9. Splunk, Cocoa Pods, SSL Domains & co.
  • Search Console – Change of Address. 301 htaccess example
  • EMR 4.0.0 in AWS Data Pipeline
  • Activity Timer refurbishment

Recent Comments

  • Daniel Thapa on Configure Glassfish 3.2 to use log4j
  • Daniel on Setting Zoom level in Google Maps v3 after fitBounds()
  • Richard on Setting Zoom level in Google Maps v3 after fitBounds()
  • Renjie Weng on Spring Roo Exception: Row was updated or deleted by another transaction
  • radiokrishna on Activity Timer refurbishment

Categories

  • a happy coder's life
  • how to fix the error…
  • ideas
  • manual of the day…
  • RDF
  • search & find
  • snippets about…
  • this & that
  • Uncategorized
Skip to content
Happy Coding Journal
  • Journal
  • Contact

Tag: Selector

Swift_Objective-C

Printing a Selector (SEL) name in Objective-C

July 6, 2015 daniel

Did you ever wondered how to print out the content of a SEL action in Objective-C? You can get the selector name via

sel_getName(SEL sel)

And you can use it for example in NSLog like
NSLog(@"My selector name: %s", sel_getName(mySelector));

manual of the day... NSLog, Objective C, Quicktip, SEL, SelectorLeave a comment
© HAPPY CODING | Proudly powered by WordPress | Theme: Zircone by @JuanJavier1979.