• 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: Still trying to refactor a category as a class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Still trying to refactor a category as a class


  • Subject: Re: Still trying to refactor a category as a class
  • From: Paul Archibald <email@hidden>
  • Date: Sun, 15 Jun 2008 18:16:49 -0700

Wow, Ken, thank you for such a thoughtful and detailed response. I need to read it a few more times to understand it better, but it has been very useful already. I recognize a couple of points were I might have gone astray in my first try.

Oh, and thanks for your second response, too. For a lot of this stuff, I just need someone to tell me to "look at categories or bindings" or whatever. Facing the ObjC/Cocoa/IBuilder thing, sometimes I just wnat a hint as to where to look for the documentation, of at least the terminology to look up.

Paul

On Jun 13, 2008, at 6:19 PM, Ken Thomases wrote:

I tried making a new controller for the new window/module, on the theory that since they don't share much data or functionality, they ought to be separate class objects. However, I am had some problems with that approach. In particular, I was getting several runtime errors of the type: "Could not connect the action someNSApplicationAction: to target of class MyController". I don't understand this at all, but I am more worried that I am just completely off track in trying to create a new controller, and that fixing this problem will just allow me to go even farther into the weeds.

This sounds like the nib you received had controls which were configured to deliver their action to the File's Owner target. When you change the class of File's Owner, you change which actions it responds to. These actions are/were part of AppController or its category AppController(ExtraCategory), but are not part of your new controller.

_______________________________________________

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: 
 >Still trying to refactor a category as a class (From: Paul Archibald <email@hidden>)
 >Re: Still trying to refactor a category as a class (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Issue with displaying URI prefixes on child elements using NSXML
  • Next by Date: NSTableView problems when 0 items
  • Previous by thread: Re: Still trying to refactor a category as a class
  • Next by thread: duplicating views
  • Index(es):
    • Date
    • Thread