• 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: SEL and NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SEL and NSDictionary


  • Subject: Re: SEL and NSDictionary
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 2 Jun 2004 14:09:48 +0200

On 2.6.2004, at 11:23, j o a r wrote:

>> Can one place a SEL into an NSDictionary?
>
> If you wrap it in some other object, for example:
> [myDict setObject: NSStringFromSelector(someSelector) forKey: someKey];

Or [NSValue valueWithPointer:someSelector], which would be considerably
more efficient and just as good, unless you are to serialize and
store/send the dictionary (in which case NSStringFromSelector is indeed
optimal).
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


References: 
 >SEL and NSDictionary (From: Francisco Tolmasky <email@hidden>)
 >Re: SEL and NSDictionary (From: j o a r <email@hidden>)

  • Prev by Date: Re: crash reports
  • Next by Date: Re: Annoying behavior of single-file Find/Replace dialog
  • Previous by thread: Re: SEL and NSDictionary
  • Next by thread: Re: SEL and NSDictionary
  • Index(es):
    • Date
    • Thread