• 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: immutable NSMutableDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: immutable NSMutableDictionary


  • Subject: Re: immutable NSMutableDictionary
  • From: Frédéric BLANC <email@hidden>
  • Date: Mon, 17 Feb 2003 17:59:33 +0100 (CET)

Quoting Shawn Erickson <email@hidden>:
> Its better to query if the target object supports "setObject" or catch
> the exception then attempting to verify class.
> if ([myDictionary respondsTo:@selector(setObject:forKey:)])
> {
> [myDictionary setObject: myObject forKey: myKey];
> }

I do understand why this is better... but could you please give us your Java
version of this great tip ;) ? Thanks in advance,


- Fred who will never ever CHOOSE to use Java in Cocoa development...
_______________________________________________
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.

  • Follow-Ups:
    • Re: immutable NSMutableDictionary
      • From: Shawn Erickson <email@hidden>
References: 
 >Re: immutable NSMutableDictionary (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: immutable NSMutableDictionary
  • Next by Date: Re: Interface Builder
  • Previous by thread: Re: immutable NSMutableDictionary
  • Next by thread: Re: immutable NSMutableDictionary
  • Index(es):
    • Date
    • Thread