Newbie: Referencing Objects
Newbie: Referencing Objects
- Subject: Newbie: Referencing Objects
- From: "john fogg" <email@hidden>
- Date: Sat, 25 Oct 2008 19:20:35 +0200
Hi there!
I'm stuck with Objective-C but then again I'm new to this. I searched
the web for the last two days but maybe I'm looking in the wrong
direction?
I create a Button and in the course of that I set a "target:" and an
"action:". Unlike any and all of the examples I found on the web and
on Apple's site I don't want the message sent to my current object, so
I don't want "target:self" but another object I created elsewhere from
another class.
How do I do that? I know I have an object in memory and I know its
name but I don't have a pointer to it. For methods there is
"@selector", is there something like it for objects?
If this helps: In Actionscript I'd write
"_root.myObjectName.myFunctionName" and be set. Is there a way to
access objects like this in Objective-C?
Or am I doing it all wrong? :-(
Thanks in advance!
_______________________________________________
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