Re: NSBorderlessWindowMask'ed windows and the Window Menu
Re: NSBorderlessWindowMask'ed windows and the Window Menu
- Subject: Re: NSBorderlessWindowMask'ed windows and the Window Menu
- From: Kristin Webster <email@hidden>
- Date: Mon, 12 Aug 2002 12:26:51 -0700
Hi Tim,
I'm sorry - you are right. I should have checked more closely before
suggesting this - it turns out the menu code is fairly strict on
checking for the NSTitledWindowMask.
Can you use NSApplication's -addWindowsItem:title:filename:,
-changeWindowsItem:title:filename: and -removeWindowsItem: to manage
the Window menu entry yourself?
I've filed a bug on NSWindow for a better way to do this.
Kristin
On Monday, August 12, 2002, at 11:38 AM, Tim Trautmann wrote:
On 8/12/02 10:46, "Kristin Webster" <email@hidden> wrote:
Hi Tim,
You should be able to get the window to show up in the Window menu by
overriding NSWindow's -canBecomeMainWindow to return YES. Note that
this will also cause your window to be eligible to be the main window,
which is hopefully what you want. There probably should be an easier
way to do this.
Hello Kristin,
Hmmm I just tried that and it does not do the trick, I put the
following
method in my NSWindow subclass:
- (BOOL)canBecomeMainWindow {
return YES;
}
Having that in there doesn't help. Any other suggestions?
Thanks for your help!
Cheers,
Tim
--
Trautmann Consulting email@hidden http://www.tconsult.us/
San Francisco, CA phone: 415.387.9977 toll-free: 866.321.UNIX
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.