Skip navigation.
 
mlRe: NSWindow alloc/dealloc problems
FROM : M. Uli Kusterer
DATE : Mon Nov 29 20:42:54 2004

At 13:53 Uhr -0500 29.11.2004, Alex Reynolds wrote:
>On Nov 29, 2004, at 1:01 PM, j o a r wrote:
>

>>Is it not enough to simply resize and / or reposition it
>>(-[NSWindow setFrame:display:])?

>
>Thanks. I used [targetWindow setFrame:NSMakeRect(0,0,0,0)
>display:NO];  and this worked perfectly.


I think what you rather want to use is

   [targetWindow orderOut: nil];

To re-show your window after that, use

   [targetWindow makeKeyAndOrderFront: YES];

Setting the rect to an empty rect can royally screw up your item
sizes if you have resize springs set up...

If you want my opinion, you really want to buy Aaron Hillegass' book
on Cocoa. It describes how to do things like this, and is a very nice
read to boot. Without it, I'd still be fighting Carbon...
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
        "The Witnesses of TeachText are everywhere..."
                    http://www.zathras.de

Related mailsAuthorDate
mlNSWindow alloc/dealloc problems Alex Reynolds Nov 29, 10:07
mlRe: NSWindow alloc/dealloc problems j o a r Nov 29, 10:24
mlRe: NSWindow alloc/dealloc problems Alex Reynolds Nov 29, 10:32
mlRe: NSWindow alloc/dealloc problems j o a r Nov 29, 10:42
mlRe: NSWindow alloc/dealloc problems Lorenzo Nov 29, 12:06
mlRe: NSWindow alloc/dealloc problems Alex Reynolds Nov 29, 18:02
mlRe: NSWindow alloc/dealloc problems j o a r Nov 29, 18:19
mlRe: NSWindow alloc/dealloc problems Alex Reynolds Nov 29, 18:47
mlRe: NSWindow alloc/dealloc problems j o a r Nov 29, 19:01
mlRe: NSWindow alloc/dealloc problems Alex Reynolds Nov 29, 19:53
mlRe: NSWindow alloc/dealloc problems j o a r Nov 29, 20:23
mlRe: NSWindow alloc/dealloc problems Alex Reynolds Nov 29, 20:26
mlRe: NSWindow alloc/dealloc problems j o a r Nov 29, 20:35
mlRe: NSWindow alloc/dealloc problems M. Uli Kusterer Nov 29, 20:42