Re: NSWindow alloc/dealloc problems
Re: NSWindow alloc/dealloc problems
- Subject: Re: NSWindow alloc/dealloc problems
- From: "M. Uli Kusterer" <email@hidden>
- Date: Mon, 29 Nov 2004 20:42:54 +0100
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
_______________________________________________
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