• 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
Newbie: Referencing Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Newbie: Referencing Objects
      • From: Andy Lee <email@hidden>
    • Re: Newbie: Referencing Objects
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Leaking CGColor objects
  • Next by Date: Callback for when a window from another app is moved
  • Previous by thread: Re: Finding out that a volume is going away before it does
  • Next by thread: Re: Newbie: Referencing Objects
  • Index(es):
    • Date
    • Thread