Thanks Quincey,
Your code pointed me in the right direction : I needed to create a persistent
store (of type NSSQLiteStoreStype) like in your example and add it to the newly
created document context.
I also replaced the file type "SQLite" with the correct file type defined in my
plist (MyDocume
anel open as a sheet, not a modal window. And the
standard behavior open a modal window. Is there a way to customize this ?
Thanks for your help,
Eric.
Le 11 nov. 2009 à 19:01, Quincey Morris a écrit :
> On Nov 11, 2009, at 04:34, Eric Morand wrote:
>
Hi guys !
I'm trying to implement a "welcome screen" like the ones found in Garage Band
or Xcode : the user will be showed a window with a "Create new document" button
that, when clicked, show a save panel. Once saved, the application should open
the document.
I'm facing a problem when I try t
But why don’t you want to save?
If you just want your objects in memory, why use CoreData at all?
Hi atze,
I'll probably end up using the "merge..." method available but that
makes me feel bad to save a document automatically when the user
should be the only one responsible for this. For ex
The NSManagedObjectContext is your scratchpad. If you want something
inside it fetch it or create it.
If you change something, the change will be promoted.
Hi atze,
Actually, the change will be promoted only when they are committed to
the store, and that implies a save on the disk. Or
Thanks a lot for the clarification, you made my day.
I'll try to subclass NSImageView to achieve what I need.
Kind regards,
Eric.
Le 2 nov. 2009 à 14:42, Uli Kusterer a écrit :
On 02.11.2009, at 13:49, Eric Morand wrote:
The setIcon: method is successfully called when I delet
Hi guys,
I have a NSImageView instance that I want to display a default image
when the user delete its content - namely, I want it to display a
question mark instead of displaying an empty space.
The image view "Value" property is bound to the "icon" property of my
controller, which is of c
ndent keys,
meaning that you can't override
+keyPathsForValuesAffectingValueForKey: and return a key path that
goes through an NSController.
--Kyle Sluder
On 9/27/09, Eric Morand wrote:
Hi guys,
I'm trying to implement a rather simple functionality in my app.
I have a Core Data en
as an observer of the added
invoice line (myNewInvoiceLine) properties ?
Wy is the addInvoiceLineobject: method not called ? Is the array
controller inserting the invoice line using primitive methods ? Is
this the normal behavior ?
Thanks for your help,
Eric Morand.