Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument problem



Hi!:)

I've got an app who creates NSDocument very often. When the NSDocument is
created, I need to -setTitle: of the NSWindow it contains. Each document has
a single window and each window has a different topic.

Unfortunately, right after the document is created and I called -setTitle:,
I'm calling a second method who gets the name of the new-created window...

Here's the problem: most of the time the title has _not_ yet been set, and I
got a title like @"Untitle 2" or something.

So my question is (tadaam :)) : is it possible to set the properties of the
window _before_ it appears ?

Thanks,
Nico
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.