• 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: Delayed Undo Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delayed Undo Problem


  • Subject: Re: Delayed Undo Problem
  • From: Richard Somers <email@hidden>
  • Date: Wed, 1 Apr 2009 08:09:14 -0600

On Mar 30, 2009, at 5:55 AM, Richard Somers wrote:

I have a basic core data document based application (Hillegass 3rd Edition, Chapter 11, CarLot). With a single primary window every thing works. Then a second window is added with a generic master detail interface using the core data entity from the Interface Builder pallet.

When making a change to the model in the second window, undo/redo in the main menu is not available until the primary window is clicked and brought to the front.

I need the undo/redo menu to work regardless of which window is frontmost. Any thoughts as to how this can be done?

On Mar 30, 2009, at 9:17AM, Keary Suska wrote:

This FAQ might help:

http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdFAQ.html#/ /apple_ref/doc/uid/TP40001802-244036

I think I found the answer to my question.

The Undo/redo menu items reflect the state of the undo manager for the key window (Hillegass, 3rd Edition, page 152).

The default cocoa document based architecture has a one window for each document. To have multiple inspector panels reflect the undo state of the document you need to subclass NSWindowController.

Refer to Apple Cocoa "Document-Based Applications Overview" page 62 "How can I use NSWindowController for shared panels (inspectors, find panels, etc.)?" Also the Sketch application uses NSWindowController subclasses for its various secondary panels.

Richard

_______________________________________________

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


  • Prev by Date: Re: How to know when a UISwitch is being touched
  • Next by Date: Re: disable row highlighting NSTableView
  • Previous by thread: Re: How to know when a UISwitch is being touched
  • Next by thread: Re: [BUG] Cursor Flicker
  • Index(es):
    • Date
    • Thread