• 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: Get controller from nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get controller from nib


  • Subject: Re: Get controller from nib
  • From: Mark Ritchie <email@hidden>
  • Date: Tue, 18 May 2010 18:27:21 -0700

Hey James!

On 18/May/2010, at 5:42 PM, James Maxwell wrote:
> Okay, getting a bit deeper into this, I realize I'm still "in the woods", so to speak. I'm going to have to hook up my NSTableView to set the *selected* port and channel for the MIDIInstruments, which means it's pretty much going to have to be loaded in the nib after all (since the MIDIInstrument has to respond to the selection made in the table). So, if I do that, and make the connections to Central_MIDI_Controller, as recommended, will the NSArrayController be able to add new instances of MIDIInstrument (and new rows to my table), which also have these connections? As I mentioned, I need an arbitrary number of MIDIInstruments.

It seems to me that you are not separating the model, view and controller bits.
To me, MIDIInstrument sounds like it's part of the Model (the internal state of things) and it should not be talking directly to the TableView.  The controller in the middle should be tracking and co-ordinating things.
I hope that helps!
M.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Get controller from nib
      • From: James Maxwell <email@hidden>
References: 
 >Get controller from nib (From: James Maxwell <email@hidden>)
 >Re: Get controller from nib (From: Jens Alfke <email@hidden>)
 >Re: Get controller from nib (From: James Maxwell <email@hidden>)
 >Re: Get controller from nib (From: James Maxwell <email@hidden>)

  • Prev by Date: Re: Get controller from nib
  • Next by Date: Re: NSTask and piped commands
  • Previous by thread: Re: Get controller from nib
  • Next by thread: Re: Get controller from nib
  • Index(es):
    • Date
    • Thread