• 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
Re: Using @selector()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using @selector()


  • Subject: Re: Using @selector()
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 9 Aug 2008 15:24:42 +0200

On 09.08.2008, at 11:23, Christian Giordano wrote:
yep, it works with that :) I presume it is an error in the book.

Probably. Or they hooked up the target in IB before that.

Personally I thought that passing the method not as string it would have recognized the scope (target) automatically.


Now you know better. FWIW, it helps me to think that @selector() is like referencing a function pointer directly, while NSSelectorFromString() is like using CFBundle or dyld of CFM's FindSymbol(), or whatever API you've used before to look up functions at runtime. If you've used one at runtime ... which I guess only compiler and plug-in nuts like me do, so forget what I said ... :-)

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Using @selector() (From: "Christian Giordano" <email@hidden>)
 >Re: Using @selector() (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Using @selector() (From: "Christian Giordano" <email@hidden>)

  • Prev by Date: Re: Using @selector()
  • Next by Date: Re: Does [NSApp setApplicationIconImage] leak memory?
  • Previous by thread: Re: Using @selector()
  • Next by thread: Re: Using @selector()
  • Index(es):
    • Date
    • Thread