If you own an app which overrides -[NSWindowController 
windowTitleForDocumentDisplayName:] to provide a custom document window title, 
for example, to append a suffix, it probably has a little break in 10.9…

1.  Create a new document.
2.  Click in the menu: File > Duplicate.  A new window appears, and the title 
in the title bar of the new window is editable, has keyboard focus and all 
characters are selected for editing.
3.  Begin typing a title.

Expected Results:
Characters you type should appear immediately.

Actual Results:
Characters do not appear until you have typed several, probably enough to be as 
wide as the appended suffix.  Maybe it’s wrongly subtracting the width of the 
appended suffix in calculating the width of the field editor.  The duplicated 
document also seems to be more susceptible to those damned 
"performSynchronousWaiting…" autosave deadlocks (I had one happen to me in 
TextEdit.app recently), but, as always, these are not reproducible.

I’ve filed this as Apple Bug ID 15736644 with a demo project.

I’m not looking for a workaround, because I decided that my appended suffix was 
not really needed anyhow.  My workaround is to simply remove my override of 
-[NSWindowController windowTitleForDocumentDisplayName:].
_______________________________________________

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

This email sent to arch...@mail-archive.com

Reply via email to