Re: SEL and NSDictionary
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.