• 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: Core Data insert an Url
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data insert an Url


  • Subject: Re: Core Data insert an Url
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 18 Jun 2006 00:01:56 -0700


On Jun 15, 2006, at 2:40 PM, Filippo Trocca wrote:

I'm a newbie on programming.
I try to create a movie's library with Core Data.
Any movie is registered with the its url on HD.
In a first simple version for understand Core Data, I use awakeFromInsert for open a NSOpenPanel and take the url of my movie; this is the code:


You should not mix controller/view functionality with your model logic. Opening a panel is the responsibility of a controller object. I would strongly suggest setting Core Data (and bindings) aside for a while and gaining a deeper understanding of the Cocoa application architecture and design patterns -- see in particular <http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaFundamentals/CocoaDesignPatterns/chapter_5_section_1.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: 
 >Core Data insert an Url (From: Filippo Trocca <email@hidden>)

  • Prev by Date: Re: Detecting Illegitimate OS X Installations?
  • Next by Date: How to make a dictionary for Dictionary.app
  • Previous by thread: Core Data insert an Url
  • Next by thread: Re: Core Data insert an Url
  • Index(es):
    • Date
    • Thread