• 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: No sure way to tell whether an array is mutable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No sure way to tell whether an array is mutable?


  • Subject: Re: No sure way to tell whether an array is mutable?
  • From: Chas Spillar <email@hidden>
  • Date: Thu, 25 Jan 2007 18:35:33 -0800
  • Thread-topic: No sure way to tell whether an array is mutable?

Yeah, the class cluster stuff is described here:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocol
s/NSObject_Protocol/Reference/NSObject.html

saying not to do the exact thing you are doing.

Chas.


> From: Chas Spillar <email@hidden>
> Date: Thu, 25 Jan 2007 18:32:38 -0800
> To: Kenny Leung <email@hidden>
> Cc: Cocoa Dev List <email@hidden>
> Conversation: No sure way to tell whether an array is mutable?
> Subject: Re: No sure way to tell whether an array is mutable?
>
> I think you need isMemberOfClass: as in:
>
> If ([newChildren isMemberOfClass:[NSMutableArray class]) {
> ...
>
> Is seem to remember there is some complexity about them being class
> clusters, but I don't remember exactly...
>
> Chas.
>> From: Kenny Leung <email@hidden>
>> Date: Thu, 25 Jan 2007 18:21:16 -0800
>> To: Apple Cocoa List <email@hidden>
>> Subject: No sure way to tell whether an array is mutable?
>>
>>      if ( [newChildren isKindOfClass:[NSMutableArray class]] ) {
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

References: 
 >Re: No sure way to tell whether an array is mutable? (From: Chas Spillar <email@hidden>)

  • Prev by Date: Re: No sure way to tell whether an array is mutable?
  • Next by Date: Re: No sure way to tell whether an array is mutable?
  • Previous by thread: Re: No sure way to tell whether an array is mutable?
  • Next by thread: Re: No sure way to tell whether an array is mutable?
  • Index(es):
    • Date
    • Thread