• 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: James Maxwell <email@hidden>
  • Date: Wed, 19 May 2010 14:19:19 -0700

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
email@hidden
email@hidden

_______________________________________________

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>)
 >Re: Get controller from nib (From: Mark Ritchie <email@hidden>)

  • Prev by Date: Re: Specify "Sent Action on" Behavior of NSTextField
  • Next by Date: Re: Cracks in image using NSDrawThreePartImage
  • Previous by thread: Re: Get controller from nib
  • Next by thread: Re: Get controller from nib
  • Index(es):
    • Date
    • Thread