ty: 5 - Major
Bug Group: Bug Resolution: Fixed
Assigned to: gcasa Status: Closed
Summary: High NSWindowController retain counts
Original Submission: When using a subclass of NSWindowController and a
Assigned to: gcasa Status: Analyzed
Summary: High NSWindowController retain counts
Original Submission: When using a subclass of NSWindowController and a Gorm file, the
NSWindowController doesn't get released when the window is closed, because
Bug Group: Bug Resolution: Fixed
Assigned to: gcasa Status: Closed
Summary: High NSWindowController retain counts
Original Submission: When using a subclass of NSWindowController and a
Summary: High NSWindowController retain counts
Original Submission: When using a subclass of NSWindowController and a Gorm file, the
NSWindowController doesn't get released when the window is closed, because the retain
count is too high. There is a test for this here:
http://www.esk
i/AppKit Severity: 5 - Major
Bug Group: Bug Resolution: None
Assigned to: NoneStatus: Open
Summary: High NSWindowController retain counts
Original Submission: When using a sub
Andrew Ruder wrote:
Quick question:
144 - (void) setDocument: (NSDocument *)document
145 {
146 // FIXME - this is RETAINed and never RELEASEd ...
147 ASSIGN (_document, document);
148 [self synchronizeWindowTitleWithDocumentName];
in NSWindowController.m
Is there some re
It seems that all the apps that use NSWindowController don't display a window for a document opened after the first one (the document opened launching the app).
An example, due of my bad English :-)
get a NOT document-based application as, for example, ToyViewer or ImageViewer.
- try to &quo
Quick question:
144 - (void) setDocument: (NSDocument *)document
145 {
146 // FIXME - this is RETAINed and never RELEASEd ...
147 ASSIGN (_document, document);
148 [self synchronizeWindowTitleWithDocumentName];
in NSWindowController.m
Is there some reason the RELEASE of
Thanx a lot.
I realize that I should use [NSBundle loadNibName: owner:]
instead of NSWindowController to load the nib file,
which makes more sense in this case and is more straight-forward.
Yen-Ju
From: Nicola Pero <[EMAIL PROTECTED]>
Reply-To: Nicola Pero <[EMAIL PROTECTED]>
o magic doing it for you. :-)
> Therefore, [NSWindowController window] only load the nib,
> but not return the loaded window.
> I can use [NSWindowController setWindow: xxx] to make it work,
> but it is not what the Cocoa document say.
>
> In ideal case, I can use [
That problem is that the nib is loaded,
but the internal _window is not set.
Therefore, [NSWindowController window] only load the nib,
but not return the loaded window.
I can use [NSWindowController setWindow: xxx] to make it work,
but it is not what the Cocoa document say.
In ideal case
> I try to load the Gorm file using NSWindowController
> -initWithWindowNibName:Owner:.
> I have an outlet connected to the window (actually, panel).
> At this step, the window is not loaded.
> Then I try [NSWindowController window].
> The window is loaded, but [NSWindowControl
That is exactly the problem I have.
If the window exists (from the outlet),
why the [NSWindowController window] return nil ?
It should return the same object as the outlet, right ?
If I try to show the window using
[NSApp runModalForWindow: [NSWindowController window]];
The window failed
I try to load the Gorm file using NSWindowController
-initWithWindowNibName:Owner:.
I have an outlet connected to the window (actually, panel).
At this step, the window is not loaded.
Then I try [NSWindowController window].
The window is loaded, but [NSWindowController window] return nil.
I
Thanks - applied your suggestion and made some related changes around
trying to make sure we have the different window closing behaviour in case
_document == nil or _document != nil ... let me know if you have problems
with it.
> Hi,
>
> In NSWindowController: - (void) _window
Hi,
In NSWindowController: - (void) _windowWillClose:
(NSNotification *)notification
We have:
if ([notification object] == _window)
{
if ([_window delegate] == self)
{
[_window setDelegate: nil];
}
if ([_window
16 matches
Mail list logo