Re: Basic concepts help. making IB connection to a specific instance
Re: Basic concepts help. making IB connection to a specific instance
- Subject: Re: Basic concepts help. making IB connection to a specific instance
- From: Denis Stanton <email@hidden>
- Date: Wed, 16 Apr 2003 14:05:13 +1200
On Wednesday, April 16, 2003, at 01:20 PM, Amul Goswamy wrote:
The IB outlets should not live in your Report object. You should
store reportTitle in the Report object as a string. It is better if
you have a method in your datasource which asks the Report objects for
data and then displays it in your UI.
Amul Goswamy
Interface Builder QA
Apple
Thank you Amul. That stops me banging my head against the wrong wall
for a while.
So if class A uses an instance of class B only class A can have an
interface. Class B has to receive and send any interface activity
through class A. So if an IBAction in class A sends a message to class
B and the activity in class B results some change to the window it's
class A's responsibility to detect the change and make the window
changes.
In my case there are actions within class B that can change the list of
menu items displayed in a submenu. I tried to move this code into
class B but I couldn't figure out how class B was going to get at the
menu to update it. I now understand that class A has to detect the
change in class B, either through a return value or by examining B's
instance variables after sending it a message, and then update the
interface accordingly.
Thank you for taking the time to help me out. It's good to know you
guys are watching
Denis Stanton
_______________________________________________
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.