• 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
NSArray vs. NSMutableArray ... "distinct objective-c type"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArray vs. NSMutableArray ... "distinct objective-c type"


  • Subject: NSArray vs. NSMutableArray ... "distinct objective-c type"
  • From: Martin Batholdy <email@hidden>
  • Date: Sat, 6 Jun 2009 14:14:08 +0200

hi,

I have created a method that do something with an NSArray.

Now when I use the method and give it an NSMutableArray instead of an NSArray,
I get a warning;


"passing argument x of "method" from distinct objective-c type"


Now, the result is ok. Everything is working how it is intended.


So, should I just ignore the message? Or is that bad practice ...?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSArray vs. NSMutableArray ... "distinct objective-c type"
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Profiling a drag and drop operation
  • Next by Date: Re: NSArray vs. NSMutableArray ... "distinct objective-c type"
  • Previous by thread: Some objects swallow mouse events
  • Next by thread: Re: NSArray vs. NSMutableArray ... "distinct objective-c type"
  • Index(es):
    • Date
    • Thread