Re: Pointer to an Object
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.