Pointer to an Object
Pointer to an Object
- Subject: Pointer to an Object
- From: Edward Fink <email@hidden>
- Date: Sat, 14 Sep 2002 14:26:19 -0400
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.