• 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: No Methods being called in my subclassed NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No Methods being called in my subclassed NSArrayController


  • Subject: Re: No Methods being called in my subclassed NSArrayController
  • From: Tony Romano <email@hidden>
  • Date: Thu, 11 Feb 2010 13:25:09 -0800

Thanks for the reply Fritz.

It shows NSArrayController and it is greyed out.  It list two options in the drop down,  NSArrayController and NSDictionaryController.  If I try to add my controller class's name, IB beeps and won't accept the name.  (I forgot to mention in my original post that the "Prepares Content" is checked on the attributes page).

I'm sure it is something silly I am doing.

-tony
On Feb 11, 2010, at 11:27 AM, Fritz Anderson wrote:

> On 11 Feb 2010, at 1:20 PM, Tony Romano wrote:
>
>> Environment:
>>
>> 1. Core Data, Document based app.
>> 2. UI contains a NSTableView, Add, Remove, ...
>> 3. NSArrayController.
>>
>> The App works fine, I can Add/Remove objects, Save/Load Works, Undo Works.
>>
>> Problem:
>>
>> I am trying to override the -(id)newObject  method to change one of the UI elements in the Window as part of the 'Add' operation.  So, I created a new class derived from NSArrayController, implemented the newObject method and it never gets called.  In fact, I've stubbed several other methods of NSArrayController and NONE of them get called.
>>
>> What am I missing?
>
> The first thing I'd look for is whether you're using your subclass when you instantiate the array controller. I assume you do this in the NIB. When you select the array controller and look at the Identity inspector, what class does it show?
>
> 	— F
>
>

-tony


_______________________________________________

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: No Methods being called in my subclassed NSArrayController
      • From: Jerry Krinock <email@hidden>
References: 
 >No Methods being called in my subclassed NSArrayController (From: Tony Romano <email@hidden>)
 >Re: No Methods being called in my subclassed NSArrayController (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: iPhone: UIWebView not displaying until scrolled?
  • Next by Date: Re: iPhone: UIWebView not displaying until scrolled?
  • Previous by thread: Re: No Methods being called in my subclassed NSArrayController
  • Next by thread: Re: No Methods being called in my subclassed NSArrayController
  • Index(es):
    • Date
    • Thread