• 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: Pointer to an Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pointer to an Object


  • Subject: Re: Pointer to an Object
  • From: Edward Fink <email@hidden>
  • Date: Sat, 14 Sep 2002 14:33:56 -0400

Maybe I can make this example simpler.

I create Object1. Then I create Object2 of a different type from within Object1. Now I want Object2 to be able to reference methods in my already existing Object1. How should I go about this?


On Saturday, September 14, 2002, at 02:26 PM, Edward Fink wrote:

I have created a subclass of NSWindowController called
"StatusController". This "StatusController" loads a nib file and
handles the actions/outlets from the Window in the nib. Now I create
the StatusController from within my "myApp" object via:
statusController = [[StatusController alloc] init];

This is working nicely so far.

Now I want to be able to execute a method inside my "myApp" object when
a certain action occurs that is handled by the StatusController(like
when a particular button is pressed). I thought I would just pass a
pointer to StatusController of type "myApp" and then execute the method
like... "[myapppointer method:blah];". However, I cannot get this to
work as it is causing compile problems.

Is this possible? or should I be handling this another way?

Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Pointer to an Object (From: Edward Fink <email@hidden>)

  • Prev by Date: Pointer to an Object
  • Next by Date: Stopping menus appearing on 10.2
  • Previous by thread: Pointer to an Object
  • Next by thread: Re: Pointer to an Object
  • Index(es):
    • Date
    • Thread