NSWindow setMiniWindowTitle does not work for windows without title bars

Originator:mike.mcewen
Number:rdar://21790179 Date Originated:13-July-2015
Status:Open Resolved:
Product:OS X SDK Product Version:10.9
Classification: Reproducible:
 
Summary:
The NSWindow class has a method 'setMiniWindowTitle' which should set the title of the minimised window (which gets shown when you hover over the minimised window in the dock).
This method works correctly with a window that is created with a titlebar but does not work if the window does not have a titlebar.

Steps to Reproduce:
Some example code -

---start code---
NSRect frame = NSMakeRect(0, 0, 200, 200);

NSWindow * untitledWindow = [[NSWindow alloc] initWithContentRect:frame styleMask: NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];
            
[untitledWindow makeKeyAndOrderFront: self];
            
[untitledWindow setMiniwindowTitle: @"MINI TITLE"];

---end code---

Minimise the resultant window then move the pointer over the mini window in the dock.

Expected Results:
A little window should pop up with "MINI TITLE" written in it.


Actual Results:
A little window will pop up with the default mini window title (The name of the app).

Version:
Version 6.4 (6E35b)

Notes:

Note setTitle should also set the miniwindow title according to the SDK documentation but this also fails (obviously it can't set the window title because the window has no titlebar but there is no reason it shouldn't set the miniwindow title).

Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!