Re: Core Data and the Document Dirty indicator

2008-04-12 Thread Jonathan Waddilove

Exactly what I needed! Thank you, that has fixed my problem.

I wish the Conceptual documents could be made available in a book :)

Jonathan

On 11 Apr 2008, at 20:07, mmalc crawford wrote:


On Apr 11, 2008, at 11:26 AM, Jonathan Waddilove wrote:
Could some kind reader point me in the right direction to fix this  
unwanted behaviour.


http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/04_Department/chapter_5_section_2.html#//apple_ref/doc/uid/TP40002832-SW7 



mmalc



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Core Data and the Document Dirty indicator

2008-04-12 Thread Gary L. Wade
Exactly what I needed! Thank you, that has fixed my problem.

I wish the Conceptual documents could be made available in a book :)

Jonathan


I've requested that Apple provide a print-on-demand link with each document on 
their web site.  The way I suggested it was to have a shopping cart icon below 
the document's PDF icon so that when you click on it, it goes to a 
print-on-demand publisher (ideally one fairly local to you like FTD does for 
flowers) that would provide some fairly simple printing and binding but at a 
lower cost than you would have to pay if you sent a rather large document in 
color to a place like Kinko's.  What precipitated this was considering printing 
out the HIG (around $200, if I recall correctly) at the Kinko's across the 
street.

This is off-topic to be discussed further here, but if you like that idea or 
have further notions to suggest, let DTS know about it.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Core Data and the Document Dirty indicator

2008-04-11 Thread I. Savant
  When a Core Data document is opened initialization adds an entity for the
 basic 'All' smart group. This object is assigned to an in memory store
 (rather than to the persistent document) - I have checked and the 'All' item
 doesn't appear in the saved data.

  ... but a context has changed. That's a change. It can result in an
undo. Period.


  My problem is that adding this item results in the 'dirty' flag being set -
 with the result that the user is prompted to save the document even though
 they have not made any changes.

  This isn't a Core Data problem. It's an Undo Manager problem. See
-[NSUndoManager removeAllActions] ... simply clear the changes when
you're done with your initialization routines.

  You can also temporarily disable and enable undo registration. That
and the method above are covered and easily found in the
documentation.

--
I.S.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]