FROM : Scott Stevenson
DATE : Tue Feb 05 23:04:58 2008
On Feb 5, 2008, at 11:05 AM, David Dunham wrote:
> I've got a Cocoa app that manually creates an NSWindow (it's an
> easier fit for a cross-platform engine). From my debugging, it
> appears that every time I click another app's window, the retain
> count on my NSWindow goes up by 2 (I have a windowDidResignKey
> delegate which prints the retain count). I don't make an
> NSWindowController.
High retain counts are not necessarily a problem. Sometimes the
frameworks may do things like that for reasons that are not obvious on
the surface.
Are you actually seeing memory leaks after your window has been closed
and you have released it? If so, then you may want to file a bug.
- Scott
DATE : Tue Feb 05 23:04:58 2008
On Feb 5, 2008, at 11:05 AM, David Dunham wrote:
> I've got a Cocoa app that manually creates an NSWindow (it's an
> easier fit for a cross-platform engine). From my debugging, it
> appears that every time I click another app's window, the retain
> count on my NSWindow goes up by 2 (I have a windowDidResignKey
> delegate which prints the retain count). I don't make an
> NSWindowController.
High retain counts are not necessarily a problem. Sometimes the
frameworks may do things like that for reasons that are not obvious on
the surface.
Are you actually seeing memory leaks after your window has been closed
and you have released it? If so, then you may want to file a bug.
- Scott
| Related mails | Author | Date |
|---|---|---|
| David Dunham | Feb 5, 20:05 | |
| David Dunham | Feb 5, 22:12 | |
| Scott Stevenson | Feb 5, 23:04 | |
| j o a r | Feb 6, 00:28 | |
| David Dunham | Feb 6, 04:57 | |
| Clark Cox | Feb 6, 06:27 | |
| David Dunham | Feb 6, 08:10 | |
| Scott Stevenson | Feb 6, 08:45 |






Cocoa mail archive

