• 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: Connecting actions to custom entity classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connecting actions to custom entity classes


  • Subject: Re: Connecting actions to custom entity classes
  • From: mmalcolm crawford <email@hidden>
  • Date: Thu, 8 Jun 2006 00:36:36 -0700


On Jun 7, 2006, at 9:13 PM, Mathieu Tozer wrote:

@interface TaskMO : NSManagedObject {
[...]
- (void)stop;
[...]
I have a button on the interface connected to a stop: action in the NSArrayController, but I get the following error:
[...]
2006-06-08 14:09:48.057 noodle[22325] Could not connect the action stop: to target of class NSArrayController


There are several fundamental errors and misunderstandings here.

Per various recommendations in the documentation, I would strongly suggest dropping at least Core Data and probably also bindings and concentrating first on mastering the basics. It is likely to be an exercise in frustration trying to get to grips with all these technologies simultaneously.

You need to understand the target-action design pattern, how NSControl objects work, the model-view-controller design pattern, and in particular thereafter the mediator design pattern. Most of this can be gathered from <http://developer.apple.com/documentation/Cocoa/ Conceptual/CocoaFundamentals/index.html>.

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Connecting actions to custom entity classes (From: Mathieu Tozer <email@hidden>)

  • Prev by Date: Re: Please advise on memory handling
  • Next by Date: duplicate entries and NSArrayController
  • Previous by thread: Connecting actions to custom entity classes
  • Next by thread: Help in Getting NSFontFamilyClass
  • Index(es):
    • Date
    • Thread