• 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: Document Edit State, Undo and Cocoa Bindings (Joseph Jones)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document Edit State, Undo and Cocoa Bindings (Joseph Jones)


  • Subject: Re: Document Edit State, Undo and Cocoa Bindings (Joseph Jones)
  • From: Amilcar Meneses Viveros <email@hidden>
  • Date: Wed, 29 Sep 2004 11:15:40 -0600 (CST)

Hi! I hope that I'm understanding the problem.

> How in the world do you bind the documents edit state when using
> bindings to
> update your data? I'd assume this would be cooked in there, but I
> can't find anyway to get this to work.

If you have a NSDocument subclass, you can add the method
- (BOOL)isDocumentEdited
{
  return [[myViewDocument window] isDocumentEdited];
}

(it's going to help to you for a "Graceful Application Termination")

and in the View object (myViewDocument) you can add the line
[[self window] setDocumentEdited:YES];

where you like indicate that the document is edited.

Regards
Amilcar


 _______________________________________________
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

  • Prev by Date: Re: NSTextFields
  • Next by Date: makeFirstResponder NOT working
  • Previous by thread: Re: Cocoa, Quartz, Colorspaces and ColorSync
  • Next by thread: makeFirstResponder NOT working
  • Index(es):
    • Date
    • Thread