• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWindow alloc/dealloc problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSWindow alloc/dealloc problems (From: Alex Reynolds <email@hidden>)
 >Re: NSWindow alloc/dealloc problems (From: j o a r <email@hidden>)
 >Re: NSWindow alloc/dealloc problems (From: Alex Reynolds <email@hidden>)
 >Re: NSWindow alloc/dealloc problems (From: j o a r <email@hidden>)
 >Re: NSWindow alloc/dealloc problems (From: Alex Reynolds <email@hidden>)
 >Re: NSWindow alloc/dealloc problems (From: j o a r <email@hidden>)
 >Re: NSWindow alloc/dealloc problems (From: Alex Reynolds <email@hidden>)
 >Re: NSWindow alloc/dealloc problems (From: j o a r <email@hidden>)
 >Re: NSWindow alloc/dealloc problems (From: Alex Reynolds <email@hidden>)

  • Prev by Date: Curious NSCopying error in subclass
  • Next by Date: Re: Curious NSCopying error in subclass
  • Previous by thread: Re: NSWindow alloc/dealloc problems
  • Next by thread: Re: NSWindow alloc/dealloc problems
  • Index(es):
    • Date
    • Thread