• 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
NSDictionaryController and inserting new objects.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDictionaryController and inserting new objects.


  • Subject: NSDictionaryController and inserting new objects.
  • From: Jiva DeVoe <email@hidden>
  • Date: Mon, 31 Mar 2008 00:24:49 -0700

So I'm looking through the docs on NSDictionaryController... trying to understand how it decides how to create new keys. The docs say "to customize this behavior (that is the creation of your keys) override the "newObject" method." And it occurs to me, that this kinda defeats the purpose of the NS*Controller objects themselves doesn't it?

I mean, weren't their original goals to make it easier for us by removing the need for us to write our own custom controller classes all the time? We could just reuse the controllers provided by dragging and dropping them in IB?

In order to override this functionality, I have to make a new class and inherit from it, etc.. (I realize I can use a category, but that seems a bit overkill too.) If I'm going to go to all that work... isn't it just as easy to set up a custom controller and wire things up directly?

What am I missing here? Someone enlighten me? I kinda feel this way about a lot of the controllers provided in IB. They're *almost* good enough for most of the things I want to do.. but never *exactly* what I need.


-- Jiva DeVoe http://www.random-ideas.net PowerCard - Intuitive Project Management for Mac OS X


_______________________________________________

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: NSDictionaryController and inserting new objects.
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Modify Input in NSTableView
  • Next by Date: Re: Modify Input in NSTableView
  • Previous by thread: Re: Modify Input in NSTableView
  • Next by thread: Re: NSDictionaryController and inserting new objects.
  • Index(es):
    • Date
    • Thread