• 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: Newbie Core Data question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Core Data question.


  • Subject: Re: Newbie Core Data question.
  • From: "I. Savant" <email@hidden>
  • Date: Sun, 11 Oct 2009 09:10:47 -0400

On Oct 11, 2009, at 6:00 AM, Gustavo Pizano wrote:

but I can't set the Key Model and key path to something to work..

Let's forget about the drag and drop part for now and simplify the problem.


  You said earlier:

I have a window with 2 custom views, each view with their corresponding controller.

Your problem is with Bindings, not Core Data. This is, I believe, your problem. There are several things you need with a custom view (depending on level of developer convenience desired):


1 - You need to have all the proper "bindings guts" in your custom view. See the "Graphics Bindings" example (specifically, the custom view's bindings-related code) here: http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

2 - You'll probably need to establish the bindings manually (in code) unless you've done #3. See -bind:toObject:withKeyPath:options: ...

3 - If you want to establish bindings conveniently in Interface Builder (ie, for an easily-reusable view), you'll need to expose the binding and make an IB plugin for your view.

As you can see, your problem is one of Bindings, not Core Data. The two technologies work well together but are quite independent. Good luck.

--
I.S.




_______________________________________________

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: Newbie Core Data question.
      • From: Gustavo Pizano <email@hidden>
References: 
 >Newbie Core Data question. (From: Gustavo Pizano <email@hidden>)
 >Re: Newbie Core Data question. (From: Matthew Lindfield Seager <email@hidden>)
 >Re: Newbie Core Data question. (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: [MEET] October CocoaHeads Mac Developer Meetings
  • Next by Date: Re: Newbie Core Data question.
  • Previous by thread: Re: Newbie Core Data question.
  • Next by thread: Re: Newbie Core Data question.
  • Index(es):
    • Date
    • Thread