• 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: Basic concepts help. making IB connection to a specific instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Basic concepts help. making IB connection to a specific instance
      • From: Chris Hanson <email@hidden>
References: 
 >Re: Basic concepts help. making IB connection to a specific instance (From: Amul Goswamy <email@hidden>)

  • Prev by Date: Re: How to make a NSComboBox with Images
  • Next by Date: Re: Transparent Windows are Opaque to Classic
  • Previous by thread: Re: Basic concepts help. making IB connection to a specific instance
  • Next by thread: Re: Basic concepts help. making IB connection to a specific instance
  • Index(es):
    • Date
    • Thread