• 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
Fwd: selectors in NSDictionaries?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: selectors in NSDictionaries?


  • Subject: Fwd: selectors in NSDictionaries?
  • From: Azza <email@hidden>
  • Date: Fri, 7 Apr 2006 09:37:29 +1000

Hey everyone,

do you know if it is possible to save a selector reference i.e
@selector(someFunction:) inside a NSDictionary like this?

    NSMutableDictionary * tempDict;
    tempDict = [[ NSMutableDictionary alloc ] init];
    [tempDict setObject:@"Work" forKey:@"Display"];
    [tempDict setObject:[[NSArray alloc] init] forKey:@"Data"];
    [tempDict setObject:self forKey:@"Object"];
    [tempDict setObject:@selector(someFunction:) forKey:@"Loader"];

is that possible?

Thanks !
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: selectors in NSDictionaries?
      • From: Ondra Cada <email@hidden>
    • Re: selectors in NSDictionaries?
      • From: Ricky Sharp <email@hidden>
    • Re: selectors in NSDictionaries?
      • From: Mike Blaguszewski <email@hidden>
  • Prev by Date: Re: Should I use Sync Services?
  • Next by Date: Re: Leaks in NSImage's drawInRect:fromRect:operation:fraction:
  • Previous by thread: Re: FYI: NSKeyedArchiver success
  • Next by thread: Re: selectors in NSDictionaries?
  • Index(es):
    • Date
    • Thread