Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6219415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:46:35+00:00 2026-05-24T07:46:35+00:00

I have enabled versions and autosave in my document based app so now I

  • 0

I have enabled versions and autosave in my document based app so now I can see the version browser (the time-machine-like interface) for each of my documents in OSX 10.7

+ (BOOL)autosavesInPlace{ return YES; }

I have a textview in it and as suggested in one of WWDC videos, session 107, I want to disable the text input, etc when entering into the version browser.
So I implemented NSWindowDelegate methods:

- (void)windowWillEnterVersionBrowser:(NSNotification *)notification{
    [myTextView setEditable:NO];
}
- (void)windowWillExitVersionBrowser:(NSNotification *)notification{
    [myTextView setEditable:YES];
}

Now, myTextView in the document (the current document) window of the left side of the screen is disabled but the documents in the right side (the pasts versions) still show the cursor.

The textView is not editable but the cursor shows. I am also disabling other stuff and re-enabling them in above methods but writing code in above methods seems to affect only the current document window/document not the past versions windows/document.

Perhaps someone else is having the same problem?
How can I get this work correctly? 🙂

EDIT:

I was looking for WWDC sample code of session 107, but the folder is empty. Did I miss something or there is no sample code for this session?

Edit2:

Application Kit Release Note (Lion) says that windowForSheet is called when creating the windows of the right side of version Browser:

- (NSWindow *)windowForSheet{
    CustomWindow *win = (CustomWindow *)[super windowForSheet];
    [win setUserInteractionEnabled:![self isInViewingMode]]; //disable stuff here
    return win;
}

But now when window goes back from the version Browser the user interaction is still disabled.
🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:46:36+00:00Added an answer on May 24, 2026 at 7:46 am

    Eventually I found the answer:

    NSWindowDelegate methods are called for the current document’s window (document in the left side of the version browser)and the other windows can be coordinated by overriding -[NSDocument windowForSheet]; or even better by writing something similar inside -[NSDocument windowControllerDidLoadNib:];.

    I posted a-short-tutorial/notes here: Versions in OSX 10.7

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a version of Vim compiled with python 2.6 support enabled ( from
I have it enabled in Visual Studio 2008, but I'd really like to enable
I have some time now working with the BlackBerry's Eclipse Plugin with no issues
I have enabled the Web Server on my Mac OS X (10.5.6) by going
I have enabled the lighttpd mod_webdav module and set up a webdav mount point
I have a combobox that I have Enabled = false. When that is the
I have an Java application running in JBoss in which I have enabled JMX
I have installed WAMP and running PHP scripts on localhost. I have enabled cURL.
Please help regarding the following issue. I have enabled the Block popup option in
I am using an SPGridView to present some data, and have enabled the filtering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.