• 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: Need help with predicate format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with predicate format


  • Subject: Re: Need help with predicate format
  • From: Graham Cox <email@hidden>
  • Date: Mon, 28 Jul 2008 16:30:27 +1000


On 28 Jul 2008, at 1:52 pm, Omar Qazi wrote:

To be honest, I don't know if this will work, since I don't know if containsObject is checking if the argument is a pointer to an object in the array, or if it is equal to the object, but it's better than nothing, I guess.


From the docs:

containsObject:
Returns a Boolean value that indicates whether a given object is present in the receiver.


- (BOOL)containsObject:(id)anObject

Parameters

anObject
An object.

Return Value
YES if anObject is present in the receiver, otherwise NO.

Discussion
This method determines whether anObject is present in the receiver by sending an isEqual: message to each of the receiver’s objects (and passing anObject as the parameter to each isEqual: message).


Availability
	• Available in Mac OS X v10.0 and later.




cheers, Graham_______________________________________________

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: Need help with predicate format
      • From: Fabian <email@hidden>
References: 
 >Need help with predicate format (From: Fabian <email@hidden>)
 >Re: Need help with predicate format (From: Omar Qazi <email@hidden>)

  • Prev by Date: Re: draw string with ellipsis
  • Next by Date: Re: NSPopupButton and bindings to NSArrayController
  • Previous by thread: Re: Need help with predicate format
  • Next by thread: Re: Need help with predicate format
  • Index(es):
    • Date
    • Thread