• 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: remembering cursor position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: remembering cursor position


  • Subject: Re: remembering cursor position
  • From: Philip Aker <email@hidden>
  • Date: Fri, 07 Dec 2007 00:05:31 -0800

On 2007-12-06, at 14:38, David Ewing wrote:

On Dec 2, 2007, at 5:50 AM, email@hidden wrote:

i have the following behaviour in Xcode 2.4

1-i open a file, it shows lines 157-204
2-if i hit an arrow-button, the window scrolls to the cursor position (line 228)
3-if i move the cursor up to, say line 20, save the file, close the file, open the file again
it again shows lines 157-204

what i would like Xcode to do is:

1-open the file with the cursor in view (in step 1: f.i. show lines 200-240)
2-remember the last cursor position (in step 3: f.i. show lines 0-40)

how do i get Xcode to do this?

Check to make sure "Save Window State" is checked in the General Prefs. It sounds to me like it's off, but the window state for that file was previously saved (which means it continues to open at that stale location).

FWIW, I always have "Save Window State" checked and I get the behavior Perry describes on a regular basis. In order to get it to work, I have to do something like:


• Clear file history.
• Move to the top of the file.
• Type a bunch of returns.
• Save the file.
• Close the window.
• Re-open the window.
• Delete the extraneous returns.
• Move to the target selection area and enter the selection.
• Save the file.

If that doesn't work, then clean every target in the project, quit Xcode, remove the directory containing the intermediate files and start afresh.

This is the _least_ of my problems with Xcode editor windows. In 3.0, I can't even get it to type a return correctly in header files with:

#ifdef __cplusplus
	extern "C" {
#endif


| I have to type two returns and then the insertion point ends up indented by a tab two lines down. Like at the beginning of this line.



Furthermore, every time I type inside a comment:

/*! @method
 @discussion blah blah
*/

It keeps on indenting the lines inside the comment by a space. I _don't_ want any leading spaces in my comments.

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: remembering cursor position
      • From: David Ewing <email@hidden>
    • Re: remembering cursor position
      • From: David Dunham <email@hidden>
References: 
 >remembering cursor position (From: email@hidden)
 >Re: remembering cursor position (From: David Ewing <email@hidden>)

  • Prev by Date: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Next by Date: Toggling Distributed build does full rebuild - Why?
  • Previous by thread: Re: remembering cursor position
  • Next by thread: Re: remembering cursor position
  • Index(es):
    • Date
    • Thread