NSDocument titlebars without icons?
NSDocument titlebars without icons?
- Subject: NSDocument titlebars without icons?
- From: Keith Blount <email@hidden>
- Date: Sat, 19 Nov 2005 12:11:58 -0800 (PST)
Hello,
I must be missing something simple here, but I cannot
find out how to do this:
I have an NSDocument subclass that can have various
windows open. Some of these windows are just "info"
windows, just like the "Get Info" windows in Xcode.
For these windows, I would like the title bars to
display a custom title with _no document icon_.
Now, these windows have to be closed when the document
closes, so I add their window controllers to the
document's list when they are created, ie., in my
NSDocument subclass:
[self addWindowController:infoWindowController];
But in adding a window controller to the document's
list of window controllers, it automatically assumes
the document's title and icon. I can customise the
title easily enough by overriding
-windowTitleForDocumentDisplayName:. But how do I
prevent the window from displaying an icon?
How do other appliations (like Xcode) handle this? Or
do I just not add the info window controllers using
-addWindowController:, and store them in my own array
through which I enumerate to close all when the
document closes?
Many thanks in advance for any help or advice - sorry
if this is a simple one.
Best regards,
Keith
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden