• 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 17:47:06 -0700

oh jeez... This is making me crazy. For some reason, my NSArrayController appears to be calling "count" on MIDIInstrument objects. No idea why. I could see it calling count on the array it's controlling, but not an object in that array. Has anyone come across this problem?

I have a MIDI_Instrument_Controller class/object that holds an array of MIDIInstrument objects called "instrumentLibrary", then in my NSArrayController bindings I set:

Content Array --> MIDI_Instrument_Controller.instrumentLibrary

As I say, there's no good reason (that I can think of) why "count" would be called on a MIDIInstrument object... whassup?

J.



On 2010-05-19, at 8:20 AM, Mark Ritchie wrote:

> On 18/May/2010, at 8:49 PM, James Maxwell wrote:
>> Yes, this is absolutely right, as my last post suggests -- MIDIInstrument was getting a bit blurred MVC-wise. As I properly wrap my head around table views, as well, I think it's becoming clearer what I have to do. I may post again when I've got a better plan worked out, just to see if you have any thoughts.
>> Thanks for your time.
>
> You're welcome!
> Good luck!
> 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

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: Simulating Text Input
  • Next by Date: Re: Simulating Text Input
  • Previous by thread: Re: Get controller from nib
  • Next by thread: Re: Get controller from nib
  • Index(es):
    • Date
    • Thread