Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: SA Dev <email@hidden>
- Date: Wed, 29 Jun 2005 13:32:10 -0400
Do you mean NSMutableArray or NSArrayController? In either case,
as long as you have a reference to it (either direct or via an
outlet), you can ask:
... the NSMutableArray, "BOOL result = [theArray
containsObject:myObject];"
... the NSArrayController, "BOOL result = [[theArrayController
content] containsObject:myObject];"
-or-
"[[theArrayController arrangedObjects] containsObject:myObject];".
As to your second paragraph, I'm not sure what you mean, so if the
above doesn't answer your question, please clarify.
On Jun 29, 2005, at 1:21 PM, Dominic Germain wrote:
Is it possible for a object that belongs to a NSMutableArray to
find which NSMutableArray owned it?
My objects are mainly add into the NSMutableArray using binding
mechanism and I want my object to send a message to a delegate
during their init...
thanks
Dominic Germain
---------------------------------------------
Administrateur réseau / Network administrator
Internet Galilée
www.sogetel.net
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >(no subject) (From: Dominic Germain <email@hidden>) |