• 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: Future Objective-C changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Future Objective-C changes


  • Subject: Re: Future Objective-C changes
  • From: mathew <email@hidden>
  • Date: Sun, 18 May 2003 13:54:51 -0400

On Sunday, May 18, 2003, at 01:27 US/Eastern, Sheehan Olver wrote:
Though what might be useful would be to specify a type for an NSMutableArray, in order to get a runtime exception when something gets added by mistake. Of course, this doesn't require language constructs, simply a new constructor like:

[NSMutableArray arrayOfType:[NSString class]];

Indeed, and if you want to make sure you get your errors at compile time, you can subclass and extend NSMutableArray to have type-specific selectors addString, addInteger, etc. Again, no language changes are required.


mathew
_______________________________________________
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: Future Objective-C changes
      • From: Martin Häcker <email@hidden>
References: 
 >Re: Future Objective-C changes (From: Sheehan Olver <email@hidden>)

  • Prev by Date: Re: [Q] How do I Create an NSEvent Using Runtime Functions?
  • Next by Date: Re: remove shadows on drawers?
  • Previous by thread: Re: Future Objective-C changes
  • Next by thread: Re: Future Objective-C changes
  • Index(es):
    • Date
    • Thread