okay, going slightly nuts. I've implemented my MIDI_Instrument_Controller 
object, and hooked it up to my table view, but it's complaining about 
implementing numberOrRowsInTableView and 
tableView:objectValueForTableColumn:row:. Fine, except that I very definitely 
have implemented them. I tried cleaning, and reloading classes in IB, to no 
avail. Has anyone seen this? Any solutions?

J.



On 2010-05-18, at 6:27 PM, Mark Ritchie wrote:

> 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.

James B Maxwell
Composer/Doctoral Student
School for the Contemporary Arts (SCA)
School for Interactive Arts + Technology (SIAT)
Simon Fraser University
jbmaxw...@rubato-music.com
jbmax...@sfu.ca

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to